LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 06-26-2006, 06:01 AM   #1
cyberwiz
LQ Newbie
 
Registered: May 2003
Location: The Netherlands
Distribution: Salckware 8.0
Posts: 6

Rep: Reputation: 0
Broadcom NIC driver compile error


I'm trying to compile the tg3 driver from Broadcom on a Slackware (2.4.31) but I always get the following error message during compile:
Quote:
In file included from /lib/modules/2.4.31/build/include/linux/spinlock.h:6,
from /lib/modules/2.4.31/build/include/linux/module.h:12,
from tg3.c:27:
/lib/modules/2.4.31/build/include/asm/system.h: In function `__set_64bit_var':
/lib/modules/2.4.31/build/include/asm/system.h:190: warning: dereferencing type-punned pointer will break strict-aliasing
rules
/lib/modules/2.4.31/build/include/asm/system.h:190: warning: dereferencing type-punned pointer will break strict-aliasing
rules
In file included from tg3.c:77:
tg3.h: At top level:
tg3.h:234: error: redefinition of `if_mii'
/lib/modules/2.4.31/build/include/linux/mii.h:149: error: `if_mii' previously defined here
make: *** [tg3.o] Error 1
Any idea what is going wrong?

Thx....
 
Old 06-26-2006, 06:51 AM   #2
J3N7iL
Member
 
Registered: Jun 2004
Location: Chicago
Distribution: Gentoo
Posts: 53

Rep: Reputation: 15
As much as I hate to try solving an issue by not solving the issue, I have to say that Broadcom does not release any info about thier drivers and all attempts to date to reverse engineering have left the users pissed.

I have a broadcom wireless adapter in my Acer Laptop, and have been using the ndiswrapper to use the windows drivers for it. It also works for non-wireless drivers as well. You can find out how to configure it at gentoo-wiki. It's really a peice of cake. Im at work right now otherwise could post my home made batch script for setting it up. If your interested let me know and I'll post it when i get home.

Last edited by J3N7iL; 06-26-2006 at 06:52 AM.
 
Old 06-26-2006, 07:23 AM   #3
cyberwiz
LQ Newbie
 
Registered: May 2003
Location: The Netherlands
Distribution: Salckware 8.0
Posts: 6

Original Poster
Rep: Reputation: 0
Thanks for the hint. I'll check the gentoo wiki. However I need the tg3 compiled for a specific reason (ZenWorks imaging kernel module). In the meantime I have tried to compile the tg3 using the 2.4.28 as well but no progress
I'll try to check out with the Broadcom support as well.

Cheers,
Dimi
 
Old 06-26-2006, 10:50 AM   #4
cwwilson721
Senior Member
 
Registered: Dec 2004
Location: In my house.
Distribution: Ubuntu 10.10 64bit, Slackware 13.1 64-bit
Posts: 2,649
Blog Entries: 1

Rep: Reputation: 67
I had the same problem. Here's the solution:

Forget broadcom. Go to serialmonkey.com.

Their drivers work (kinda. At last try I had, it would only give me 'b' speeds, and no power/strength levels, but it would connect). Read their forums, too.
 
Old 06-26-2006, 10:55 AM   #5
J3N7iL
Member
 
Registered: Jun 2004
Location: Chicago
Distribution: Gentoo
Posts: 53

Rep: Reputation: 15
Im not sure if the TG3 is wireless, I think its a gigabit LAN, could you clearify for us cyberwiz.
 
Old 06-26-2006, 11:17 AM   #6
cwwilson721
Senior Member
 
Registered: Dec 2004
Location: In my house.
Distribution: Ubuntu 10.10 64bit, Slackware 13.1 64-bit
Posts: 2,649
Blog Entries: 1

Rep: Reputation: 67
You are correct.

I'm not sure either. I saw Broadcom and Network, and assumed.

If it is wireless, or the 'rt' chipset, my post is ok.

If not, please ignore it. Then whip me.
 
Old 06-26-2006, 12:07 PM   #7
cyberwiz
LQ Newbie
 
Registered: May 2003
Location: The Netherlands
Distribution: Salckware 8.0
Posts: 6

Original Poster
Rep: Reputation: 0
Wink

It's gigabit LAN. But thanks for the suggestions guys. I'll remember them in case I get stuck with the wireless version some day
 
Old 06-26-2006, 12:12 PM   #8
cwwilson721
Senior Member
 
Registered: Dec 2004
Location: In my house.
Distribution: Ubuntu 10.10 64bit, Slackware 13.1 64-bit
Posts: 2,649
Blog Entries: 1

Rep: Reputation: 67
I was reading in this thread about something else, and tg3 popped up...
Quote:
Originally Posted by Chinaman
...I wish it worked back in Slackware-9.1 for my Broadcom Gigabit NIC ... back then I just didn't get on, until I uncommented "tg3" in /etc/rc.d/rc.modules or rebuilt the kernel afterwards.
Duh. Why didn't I think of that?

Last edited by cwwilson721; 06-26-2006 at 12:14 PM.
 
Old 06-27-2006, 06:51 AM   #9
cyberwiz
LQ Newbie
 
Registered: May 2003
Location: The Netherlands
Distribution: Salckware 8.0
Posts: 6

Original Poster
Rep: Reputation: 0
cwwilson thanks for your input. At the moment I am recompiling the kernel with the tg3 module and will try to use the whole new thing as my ZenWorks imaging kernel. I was just dazzled that the module supplied by Broadcom did not compile However i can try compiling it on Gentoo box and see what is going on there but if it works I will be very surprised as usually my Slak box is fit for the purpose.

Regards,

dimi
 
Old 06-27-2006, 10:52 AM   #10
cwwilson721
Senior Member
 
Registered: Dec 2004
Location: In my house.
Distribution: Ubuntu 10.10 64bit, Slackware 13.1 64-bit
Posts: 2,649
Blog Entries: 1

Rep: Reputation: 67
Broadcom.....What can I say? I've never had any luck with them for anything....

Let us know if you resolve your issue. I'm sure there are plenty of others who are in the same boat, and need your 'paddle'...
 
Old 06-29-2006, 01:58 AM   #11
ExplodingTurnip
LQ Newbie
 
Registered: May 2005
Location: Los Angeles, CA USA
Distribution: Slackware, Knoppix
Posts: 23

Rep: Reputation: 15
Hmm, that's odd. The only problem I've ever had with a Broadcom Gigabit NIC was on an IBM server running Slack 10. I had to compile the module from the IBM drivers CD. From Slackware 10.1 and up, though, the network portion of Slack's setup automatically detects the NIC and adds the TG3 module. I'm not sure whether it actually transfers data at or near Gigabit speeds, though. All of the network switches where the server is located are still 10/100.

The card is a Broadcom NetXtreme Gigabit ethernet NIC, BTW.
 
Old 06-29-2006, 04:00 AM   #12
davidsrsb
Member
 
Registered: Oct 2003
Location: Kuala Lumpur, Malaysia
Distribution: Slackware 13.37 current
Posts: 770

Rep: Reputation: 33
Have you tried the 2.6 kernel, Gigabit nic support in 2.4 is patchy.
 
Old 06-29-2006, 06:04 PM   #13
cyberwiz
LQ Newbie
 
Registered: May 2003
Location: The Netherlands
Distribution: Salckware 8.0
Posts: 6

Original Poster
Rep: Reputation: 0
Final solution: just upgraded the other system to 2.4.31 and no more problems with tg3
davidsrsb: I agree totally with you re 2.6 but unfortunatelly it is not an option for me yet.
 
  


Reply

Tags
broadcom, networking


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Why is my Broadcom NIC ignored? edrea Linux - Networking 4 06-20-2005 04:46 PM
Cannot compile alsa driver? It gives an error :( sys7em Slackware 24 10-11-2004 02:50 AM
modem driver compile error in suse 9.0 archish Linux - Hardware 3 06-08-2004 10:00 AM
NVIDIA Driver Error after Kernel Compile lasindi Linux - General 2 04-26-2004 06:55 PM
ambient driver compile error coriolis Linux - Software 0 01-15-2002 05:59 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 12:54 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