Hi,<br><br>Looking good so far. It can do the following:<br>- get the correct mac address<br>- show the correct link speed<br>- identify it as a PCI express adapter<br>- get an ip address<br><br>Not working yet though. Here is the screen output:<br>
Tigon3 [partno(none) rev a002 PHY(unknown)] (PCIX:100MHz:32-bit)<br>Link is up at 1000 Mbps, full duplex.<br>WARNING: Using legacy NIC wrapper on 00:1c:23:26:82:e7<br><br>gPXE 1.0.1 -- Open Source Boot Firmware -- <a href="http://etherboot.org">http://etherboot.org</a><br>
Features: AoE HTTP iSCSI DNS TFTP bzImage COMBOOT ELF Multiboot PXE PXEXT<br><br>DHCP (net0 00:1c:23:26:82:e7)... ok<br>tftp://<a href="http://server.net/file.gpxe./menu.c32..transmit">server.net/file.gpxe./menu.c32..transmit</a> timed out<br>
tg3_stop_block timed out, ofs=0x4c00 enable_bit=002<br>Firmware will not restart magic=0x4b657654<br>Firmware will not restart magic=0x4b657654<br>
<br>and so on....<br><br>I will try and look at the linux kernel sources of tg3.c and see if I can find more info on the 5755.<br>Any other ideas would be helpful.<br><br>Quinn<br><br><br><div class="gmail_quote">On Mon, Oct 11, 2010 at 4:54 PM, Geoff Lywood <span dir="ltr"><<a href="mailto:glywood@vmware.com">glywood@vmware.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
<div link="blue" vlink="blue" lang="EN-US">
<div>
<p class="MsoNormal"><font color="navy" face="Arial" size="2"><span style="font-size: 10pt; font-family: Arial; color: navy;">Quinn,</span></font></p>
<p class="MsoNormal"><font color="navy" face="Arial" size="2"><span style="font-size: 10pt; font-family: Arial; color: navy;"> </span></font></p>
<p class="MsoNormal"><font color="navy" face="Arial" size="2"><span style="font-size: 10pt; font-family: Arial; color: navy;">In tg3.h, search for KNOWN_PHY_ID, and add
“(X) == PHY_ID_BCM5755” to the list of IDs there.</span></font></p>
<p class="MsoNormal"><font color="navy" face="Arial" size="2"><span style="font-size: 10pt; font-family: Arial; color: navy;"> </span></font></p>
<p class="MsoNormal"><font color="navy" face="Arial" size="2"><span style="font-size: 10pt; font-family: Arial; color: navy;">The Linux driver for tg3 has a number of
workarounds that specifically check for the 5755 (or later) and behave a little
differently if those chips are found. It is quite possible that the gPXE driver
will not work correctly with your card, even after you make the change that I
suggest above.</span></font></p>
<p class="MsoNormal"><font color="navy" face="Arial" size="2"><span style="font-size: 10pt; font-family: Arial; color: navy;"> </span></font></p>
<p class="MsoNormal"><font color="navy" face="Arial" size="2"><span style="font-size: 10pt; font-family: Arial; color: navy;">Hope this helps,</span></font></p>
<p class="MsoNormal"><font color="navy" face="Arial" size="2"><span style="font-size: 10pt; font-family: Arial; color: navy;">Geoff</span></font></p>
<p class="MsoNormal"><font color="navy" face="Arial" size="2"><span style="font-size: 10pt; font-family: Arial; color: navy;"> </span></font></p>
<p class="MsoNormal"><font color="navy" face="Arial" size="2"><span style="font-size: 10pt; font-family: Arial; color: navy;"> </span></font></p>
<div style="border-width: medium medium medium 1.5pt; border-style: none none none solid; border-color: -moz-use-text-color -moz-use-text-color -moz-use-text-color blue; padding: 0in 0in 0in 4pt;">
<div>
<div class="MsoNormal" style="text-align: center;" align="center"><font face="Times New Roman" size="3"><span style="font-size: 12pt;">
<hr size="2" width="100%" align="center">
</span></font></div>
<p class="MsoNormal"><b><font face="Tahoma" size="2"><span style="font-size: 10pt; font-family: Tahoma; font-weight: bold;">From:</span></font></b><font face="Tahoma" size="2"><span style="font-size: 10pt; font-family: Tahoma;">
<a href="mailto:gpxe-devel-bounces@etherboot.org" target="_blank">gpxe-devel-bounces@etherboot.org</a> [mailto:<a href="mailto:gpxe-devel-bounces@etherboot.org" target="_blank">gpxe-devel-bounces@etherboot.org</a>] <b><span style="font-weight: bold;">On Behalf Of </span></b>Quinn Plattel<br>
<b><span style="font-weight: bold;">Sent:</span></b> Monday, October 11, 2010
3:30 AM<br>
<b><span style="font-weight: bold;">To:</span></b> <a href="mailto:gpxe-devel@etherboot.org" target="_blank">gpxe-devel@etherboot.org</a><br>
<b><span style="font-weight: bold;">Subject:</span></b> [gPXE-devel] Attempting
to add support for Broadcom BCM5755M (14e4:1673) ethernet adapter</span></font></p>
</div><div><div></div><div class="h5">
<p class="MsoNormal"><font face="Times New Roman" size="3"><span style="font-size: 12pt;"> </span></font></p>
<p class="MsoNormal"><font face="Times New Roman" size="3"><span style="font-size: 12pt;">Hi,<br>
<br>
I am attempting to add support to gpxe the Broadcom BCM5755M (14e4:1673)<br>
ethernet adapter.<br>
I have confirmed that the adapter works under linux with kernel 2.6.32.<br>
Here is some of my attempts:<br>
<br>
I first identified the pci vendor and device id via linux's "lspci
-n"<br>
command which gave me 14e4:1673<br>
I then added it to tg3.c file:<br>
-------------------------<br>
@@ -3400,6 +3402,7 @@<br>
PCI_ROM(0x14e4, 0x165e, "tg3-5705M_2",
"Broadcom Tigon 3 5705M_2", 0),<br>
PCI_ROM(0x14e4, 0x1677,
"tg3-5751", "Broadcom
Tigon 3 5751", 0),<br>
PCI_ROM(0x14e4, 0x167a,
"tg3-5754", "Broadcom
Tigon 3 5754", 0),<br>
+PCI_ROM(0x14e4, 0x1673,
"tg3-5755", "Broadcom
Tigon 3 5755", 0),<br>
PCI_ROM(0x14e4, 0x1693,
"tg3-5787", "Broadcom Tigon
3 5787", 0),<br>
PCI_ROM(0x14e4, 0x1696,
"tg3-5782", "Broadcom
Tigon 3 5782", 0),<br>
PCI_ROM(0x14e4, 0x169a,
"tg3-5786", "Broadcom
Tigon 3 5786", 0),<br>
--------------------<br>
<br>
This enabled gpxe to attempt to initialize the adapter instead of ignoring<br>
it. But it gives this error so far:<br>
<br>
-----------------<br>
phy probe failed, err -741097531<br>
Problem fetching invariants of chip, aborting.<br>
-----------------<br>
<br>
Ok, then I though, the phy id must not match, so what about forcing it? I<br>
added the following to tg3.c to identify the phy id:<br>
<br>
------------------------<br>
@@ -2543,6 +2543,8 @@<br>
<br>
hw_phy_id_masked = hw_phy_id & PHY_ID_MASK;<br>
<br>
+ printf("phy id: %X\n", hw_phy_id);<br>
+<br>
if (!err && KNOWN_PHY_ID(hw_phy_id_masked)) {<br>
tp->phy_id = hw_phy_id;<br>
} else {<br>
--------------------------<br>
<br>
This gave me 0xbc050cc0, so I added it to tg3.h:<br>
<br>
--------------------------<br>
@@ -2038,6 +2038,7 @@<br>
#define
PHY_ID_BCM5704
0x60008190<br>
#define
PHY_ID_BCM5705
0x600081a0<br>
#define
PHY_ID_BCM5750
0x60008180<br>
+#define PHY_ID_BCM5755
0xbc050cc0<br>
#define
PHY_ID_BCM5787
0xbc050ce0<br>
#define
PHY_ID_BCM8002
0x60010140<br>
#define
PHY_ID_BCM5751
0x00206180<br>
--------------------------<br>
<br>
Unfortunately, this is as far as a i got. The error messages is still the<br>
same. I haven't been able to figure out what to do next. I have
tried to<br>
enable debugging by "make DEBUG=tg3" and also enabling the serial
console in<br>
<br>
console.h but the I just get a bunch of "?" instead of proper strings
on the<br>
serial port and I did configure my terminal emulator to 9600n81. Any
clues<br>
there? The terminal works fine with picocom under linux with the same<br>
serial settings.<br>
<br>
I feel I am so close in getting this card to work because the tg3 code is<br>
there but it just needs to identify and use the hardware. Just so you
know<br>
I have also downloaded the latest git release, but unfortunately, there is<br>
no support for BCM5755M yet.<br>
I found this page<br>
<a href="http://www.broadcom.com/support/ethernet_nic/determine_driver.php" target="_blank">http://www.broadcom.com/support/ethernet_nic/determine_driver.php</a>
which<br>
helped me identify the adapter as a model type NetXtreme Desktop/Mobile<br>
adapter. There is already support in gpxe for that type adapter such as
the<br>
BCM5751M.<br>
<br>
Any suggestions?<br>
<br>
Quinn<br>
<br clear="all">
</span></font></p>
</div></div></div>
</div>
</div>
</blockquote></div><br><br clear="all"><br>-- <br>Best regards/Med venlig hilsen,<br>Quinn Plattel<br>