Broadcom on Trixbox 2.2.0 NEW, need help from Trixbox Engineers

tkhreish
Posts: 6
Member Since:
2006-12-17

I have a LENOVO machine core-duo that came with Broadcom BCM5786 unfortunately the TRIXBOX did not detect it. After downloading the drivers from Lenovo we tried to follow the instructions but we went into an endless loop of errors that are preventing us from progressing.
The error after trying the following command (make; make install) in order to create the tg3.ko :

make:*** SUBDIRS=/usr/src/redhat/BUILD/tg3-3.71b: No such file or directory. Stop.
Make: *** [default] Error 2

we even tried the tg3-3.66d and the same error we got.

the lspci is reporting that the card was not being able to be detected.

I hope someone can help with the error.
the Kernel I have is 2.6.9-34.0.2.ELsmp

If would be greatful if someone can send me the tg3.ko compiled under trixbox for the Broadcom card.



fadi
Posts: 18
Member Since:
2007-02-06
same here

I am getting exact same error in my Dell machine using Broadcom 57xx network card!!



GSnover
Posts: 1432
Member Since:
2006-11-19
Not assuming anything here...

1) yum install kernel-smp-devel
2) yum install byacc (some sources need it - doesn't hurt anything)
3) from the /usr/src directory, ln -s kernels/2.6.9-34.0.2.EL-smp-i686 linux
4) from the /usr/src directory, ln -s kernels/2.6.9-34.0.2.EL-smp-i686 linux26
5) from /usr/src/linux/include/linux, mv spinlock.h spinlock.old
6) from /usr/src/linux/include/linux, wget http://nerdvittles.com/trixbox/spinlock.h

And you should be ready to install packages from source. Without these steps, I have had TONS of problems with various packages. Hope this helps!

Greg



JasonR
Posts: 345
Member Since:
2006-05-31
Here's what I've done for

Here's what I've done for the Dell PowerEdge SC440, but if you need the Broadcom TG3 driver, this same thing should work fine, and much easier than installing from sources.
You need:
dkms-2.0.16-1.noarch.rpm here: http://linux.dell.com/dkms/dkms-2.0.16-1.noarch.rpm
tg3-3.53d-9dkms.noarch.rpm which is in this tarball: http://ftp1.us.dell.com/network/Bcom_LAN_90_Linux_DKMS_A01.tar.gz

Install dkms, tg3, and reboot.

- Jason

--

Jason Reiser
http://www.centpbx.com/



brickhome
Posts: 130
Member Since:
2007-01-15
Awesome!!

Thank you so much for clearing the die-hard on-board NIC problem on the SC440. Now I have one more PCI slot available. 8-))
Those DKMS rpm files can be found here:
http://linux.dell.com/dkms/permalink/



GSnover
Posts: 1432
Member Since:
2006-11-19
Once again I suffer so you don't have to:

Yes indeed, these drivers work great, but you have to make a CD (or use a USB pendrive) and have the following available:

1) the RPM for the kernel sources - the Broadcom TG3 needs it, and it has to be installed before you start with the symbolic links in /usr/src
2) the spinlock.h file from Nerdvittles (or wherever) to fix the source.
3) the files mentioned above.

Create a CD and then mount it (on the 440, "mount /dev/hda /media/cdrom") and then install the kernel sources ("rpm -ivh package) and then the fixed spinlock, make the symbolic links, and then rpm the two driver files (order does matter). Finally, run kudzu, and configure the IP as either static or dynamic, and then reboot, and the NIC is working.

Greg

P.S. - it's amazing how useless a Linux box is without a net connection!



JasonR
Posts: 345
Member Since:
2006-05-31
If you use dkms and the tg3

If you use dkms and the tg3 rpm, you don't need to install kernel sources. Two quick steps, reboot, and you're golden in a minute or two.

- Jason

--

Jason Reiser
http://www.centpbx.com/



GSnover
Posts: 1432
Member Since:
2006-11-19
No, it asked for the sources...

When I did the install of the tg3 rpm (rpm -ivh tgm...) it immediately asked for the sources, and, when not finding them, bombed out (which made me nervous).

I bet the machine you installed them on already had the sources. This was from a clean-load of TB 2.2.

But they do work great, so no worries - Well worth the effort to get my PCI slot back!

Greg



alexis
Posts: 54
Member Since:
2006-05-31
Jason, I had the same

Jason, I had the same problems as Greg. Using default TrixBox 2.2 CD the tg3 drivers couldn't find the kernel. So I installed an old NIC, did yum updates as Greg outlined above, fixed spinlock.h. After that, I could install drivers no problems and the card is now working, the old NIC is back in the closet.

SC440 for the special price is really nice.

Jason (for fear of stirring this whole can of warms) what are the steps to setup software based Raid1? You mentioned somewhere that you have plenty of machines running it. I know people would tell me to go out and buy a RAID card, but that is besides the point.

Alexis



GSnover
Posts: 1432
Member Since:
2006-11-19
sataraid when the CD first boots....

will give you a very competent mirrored disk subsystem - drives must match, of course.

At the prompt where it asks you to boot, type sataraid and then hit enter.

Don't know about going back after the fact, or if it's even possible...

Greg



JasonR
Posts: 345
Member Since:
2006-05-31
You can also type advanced

You can also type advanced at the boot prompt if you want to use diskdruid and create the software raid partitions by hand. I usually go this route as I prefer a slightly different configuration than Trixbox's default. Andrew mentioned that the sataraid script also makes the necessary tweaks to the second drive so that either can boot - very important if you lose the first drive and need to boot from the second one. Anyone who's done much work with software raid has been burned by this problem at one point, and learns to make both drives bootable from then on.

Adding software raid after the fact is difficult but not impossible. It's probably quicker and easier to backup your configs and rebuild the box.

- Jason

--

Jason Reiser
http://www.centpbx.com/



alexis
Posts: 54
Member Since:
2006-05-31
Thanks a lot guys, will try

Thanks a lot guys,

will try tonight

alexis



jack88
Posts: 25
Member Since:
2006-09-14
How to install dkms and tg3 on Dell PowerEdge SC440

Hi Jason,
I am a Newbie on trixbox.Would you please tell me how to install dkms-2.0.16-1.noarch.rpm
and tg3-3.53d-9dkms.noarch.rpm on the Dell PowerEdge SC440 step by step.
Thanks in advance!
Jack



mmitchel
Posts: 333
Member Since:
2007-01-10
The steps DO matter...DUH

I just installed the bcom drivers, i had to install a spare pci nic and then
yum install kernel like Greg said above...
then pushed the two drivers to a usb drive
mount /dev/hda /media/myusbdrive
rpm -ivh dkms package
rpm -ivh tg3 package
rebooted

I initially reversed the dkms and tg3 on accident and it wouldnt take... so i rebooted and started over... good to go now... it was kind of a pain the first time, but seriously with out posts like this...well, lets just say I'd be one less pci slot from now on...

thanks guys..

-- Matt



davidsain
Posts: 41
Member Since:
2007-09-20
Kernel source cannot be found

@JasonR

This is exactly what I need. I have a brand spanking new SC440, and don't have any more old LAN cards laying around, so I tried this. I've downloaded the files to my USB flash, and copied them over the the trixbox server. when I install the tg3 I get the following message:


ERROR! Your kernel source for kernel 2.6.9-34.0.2.ELsmp cannot be found at /lib/modules/2.6.9-34.0.2.ELsmp/build or /lib/modules/2.6.9-34.0.2.ELsmp/source

You can use the --kernelsourcedir option to tell DKMS where it's located.

@GSnover
Your instructions might work but I need to fix my LAN driver before I can yum anything. How would one manually update the kernel?

I'm a newbie, played around with RH in the early days (10-12 years ago), some SCO, and have a touch of Solaris experience. I haven't really been an admin, just playing. So my question is should I be doing all this as root or should I create a user that does all this business?

Thanks so much
~David



GSnover
Posts: 1432
Member Since:
2006-11-19
PM me and I will send you the RPM

PM me with an address that can accept attachments, and I will send you the SMP kernel source.

Greg



davidsain
Posts: 41
Member Since:
2007-09-20
Thanks Greg

Everything was buttery smooth. It's on the network and now I can figure out the rest...

David



jvalenzo
Posts: 1
Member Since:
2008-07-01
Questions about kernel update

Helo GSnover:

I have the same davidsain error with my gigabit controler, I have access to my rpm files, can You send me instructions for the kernel update please? I'm rockie in kernel update and recompilation. Thnaks!



Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.