LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices


Reply
  Search this Thread
Old 11-30-2012, 03:08 AM   #1
akiuni
Member
 
Registered: Sep 2012
Location: France
Distribution: debian
Posts: 56

Rep: Reputation: Disabled
difficulties to build bnx2 driver on kernel 3.2.31


Hi all

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 :

Quote:
/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 :
Quote:
#cd /usr/src/linux/include
#ln -s ../arch/x86/include/asm asm
Retried the build and this time, I got the following error :
Quote:
/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 ?

Quote:
#cd /usr/src/linux/arch
#ls
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
best regards
Julien

Additionnal informations:
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
 
Old 11-30-2012, 04:48 AM   #2
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,511

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
Quote:
#cd /usr/src/linux/include
#ln -s ../arch/x86/include/asm asm
I think it should be : 1) cd /usr/src/linux/include/
2) # rm asm
3) # ln -s asm-generic/ asm
 
Old 11-30-2012, 06:38 AM   #3
akiuni
Member
 
Registered: Sep 2012
Location: France
Distribution: debian
Posts: 56

Original Poster
Rep: Reputation: Disabled
Hello

thank you for your answer, i've tried to point asm to asm-generic but no change...
 
Old 11-30-2012, 06:51 AM   #4
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,511

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
http://www.broadcom.com/support/ethe...rivers.php#tg3
> "What are the Linux tg3, bnx2, bnx2x and b44 drivers?"

> "If you are using the latest upstream kernel from www.kernel.org,
you generally do not need to download the Linux driver packages from
Broadcom as the latest upstream kernel has the latest Linux driver patches."
 
Old 11-30-2012, 08:18 AM   #5
akiuni
Member
 
Registered: Sep 2012
Location: France
Distribution: debian
Posts: 56

Original Poster
Rep: Reputation: Disabled
I need really the bnx2 driver because it's a Netxtreme2 network card (5709).

You are right, that driver is already included in the kernel. However, I won't enter too much in details but that driver doesn't seem to implement properly the MSI... We are facing a lack of performance because my developpers say that all is sent to cpu0 instead of dispatching interrupts among all the cpus. That's the reason why I'd like to rebuild that driver so as to check if all is fine.

We are using the tg3 driver on other servers (equiped with other nics) and all is working fine with this one, but our MSI issue is another story...
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Debian on HP ProLiant DL380 - NIC Driver installation issue ( firmware-bnx2 ) RouterRat Linux - Server 1 04-07-2011 09:45 AM
NIC Driver bnx2 error after kernel recompilation firsten Linux - Hardware 2 09-05-2009 09:44 AM
Broadcom bnx2 driver statistic rx_fw_discards kevins7189 Linux - Networking 2 03-17-2009 02:00 PM
bnx2 driver danospv Debian 2 11-26-2008 08:00 AM
Network restart fails with NIC BCM5706 using bnx2 driver linux@rossillo.net Linux - Networking 2 08-15-2007 01:37 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware

All times are GMT -5. The time now is 03:53 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration