Xilinx cable drivers for Linux 2.6.16?

Jun 23, 2006 1 Replies

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

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

Join the Discussion

Have something to add? Share your thoughts — no account required.

Didn't find your answer?

Ask the community — no account required