I'm facing difficulties to build the broadcom netxtreme2 bnx2 driver with kernel 3.2.31 on debian. I guess I'm doing something wrong and would need some help.
Basically, I get the following error when I build the driver :
/lib/modules/3.2.30-beeware64/build/include/linux/linkage.h:5:25: error: asm/linkage.h: No such file or directory
Consequently, I tried to create the following link :
#ln -s ../arch/x86/include/asm asm
Retried the build and this time, I got the following error :
/lib/modules/3.2.31/build/include/asm/arch_hweight.h: In function __arch_hweight64:
/lib/modules/3.2.31/build/include/asm/arch_hweight.h:53: error: expected : or ) before POPCNT64
Maybe my link is not pointing to the proper target. The kernel is 64bits and I'm pointing it to x86... But there is no "a64" directory in "include/arch"... Could this be the root cause of my error ?
alpha avr32 cris h8300 ia64 m32r microblaze mn10300 parisc s390 sh tile unicore32 x86_64
arm blackfin frv hexagon Kconfig m68k mips openrisc powerpc score sparc um x86 xtensa
(the x86_64 directory is only containing the bzImage I generated)
Does someone have an idea ?
Thanks a lot
The driver is available here : http://www.broadcom.com/support/lice...nux-7.4.21.zip
/usr/src/linux points to /usr/src/linux-3.2.31
The operating system is Debian 6.0.5