2012年7月1日 星期日
[Linux] Xilinx Cable Driver Can't be Compiled
Situation:
When you compile Xilinx Cable Drier with Linux Kernel >= 2.6.36
(when you run: $Xilinx/14.1/ISE_DS/common/bin/lin/install_script/install_drivers/install_drivers)
This may cause the following problem:
/vlsi/Xilinx/14.1/ISE_DS/common/bin/lin/install_script/install_drivers/linux_drivers/xpc4drvr2_6/xpc4drvr/xpc4.c:241:2: error: unknown field ‘ioctl’ specified in initializer
Solution:
Open:
$Xilinx/14.1/ISE_DS/common/bin/lin/install_script/install_drivers/linux_drivers/xpc4drvr2_6/xpc4drvr/xpc4.c
Add @ top:
#include <linux/slab.h>
@Line 163:
- int xpc4_ioctl (struct inode *inode, struct file *filp,
+ int xpc4_ioctl (struct file *filp,
@Line 240:
- .ioctl = xpc4_ioctl,
+ .unlocked_ioctl = xpc4_ioctl,
========
This may be useful while you try to install Xilinx Cable Driver.
The Kernel Module Driver is not compile-able after 2.6.36
Hacking Material
http://lwn.net/Articles/119652/
http://hi.baidu.com/kkernel/item/ea0ae8f4abb46929743c4c96
訂閱:
張貼留言 (Atom)
沒有留言:
張貼留言