FAQ   Search   Memberlist  
Profile    Log in to check your private messages    Register    Log in
tg3 drivers not in 2.6.24 kernels?

 
Post new topic   Reply to topic    BLAG Forum Index -> support
View previous topic :: View next topic  
Author Message
extraspecialbitter
PostPosted: Wed Feb 20, 2008 6:59 pm    Post subject: tg3 drivers not in 2.6.24 kernels? Reply with quote

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
PostPosted: Wed Feb 20, 2008 7:04 pm    Post subject: Reply with quote

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
PostPosted: Wed Feb 20, 2008 7:12 pm    Post subject: Reply with quote

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
PostPosted: Wed Feb 20, 2008 7:14 pm    Post subject: Reply with quote

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
PostPosted: Wed May 07, 2008 8:03 pm    Post subject: Reply with quote

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
PostPosted: Wed May 07, 2008 8:25 pm    Post subject: Reply with quote

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
PostPosted: Wed May 07, 2008 8:36 pm    Post subject: Reply with quote

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
PostPosted: Thu May 08, 2008 3:48 pm    Post subject: Reply with quote

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
PostPosted: Thu May 08, 2008 4:00 pm    Post subject: Reply with quote

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ô
PostPosted: Fri Sep 19, 2008 11:17 pm    Post subject: Reply with quote

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
PostPosted: Sat Sep 20, 2008 12:05 am    Post subject: Reply with quote

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ô
PostPosted: Sat Sep 20, 2008 12:20 am    Post subject: Reply with quote

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
PostPosted: Sat Sep 20, 2008 12:52 am    Post subject: Reply with quote

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.

Display posts from previous:   
Post new topic   Reply to topic    BLAG Forum Index -> support
Page 1 of 1

Protected by Anti-Spam ACP