FPGARelated.com
Forums

Xilinx cable drivers for Linux 2.6.16?

Started by Wojciech Zabolotny June 23, 2006
Has anybody managed to compile the Xilinx cable drivers for Linux kernel 
2.6 available here: 
http://www.xilinx.com/xlnx/xil_ans_display.jsp?getPagePath=22648
ftp://ftp.xilinx.com/pub/utilities/M1_workstation/linuxdrivers.2.6.tar.gz

with kernel 2.6.16?
The problem is with windrvr6 driver.
After ./configure and ./make I get a bunch of errors:
/lib/modules/2.6.16.18/build/include/asm/rwsem.h: In function 
'__down_read':
/lib/modules/2.6.16.18/build/include/asm/rwsem.h:105: error: syntax error 
before 'KBUILD_BASENAME'
/lib/modules/2.6.16.18/build/include/asm/rwsem.h: In function 
'__down_write':
/lib/modules/2.6.16.18/build/include/asm/rwsem.h:157: error: syntax error 
before 'KBUILD_BASENAME'
/lib/modules/2.6.16.18/build/include/asm/rwsem.h: In function '__up_read':
/lib/modules/2.6.16.18/build/include/asm/rwsem.h:194: error: syntax error 
before 'KBUILD_BASENAME'
-- 
TIA & Regards,
Wojtek Zabolotny

I have found the following site:
http://gentoo-wiki.com/HOWTO_Xilinx
which also discusses the 2.6.16 issues:
http://gentoo-wiki.com/Talk:HOWTO_Xilinx

However after downloading and unpacking the 
http://www.jungo.com/download/WD702LN.tgz
I've modified the CFLAGS in redist/makefile in slightly simpler way - just
changing/adding two definitions in CFLAGS:
-DKBUILD_MODNAME=\"windrvr6\" -DKBUILD_BASENAME=\"windrvr6\"

So the problem with the original version was:
1. old version of windrvr6 source which caused udev problems
2. wrong definition of KBUILD_MODNAME
3. lack of KBUILD_BASENAME definition
-- 
HTH & Regards,
Wojtek