Xilinx cable drivers for Linux 2.6.16?

Has anybody managed to compile the Xilinx cable drivers for Linux kernel

2.6 available here:
formatting link

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
Reply to
Wojciech Zabolotny
Loading thread data ...

I have found the following site:

formatting link
which also discusses the 2.6.16 issues:
formatting link

However after downloading and unpacking the

formatting link
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
Reply to
Wojciech Zabolotny

ElectronDepot website is not affiliated with any of the manufacturers or service providers discussed here. All logos and trade names are the property of their respective owners.