Sign In

Don't have a Xilinx account yet?

  • Choose to receive important news and product information
  • Gain access to special content
  • Personalize your web experience on Xilinx.com

Create Account

Username

Password

Forgot your password?
XClose Panel
Xilinx Home
Reply
Visitor
czlilac
Posts: 14
Registered: ‎08-11-2009
0

Re: How to use the icap driver in Linux kernel 2.6.30?

[ Edited ]

Now, I create a sys folder by hand and mount sysfs to it, then I find there is a "icap" under /sys/devices/platform/xilinx_icap.0/subsystem/drivers , but there is still no "icap0" under /dev.

Message Edited by czlilac on 04-08-2010 05:50 PM
Contributor
wenweizha
Posts: 49
Registered: ‎02-25-2009
0

Re: How to use the icap driver in Linux kernel 2.6.30?

Are you using Xilinx's distribution of Linux 2.6.30? Are you making correct config (CONFIG_BLK_DEV=y CONFIG_XILINX_HWICAP=y? Are your dts file correct?

 

 

You shoud see icap successfully map to memory during booting.



Visitor
czlilac
Posts: 14
Registered: ‎08-11-2009
0

Re: How to use the icap driver in Linux kernel 2.6.30?

I am using the linux2.6.25-rc9, and the CONIFG_BLK_DEV,=Y, CONFIG_XILINX_HWICAP=y in my .config.  it shows "Registering device xilinx_icap:0" when booting the linux kernel.

By the way, I can see the icap when execute "cat /proc/devces"

Visitor
czlilac
Posts: 14
Registered: ‎08-11-2009
0

Re: How to use the icap driver in Linux kernel 2.6.30?

Hello, I still have not resovled the problem , and I manully cross compiled the xhwicap, then insmod it to linux2.6.25 ,it can be seen under /proc/devices , but could not show under /dev .

 

Now , I mannully make a icap node with "mknod /dev/icap c 211 0" command, 211 is the major device number. but when I excute "cp enc.bit > /dev/icap", it shows "cp: unable to open `/dev/icap': No such device or address".

 

Can you give me any hints about this ?

 

Thanks a lot !

Contributor
wenweizha
Posts: 49
Registered: ‎02-25-2009
0

Re: How to use the icap driver in Linux kernel 2.6.30?

I forgot to mention that I'm not using Xilinx's newest icap core. I'm using a ML410 board, so I choose "opb_hwicap" v1.10.a (the whole system is build with default BSB in XPS_PLB bus, and a plbv46_opb_bridge is needed). It seems that I had trouble in using xps_icap. (Indeede, icap is very tricky to use ...)

 

The file driver/char/xilinx_hwicap should be added with one more line: (I don't remember by default whether v1.10a is supported.)

 { .compatible = "xlnx,opb-hwicap-1.10.a", .data = &buffer_icap_config},

 

If everything is OK (your icap hardware works correctly, your kernel is built correctly), you should see this  during boot up:

 

icap 40200000.opb-hwicap: Xilinx icap port driver
icap 40200000.opb-hwicap: ioremap 40200000 to d1020000 with size 10000

 

(It seems that you saw differnt message abot icap.)

 

I'm not so good at linux driver, especially when we go into kernel 2.6. (In 2.4, it's kind of "simple" to wirte our own driver program and use "insmod" to install a device; but in 2.6, too much seems to be changed).

Visitor
czlilac
Posts: 14
Registered: ‎08-11-2009
0

Re: How to use the icap driver in Linux kernel 2.6.30?

Maybe this is problem, I am using EDK9.1 to build the BSB, and it is opb bus. Thanks for your reply , I will try it.

Contributor
wenweizha
Posts: 49
Registered: ‎02-25-2009
0

Re: How to use the icap driver in Linux kernel 2.6.30?

I didn't try EDK9.1.

 

BSB of 10.1 / 10.3 / 11.X wokrs fine, though I need to manually add opb_icap core.

 

good luck!

Visitor
czlilac
Posts: 14
Registered: ‎08-11-2009
0

Re: How to use the icap driver in Linux kernel 2.6.30?

[ Edited ]

I have tried it without any success,  it can't add plbv46_opb and xhwicap_v_1.10_a,  during  creating the BSB in the EDK10.1, but it can't find them when execute project->recan user respositories after i put into pcores,.

 

And how did you add the opb_hwicap and the plbv46_opb , and did you witer down the whole process? If there are some document , can you send it to me ? My email is zhichen1986@gmail.com, Thank you a lot!

Message Edited by czlilac on 04-14-2010 03:01 AM
Visitor
czlilac
Posts: 14
Registered: ‎08-11-2009
0

Re: How to use the icap driver in Linux kernel 2.6.30?

Or could you send me your system.bit , zImage.elf and .config?Thanks!
Regular Contributor
ritanagar
Posts: 57
Registered: ‎09-20-2010
0

use the icap driver in Linux kernel 2.6.34

Hi,

I m having the same using hwIcap,Plz help me to resolve this.

In /dev.icap0 is there,I m using ML507 board.After confuring linux with HwIcap, how can we do partial reconfigurtion?

Plz give me some idea.

 

you have written  "cat pr.bin > /dev/icap0".

 

How to pass partial bit files to icap0?

 

Plz help me