BLAG

BLAG Forums
It is currently Tue Dec 23, 2014 4:25 am

All times are UTC




Post new topic Reply to topic  [ 13 posts ] 
Author Message
PostPosted: Wed Feb 20, 2008 6:59 pm 
Offline

Joined: Thu Jul 13, 2006 5:01 pm
Posts: 509
Location: Boston, MA, USA
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.


Top
 Profile  
 
 Post subject:
PostPosted: Wed Feb 20, 2008 7:04 pm 
Offline
Site Admin

Joined: Sun Mar 14, 2004 3:17 pm
Posts: 4492
Location: Loveland, Colorado, USA
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/20 ... 01558.html

-Jeff


Top
 Profile  
 
 Post subject:
PostPosted: Wed Feb 20, 2008 7:12 pm 
Offline
Site Admin

Joined: Sun Mar 14, 2004 3:17 pm
Posts: 4492
Location: Loveland, Colorado, USA
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.


Top
 Profile  
 
 Post subject:
PostPosted: Wed Feb 20, 2008 7:14 pm 
Offline
Site Admin

Joined: Sun Mar 14, 2004 3:17 pm
Posts: 4492
Location: Loveland, Colorado, USA
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. :)


Top
 Profile  
 
 Post subject:
PostPosted: Wed May 07, 2008 8:03 pm 
Offline

Joined: Thu Jul 13, 2006 5:01 pm
Posts: 509
Location: Boston, MA, USA
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...


Top
 Profile  
 
 Post subject:
PostPosted: Wed May 07, 2008 8:25 pm 
Offline
Site Admin

Joined: Sun Mar 14, 2004 3:17 pm
Posts: 4492
Location: Loveland, Colorado, USA
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 ... blob-check

So, `apt-get install kernel-libre` and try tg3. :)

-Jeff


Top
 Profile  
 
 Post subject:
PostPosted: Wed May 07, 2008 8:36 pm 
Offline

Joined: Thu Jul 13, 2006 5:01 pm
Posts: 509
Location: Boston, MA, USA
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. :^)


Top
 Profile  
 
 Post subject:
PostPosted: Thu May 08, 2008 3:48 pm 
Offline

Joined: Thu Jul 13, 2006 5:01 pm
Posts: 509
Location: Boston, MA, USA
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!


Top
 Profile  
 
 Post subject:
PostPosted: Thu May 08, 2008 4:00 pm 
Offline
Site Admin

Joined: Sun Mar 14, 2004 3:17 pm
Posts: 4492
Location: Loveland, Colorado, USA
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


Top
 Profile  
 
 Post subject:
PostPosted: Fri Sep 19, 2008 11:17 pm 
Offline

Joined: Wed Sep 03, 2008 1:45 am
Posts: 550
Location: Guadeloupe (French W. Indies)
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.


Top
 Profile  
 
 Post subject:
PostPosted: Sat Sep 20, 2008 12:05 am 
Offline
Site Admin

Joined: Sun Mar 14, 2004 3:17 pm
Posts: 4492
Location: Loveland, Colorado, USA
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. :)


Top
 Profile  
 
 Post subject:
PostPosted: Sat Sep 20, 2008 12:20 am 
Offline

Joined: Wed Sep 03, 2008 1:45 am
Posts: 550
Location: Guadeloupe (French W. Indies)
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.

Top
 Profile  
 
 Post subject:
PostPosted: Sat Sep 20, 2008 12:52 am 
Offline
Site Admin

Joined: Sun Mar 14, 2004 3:17 pm
Posts: 4492
Location: Loveland, Colorado, USA
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.


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 13 posts ] 

All times are UTC


Who is online

Users browsing this forum: No registered users and 0 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Group