- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic to the Top
- Bookmark
- Subscribe
- Printer Friendly Page
Re: How to use the icap driver in Linux kernel 2.6.30?
[ Edited ]- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
04-08-2010 05:44 PM - edited 04-08-2010 05:50 PM
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/driv
Re: How to use the icap driver in Linux kernel 2.6.30?
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
04-09-2010 06:07 PM
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.
Re: How to use the icap driver in Linux kernel 2.6.30?
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
04-09-2010 06:33 PM
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"
Re: How to use the icap driver in Linux kernel 2.6.30?
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
04-12-2010 11:11 PM
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 !
Re: How to use the icap driver in Linux kernel 2.6.30?
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
04-13-2010 10:13 AM
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).
Re: How to use the icap driver in Linux kernel 2.6.30?
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
04-13-2010 05:24 PM
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.
Re: How to use the icap driver in Linux kernel 2.6.30?
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
04-13-2010 05:59 PM
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!
Re: How to use the icap driver in Linux kernel 2.6.30?
[ Edited ]- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
04-14-2010 02:27 AM - edited 04-14-2010 03:01 AM
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!
Re: How to use the icap driver in Linux kernel 2.6.30?
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
04-14-2010 05:20 PM
use the icap driver in Linux kernel 2.6.34
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
04-14-2011 01:54 PM
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











