| View previous topic :: View next topic |
| Author |
Message |
extraspecialbitter
|
Posted: Wed Feb 20, 2008 6:59 pm Post subject: tg3 drivers not in 2.6.24 kernels? |
|
|
I tried out some of the newer BLAG 70K kernels on a Dell Precision 390, which features a dual-port Gigabit ethernet card with a tg3 driver. What worked in previous kernels seems to fail in the latest and greatest:
| Code: | pablo@blagger=> uname -r
2.6.24-2.1-1blag.f7
pablo@blagger=> modprobe -l tg3
pablo@blagger=> dmesg | grep tg3
pablo@blagger=> lsmod | grep tg3
[root@blagger ~]# ifup eth1
tg3 device eth1 does not seem to be present, delaying initialization.
|
Here's the same sequence of commands under an earlier kernel:
| Code: | pablo@blagger=> uname -r
2.6.23.15-80.fc7
pablo@blagger=> modprobe -l tg3
/lib/modules/2.6.23.15-80.fc7/kernel/drivers/net/tg3.ko
pablo@blagger=> dmesg | grep tg3
tg3.c:v3.81.1 (October 18, 2007)
tg3: eth1: Link is up at 1000 Mbps, full duplex.
tg3: eth1: Flow control is on for TX and on for RX.
[root@blagger ~]# lsmod | grep tg3
tg3 98885 0
|
I'm wondering if the tg3 driver didn't make it into the upstream kernel. This happened in the early days of Red Hat 2.6.9 as well, so I wouldn't be surprised if it slipped through the proverbial cracks.
|
|
|
 |
jebba
|
Posted: Wed Feb 20, 2008 7:04 pm Post subject: |
|
|
It is removed due to this:
| Code: | less linux-2.6.24/drivers/net/tg3.c
/*
* tg3.c: Broadcom Tigon3 ethernet driver.
*
* Copyright (C) 2001, 2002, 2003, 2004 David S. Miller (davem@redhat.com)
* Copyright (C) 2001, 2002, 2003 Jeff Garzik (jgarzik@pobox.com)
* Copyright (C) 2004 Sun Microsystems Inc.
* Copyright (C) 2005-2007 Broadcom Corporation.
*
* Firmware is:
* Derived from proprietary unpublished source code,
* Copyright (C) 2000-2003 Broadcom Corporation.
*
* Permission is hereby granted for the distribution of this firmware
* data in hexadecimal or equivalent format, provided this copyright
* notice is accompanying it.
*/ |
So the real question is what is this doing in the upstream linux kernel at all, since the kernel is GPLv2.
That said, tg3 is the only driver that I THOUGHT I had removed the firmware bits without completely disabling the driver as it appeared that the driver could be used as the firmware only enabled certain features on the card. I didn't test it though, due to lack of access to a tg3 system. Too bad it doesn't work. Not really sure what to say, other than "broadcom sucks".
Some more info:
http://lists.debian.org/debian-devel/2004/04/msg01558.html
-Jeff
|
|
|
 |
jebba
|
Posted: Wed Feb 20, 2008 7:12 pm Post subject: |
|
|
Note to self: a possible fix would be to change this to 0:
| Code: | | #define TG3_TSO_SUPPORT 1 |
but i think that's actually getting done anyway.
|
|
|
 |
jebba
|
Posted: Wed Feb 20, 2008 7:14 pm Post subject: |
|
|
Following up even more....
I actually left tg3 out completely of that kernel RPM. I'll build a new one for you to test that will have a firmwareless tg3.ko module that will hopefully work for your card.
Thanks for testing and reporting this stuff. :)
|
|
|
 |
extraspecialbitter
|
Posted: Wed May 07, 2008 8:03 pm Post subject: |
|
|
I haven't tried BLAGHEAD on my Dell 390, but it seems that the live CD of gnewSense Deltah 2.0 features a "tg3-free" kernel, which in my case unfortunately also meant "network-less". Does the kernel provided with BLAGHEAD include a de-blobbed tg3.ko driver?
In a separate but related question, is the TG3_TSO_SUPPORT fix mentioned above something that can be easily worked into a custom kernel (should I feel so inclined)?
Thanks as always for your hard work on this...
|
|
|
 |
jebba
|
Posted: Wed May 07, 2008 8:25 pm Post subject: |
|
|
Note, the kernel-libre that is in BLAGHEAD has the tg3 driver in there. I believe Alexandre Oliva has stripped out the blob, but left a working driver. Basically he did what I tried to do, but did it correctly. Confirmation of that would be appreciated. :) Check out his deblob script, it's nuts:
http://www.fsfla.org/svn/fsfla/software/linux-libre/scripts/deblob-check
So, `apt-get install kernel-libre` and try tg3. :)
-Jeff
|
|
|
 |
extraspecialbitter
|
Posted: Wed May 07, 2008 8:36 pm Post subject: |
|
|
That's awesome news! Unfortunately I won't get to try this out until tomorrow, as my work day is near an end. I do, however, get to play with BLAGHEAD on two non-tg3 boxes later today. :^)
|
|
|
 |
extraspecialbitter
|
Posted: Thu May 08, 2008 3:48 pm Post subject: |
|
|
I am delighted to report that I am currently running BLAGHEAD on a dual-core Dell server equipped with a Broadcom NetXtreme BCM5721 Gigabit PCI Express card that employs a tg3 driver.
| Code: | [root@miercoles ~]# uname -r
2.6.25-libre.14.fc9.i686
[root@miercoles ~]# cat /etc/issue
BLAGHEAD release 999999
Kernel \r on an \m
[root@miercoles ~]# dmesg | grep tg3
tg3.c:v3.90 (April 12, 2008)
tg3: eth1: Link is up at 1000 Mbps, full duplex.
tg3: eth1: Flow control is on for TX and on for RX.
[root@miercoles ~]# lsmod | grep tg3
tg3 102788 0
|
BLAG onward!
|
|
|
 |
jebba
|
Posted: Thu May 08, 2008 4:00 pm Post subject: |
|
|
Cool, glad to hear tg3 is working. By the way, the story may be the same for e100--oliva i believe left it enabled but removed firmware which was only needed by some cards.
Thanks again for letting us know it works for you :)
-Jeff
|
|
|
 |
Junichirô
|
Posted: Fri Sep 19, 2008 11:17 pm Post subject: |
|
|
My two computers have Broadcom Ethernet Cards. So, if I totally switch from Debian to BLAG do you think it will work with the future releases as it works with the 90001 (i386 on desktop and x86_64 on laptop) now?
I ask that because I like the spirit of BLAG and of the people on this forum.
|
|
|
 |
jebba
|
Posted: Sat Sep 20, 2008 12:05 am Post subject: |
|
|
| Junichirô wrote: | My two computers have Broadcom Ethernet Cards. So, if I totally switch from Debian to BLAG do you think it will work with the future releases as it works with the 90001 (i386 on desktop and x86_64 on laptop) now?
I ask that because I like the spirit of BLAG and of the people on this forum. |
I assume you're talking about the tg3 cards. I see no reason why if they are working now they wouldn't work in the future. It should be fine. :)
|
|
|
 |
Junichirô
|
Posted: Sat Sep 20, 2008 12:20 am Post subject: |
|
|
| jebba wrote: |
I assume you're talking about the tg3 cards. ) |
Yes! Thanks. Some times ago I tried gNewSense but my Broadcom Ethernet cards don't work. So when I read this thread I decided to download BLAG and to try it. And it worked on my two Dell computers. My Ethernet cards were recognized.
Last edited by Junichirô on Fri Sep 26, 2008 9:30 am; edited 1 time in total |
|
|
 |
jebba
|
Posted: Sat Sep 20, 2008 12:52 am Post subject: |
|
|
| Junichirô wrote: | | jebba wrote: | | I assume you're talking about the tg3 cards. ) |
Yes! Thank's. Some times ago I tried gNewSense but my Broadcom Ethernet cards don't work. So when I read this thread I decided to download BLAG and to try it. And it worked on my two Dell computers. My Ethernet cards were recognized. |
Yes, gnewsense removes the tg3 driver completely. We only remove it's firmware, and the card can run without it. The non-free firmware just added more features.
|
|
|
 |
|