Diagnostic User'S Guide: Broadcom Netxtreme Ethernet Adapter
Diagnostic User'S Guide: Broadcom Netxtreme Ethernet Adapter
Diagnostic User'S Guide: Broadcom Netxtreme Ethernet Adapter
No part of this document may be reproduced, in any form or by any means, without permission in
writing from Broadcom Corporation.
Broadcom Corporation reserves the right to make changes to the products or information contained
in this document without notice. No liability is assumed as a result of their use or application. No
rights under any patent accompany the sale of any such products or information.
Epigram, InsideLine, and iLine10 are trademarks of Broadcom Corporation.
Broadcom Corporation
16125 Alton Parkway
Irvine, CA 92619-7013
www.broadcom.com
page ii
Broadcom Confidential and Proprietary
BCM570x Diagnostic Users Guide
TABLE OF CONTENTS
1 INTRODUCTION ............................................................................................................................... 1
2 PREREQUISITES............................................................................................................................... 2
6 EEPROM.TXT FORMAT................................................................................................................ 27
8 SPECIAL INSTRUCTION............................................................................................................... 37
page iii
Broadcom Confidential and Proprietary
BCM570x Diagnostic Users Guide
page iv
Broadcom Confidential and Proprietary
BCM570x Diagnostic Users Guide
10.52 GO ........................................................................................................................................... 74
10.53 SHOWGPR ................................................................................................................................ 75
10.54 PC ............................................................................................................................................ 75
10.55 BREAKPOINT ............................................................................................................................ 75
10.56 SELECT .................................................................................................................................... 75
10.57 U .............................................................................................................................................. 75
10.58 TRAP ........................................................................................................................................ 75
10.59 CPUINFO .................................................................................................................................. 76
10.60 CPUGPRSTATUS ........................................................................................................................ 76
10.61 CPUGPRRESTART...................................................................................................................... 76
10.62 CPUFETCH ................................................................................................................................ 76
10.63 DMAW...................................................................................................................................... 76
10.64 DMAR ...................................................................................................................................... 78
10.65 DMA_H .................................................................................................................................... 79
10.66 DMA_D .................................................................................................................................... 79
10.67 MACLPK ................................................................................................................................... 79
10.68 BLAST ...................................................................................................................................... 80
10.69 NICSTATS ................................................................................................................................. 82
10.70 RINGINDEX .............................................................................................................................. 84
10.71 PHYCTRL.................................................................................................................................. 85
10.72 TXPKT ...................................................................................................................................... 85
10.73 STATUSBLK .............................................................................................................................. 86
10.74 STSBLK .................................................................................................................................... 87
10.75 TXCFG...................................................................................................................................... 88
10.76 RXCFG ..................................................................................................................................... 88
10.77 TPROT ...................................................................................................................................... 89
10.78 QSTAT ...................................................................................................................................... 89
10.79 DRVRCFG ................................................................................................................................. 89
10.80 IRT ........................................................................................................................................... 90
10.81 MACMRD.................................................................................................................................. 90
10.82 MIIMRD .................................................................................................................................... 90
10.83 PCIMRD .................................................................................................................................... 91
10.84 MWRITE ................................................................................................................................... 91
10.85 MREAD..................................................................................................................................... 91
10.86 MDEV ....................................................................................................................................... 92
10.87 MIIMODE .................................................................................................................................. 92
10.88 LBERTRAM ............................................................................................................................... 93
10.89 DBERTRAM .............................................................................................................................. 93
10.90 BERTSTATS .............................................................................................................................. 93
10.91 RM ........................................................................................................................................... 93
10.92 MRLOOP ................................................................................................................................... 94
10.93 PHYMSE ................................................................................................................................... 94
10.94 INITPHY ................................................................................................................................... 94
10.95 MEMSEARCH ............................................................................................................................ 94
10.96 READ ....................................................................................................................................... 94
10.97 WRITE ...................................................................................................................................... 95
10.98 POLL ........................................................................................................................................ 96
10.99 SETBIT ..................................................................................................................................... 97
10.100 CLEARBIT ................................................................................................................................ 98
10.101 READBIT .................................................................................................................................. 98
10.102 CREAD ..................................................................................................................................... 99
10.103 CWRITE .................................................................................................................................... 99
10.104 VPDTEST .................................................................................................................................. 99
10.105 REGTEST ................................................................................................................................ 100
10.106 MIITEST.................................................................................................................................. 100
page v
Broadcom Confidential and Proprietary
BCM570x Diagnostic Users Guide
page vi
Broadcom Confidential and Proprietary
BCM570x Diagnostic Users Guide
page vii
Broadcom Confidential and Proprietary
BCM570x Diagnostic Users Guide
page viii
Broadcom Confidential and Proprietary
BCM570x Diagnostic Users Guide
page ix
Broadcom Confidential and Proprietary
Broadcom NetXtreme Ethernet Adapter Diagnostic Users Guide
1 Introduction
This program runs in two modes: Manufacturing mode and Engineering mode. The mode is
determined with the command line option or the configuration file. When the program is
running in manufacturing mode, it starts to run all tests in the configuration. If it detects an
error, it displays an error and exits the program. When the program is in engineering mode,
it prompts user to enter commands. The commands are explained in the later chapters. This
document provides the information on configuration file specification, command line
options and engineering diagnostic commands on Broadcom NetXtreme Ethernet adapter,
in particular to check out the functionality of the BCM5700-5705 and its related
components. In general, this program has a set of default configuration. It is overwritten by
configuration file. The command line option overwrites both default and the configuration
files.
page 1
Broadcom Confidential and Proprietary
Broadcom NetXtreme Ethernet Adapter Diagnostic Users Guide
2 Prerequisites
The engineering diagnostic is executed under DOS protected mode or under Intels
Extensible Firmware Interface (EFI) on Intel IA64 systems.
Software: b57diag.exe for DOS and b57diag64.efi for EFI (version 7.45 and newer)
Input File List: The following files should be found in the same location of the b57diag.
ee57xxyy.yy (TX & RX CPUs Firmware file, xx chip type, yy version number)
ump14a.bin or ump14b.bin
The following file may be generated in run time depending execution option(s).
diagcfg.bin
page 2
Broadcom Confidential and Proprietary
Broadcom NetXtreme Ethernet Adapter Diagnostic Users Guide
3 Diagnostic Tests
The tests are divided into four groups: Register Tests, Memory Tests, Miscellaneous Tests, and
Data Tests. They numbered as group A, B, C, D, and E.
page 3
Broadcom Confidential and Proprietary
Broadcom NetXtreme Ethernet Adapter Diagnostic Users Guide
Function: Using indirect addressing method, writing increment data into MAC hash
Register table and read back for verification. The memory read/write is done 100 times
while increment test data.
Default: Enabled
Function: Each Register specified in the configuration contents read only bit and
read/write bit defines. The test writing zero and one into the test bits to insure the read only
bits are not changed, and read/write bits are changed accordingly.
Default: Enabled.
Function: This test verifies the interrupt functionality. It enables interrupt and waits for
interrupt to occur. It waits for 500ms and reports error if could not generate interrupts.
Default: Enabled
Function: Hardware Built-In-Self-Test (BIST). This test initiates BIST, and wait for the
test result returned by hardware.
Default: Enabled
Function: This test verifies the access integrity of the PCI config registers.
page 4
Broadcom Confidential and Proprietary
Broadcom NetXtreme Ethernet Adapter Diagnostic Users Guide
Default: Enabled
Function: Tests the PCI-E Serial Number capabilities registers on chips that support the
Serial Number capability. This command is supported on 5751Cx, 5755, 5787.
Default: Enabled.
Function: Tests the PCI-E Power capabilities registers on chips that support the Power
capability. This command is supported on 5751Cx, 5755, 5787.
Default: Enabled.
Function: This test tests the scratch pad SRAM on board. The following tests are
performed:
Data Pattern Test: Write test data into SRAM, read back to ensure data is correct. The test
data used is 0x00000000, 0xffffffff, 0xaa55aa55, and 0x55aa55aa.
Alternate Data Pattern Test: Write test data into SRAM. Write complement test data into
next address. Read back both data to insure the data is correct. After the test, the program
reads back data one more time to insure the data stays correct. The test data used is
0x00000000, 0xffffffff, 0xaa55aa55, and 0x55aa55aa.
Address Test: Write each address with unique increment data. Read back data to insure
data is correct. After fill the entire data with the unique data, the program reads back data
again to insure data stays the same.
WalkingOne bit Test: For each address. Data one is written and read back for testing.
Then shift the data left one bit, so the data becomes two and do the same test again. It
repeats for 32 times until the test bit is shifted out of test data. The same is test is repeated
for entire test range.
Pseudo Random Data Test: A pre-calculated pseudo random data is used to write a
unique data into each test RAM. After the first pass the test, the program reads back one
more time to insure data stays correct.
page 5
Broadcom Confidential and Proprietary
Broadcom NetXtreme Ethernet Adapter Diagnostic Users Guide
Default: Enabled
Function: This test tests the BD SRAM. This performs exact the same way of testing as
described in B1. Scratch Pad Test.
Default: Enabled
Function: It tests DMA SRAM by performing the tests described in test B1. The Scratch
Pad Test.
Default: Enabled
Function: It tests DMA SRAM by performing the tests described in test B1. The Scratch
Pad Test.
Default: Enabled
Function: Eight test pattern data are used in the test. They are described below. A 0x1000
sized data buffer is used for this test. Before each pattern test, the buffer is initialized and
filled with the test pattern. It then, performs size 0x1000 transmit DMA from host buffer to
NIC MBUF memory. Verify the data integrity in MBUF against host memory and repeat
the DMA for the entire MBUF buffer. Then it performs receive DMA from NIC to host.
The 0x1000-byte test buffer is cleared to zero before each receive-DMA. Verify the data
integrity and test is repeated for the entire MBUF SRAM range.
page 6
Broadcom Confidential and Proprietary
Broadcom NetXtreme Ethernet Adapter Diagnostic Users Guide
32 FF's 32 00's Full the entire host DMA buffer with 32 bytes of FFs and then 32
bytes of 00s.
00000000's Full the entire host DMA buffer with all zeros.
FFFFFFFF's Full the entire host DMA buffer with all FFs.
AA55AA55's Full the entire host DMA buffer with data 0xAA55AA55.
55AA55AA's Full the entire host DMA buffer with data 0xAA55AA55.
Default: Enabled
Function: It tests DMA SRAM by performing the tests described in test B1. The Scratch
Pad Test.
Default: Disabled
Function: This test tests the CPU General Purpose Registers. This performs exact the same
way of testing as described in B1 over 3 voltages (1.1V, 1.2V, 1.3V).
Default: Enable
Function: An increment test data is used in EEPROM test. It fills the test data into the test
range and read back to verity the content. After the test, it fills data with zero to clear the
memory.
Default: Enabled
Function: This test opens the file cpu.bin. If file exists and content is good, it loads code to
rx and tx CPU and verifies CPU execution.
Default: Enabled
page 7
Broadcom Confidential and Proprietary
Broadcom NetXtreme Ethernet Adapter Diagnostic Users Guide
Function: Both high and low priorities DMA are tested. It moves data from host memory
to NIC SRAM, verifies data, and then moves data back to host memory again to verify
data.
Default: Enabled
Function: The function is identical to A2. Control Register Test. Each Register specified in
the configuration contents read only bit and read/write bit defines. The test writing zero and
one into the test bits to insure the read only bits value are not changed, and read/write bits
are changed accordingly.
Default: Enabled.
The test will try to read the register configuration file miireg.txt for the register defines. If
the file does not exists, the following table is used:
Function: It saves the content of VPD first before perform the test. Once it is done, it
writes one of the five pattern test data, 0xff, 0xaa, 0x55, increment data, or decrement data,
into VPD memory. By default, increment data pattern is used. It writes and reads back the
data for the entire test range, and then restores the original content.
page 8
Broadcom Confidential and Proprietary
Broadcom NetXtreme Ethernet Adapter Diagnostic Users Guide
Default: Enabled
Function:m
1. Reset test.
Setting reset bit, poll for self-clearing. Verify reset value of registers.
2. Event Mapping Test
Setting SMB_ATTN bit. By changing ASF_ATTN LOC bits, verify the mapping bits
in TX_CPU or RX_CPU event bits.
3. Counter Test
Clear WG_TO, HB_TO, PA_TO, PL_TO, RT_TO bits by setting those bits. Make sure
the bits clear.
Clear Timestamp Counter. Writing a value 1 into each PL, PA, HB, WG, RT counters.
Set TSC_EN bit.
Poll each PA_TO bit and count up to 50 times. Check if PL_TO gets set at the end of
50 times. Continue to count up to 200 times. Check if all other TO bits are set and
verify Timestamp Counter is incremented.
Default: Enabled
Command: romtest
Command: cpufetch
Function: Test the CPU instruction-fetch logic a 100 times on 5705 and later devices. The
voltage is also varied to 1.1V and 1.3V on devices that support voltage variation.
Default: Enabled
page 9
Broadcom Confidential and Proprietary
Broadcom NetXtreme Ethernet Adapter Diagnostic Users Guide
Function: This is internal loopback data transmit/receive test. It initializes MAC into
internal loopback mode, and transmits 200 packets. The data should be routed back to
receive channel and receive by the receive routine, which verifies the integrity of data. One
Giga bit rate is used for this test.
Default: Enabled
Function: This test is same as D1. Mac Loopback Test except, the data is routed back via
physical layer device. One Giga bit rate is used for this test.
Default: Enabled
Function: This is external loopback test. From the UUT point of view, no loopback mode
is configured. The data expected to be routed back by RJ45 loopback connector. 10M/s,
100M/s, and 1000M/s are used for this test.
Default: Disabled
Function: This test executes the same procedure as test D3 and tests to see if a false carrier
was detected at the end of the test. The l200, dispgbpkt, -disppkt and errlimit command
line options were added to configure a number of operational parameters. The details of the
command line options are provided in the COMMAND LINE OPTION PARAMETERS
section.
Default: Disabled
Function: This function tests the auto-polling and phy-interrupt capabilities. These are the
functionalities of the phy.
Default: Enabled
page 10
Broadcom Confidential and Proprietary
Broadcom NetXtreme Ethernet Adapter Diagnostic Users Guide
Function: Testing Message Signaled Interrupt Function to see if it handles this interrupt
correctly.
Default: Enabled
3.3.29 E1. 1G Wire Open/Short (** ZERO LEN LB RJ45 **) Test
Command: nictest e1
Default: Disabled
page 11
Broadcom Confidential and Proprietary
Broadcom NetXtreme Ethernet Adapter Diagnostic Users Guide
When users invoke this program, a set of option parameter can be used to overwrite the
configuration file or the default configuration. This section summarizes the options. The options are
case sensitive.
-putil Call b57putil.exe utility to unload PXE driver.
When "-putil" was entered, diag will call another application "b57putil.exe".
"b57putil.exe" will unload PXE and such that diag can have full control over the device.
This option switch should be used when updating firmware with "-firmall" option switch
via PXE connection.
-seldev <VID_DID> option to select devices that match VID and DID
Use this option to select target devices. Other devices, which have different VIDs and
DIDs, will not be selected and listed. This option switch can be used along with -firm
and -firmall option switches.
The feature is used to execute a field upgrade of UMP firmware. The firmware is
programmed into a/the device/s specified by -c option switch if UMP firmware is
originally loaded in NVRAM
The feature is used to display file directory in NVRAM. The file directory in the
NVRAM of device/s specified by"-c" option switch will be display. If no "-c"
option switch has been entered, the file directory of all detected devices will be
displayed. In order to log the file directory to a log file, "-l" option switch option
must be entered BEFORE "-dir" option switch. Since this is a single function
command, the will be no "nictest" or other functions will be preformed.
page 12
Broadcom Confidential and Proprietary
Broadcom NetXtreme Ethernet Adapter Diagnostic Users Guide
The feature is used to execute a field upgrade of NVRAM to add ISCSI firmware. The
firmware is programmed into a/the device/s specified by -c option switch.
-smbaddr <hex1> | <hex2> | .| <hexn> used for programming SMBus Address for
ASF/IPMI firmware.
The feature will allow user to program SMBus Address for ASF/IPMI firmware. This
switch can take multiple parameters in HEX.
Example
1. -smbaddr A4 (SMB Address = 0xA4)
2. -smbaddr A4 A6 (SMB Address for 1st device=0xA4 and 2nd device = 0xA6)
This switch must be used along with -c option to indicate the target device.
Example:
b57diag -c 0 3 6 -smbaddr A4 A6 A8 -t abcd.
b57diag c 0 e b57kia pasf asf.bin smbaddr A4 t abcd
page 13
Broadcom Confidential and Proprietary
Broadcom NetXtreme Ethernet Adapter Diagnostic Users Guide
secondary port. Software will read command from input files and compare with the
boot code configuration and return Passed or Failed accordingly.
Example:
b57diag chksecfg file_p.txt (for single port devices)
b57diag chksecfg file_p.txt file_s.txt (for dual port devices)
Disable the storing of the TPM and NVRAM size in NVRAM when diagnostics is run from
the command prompt. Use the "-nosz" option when repeatedly power cycling a system in
order not to exhaust the total NVRAM write cycles.
-smbaddr <hex1> | <hex2>|<hex3> Configure ASF SMBus Addresses.
The option will configure the ASF SMBus Address field in ASF Configuration
block.
The option can take multiple parameters in HEX.
Example:
a. -smbaddr 45 (SMB Address = 0x45)
b. -smbaddr 45 6c (SMB Address for 1st device=0x45 and 2nd device = 0x6c)
This option must be used along with -c option. Number of parameters for -
smbaddr must be the same as number of devices selected by -c.
Example:
b57diag -c 0 3 6 -smbaddr 6c-6e -t abcd.
b57diag c 0 e b57kia pasf asf.bin smbaddr 66 t abcd
Use this option to modify the PCI SSID and SVID stored in NVRAM. The new SSID and
SVID are specified in the file <filename>. The format of <filename> is specified in the
EEPROM.TXT format section below.
The warning message, Boot code file and device type incompatible, produced by the -
firm and firmall commands is not displayed when the -sil command line parameter is
entered before the -firm and firmall commands. The -firm and -firmall commands
are described below.
page 14
Broadcom Confidential and Proprietary
Broadcom NetXtreme Ethernet Adapter Diagnostic Users Guide
Use this option with the external loopback test D3 to select a reference card. During the
external loopback test the physical loopback can be provided with a RJ45 loopback plug or
a CAT5 cable connected to a reference device (which loops back the data).
-lbe g:h:t define the number of packets to use during external loopback
Selects the number of packets to send during the external loopback test D3 (g ,h ,t are the
gigabit, hundred megabit, and ten megabit packet counts respectively) (default values are
g=2000, h=1000, t=600). It is mandatory that all packets counts are entered with this
command line option.
-ckdev <xy> executes diagnostic only x=chip rev and y=metal rev
If <xy> does not match the device being accessed diagnostics will not execute. Use this
option on a production line to verify that only chips of a specific rev are run with
diagnostics and all others fail.
This option is used for the D4, 1G False Carrier, loopback test. During the test packets
are sent out in groups of 200. The user specified <m200> value determines the number of
200 packet groups to send out. The default value is <m200> =50 or 50 groups of 200
packets.
-disppkts display the packet count during the progress of the test
This option is used for the D4, 1G False Carrier, loopback test. On long-term test this
option is entered to display the packet count every 20,000 packets to let a user know the
test is operating normally and not frozen.
This option is used for the D4, 1G False Carrier, loopback test. This option is entered to
print out the final packet count at the end of the test.
-errlimit <lim> controls the number of errors seen before the test fails
This option is used for the D4, 1G False Carrier, loopback test. The default value is
<lim> =3.
This option is used for the D4, 1G False Carrier, loopback test. The default packet data is
an incrementing value per byte. With this option the packet data alternate between 64 1s
and 0s that are aligned on a 64-bit PCI bus for maximum transitions.
-dids display chip information such as the PCI DID and VID
page 15
Broadcom Confidential and Proprietary
Broadcom NetXtreme Ethernet Adapter Diagnostic Users Guide
The feature outputs the following information: PCI DID, VID, SDID & SVID; MAC
address, Firmware revision, PXE, PXESpd, WOL, ASF, MBA, Bond Rev. This
information can be used to verify the setup of a chip after a firmware upgrade.
-elog <filename> an error log file <filename> used to log diagnostics failures
The feature is used to log the failure information of the diagnostics run. When an error
occurs if the file <filename> exists it is appended to and if it does not exist it is created. If
there are no diagnostics failures then the file in not appended or created. A user abort of the
diagnostics testing is log to the error log file <filename>.
The feature is used to execute a field upgrade of bootcode firmware. The bootcode
firmware is programmed into a/the device/s of a system if there is a match of the PCI DID,
VID, SDID & SVID of firmware and device.
-firmall <filename> used for field upgrade for entire NVRAM image
The feature is used to execute a field upgrade of entire NVRAM image. The new NVRAM
image is programmed into a/the device/s of a system if there is a match of the PCI DID,
VID, SDID & SVID of firmware and device. Media Manufact Region and Media VPD
Block in NVRAM will be preserved. If the Advance Firmware, such as ASF and IPMI, is
present, the Configuration Block of the firmware will also be preserved. Three addition
command line parameters, -updateasfcfg, -updatesecfg, -updateiscsicfg and -sil,
can be used along with -firmall command.
When -updateasfcfg command line parameter is entered before -firmall command, the
Advance Firmware Configuration Block of the NVRAM will not be preserved. It will get
updated by the input file of -firmall command. The -firmall command is described
above.
-updatesecfg update the Media Manufact Region and Media VPD Block, of
NVRAM with that of the NVRAM image provided by -firmall command
When -updatesecfg command line parameter is entered before -firmall command, the
Meida Manufact Region and Media VPD Block of the NVRAM will not be preserved.
They will get updated by the input file of -firmall command. The -firmall command is
described above.
When -updateiscsicfg command line parameter is entered before -firmall command, the
ISCSI Firmware Configuration Block of the NVRAM will not be preserved. It will get
page 16
Broadcom Confidential and Proprietary
Broadcom NetXtreme Ethernet Adapter Diagnostic Users Guide
updated by the input file of -firmall command. The -firmall command is described
above.
The feature is used to execute a field upgrade of NVRAM to add IPMI firmware. The
firmware is programmed into a/the device/s specified by -c option switch.
The feature is used to execute a field upgrade of IPMI firmware. The firmware is
programmed into a/the device/s specified by -c option switch if IPMI firmware is
originally loaded in NVRAM
-lbspd <spd> selects the line speeds to run test D3 (external loopback)
The external loopback test, by default, runs lines speeds of 10/100/1000 Mbits/s. The user
can select to run any combination of the line speeds to run the external loopback via this
option. The <spd> parameter specifies the operational speed by using t/h/g for 10/100/1000
Mbits/s respectively. To run test D3 at a 100 Mbits/s line rate the user would enter
b57diag t abcd T d3 lbspd h. To run test D3 at a 100 Mbits/s and 1 Gbit/s the user
would enter b57diag t abcd T d3 lbspd hg.
-hlb <spd> puts the UUT into the host loopback mode
All data sent to the device on the line side will be looped back to the line. This setup can be
used to test a specific device with an external tester or can be used with the tr option to
perform a requestor-response test. The optional <spd> parameter specifies the operational
speed by using 10/100/1000 for 10/100/1000 Mbits/s respectively. The default value is
1000 Mbits/s.
The UUT will transmit the number of packets specified by <pkts>. The default number of
packets transmitted is 1,000,000. The UUT will receive all packets sent to it via the line
side. Counts of the transmitted and received packets will be presented to the user. This
setup can be used to test a specific device with an external tester or can be used with the
hlb option to perform a requestor-response test. The optional <spd> parameter specifies the
operational speed by using 10/100/1000 for 10/100/1000 Mbits/s respectively. The default
value is 1000 Mbits/s.
When more than one device is in the system, the devices are number starting from zero. For
example, if there is three devices detected, the device is numbered as 0,1,and 2. In this case,
by entered the parameter c 2 will select the last found device as default UUT.
page 17
Broadcom Confidential and Proprietary
Broadcom NetXtreme Ethernet Adapter Diagnostic Users Guide
In manufacture testing mode, by default, all devices are tested; however, if this option is
used, only that selected device is tested.
Example: -c 2
All diagnostic output can be saved in a log file. Type log file name is specified by this
option. The default is no log file.
Example: -l mylogfile.txt
After a successful manufacturing testing, the program will program WOL to either enable
or disable mode (<value> = 1/0). By default, the WOL is programmed as disable. Entering
value=1 will enable WOL.
After a successful manufacturing testing, the program will program PXE to either enable or
disable mode (<value> = 1/0). By default, the PXE is programmed as disable. Entering
value=1 will enable PXE.
Example -t A15BC1 -T C4 t D2
This disables A1, A5, B1, B2, B3, B4, B5, B6, C1, D2 and enables C4
Default Setting:
Enabled Tests:
page 18
Broadcom Confidential and Proprietary
Broadcom NetXtreme Ethernet Adapter Diagnostic Users Guide
Use this option to specify the number of times the tests to be run. The default is run one
time. A number zero indicates loop forever. A control-C or control-break key can be used
to break the loop. Any error detected will also stop testing after reporting the error.
Example: -I 5
Run tests five times.
page 19
Broadcom Confidential and Proprietary
Broadcom NetXtreme Ethernet Adapter Diagnostic Users Guide
A password is needed to run this option. With this option, it updates the specified eeprom
binary file with the specifications defined in eeprom.txt. Please see Section 6.0
EEPROM.TXT format for detailed argument description.
page 20
Broadcom Confidential and Proprietary
Broadcom NetXtreme Ethernet Adapter Diagnostic Users Guide
incremented; if not, it will stay unchanged. The text file which contains the MAC address
range has the following format and the numbers are in hexadecimal:
mac_addr_pref = xxxxxx => Which is the prefix of the MAC address.
mac_addr_start = xxxxxx => Which is the start of the address range.
mac_addr_end = xxxxxx => Which is the end of the address range.
Example:
mac_addr_pref = 001018
mac_addr_start = 000100
mac_addr_end = 000FFF
Working in conjunction with f <file> option, this fmac option is equivalent to option m.
Program will not validate the eeprom content and go ahead to prompt user for the MAC address. It
programs MAC address and EEPROM content and then checks the validity of eeprom content at the end of
programming.
-f only:
Program will check the validity of eeprom. If it is not valid, it will act as a), -f -m option. If it is good, it
saves the MAC address from eeprom, program new eeprom binary file content into EEPROM and then restores
the original MAC address. It checks the validity of eeprom content once more at the end of programming.
page 21
Broadcom Confidential and Proprietary
Broadcom NetXtreme Ethernet Adapter Diagnostic Users Guide
or
-m only:
Program will check the validity of EEPROM. If it is not valid, it will act as a), -f -m option. If it is good,
the program will prompt the user for a new MAC address and program the MAC address only. It checks the
validity of EEPROM content once more at the end of programming.
or
d) no -m and -f options
Program will check the validity of EEPROM. If it is not valid, it will act as a), -f -m option. If it is good, it
proceeds to normal diagnostics.
or
page 22
Broadcom Confidential and Proprietary
Broadcom NetXtreme Ethernet Adapter Diagnostic Users Guide
Example:
b57diag mba 0 : Disabling mba.
Example:
b57diag mbap 0
page 23
Broadcom Confidential and Proprietary
Broadcom NetXtreme Ethernet Adapter Diagnostic Users Guide
Example:
b57diag mbas 0 : To select Auto speed mode.
Example:
b57diag mbas 0 : To select Auto speed mode.
page 24
Broadcom Confidential and Proprietary
Broadcom NetXtreme Ethernet Adapter Diagnostic Users Guide
page 25
Broadcom Confidential and Proprietary
Broadcom NetXtreme Ethernet Adapter Diagnostic Users Guide
page 26
Broadcom Confidential and Proprietary
Broadcom NetXtreme Ethernet Adapter Diagnostic Users Guide
6 EEPROM.TXT format
The WOL and ASF setting cannot be enabled on both channel at the same time. For example, if the
primary WOL is already enabled, and the user try to enable secondary devices WOL, the primarys
WOL setting will be disabled with the following message:
Syntax:
<Command> = <Argument>
xx 8-bit hex number
xxxx 16-bit hex number
xxxxxxxx 32-bit hex number
d decimal number ranges from 0 to 255
string(n) string of maximum size n.
cc 2 bytes character
n1..n2 a number ranges from n1 to n2.
page 27
Broadcom Confidential and Proprietary
Broadcom NetXtreme Ethernet Adapter Diagnostic Users Guide
*This should only be used to select port for dual ports devices.
** This is for dual port devices only.
page 28
Broadcom Confidential and Proprietary
Broadcom NetXtreme Ethernet Adapter Diagnostic Users Guide
**** If VPDR_SYSTEM_DEFAULT = 1 has been entered, System default value for all VPD-R data
will be selected.
Option f has been combined with option e in secfg for Selfboot Firmware.
0:>secfg
1. MAC Address.........: 001018000000
2. Device Id...........: 1693
3. Sub Vendor Id.......: 14E4
4. Sub Device Id.......: 1693
5. Wake on LAN.........: Disabled
6. WoL Speed Limit 10..: Disabled
7. LOM/NIC design......: NIC
8. Phy. Auto PowerDown.: Disabled
9. Reverse Nway........: Disabled
a. Disable PowerSaving.: Disabled
page 29
Broadcom Confidential and Proprietary
Broadcom NetXtreme Ethernet Adapter Diagnostic Users Guide
-> 2
1. Part Number : BCM957xx
2. Engineering Change : 106679-15
3. Serial Number : 0123456789
4. Manufacturing ID : 14e4
5. Read only VPD Vendor Specific Data (V0) :
6. Product Name : Broadcom NetXtreme Gigabit Ethernet
Controller
page 30
Broadcom Confidential and Proprietary
Broadcom NetXtreme Ethernet Adapter Diagnostic Users Guide
Example:
page 31
Broadcom Confidential and Proprietary
Broadcom NetXtreme Ethernet Adapter Diagnostic Users Guide
The commands are summarized in the following groups: vpd, nvram, cpu, dma, packet, mii, mem,
test, power, irq, mac, misc and bridge.
page 32
Broadcom Confidential and Proprietary
Broadcom NetXtreme Ethernet Adapter Diagnostic Users Guide
page 33
Broadcom Confidential and Proprietary
Broadcom NetXtreme Ethernet Adapter Diagnostic Users Guide
page 34
Broadcom Confidential and Proprietary
Broadcom NetXtreme Ethernet Adapter Diagnostic Users Guide
page 35
Broadcom Confidential and Proprietary
Broadcom NetXtreme Ethernet Adapter Diagnostic Users Guide
page 36
Broadcom Confidential and Proprietary
Broadcom NetXtreme Ethernet Adapter Diagnostic Users Guide
8 Special Instruction
2. Memory test:
3. DMA test:
4. TX RX packets:
To setup test configuration, run "diagcfg". Diag config can be saved in system for future
use.
Test:
Memory test
NIC test
8. Blast Test:
page 37
Broadcom Confidential and Proprietary
Broadcom NetXtreme Ethernet Adapter Diagnostic Users Guide
During a send/respond test two Broadcom Ethernet devices in the same system are
connected via a CAT5 (RJ45) cable and data is transmitted and received across the cable. In
the above setup one device is the device under test (DUT) and the other is the reference
device. Any Broadcom device that is supported by diagnostics can be used as the DUT or
the reference device.
t abcd Disables all tests (Disable all tests in group a, b, c, and d).
T d3 Perform the external loopback test that will transmit data from the DUT to the
reference device, via the CAT5 cable, then the reference device will receive
the data and transmit it back, via the CAT5 cable, to the DUT which will
verify the received data.
-lbspd t/h/g Selects any combination of line speed to run the loopback test (by
default runs all line speeds).
lbe g:h:t Selects the number of packets to send during the loopback test (g, h & t
are the 1000/100/10 megabit packet counts respectively) (default values
are g=2000, h=1000, t=600). It is mandatory that all packets counts are
entered with this command line switch.
page 38
Broadcom Confidential and Proprietary
Broadcom NetXtreme Ethernet Adapter Diagnostic Users Guide
10.1 vpdwrite
cmd: vpdwrite
File format:
If only one argument is entered, filename is assumed. Otherwise, 'start [len] value' format
must be used.
10.2 vpdread
cmd: vpread
10.3 vpdinfo
cmd: vpdinfo
Syntax: vpdinfo
10.4 semode
cmd: semode
Example:
page 39
Broadcom Confidential and Proprietary
Broadcom NetXtreme Ethernet Adapter Diagnostic Users Guide
10.5 seread
cmd: seread
Example:
1. Set number base to hex, then read and display serial eeprom locations from 0x00 to
0x20
0:> radix 16
0:> seread 0-20
*** Dump Serial EEPROM (Auto Mode) ***
000000: 669955aa 08000000 00000069 00000200 d97b07d0 00000000 00000000 00000000
000020: 00000000
2. Set number base to hex then read location 0x18 of serial eeprom.
0:> radix 16
0:> seread 18 1
*** Dump Serial EEPROM (Auto Mode) ***
000018: 000000ff
10.6 sewrite
cmd: sewrite
Example:
1. Set number base to hex, write 0x55AA to serial eeprom from locations 0x30 to 0x35
0:> radix 16
0:> sewrite 30-35 55AA
*** Write Serial EEPROM (Auto Mode) ***
page 40
Broadcom Confidential and Proprietary
Broadcom NetXtreme Ethernet Adapter Diagnostic Users Guide
2. Set number base to hex, write 0x2 to serial eeprom location 0x25
0:> radix 16
0:> sewrite 25 2
*** Write Serial EEPROM (Auto Mode) ***
10.7 secfg
cmd: secfg
All option is for Boot Code only. If selected program with defaults (-f=1), eeprom.bin
must be found in the same directory of b57diag.exe.
Syntax: secfg
Options:
1 Program Serial EEPROM with defaults value and set verbose level to 0.
0:> secfg
Reading current NVRAM ... OK
Validating content...
page 41
Broadcom Confidential and Proprietary
Broadcom NetXtreme Ethernet Adapter Diagnostic Users Guide
To enter the secfg menu shown above a user type in secfg at the diagnostics command
line. A menu is present to the user showing the secfg options shown above. A user can
change the secfg parameter by entering the option number, followed by and equal sign,
and then followed by the parameter selected. To enable ASF (option 24) a user would enter
24=1 at the diagnostics secfg command line, which would look like the following:
Enter your choice (option=paramter/save/cancel) -> 24=1.
The tables below provide details for each parameter of the secfg options. The top right of
each table has the word Configure or Reference. Configure signifies that the
option is used to configure the operating characteristics of the device or default values of
registers in the device. Reference signifies that the option is use for display purposes and
does not affect the operating characteristics of the device or default values of registers in
the device.
page 42
Broadcom Confidential and Proprietary
Broadcom NetXtreme Ethernet Adapter Diagnostic Users Guide
Description:
MAC address of the device.
2 Power Dissipated (D3:D2:D1:D0) Reference
Description:
Power dissipated in D3-0 states.
3 Power Consumed (D3:D2:D1:D0) Reference
Description:
Power consumed in D0-2 states.
4 Vendor ID Configure
Description:
PCI Vendor ID. Default 0x14e4.
5 Device ID Configure
Description:
PCI Device ID.
6 Subsystem Vendor ID Configure
Description:
PCI Subsystem PCI Vendor ID.
7 Subsystem Device ID Configure
Description:
PCI Subsystem PCI Device ID.
8 PXE Configure
Description:
Enable the Pre-Boot Execution Environment (PXE) by using this option. This option does
not apply to PXE in system ROM. Options 8,9, 26 - 29 and 39-40 configure the boot
protocol behavior.
Enable(1) When PXE is enable the expansion ROM enable bit in the PCI
configuration space is set for system boot up. The user has to make
sure the PXE code is loaded into the non-volatile memory by using the
loadpxe command.
Disable(2) When PXE is disable the expansion ROM enable bit in the PCI
configuration space is cleared for system boot up. The PXE code does
NOT have to been load into the non-volatile memory of the device.
9 PXE Link Speed Configure
Description:
Pre-Boot Execution Environment line configuration is specified using the parameters below.
Options 8,9, 26 - 29 and 39-40 configure the boot protocol behavior.
Auto(0) PXE auto detects the link configuration.
10HD(1) PXE uses a 10 Mbits/s, half duplex line configuration.
10FD(2) PXE uses a 10 Mbits/s, full duplex line configuration.
100HD(3) PXE uses a 100 Mbits/s, half duplex line configuration.
100FD(4) PXE uses a 100 Mbits/s, full duplex line configuration.
10 Magic Packet WoL Configure
Description:
A system can be configured to power-on when a Magic Packet is received.
Enable(1) The device will assert the pme signal, to power on the system, when a
magic packet is received.
Disable(2) Magic packets are ignored.
page 43
Broadcom Confidential and Proprietary
Broadcom NetXtreme Ethernet Adapter Diagnostic Users Guide
Note:
A driver can setup the WoL behavior of a device and the value programmed into this
location is ignored.
11 Product Name Reference
Description:
VPD Product description string.
12 Part Number Reference
Description:
VPD part number..
13 Engineering Change Reference
Description:
VPD engineering change.
14 Serial Number Reference
Description:
VPD serial number.
15 Manufacturing ID Reference
Description:
VPD manufacturing ID.
16 Asset Tag Reference
Description:
VPD asset tag.
17 Part Revision Reference
Description:
VPD part revision.
18 Voltage Configure
Description:
Controls the voltage source level for the 5701 controller.
1.3V(0) Selects a 1.3V source.
1.8V(1) Selects a 1.8V source.
19 Force PCI Mode Configure
Description:
PCI bus operational mode configuration.
Enable(1) When enabled the device uses PCI mode, instead of PCI-X,
independent of the capabilities of the slot the device is plugged into.
Disable(2) When disabled the device uses the PCI mode of the slot the device is
plugged into; if the device is capable of operating in the required mode.
20 PHY Type {option no longer supported} Configure
Description:
PHY line type configuration.
Copper(1) The communication medium is copper.
Fiber(2) The communication medium is fiber.
page 44
Broadcom Confidential and Proprietary
Broadcom NetXtreme Ethernet Adapter Diagnostic Users Guide
5700/01 The Link10 line will indicate link for all speeds. Link100 and
Link1000 will encode the line speed as show in the following table:
Link 100 Link 1000 Speed
0 0 10 Mbits/s
1 0 100 Mbits/s
0 1 1000 Mbits/s
For all other 57xx devices the three link lines operate in an open drain
configuration and can be tied together with a pull up resistor to control a
LED.
SharedTraffic Mode specific to the 575x and 572x chips. The link LED performs a dual
(3) role: solid when there is a link and blinks when there is activity.
Shasta Mac Mode specific to the 575x and 572x chips. The link LED blinks only when
Mode (4) traffic is for Shasta.
Wireless Mode specific to the 575x and 572x chips. When link is lost the LEDs are
Combo (5) driven by inputs pins that are connected to the LED signals of a wireless
link.
22 PHY ID Reference
Description:
Only for display purposes not used in software.
[PHY#2][PHY#3]
23 Max PCI Retry Configure
Description:
The maximum number of time to retry an aborted PCI operation.
0-7 The number of MAX PCI retries is force by the users configuration.
8=auto The MAX PCI retry field is selected dynamically by firmware based on
PCI bus type detected.
24 Advanced firmware feature (ASF/IPMI/UMP) Configure
Description:
Advanced firmware feature such as Alert Standard Format (ASF) or IPMI is enabled by this
option.
Enable(1) If the ASF/IPMI/UMP code is loaded in NVRAM it is loaded and
executed by the device.
Disable(2) No ASF/IPMI/UMP functionality is provided when disable.
25 Dual MAC mode Configure
Description:
This option is only valid for a dual port device such as a 5704. The physical ports will be
named MAC_A an MAC_B for the discussion below.
Normal(0) MAC_A and MAC_B are available and are supported as PCI function 0
& 1.
MAC_B only(1) MAC_B is available and is supported as PCI function 0. MAC_A is
disable.
page 45
Broadcom Confidential and Proprietary
Broadcom NetXtreme Ethernet Adapter Diagnostic Users Guide
page 46
Broadcom Confidential and Proprietary
Broadcom NetXtreme Ethernet Adapter Diagnostic Users Guide
Description:
Select NIC or LOM based Ethernet controller.
NIC(0) Option selected for a plug in network interface card.
LOM(1) Option selected for a LAN on motherboard.
Note:
The firmware and the drivers use this to determine the operational characteristics of a
device. For example, on a LOM GPIO2 is tied to the SEEPROM write protect pin and on a
NIC GPIO 1 and 2 is used to switch between main and auxiliary power for wake on LAN
functionality.
31 Read only VPD Vendor Specific Data (V0) Reference
Description:
VPD V0 value. Data field provided for the customer.
32 Read/Write VPD Vendor Specific Data (V1) Reference
Description:
VPD V1 value. Data field provided for the customer.
33 Reversed Nway Configure
Description:
Nway Negotiation.
0 (default) Auto-negotiation is done from 1000->100->10 Mbits/s.
1 Auto-negotiation is done from 10->100->1000 Mbits/s.
Note:
A user could set the chip for option 1 when running a laptop on battery power. The chip
would auto-negotiate starting at a lower speed and lower power. The chip would only go to
higher line rates and higher power if the lower line rates were unavailable.
34 Limit WoL Speed to 10 Configure
Description:
Limit Wake on LAN (WoL) line speed.
No(0) 10 or100 Mbits/s is used for WoL.
Yes(1) Only 10 Mbits/s is used for WoL.
35 Fiber WoL Capable Configure
Description:
Fiber Wake on LAN (WoL) Capable enable.
No(0) Disable Fiber WoL.
Yes(1) Enable Fiber WoL.
36 Clock-Run Setting Configure
Description:
Enable Clock-Run on mini-PCI/cardbus systems. This parameter is valid only for the 5705
A0-A2.
Enable(1) Sets the clock mode register bit 22 which will assert (active low) the
clock run signal on the bus prior to any PCI configuration space activity.
Disable(0) The above is not performed.
37 Enable PHY Auto Powerdown Configure
Description:
Enable GPHY auto-power down when there is no link present (to conserver power).
No(0) The PHY will not auto power down.
Yes(1) The PHY will auto power down when there is no link.
38 Disable Power Saving capability Configure
Description:
Disable Power Saving capability setup by option 33 above. When disable a device will use
Nway negotiation.
page 47
Broadcom Confidential and Proprietary
Broadcom NetXtreme Ethernet Adapter Diagnostic Users Guide
page 48
Broadcom Confidential and Proprietary
Broadcom NetXtreme Ethernet Adapter Diagnostic Users Guide
Description:
Encoded Hot plug power values 1 & 2 for a NIC device that is used only if enabled in
option 50 below. The following description applies to options 46-49.
This option is only valid for 5787 and 575xCx devices. The power values need to be setup
by the OEM / manufacture based on actual measurements. Default values, contained in
the bootcode / firmware, are loosely based on the in house Broadcom NIC card.
page 49
Broadcom Confidential and Proprietary
Broadcom NetXtreme Ethernet Adapter Diagnostic Users Guide
0:>secfg
1. MAC Address.........: 001018000000
2. Device Id...........: 1693
3. Sub Vendor Id.......: 14E4
4. Sub Device Id.......: 1693
5. Wake on LAN.........: Disabled
6. WoL Speed Limit 10..: Disabled
7. LOM/NIC design......: NIC
8. Phy. Auto PowerDown.: Disabled
9. Reverse Nway........: Disabled
a. Disable PowerSaving.: Disabled
b. LED mode............: Phy1 Mode
c. Custom PCI power....: Yes (comsumed D0:100.D3:10 dissipated D0:100.D3:10)
d. Custom PCIE power...: Yes (3.3v, Sustained, D0, 1.2 Watt...)
e. Custom VPD Prod.Name: Yes(Broadcom NetXtreme Gigabit Ethernet Controller)
f. Custom VPD-R Data...: Yes
g. Cable Sense.........: Disabled
page 50
Broadcom Confidential and Proprietary
Broadcom NetXtreme Ethernet Adapter Diagnostic Users Guide
0. Mac Mode
1. Phy1 Mode
2. Phy2 Mode
3. Shared Traffic/Lik LED Mode
4. Shasta MAC mode
5. Wireless Combo Mode
-> c
-> 2
D0 State Power Comsumed decimal value (0-255) (100)->100
D3 State Power Comsumed decimal value (0-255) (10)->10
D0 State Power Dissipated decimal value (0-255) (100)->100
D3 State Power Dissipated decimal value (0-255) (10)->10
-> 2
page 51
Broadcom Confidential and Proprietary
Broadcom NetXtreme Ethernet Adapter Diagnostic Users Guide
-> e
-> 2
Selfboot VPD R
-> 2
1. Part Number : BCM957xx
2. Engineering Change : 106679-15
3. Serial Number : 0123456789
4. Manufacturing ID : 14e4
5. Read only VPD Vendor Specific Data (V0) :
To enter the secfg menu shown above a user type in secfg for selfboot firmware at the
diagnostics command line. A menu is present to the user showing the secfg options shown
above. A user can change the secfg parameter by entering the option number.
The tables below provide details for each parameter of the secfg options for selfboot
firmware. The top right of each table has the word Configure or Reference.
Configure signifies that the option is used to configure the operating characteristics of
the device or default values of registers in the device. Reference signifies that the option
is use for display purposes and does not affect the operating characteristics of the device or
default values of registers in the device.
page 52
Broadcom Confidential and Proprietary
Broadcom NetXtreme Ethernet Adapter Diagnostic Users Guide
Description:
PCI Subsystem PCI Vendor ID.
4 Subsystem Device ID Configure
Description:
PCI Subsystem PCI Device ID.
5 Magic Packet WoL Configure
Description:
A system can be configured to power-on when a Magic Packet is received.
Enable(1) The device will assert the pme signal, to power on the system, when a
magic packet is received.
Disable(2) Magic packets are ignored.
Note:
A driver can setup the WoL behavior of a device and the value programmed into this
location is ignored.
6 Limit WoL Speed to 10 Configure
Description:
Limit Wake on LAN (WoL) line speed.
No(0) 10 or100 Mbits/s is used for WoL.
Yes(1) Only 10 Mbits/s is used for WoL.
7 Design Type Configure
Description:
Select NIC or LOM based Ethernet controller.
NIC(0) Option selected for a plug in network interface card.
LOM(1) Option selected for a LAN on motherboard.
Note:
The firmware and the drivers use this to determine the operational characteristics of a
device. For example, on a LOM GPIO2 is tied to the SEEPROM write protect pin and on a
NIC GPIO 1 and 2 is used to switch between main and auxiliary power for wake on LAN
functionality.
8 Enable PHY Auto Powerdown Configure
Description:
Enable GPHY auto-power down when there is no link present (to conserver power).
No(0) The PHY will not auto power down.
Yes(1) The PHY will auto power down when there is no link.
9 Reversed Nway Configure
Description:
Nway Negotiation.
0 (default) Auto-negotiation is done from 1000->100->10 Mbits/s.
1 Auto-negotiation is done from 10->100->1000 Mbits/s.
Note:
A user could set the chip for option 1 when running a laptop on battery power. The chip
would auto-negotiate starting at a lower speed and lower power. The chip would only go to
higher line rates and higher power if the lower line rates were unavailable.
page 53
Broadcom Confidential and Proprietary
Broadcom NetXtreme Ethernet Adapter Diagnostic Users Guide
5700/01 The Link10 line will indicate link for all speeds. Link100 and
Link1000 will encode the line speed as show in the following table:
Link 100 Link 1000 Speed
0 0 10 Mbits/s
1 0 100 Mbits/s
0 1 1000 Mbits/s
For all other 57xx devices the three link lines operate in an open drain
configuration and can be tied together with a pull up resistor to control a
LED.
SharedTraffic Mode specific to the 575x and 572x chips. The link LED performs a dual
(3) role: solid when there is a link and blinks when there is activity.
Shasta Mac Mode specific to the 575x and 572x chips. The link LED blinks only when
Mode (4) traffic is for Shasta.
Wireless Mode specific to the 575x and 572x chips. When link is lost the LEDs are
Combo (5) driven by inputs pins that are connected to the LED signals of a wireless
link.
c Custom PCI Power Reference
Description:
Self boot PCI Power Consumption/Dissipate for D0 and D3 state.
d Custom PCIE Power Reference
Description:
Self boot PCIE Power Budgeting Data
e Product Name Reference
Description:
VPD Product description string.
f-1 Part Number Reference
Description:
VPD part number..
f-2 Engineering Change Reference
Description:
VPD engineering change.
f-3 Serial Number Reference
Description:
VPD serial number.
f-4 Manufacturing ID Reference
Description:
VPD manufacturing ID.
f-5 Read only VPD Vendor Specific Data (V0) Reference
page 54
Broadcom Confidential and Proprietary
Broadcom NetXtreme Ethernet Adapter Diagnostic Users Guide
Description:
VPD V0 value. Data field provided for the customer.
0:>secfg
1. MAC Address.........: 001018123456
2. Device Id...........: 1713
3. Sub Vendor Id.......: 14E4
4. Sub Device Id.......: 9713
5. WOL.................: Disabled
6. WoL Speed Limit 10..: Disabled
7. WoL Auto............: Disabled
8. LED mode............: PHY MODE 2
9. VPD Prod.Name and VPD-R Data: Yes
A. Super-airplane Mode.: Enabled
B. MBA Configuration
-> 7
0. Disable
1. Magic Packet WOL Enable
2. Interesting Packet WOL Enable
3. Magic and Interesting Packet WOL Enable
-> 8
0. Mac Mode
page 55
Broadcom Confidential and Proprietary
Broadcom NetXtreme Ethernet Adapter Diagnostic Users Guide
1. Phy1 Mode
2. Phy2 Mode
3. Shared Traffic/Lik LED Mode
-> B
To enter the secfg menu shown above a user type in secfg for hardware selfboot
firmware at the diagnostics command line. A menu is present to the user showing the
secfg options shown above. A user can change the secfg parameter by entering the
option number.
The tables below provide details for each parameter of the secfg options for hardware
selfboot firmware. The top right of each table has the word Configure or Reference.
Configure signifies that the option is used to configure the operating characteristics of
the device or default values of registers in the device. Reference signifies that the option
is use for display purposes and does not affect the operating characteristics of the device or
default values of registers in the device.
page 56
Broadcom Confidential and Proprietary
Broadcom NetXtreme Ethernet Adapter Diagnostic Users Guide
Description:
MAC address of the device.
2 Device ID Configure
Description:
PCI Device ID.
3 Subsystem Vendor ID Configure
Description:
PCI Subsystem PCI Vendor ID.
4 Subsystem Device ID Configure
Description:
PCI Subsystem PCI Device ID.
5 WoL Configure
Description:
A system can be configured to power-on when a Magic Packet is received.
Enable The device will assert the pme signal, to power on the system, when a
magic packet is received.
Disable Magic packets are ignored.
Note:
A driver can setup the WoL behavior of a device and the value programmed into this
location is ignored.
6 Limit WoL Speed to 10 Configure
Description:
Limit Wake on LAN (WoL) line speed.
No 10 or100 Mbits/s is used for WoL.
Yes Only 10 Mbits/s is used for WoL.
7 Wol Auto Setting Configure
Description:
Select WOL Auto Setting
Disable (0) WOL is Disabled
Magic Packet Option selected for Magic Packet WOL.
WOL (1)
Interesting Option selected for Interesting Packet WOL.
Packet WOL (2)
Magic and Option selected for Interesting and Magic Packet WOL .
Interesting
Packet WOL (3)
8 Led Mode Configure
Description:
A device can be configured to use one LED to indicate speed and activity or three LEDs.
Use a devices data sheet to verify the LED modes supported by a devices and for
exceptions to the LED modes described below.
Mac Mode (0) The LEDs are controlled by the value in the Mac LED Control Register.
Phy Mode1 (1) Dual Link LED configuration. Two LEDs are used to indicate 10/100
Mbps.
Phy Mode2 (2)
Link/Speed LED configuration. One LED is used to indicate link status
of all 10/100 Mbps.
SharedTraffic (3) Shared Traffic/Link LED Mode. The Link LED performs dual role: Solid
Green, when Link up. Blink when there is an activity.
page 57
Broadcom Confidential and Proprietary
Broadcom NetXtreme Ethernet Adapter Diagnostic Users Guide
10.8 seprg
cmd: seprg
Options:
page 58
Broadcom Confidential and Proprietary
Broadcom NetXtreme Ethernet Adapter Diagnostic Users Guide
-f<string> filename
Example:
0:>seprg asffirmware.bin -a
*-p option will restore NVRAM configuration data between Bootcode and selfboot
firmware. The configuration data that will be restored are listed below.
a. Wol_enable
b. Wol_Limit_10
c. Driver_wol_enable
d. Lom_design
e. Phy_auto_power_down
f. Reverse_nway
g. Disable_power_saving
h. Phy_led_mode
i. Shasta_ext_led_mode
j. Cable_sense
page 59
Broadcom Confidential and Proprietary
Broadcom NetXtreme Ethernet Adapter Diagnostic Users Guide
10.9 upgfrm
cmd: upgfrm
Description: Upgrade ISCSI, PXE, Boot Code and Selfboot Firmware from a File. This
command reads code from a file and program into iscsi, pxe or boot area. Both parameter,
the programming target '-p', 'b' or '-i' and filename, must be specified. In case of ISCSI
firmware, ISCSI Boot Firmware will be updated by default. ISCSI CFG Block will only be
updated if there is no ISCSI CFG Block present in NVRAM. ISCSI CFG Program will
NOT be programmed by this command. In case of Selfboot Firmware, this command will
support Format 0 to Format 1 and Format1 to Format1 update. Format0 to Format0 and
Format1 to Format0 update are NOT supported by this command. User will need to use
seprg command.
Options:
10.10 sever
cmd: sever
Syntax: sever
10.11 sechksum
cmd: sechksum
Syntax: sechksum
Options:
page 60
Broadcom Confidential and Proprietary
Broadcom NetXtreme Ethernet Adapter Diagnostic Users Guide
10.12 sedump
cmd: sedump
Description: Dump NVRAM content to a file. The value stored at location 0xC in the
NVRAM is the starting address of the code that the chip loads and executes. The code
starting address is 0x200 for NVRAM pages aligned on 256 byte boundaries and 0x2F8 for
the Atmel device that has a NVRAM page size of 264. If sedump is used to generate an
image file for a NVRAM/EEPROM burner then -a should be used, for an Atmel device,
if one wants to preserve the 0x2F8 code starting address that is automatically translated to
0x200 by software without the -a option. More details can be found in application note
570X-AN700-R.
Options:
10.13 asfcfg
cmd: asfcfg
If [filename] is provided the file is used to configure the ASF configuration information in
NVRAM. If asfcfg is entered by it self a menu is present the user and the options of the
items listed in the menu are described below.
0 Save to file
Description:
Use this menu option save the network adapter's ASF configuration table to a binary file.
1 ASF Settings
Description:
Provides the sub menu with the options described below.
0 Return to previous menu.
1 Enable/Disable Remote Management Control Protocol (RCMP)
2 Enable/Disable the transmission of Platform Event Trap (PET)
messages.
3 Enable/Disable transmission of periodic system heartbeat messages.
4 Interval in seconds between transmitted heartbeat messages.
page 61
Broadcom Confidential and Proprietary
Broadcom NetXtreme Ethernet Adapter Diagnostic Users Guide
ASF_INFO
ASF_ALRT
ASF_RCTL
ASF_RMCP
ASF_ADDR
The values in these records are normally copied from the system's "ASF! Description
Table" (using the ACPI System Description Table architecture) into the ASF Configuration
Table in the network adapter's non-volatile memory by the Broadcom ASF Configuration
Utility (ASFConfig). See the Alert Standard Format (ASF) Specification v2.0 for detailed
descriptions of these records.
7 Reserved
Description:
Reserved
page 62
Broadcom Confidential and Proprietary
Broadcom NetXtreme Ethernet Adapter Diagnostic Users Guide
Description:
Saves the modified ASF Configuration Table to the network adapter's non-volatile memory
and exists.
10.14 asfmbox
cmd: asfmbox
Options:
10.15 flshmode
cmd: flshmode
10.16 flshread
cmd: flshread
10.17 chkpxe
cmd: chkpxe
page 63
Broadcom Confidential and Proprietary
Broadcom NetXtreme Ethernet Adapter Diagnostic Users Guide
10.18 dir
cmd: dir
Syntax: dir
10.19 erase
cmd: erase
Options:
10.20 pxeprg
cmd: pxeprg
Description: Program PXE firmware into NVRAM. This command reads PXE code from a
file and program into NVRAM
10.21 flshdev
cmd: flshdev
10.22 bitbang
cmd: bitbang
Description: Generate bitbang pattern to seeprom bus. Enter hex numbers to be written to
seeprom bus. For serial eeprom, use 's' for start, 'p' for stop condition, 'x' with '1..9' specifies
how many residual bits to send. For flash, use 's' for chipSelect, 'p' for cancel chipSelect 'r'
with a number specifies how many bytes to read.
page 64
Broadcom Confidential and Proprietary
Broadcom NetXtreme Ethernet Adapter Diagnostic Users Guide
10.23 seclock
cmd: seclock
10.24 setorture
cmd: setorture
Syntax: setorture
Options:
-c Continue on Error
-p Power reset
-r Random delay
10.25 seinit
cmd: seinit
Syntax: seinit
Options:
10.26 searb
cmd: searb
Description: set/report current NVRAM arbitration bit. Valid arbitraion number is 0..3.
page 65
Broadcom Confidential and Proprietary
Broadcom NetXtreme Ethernet Adapter Diagnostic Users Guide
10.27 seprotect
cmd: seprotect
Description: set gpio pin for NVRAM write protect. Use 'none' to disable write protect
feature.
10.28 selclock
cmd: selclock
Description: set Legacy EEPROM clock value (bit 16-24 of EEPROM addr reg)
10.29 semap
cmd: semap
Syntax: semap
10.30 setwol
cmd: setwol
Options:
-d Disable WOL
-e Enable WOL
10.31 setpxe
cmd: setpxe
Syntax: setpxe
page 66
Broadcom Confidential and Proprietary
Broadcom NetXtreme Ethernet Adapter Diagnostic Users Guide
Options:
-d Disable PXE
-e Enable PXE
10.32 setasf
cmd: setasf
Syntax: setasf
Options:
-d Disable ASF
-e Enable ASF
10.33 secomp
cmd: secomp
Syntax: secomp
Options:
-c continue on error
-f<string> filename
10.34 dreset
cmd: dreset
Syntax: dreset
page 67
Broadcom Confidential and Proprietary
Broadcom NetXtreme Ethernet Adapter Diagnostic Users Guide
10.35 userblock
cmd: userblock
Syntax: userblock
10.36 setmba
cmd: setmba
Syntax: setmba
Options:
-d Disable MBA
10.37 segencrc
cmd: segencrc
10.38 secfg1
cmd: secfg1
Syntax: secfg1
Options:
-v Vendor ID
page 68
Broadcom Confidential and Proprietary
Broadcom NetXtreme Ethernet Adapter Diagnostic Users Guide
-d Vendor Device ID
-s SubSystem Vendor ID
-i SubSystem Device ID
10.39 secfg2
cmd: secfg2
Syntax: secfg2
Options:
-p Product Name
-n Part Number
-e Engineering Change
-s Serial Number
-m Manufacturing ID
-a Asset Tag
-r Part Rev
-v Voltage
10.40 secfg3
cmd: secfg3
Syntax: secfg3
page 69
Broadcom Confidential and Proprietary
Broadcom NetXtreme Ethernet Adapter Diagnostic Users Guide
Options:
-l Led Mode 0:Mac 1:Phy1 2:Phy2 3:S Traffic 4:Shasta Mac 5:Wireless Combo
-e Exp ROM 0:64K 1:128K 2:256K 3:512K 4:1M 5:2M 6:4M 7:8M 8:16M
10.41 secfg4
cmd: secfg4
Syntax: secfg4
Options:
page 70
Broadcom Confidential and Proprietary
Broadcom NetXtreme Ethernet Adapter Diagnostic Users Guide
10.42 secfg5
cmd: secfg5
Syntax: secfg5
Options:
-x GPIO 0 Config 0:Input 1:OutputH 2: OutputL (5714LOM and 5715 LOM only)
-y GPIO 2 Config 0:Input 1:OutputH 2: OutputL (5714LOM and 5715 LOM only)
10.43 setipmi
cmd: setipmi
Syntax: setipmi
page 71
Broadcom Confidential and Proprietary
Broadcom NetXtreme Ethernet Adapter Diagnostic Users Guide
Options:
-d Disable IPMI
-e Enable IPMI
10.44 loadfw
cmd: loadfw
Syntax: loadfw
Options:
-v disable verbose
10.45 cpudtt
cmd: cpudtt
Description: Read and display TX CPU trace (not valid for 5705)
Example:
page 72
Broadcom Confidential and Proprietary
Broadcom NetXtreme Ethernet Adapter Diagnostic Users Guide
2. Read and display 4 locations of TX CPU trace from start from location 0x00.
0:> cpudtt 0 5
000 MainCpuB t0000002f c0000000 00000000 00000000 00000000 00000000
001 t00000000 00000000 00000000 00000000 00000000 00000000
002 t00000000 00000000 00000000 00000000 00000000 00000000
003 t00000000 00000000 00000000 00000000 00000000 00000000
10.46 cpudrt
cmd: cpudrt
Description: Read and display RX CPU trace (not valid for 5705)
Example:
2. Read and display 4 locations of RX CPU trace from start from location 0x00.
0:> cpudrt 0 5
000 t00000030 164414e4 e1000004 00000000 164414e4 00000000
001 t00000032 00000000 08000034 00440400 00001c40 00000000
002 t00000001 00000001 08000034 00440000 00000000 00000000
003 t00000000 00000000 00000000 00000000 00000000 00000000
10.47 cputrace
cmd: cputrace
10.48 haltcpu
cmd: haltcpu
Syntax: haltcpu
page 73
Broadcom Confidential and Proprietary
Broadcom NetXtreme Ethernet Adapter Diagnostic Users Guide
10.49 loadbootcode
cmd: loadbootcode
Options:
-f<string> filename
-v disable verbose
10.50 disasm
cmd: disasm
10.51 step
cmd: step
Syntax: step
10.52 go
cmd: go
Syntax: go
page 74
Broadcom Confidential and Proprietary
Broadcom NetXtreme Ethernet Adapter Diagnostic Users Guide
10.53 showgpr
cmd: showgpr
10.54 pc
cmd: pc
Syntax: pc
10.55 breakpoint
cmd: breakpoint
Syntax: breakpoint
10.56 select
cmd: select
10.57 u
cmd: u
10.58 trap
cmd: trap
page 75
Broadcom Confidential and Proprietary
Broadcom NetXtreme Ethernet Adapter Diagnostic Users Guide
10.59 cpuinfo
cmd: cpuinfo
10.60 cpugprstatus
cmd: cpugprstatus
Syntax: cpugprstatus
10.61 cpugprrestart
cmd: cpugprrestart
Syntax: cpugprrestart
10.62 cpufetch
cmd: cpufetch
Description: Test CPU Instruction fetch logic with 1.1V and 1.3 V setting
Syntax: cpufetch
10.63 dmaw
cmd: dmaw
Syntax; dmaw
Options:
-b byte swap
page 76
Broadcom Confidential and Proprietary
Broadcom NetXtreme Ethernet Adapter Diagnostic Users Guide
-f<string> filename
-n<DEC> iteration
-w word swap
Example:
1. Setup DMA NIC Memory to HOST memory. Using low priority DMA Read and
disable byte swap and enable detail display.
1:> dmaw -a=0 -l=10
Device 1
Host Address : 0x0068bb38
NIC Address : 0x00000000
Length : 0x0010
Priority : Low
page 77
Broadcom Confidential and Proprietary
Broadcom NetXtreme Ethernet Adapter Diagnostic Users Guide
Byte Swap : No
Word Swap : No
10.64 dmar
cmd: dmar
Syntax: dmar
Options:
-w word swap
-b Byte Swap
-c Continousely dma
-n<DEC> iteration
page 78
Broadcom Confidential and Proprietary
Broadcom NetXtreme Ethernet Adapter Diagnostic Users Guide
-w Word Swap
Example:
1. Sup DMA host memory to NIC memory. Using low priority DMA Read and disable
byte swap.
1:> dmar -a=0 -l=100
Device 1
Host Address : 0x0068bb38
NIC Address : 0x00000000
Length : 0x0100
Priority : Low
Byte Swap : No
Word Swap : No
10.65 dma_h
cmd: dma_h
10.66 dma_d
cmd: dma_d
10.67 maclpk
cmd: maclpk
page 79
Broadcom Confidential and Proprietary
Broadcom NetXtreme Ethernet Adapter Diagnostic Users Guide
Example:
10.68 blast
cmd: blast
Description: Blast Packets in Poll Mode and display statistics. Load MAC driver before
running the test.
Syntax: blast
Options:
-I Increment length
page 80
Broadcom Confidential and Proprietary
Broadcom NetXtreme Ethernet Adapter Diagnostic Users Guide
-r Enable Rx
-s Stop on Failure
-t Enable Tx
-P Pause
Example:
1. Load MAC driver and enable transmission.
0:packet> loaddrv
Reinitializing PCI Configuration Space
Bus Number : 1
Device/Funtion : 11/0
Base Address : 0xfb010000
IRQ : 9
Bringing up MAC driver ... OK
PHY calculated ID: 60008162
BCM5702/03 Internal Phy Rev#2
Configuring BCM54xx ... Done
Determining Link Speed ... 1000Base-T Full Duplex
0:packet> blast t
PageUP/PageDN to scroll. Ins/Del toggles refresh. ESC to exit
Total Rate
=================== ==================
Txed Packets (Ring#0) : 1007609 507523
Txed Packets (Ring#1) : 0 0
Txed Packets (Ring#2) : 0 0
Txed Packets (Ring#3) : 0 0
Tx Packets Enqed (Ring#0) : 0 0
Tx Packets Enqed (Ring#1) : 0 0
Tx Packets Enqed (Ring#2) : 0 0
Tx Packets Enqed (Ring#3) : 0 0
Rxed Packets (Ring#00) : 0 0
Rxed Packets (Ring#01) : 0 0
page 81
Broadcom Confidential and Proprietary
Broadcom NetXtreme Ethernet Adapter Diagnostic Users Guide
10.69 nicstats
cmd: nicstats
-c : Clear Statististics
Total Rate
=================== ==================
page 82
Broadcom Confidential and Proprietary
Broadcom NetXtreme Ethernet Adapter Diagnostic Users Guide
CHIP Statistics
=========================================================================
ifHCInOctets : 0 etherStatsFragments : 0
ifHCInUcastPkts : 0 ifHCInMulticastPkts : 0
ifHCInBroadcastPkts : 0 d3StatsFCSErrors : 0
d3StatsAlignmentErrors : 0 xonPauseFramesReceived : 0
xoffPauseFramesReceived: 0 macControlFramesReceived: 0
xoffStateEntered : 0 dot3StatsFramesTooLong : 0
etherStatsJabbers : 0 etherStatsUndersizePkts : 0
inRangeLengthError : 0 outRangeLengthError : 0
etherStatsPkts64Octets : 0 etherStatsPkts65-127 : 0
etherStatsPkts128-255 : 0 etherStatsPkts256-511 : 0
etherStatsPkts512-1023 : 0 etherStatsPkts1024-1522 : 0
etherStatsPkts1523-2047: 0 etherStatsPkts2048-4095 : 0
etherStatsPkts4096-8191: 0 etherStatsPkts8192-9022 : 0
ifHCOutOctets : 0 etherStatsCollisions : 0
outXonSent : 0 outXoffSent : 0
flowControlDone : 0 d3StatsIntlMacTxErrors : 0
d3StatsSingleColFrames : 0 d3StatsMultipleColFrames: 0
dt3StatsDeferredTx : 0 d3StatsExcessiveCol : 0
CHIP Statistics
=========================================================================
d3StatsLateCol : 0 d3Collided2Times : 0
d3Collided3Times : 0 d3Collided4Times : 0
d3Collided5Times : 0 d3Collided6Times : 0
d3Collided7Times : 0 d3Collided8Times : 0
d3Collided9Times : 0 d3Collided10Times : 0
d3Collided11Times : 0 d3Collided12Times : 0
d3Collided13Times : 0 d3Collided14Times : 0
d3Collided15Times : 0 ifHCOutUcastPkts : 0
d3StatsCarSenseErrors : 0 ifOutDiscards : 0
COSIfHCInPkts[00] : 0 COSIfHCInPkts[01] : 0
COSIfHCInPkts[02] : 0 COSIfHCInPkts[03] : 0
COSIfHCInPkts[04] : 0 COSIfHCInPkts[05] : 0
COSIfHCInPkts[06] : 0 COSIfHCInPkts[07] : 0
COSIfHCInPkts[08] : 0 COSIfHCInPkts[09] : 0
COSIfHCInPkts[10] : 0 COSIfHCInPkts[11] : 0
COSIfHCInPkts[12] : 0 COSIfHCInPkts[13] : 0
COSIfHCInPkts[14] : 0 COSIfHCInPkts[15] : 0
COSFrmsDxDueToFilters : 0 nicDmaWriteQueueFull : 0
nicDmaWrHiPQFull : 0 nicNoMoreRxBDs : 0
page 83
Broadcom Confidential and Proprietary
Broadcom NetXtreme Ethernet Adapter Diagnostic Users Guide
CHIP Statistics
=========================================================================
ifInDiscards : 0 ifInErrors : 0
nicRecvThresholdHit : 0 nicDmaReadQueueFull : 0
COSIfHCOutPkts[00] : 0 COSIfHCOutPkts[01] : 0
COSIfHCOutPkts[02] : 0 COSIfHCOutPkts[03] : 0
COSIfHCOutPkts[04] : 0 COSIfHCOutPkts[0
Rxed Packets (Ring#05) : 0 0
Rxed Packets (Ring#06) : 0 0
Rxed Packets (Ring#07) : 0 0
Rxed Packets (Ring#08) : 0 0
Rxed Packets (Ring#09) : 0 0
10.70 ringIndex
cmd:
Syntax: ringindex t | r
Options:
Example:
page 84
Broadcom Confidential and Proprietary
Broadcom NetXtreme Ethernet Adapter Diagnostic Users Guide
10.71 phyctrl
cmd: phyctrl
Syntax: phyctrl
Options:
-r reset PHYs
10.72 txpkt
cmd: txpkt
Syntax: txpkt
Options:
page 85
Broadcom Confidential and Proprietary
Broadcom NetXtreme Ethernet Adapter Diagnostic Users Guide
-I Incremental length
-u Standard Fragmentation
10.73 statusblk
cmd: statusblk
Syntax: statusblk
Example:
0:> statusblk
page 86
Broadcom Confidential and Proprietary
Broadcom NetXtreme Ethernet Adapter Diagnostic Users Guide
10.74 stsblk
cmd: stsblk
Syntax: stsblk
Example:
0:> stsblk
************** STATISTICS Block @ 0x0027c0c0 *************
ifHCInOctets : 0 etherStatsFragments : 0
ifHCInUcastPkts : 0 ifHCInMulticastPkts : 0
ifHCInBroadcastPkts : 0 d3StatsFCSErrors : 0
d3StatsAlignmentErrors : 0 xonPauseFramesReceived : 0
xoffPauseFramesReceived : 0 macControlFramesReceived: 0
xoffStateEntered : 0 dot3StatsFramesTooLong : 0
etherStatsJabbers : 0 etherStatsUndersizePkts : 0
inRangeLengthError : 0 outRangeLengthError : 0
etherStatsPkts64Octets : 0 etherStatsPkts65-127 : 0
etherStatsPkts128-255 : 0 etherStatsPkts256-511 : 0
etherStatsPkts512-1023 : 0 etherStatsPkts1024-1522 : 0
etherStatsPkts1523-2047 : 0 etherStatsPkts2048-4095 : 0
etherStatsPkts4096-8191 : 0 etherStatsPkts8192-9022 : 0
ifHCOutOctets : 0 etherStatsCollisions : 0
outXonSent : 0 outXoffSent : 0
flowControlDone : 0 d3StatsIntlMacTxErrors : 0
d3StatsSingleColFrames : 0 d3StatsMultipleColFrames: 0
dt3StatsDeferredTx : 0 d3StatsExcessiveCol : 0
d3StatsLateCol : 0 d3Collided2Times : 0
d3Collided3Times : 0 d3Collided4Times : 0
d3Collided5Times : 0 d3Collided6Times : 0
d3Collided7Times : 0 d3Collided8Times : 0
d3Collided9Times : 0 d3Collided10Times : 0
d3Collided11Times : 0 d3Collided12Times : 0
d3Collided13Times : 0 d3Collided14Times : 0
d3Collided15Times : 0 ifHCOutUcastPkts : 0
d3StatsCarSenseErrors : 0 ifOutDiscards : 0
COSIfHCInPkts[00] : 0 COSIfHCInPkts[01] : 0
COSIfHCInPkts[02] : 0 COSIfHCInPkts[03] : 0
COSIfHCInPkts[04] : 0 COSIfHCInPkts[05] : 0
COSIfHCInPkts[06] : 0 COSIfHCInPkts[07] : 0
COSIfHCInPkts[08] : 0 COSIfHCInPkts[09] : 0
COSIfHCInPkts[10] : 0 COSIfHCInPkts[11] : 0
COSIfHCInPkts[12] : 0 COSIfHCInPkts[13] : 0
page 87
Broadcom Confidential and Proprietary
Broadcom NetXtreme Ethernet Adapter Diagnostic Users Guide
COSIfHCInPkts[14] : 0 COSIfHCInPkts[15] : 0
COSFrmsDxDueToFilters : 0 nicDmaWriteQueueFull : 0
nicDmaWrHiPQFull : 0 nicNoMoreRxBDs : 0
ifInDiscards : 0 ifInErrors : 0
nicRecvThresholdHit : 0 nicDmaReadQueueFull : 0
COSIfHCOutPkts[00] : 0 COSIfHCOutPkts[01] : 0
COSIfHCOutPkts[02] : 0 COSIfHCOutPkts[03] : 0
COSIfHCOutPkts[04] : 0 COSIfHCOutPkts[05] : 0
COSIfHCOutPkts[06] : 0 COSIfHCOutPkts[07] : 0
COSIfHCOutPkts[08] : 0 COSIfHCOutPkts[09] : 0
COSIfHCOutPkts[10] : 0 COSIfHCOutPkts[11] : 0
COSIfHCOutPkts[12] : 0 COSIfHCOutPkts[13] : 0
COSIfHCOutPkts[14] : 0 COSIfHCOutPkts[15] : 0
nicDmaRdHPQueueFull : 0 nicSendDataCompQueueFull: 0
nicRingSetSdPIdx : 0 nicRingStatusUpdate : 0
nicInterrupts : 0 nicAvoidedInterrupts : 0
nicSendThresholdHit : 0
Phy CRC counter : 0
10.75 txcfg
cmd: txcfg
Syntax: txcfg
Example:
0:> txcfg
1. Source MAC : 10:11:12:13:14:15
2. Destination MAC : 00:01:02:03:04:05
3. Length (14-65535) : 1514
4. Packet Type {Non(0),EthV2(1),802.3(2),SNAP(3)}: Ethernet II
5. Protocol Field {Non(0),IP(1),ARP(2),BRM(3)} : IP
6. Source IP : 10.2.1.1
7. Destination IP : 10.2.1.2
8. IP Protocol Field { UDP(17), TCP(6) } : UDP
80. Source Port : 100
81. Destination Port : 200
9. IP Option Length (32-bit Words) : 0
10. TCP Option Length (32-bit Words) : 0
11. Pattern { As-is(0), Inc(1), Random(2), 0s(3), FFs(4),
AA55(5), 55AA(6),IP_Iden-Inc(7),Load from file(8)
00ff8(9) 00ff16(10), 00ff32(11), 00ff(12)} : Increment (00,01,02 ...)
12. IP Checksum Offload{ YES(1), NO(0) } : NO
13. TCP/UDP Checksum Offload { YES(1), NO(0) } : NO
14. TCP/UDP Pseudo Checksum Only { YES(1), NO(0) }: NO
15. Insert VLAN Tag { YES(1), NO(0) } : NO
16. VLAN Tag : 1
17. Random IP header field { YES(1), NO(0) } : NO
18. Random TCP/UDP header field { YES(1), NO(0) } : NO
0. Exit
10.76 rxcfg
cmd: rxcfg
page 88
Broadcom Confidential and Proprietary
Broadcom NetXtreme Ethernet Adapter Diagnostic Users Guide
Syntax: rxcfg
Example:
0:> rxcfg
1. Host Loopback { Enable(1), Disable(0) } : Disable
2. Modify Rx Packet { Enable(1), Disable(0) } : Disable
3. Dump Rx Packet { None(1),Hex(2), Decode(3) } : None
4. Dump Rx Length : 64
5. Tx Fragment Length : 1518
6. Tx Flags : 0000
7. Tx VLAN Tag : 0000
8. Tx Ring Number : 0
9. Tx Generate CRC { Enable(1), Disable(0) } : Enable
10. Capture Rx Pacpket { Enable(1), Disable(0) } : Enable
11. Rx Mask
0. Exit
10.77 tprot
cmd: tprot
Description: Blast with TPROT Packets. This command is same as command 'blast -trm'
Syntax: tprot
Options:
10.78 qstat
cmd: qstat
Description: Get a quick NIC statistic. [qstat string] used to select specific statistic.
Options:
-c Clear statistic
10.79 drvrcfg
cmd: drvrcfg
Syntax: drvrcfg
page 89
Broadcom Confidential and Proprietary
Broadcom NetXtreme Ethernet Adapter Diagnostic Users Guide
Options:
10.80 irt
cmd: irt
Syntax: irt
Options:
10.81 macmrd
cmd: macmrd
Syntax: macmrd
Options:
10.82 miimrd
cmd: miimrd
page 90
Broadcom Confidential and Proprietary
Broadcom NetXtreme Ethernet Adapter Diagnostic Users Guide
Syntax: miimrd
Options:
10.83 pcimrd
cmd: pcimrd
Syntax: pcimrd
Options:
10.84 mwrite
cmd: mwrite
Example:
10.85 mread
cmd: mread
page 91
Broadcom Confidential and Proprietary
Broadcom NetXtreme Ethernet Adapter Diagnostic Users Guide
Example:
10.86 mdev
cmd: mdev
Example:
0:> mdev 1
Phy Address = 1
10.87 miimode
cmd: miimode
Example:
0:> miimode 0
Setting MII auto mode to OFF
0:> miimode 1
Setting MII auto mode to ON
0:> miimode
page 92
Broadcom Confidential and Proprietary
Broadcom NetXtreme Ethernet Adapter Diagnostic Users Guide
10.88 lbertram
Command: lbertram
Options:
-c<DEC> channel number (def=0)
-e enable BIST
10.89 dbertram
Command: dbertram
Options:
-b<HEX> Begin of BIST RAM (def=00000000)
10.90 bertstats
Command: bertstats
Syntax: bertstats
10.91 rm
Command: rm
Syntax: rm
page 93
Broadcom Confidential and Proprietary
Broadcom NetXtreme Ethernet Adapter Diagnostic Users Guide
10.92 mrloop
Command: mrloop
Description: loop on MII read. This is special test routine for MII read. It loops on MII
register read util user abort or if value is zero.
10.93 phymse
Command: phymse
Syntax: phymse
Options:
-p Polling continuously at 100ms interval
10.94 initphy
Command: initphy
Syntax: initphy
10.95 memsearch
Command: memsearch
Description: Search a Data Pattern in Memory. The default, begin address = 0, and len =
0x20000. The data pattern must be specified.
10.96 read
cmd: read
page 94
Broadcom Confidential and Proprietary
Broadcom NetXtreme Ethernet Adapter Diagnostic Users Guide
* = SRAM (32)
Example:
10.97 write
cmd: write
page 95
Broadcom Confidential and Proprietary
Broadcom NetXtreme Ethernet Adapter Diagnostic Users Guide
* = SRAM (32)
Example:
2. Write to register.
0:> write #10 f4000004
3. Write to SRAM
0:> write *10 10001
10.98 poll
cmd: poll
page 96
Broadcom Confidential and Proprietary
Broadcom NetXtreme Ethernet Adapter Diagnostic Users Guide
* = SRAM (32)
10.99 setbit
cmd: setbit
* = SRAM (32)
page 97
Broadcom Confidential and Proprietary
Broadcom NetXtreme Ethernet Adapter Diagnostic Users Guide
10.100 clearbit
cmd: clearbit
* = SRAM (32)
10.101 readbit
cmd: readbit
page 98
Broadcom Confidential and Proprietary
Broadcom NetXtreme Ethernet Adapter Diagnostic Users Guide
* = SRAM (32)
10.102 cread
Command: cread
Description: Read PCI configuration Space of specified device. default - 32 bits read, S -
16 bits read, X - 8 bits read
Syntax: cread <bus> <dev> <func> [S|X]<begin> [-end | len]
10.103 cwrite
Command: cwrite
Description: Write PCI configuration Space of specified device. default - 32 bits read, S -
16 bits read, X - 8 bits read
Syntax: cwrite <bus> <dev> <func> [S|X]<begin> [-end | len] data
10.104 vpdtest
cmd: vpdtest
Description: Run VPD Memory Test. Write designed pattern toVPD storage. Then read
back and compare with designed pattern.
Syntax: vpdtest
Options:
page 99
Broadcom Confidential and Proprietary
Broadcom NetXtreme Ethernet Adapter Diagnostic Users Guide
-n<DEC> iteration
10.105 regtest
cmd: regtest
10.106 miitest
cmd: miitest
Description: Run MII Memory Test. PHY registers read write test
10.107 msi
cmd: msi
Syntax: msi
Options:
-c<HEX> message count (2 to powered of c) (def=00000003)
page 100
Broadcom Confidential and Proprietary
Broadcom NetXtreme Ethernet Adapter Diagnostic Users Guide
10.108 memtest
cmd: memtest
Description: Test memory blocks such as scratch pad, BD sram, DMA sram, Mbuf,
external SRAM. Running diagcfg can configure memory block ranges. See diagcfg for
detail. Driver must be unloaded.
Options:
-b Test BD SRAM
10.109 setest
cmd: setest
Options:
-e extensive test
page 101
Broadcom Confidential and Proprietary
Broadcom NetXtreme Ethernet Adapter Diagnostic Users Guide
-n<DEC> iteration
-q quiet mode
10.110 bist
cmd: bist
10.111 nictest
cmd: nictest
Description: Run a set of NIC Tests. NIC test can include memory test, serial eeprom test,
interrupt test, packet exchange, MAC registers test, Mii registers test, cpu test, dma test.
This test can to be configured by running diagcfg. See diagcfg for details. If a test
list is not entered below then a set of default tests are run.
Options:
-n<DEC> iteration
10.112 intrtest
cmd: intrtest
page 102
Broadcom Confidential and Proprietary
Broadcom NetXtreme Ethernet Adapter Diagnostic Users Guide
Options:
10.113 pkttest
Command: pkttest
Description: Perform MAC and/or PHY loopback test. This test will send 100 packets in
incremental length and check for contents of loopbacked packets.
Options:
10.114 cputest
cmd: cputest
Description: TX / RX CPU Test. This test needs an input CPU file in the same location as
b57diag.exe. The default file name is cpu.bin or cpu05.bin unless specified by f option.
Options:
10.115 dmatest
cmd: dmatest
Options:
page 103
Broadcom Confidential and Proprietary
Broadcom NetXtreme Ethernet Adapter Diagnostic Users Guide
-n<DEC> iteration
10.116 teste
Command: teste
Description: The command enables tests. It effects nictest, regtest, pkttest, and memtest
commands. The test must starts with test group alpha (a-d). If no number is
entered, all tests in that group are enabled.
Example: teste a12bc -- Enable test a1, a2, all tests in group b and c
teste ab cd -- Enables all tests
teste -- Display enabled tests
10.117 testd
Command: testd
Description: The command disables tests. It effects nictest, regtest, pkttest, and memtest
commands. The test must starts with test group alpha (a-d). If no number is
entered, all tests in that group are disabled.
Example: testd a12bc -- Disable test a1, a2, and all tests in group b and c.
testd ab cd -- Disables all tests.
testd -- Display disabled tests.
10.118 asftest
cmd: asftest
Syntax: asftest
page 104
Broadcom Confidential and Proprietary
Broadcom NetXtreme Ethernet Adapter Diagnostic Users Guide
Options:
-n<DEC> iteration
10.119 bustest
Command: bustest
Syntax: bustest
Options:
-n<DEC> iteration
-L Loop
There are total 260 test cases (258 unique tests cases) which are described as follows:
page 105
Broadcom Confidential and Proprietary
Broadcom NetXtreme Ethernet Adapter Diagnostic Users Guide
If you run bustest command without any parameters, it will perform DMA testing on all 260 patterns with 10
iterations per pattern and different data length in each iteration. First eight bytes of data are used to store the
following info for debug:
10.120 sramtest
cmd: sramtest
page 106
Broadcom Confidential and Proprietary
Broadcom NetXtreme Ethernet Adapter Diagnostic Users Guide
10.121 msitest
cmd: msitest
Syntax: msitest
Options:
-n<DEC> iteration
10.122 romtest
cmd: romtest
Syntax: romtest
Options:
-n<DEC> iteration
10.123 gpiotest
cmd: gpiotest
Syntax: gpiotest
Options:
-n<DEC> iteration
10.124 cpudiag
cmd: cpudiag
Syntax: cpudiag
Options:
page 107
Broadcom Confidential and Proprietary
Broadcom NetXtreme Ethernet Adapter Diagnostic Users Guide
-n<DEC> Iteration
-r Register Test
10.125 pcicfgtest
cmd: pcicfgtest
Syntax: pcicfgtest
Options:
-n<DEC> iteration
10.126 petest
cmd: petest
10.127 errctrl
cmd: errctrl
page 108
Broadcom Confidential and Proprietary
Broadcom NetXtreme Ethernet Adapter Diagnostic Users Guide
Program stops
l - Loop on Error
Program will retry the same test
s - Skip on Error
Program will skip the rest of the present test
10.128 sedvt
cmd: sedvt
Description: Perform NVRAM dvt test. When 'init' subcommand is entered, the NVRAM
is initialized into pseudo random pattern. The original content is DESTROYED.
Options:
-a Access test
-f force
-p pause
10.129 miimisctest
cmd: miimisctest
Syntax: miimisctest
Options:
-n<DEC> iteration
10.130 cpugprtest
cmd: cpugprtest
page 109
Broadcom Confidential and Proprietary
Broadcom NetXtreme Ethernet Adapter Diagnostic Users Guide
Syntax: cpugprtest
Options:
-u run Address Up
10.131 dmashasta
cmd: dmashasta
Syntax: dmashasta
Options:
10.132 binchksum
cmd: binchksum
Description: Verify the checksum of each piece of firmware in the input file that contains a
complete NVRAM image.
10.133 pmdcfg
cmd: pmdcfg
Syntax: pmdcfg
Options:
page 110
Broadcom Confidential and Proprietary
Broadcom NetXtreme Ethernet Adapter Diagnostic Users Guide
10.134 pmpd
cmd: pmpd
Description: Power Down MAC. Input file wol.txt should be found in the same location
of b57diag.exe. The input file contains patterns. If the file name is not specified, data zero
will be used.
Options:
10.135 intr
cmd: intr
Syntax: intr
Example:
0:> intr
Interrupt Count : 48337
IPC MASK : 0xb8 0x0c
IPC IS1 IS2 : 0x00 0x00
IPC IRR1 IRR2 : 0x18 0x00
IPC ILCR1 ILCR2 : 0x20 0x0e
Worst Intr. Latency : 54476 CPU clocks/50 uS
10.136 intrctrl
cmd: intrctrl
page 111
Broadcom Confidential and Proprietary
Broadcom NetXtreme Ethernet Adapter Diagnostic Users Guide
Example:
1. Mask current interrupt
0:irq> intrctrl m
Masking Interrupt 10
2. Unmask current interrupt
0:irq> intrctrl u
Unmasking Interrupt 10
10.137 intt
cmd: intt
Syntax: intt
10.138 mbuf
cmd: mbuf
Options:
-c<HEX> command
0 - displays a MBUF
1 - displays a MBUF chain
2 - displays general MBUF information
3 - displays MBUF Cluster
4 - Check MBUF header corruption
5 - Dump all MBUF headers
-w MBUF workaround
Example:
page 112
Broadcom Confidential and Proprietary
Broadcom NetXtreme Ethernet Adapter Diagnostic Users Guide
10.139 loaddrv
cmd: loaddrv
Syntax: loaddrv
Options:
Example:
0:> loaddrv
Reinitializing PCI Configuration Space
Bus Number : 1
Device/Funtion : 11/0
Base Address : 0xfb010000
IRQ : 9
Bringing up MAC driver ... OK
PHY calculated ID: 60008162
BCM5702/03 Internal Phy Rev#2
Configuring BCM54xx ... Done
Determining Link Speed ... 1000Base-T Full Duplex
10.140 unloaddrv
cmd: unloaddrv
Syntax: unloaddrv
Example:
0:> unloaddrv
page 113
Broadcom Confidential and Proprietary
Broadcom NetXtreme Ethernet Adapter Diagnostic Users Guide
10.141 machalt
cmd: machalt
Syntax: machalt
Example:
0:> machalt
Halting MAC OK
10.142 ftq
cmd: ftq
Syntax: ftq
Example:
0:> ftq
10.143 addmc
cmd: addmc
Example:
0:> addmc FF:FF:00:0A:00:00
page 114
Broadcom Confidential and Proprietary
Broadcom NetXtreme Ethernet Adapter Diagnostic Users Guide
10.144 delmc
cmd: delmc
Example:
0:> delmc FF:FF:00:0A:00:00
10.145 txmacdes
cmd: txmacdes
10.146 txmacsrc
cmd: txmacsrc
10.147 chklddrv
cmd: chklddrv
Syntax: chklddrv
10.148 vlantag
cmd: vlantag
Syntax: vlantag
Options:
page 115
Broadcom Confidential and Proprietary
Broadcom NetXtreme Ethernet Adapter Diagnostic Users Guide
10.149 reg
cmd: reg
Description: register wizard. This command allows user to view edit registers.
10.150 exit
cmd: exit
Syntax: exit
10.151 debug
cmd: debug
1: Dump TX / RX Stats
Example:
10.152 gpiowrite
cmd: gpiowrite
page 116
Broadcom Confidential and Proprietary
Broadcom NetXtreme Ethernet Adapter Diagnostic Users Guide
Example:
Writing 1 to GPIO#1
10.153 gpioread
cmd: gpioread
Syntax: gpioread
Example:
10.154 pxecpy
cmd: pxecpy
Description: Load PXE Code to MBUF Memory. The file name must be specified in the
parameter.
Options:
-f<string> filename
10.155 device
cmd: device
Description: Show or Switch Device. If no parameter is entered, it will display all device
available.
page 117
Broadcom Confidential and Proprietary
Broadcom NetXtreme Ethernet Adapter Diagnostic Users Guide
Options:
10.156 version
cmd: version
Syntax: version
10.157 help
cmd: help
Description: Enter command group for the list of available commands. If no parameter is
entered, all commands are displayed. Example: help vpd. For each command help, type the
command and then '?'. Example: memtest ?
10.158 ?
cmd: ?
Syntax: ? [vpd|nvram|cpu|dma|packet|mii|mem|test|power|irq|mac|misc]
10.159 radix
cmd: radix
Description: Change System Radix. Radix must be 2-16. Radix used for number entry. 16
means enter number in hex, and 10 means in decimal.
10.160 nolog
cmd: nolog
page 118
Broadcom Confidential and Proprietary
Broadcom NetXtreme Ethernet Adapter Diagnostic Users Guide
Syntax: nolog
10.161 log
cmd: log
Syntax: log
Options:
10.162 pciinit
cmd: pciinit
Syntax: pciinit
10.163 pciscan
cmd: pciscan
Syntax: pciscan
Example:
0:> pciscan
Scanning PCI devices ...
Bus Dev Func Vendor ID Device ID Class Base/IO Address IRQ
=== === ==== ========= ========= ========== ================= ===
0 0 0 8086 7190 06:00:00 00000000:F8000008 0
0 1 0 8086 7191 06:04:00 00000000:00000000 0
0 7 0 8086 7110 06:01:00 00000000:00000000 0
0 7 1 8086 7111 01:01:80 00000000:00000000 0
0 7 2 8086 7112 0C:03:00 00000000:00000000 9
0 7 3 8086 7113 06:80:00 00000000:00000000 0
0 14 0 12AE 0003 02:00:00 00000000:F4000004 10
1 0 0 1002 4742 03:00:00 00009001:F5000000 11
10.164 dos
cmd: dos
page 119
Broadcom Confidential and Proprietary
Broadcom NetXtreme Ethernet Adapter Diagnostic Users Guide
10.165 diagcfg
cmd: diagcfg
Description: Configure diagnostics parameter for Memory tests and Manufacturing test
(NIC test).
Syntax: diagcfg
Example:
0:misc> diagcfg
page 120
Broadcom Confidential and Proprietary
Broadcom NetXtreme Ethernet Adapter Diagnostic Users Guide
page 121
Broadcom Confidential and Proprietary
Broadcom NetXtreme Ethernet Adapter Diagnostic Users Guide
21. Send Ring Size { 32, 64, 128, 256, 512 } : 512
22. Rx Ring Size { 32, 64, 128, 256, 512 } : 512
0. Exit to previous menu
10.166 reset
cmd: reset
Syntax: reset
Options:
10.167 quit
cmd: quit
Syntax: quit
10.168 smbus
cmd: smbus
Description: ASF terminal. Run this command to access SMBus, the parameter a1 and a2
are one byte value to specify the NIC SMBus Addresses. It sets to 0 by default.
Options:
page 122
Broadcom Confidential and Proprietary
Broadcom NetXtreme Ethernet Adapter Diagnostic Users Guide
10.169 cls
cmd: cls
Syntax: cls
10.170 loop
cmd: loop
10.171 dbmode
cmd: dbmode
10.172 asf
cmd: asf
Description: run asf monitor program with option to Load asf firmware image. This
routine loads firmware images into CPU memory and execute the RXCPU. The default
files names are asfinit.bin, asfcpua.bin, and asfcpub.bin, which can be over written by
parameters.
Options:
10.173 new
cmd: new
page 123
Broadcom Confidential and Proprietary
Broadcom NetXtreme Ethernet Adapter Diagnostic Users Guide
Description: Display new command available. The default parameter for [n] is 10
10.174 asfprg
cmd: asfprg
Description: Program asf firmware into NVRAM. The default files names are asfinit.bin,
asfcpua.bin, and asfcpub.bin, which can be over written by parameters.
Options:
10.175 sleep
cmd: sleep
10.176 fillpattern
cmd: fillpattern
Options:
10.177 inp
cmd: inp
page 124
Broadcom Confidential and Proprietary
Broadcom NetXtreme Ethernet Adapter Diagnostic Users Guide
Options:
-w word size
10.178 outp
cmd: outp
Options:
-w word size
10.179 switch
cmd: switch
Options:
10.180 do
cmd: do
Options:
page 125
Broadcom Confidential and Proprietary
Broadcom NetXtreme Ethernet Adapter Diagnostic Users Guide
-c continue on error
-e echo command
10.181 txfill
cmd: txfill
Options:
-f<string> filename
10.182 wbuf
cmd: wbuf
Description: Write tx|rx buffer with specified data at offset. Only works with static buffer
selection A.
page 126
Broadcom Confidential and Proprietary
Broadcom NetXtreme Ethernet Adapter Diagnostic Users Guide
10.183 rbuf
cmd: rbuf
10.184 cpbuf
cmd: cpbuf
Description: Copy the content of rx buffer into tx buffer. Only works with static buffer
selection A.
10.185 echo
cmd: echo
10.186 pause
cmd: pause
Description: Pause for user to hit a key. If no parameter is entered, 'press any key to
continue...' will be displayed
10.187 q
cmd: q
Syntax: q
10.188 verbose
cmd: verbose
page 127
Broadcom Confidential and Proprietary
Broadcom NetXtreme Ethernet Adapter Diagnostic Users Guide
Syntax: verbose
Options:
-c toggles CONSOLE
-e toggles ERROR
-i toggles IO
-d toggles DEBUG
-p toggles PRINTER
-w toggles WARNING
10.189 beep
cmd: beep
Description: Create a beep sound. The default to beep once. If parameter 'n' is entered, it
beeps n times
10.190 var
cmd: var
Syntax: var
10.191 meminfo
cmd: meminfo
Syntax: meminfo
10.192 delvar
cmd: delvar
page 128
Broadcom Confidential and Proprietary
Broadcom NetXtreme Ethernet Adapter Diagnostic Users Guide
Syntax: delvar
10.193 regdump
cmd: regdump
Syntax: regdump
Options:
-f<string> filename
-m MII Registers
10.194 regcomp
cmd: regcomp
Description: Compare register content to a file. his command may be used together with
regdump to find out any register got changed.
Options:
-f<string> filename
-m MII Registers
10.195 regrestore
cmd: regrestore
Description: Restore register content from a file. This command may be used together with
regdump to restore register got changed.
page 129
Broadcom Confidential and Proprietary
Broadcom NetXtreme Ethernet Adapter Diagnostic Users Guide
Options:
-f<string> filename
-m MII Registers
10.196 nvsize
cmd: nvsize
Description: Programs the NVRAM and TPM size in Kbyte to NVRAM. If [NVRAM] &
[TPM] options are entered, they are programmed to NVRAM. If [NVRAM] & [TPM]
options are NOT entered, calculated values are programmed. Use a zero value for
[NVRAM] & [TPM] to erase the programmed values.
Options:
10.197 aspm
cmd: aspm
Description: Configure the PCI-E Link power state operation at the root complex and the
device under test. Power state option described below.
0 ASPM disable
s ASPM L0s enabled
1 ASPM L1 enabled
a ASPM L0s and L1 enabled
Syntax: aspm [-e 0|s|1|a] [-r 0|s|1|a] [-x 0|1] [-d] [-i]
Options:
-x<DEC> Enable ExtendedSync mode for root complex and endpoint (def=0)
page 130
Broadcom Confidential and Proprietary
Broadcom NetXtreme Ethernet Adapter Diagnostic Users Guide
10.198 dids
cmd: dids
Description: The feature outputs the following information: PCI DID, VID, SDID &
SVID; MAC address, Firmware revision, PXE, PXESpd, WOL, ASF, MBA, Bond Rev.
This information can be used to verify the setup of a chip after a firmware upgrade.
Syntax: dids
10.199 serial
cmd: serial
Description: Compares the serial number to defaults or the provided values. This PCI
capability testing is only applicable to Shasta C stepping (i.e. BCM5752Cx) family.
10.200 power
cmd: power
Description: Verify the power function of PCI capability. This PCI capability testing is
only applicable to Shasta C stepping (i.e. BCM5752Cx) family.
Syntax: power
10.201 readbr
cmd: readbr
Syntax: readbr
10.202 writebr
cmd: writebr
Syntax: writebr
10.203 findbridge
cmd: findbridge
page 131
Broadcom Confidential and Proprietary
Broadcom NetXtreme Ethernet Adapter Diagnostic Users Guide
Syntax: findbridge
10.204 bridge
cmd: bridge
Syntax: bridge
10.205 pere
cmd: pere
10.206 perd
cmd: perd
10.207 peclr
cmd: peclr
10.208 pechk
cmd: pechk
10.209 iscsiprg
cmd: iscsiprg
page 132
Broadcom Confidential and Proprietary
Broadcom NetXtreme Ethernet Adapter Diagnostic Users Guide
Description: Program ISCSI firmware into NVRAM. This command reads ISCSI code
from a file and program into NVRAM. There are 2 types of ISCSI firmware image. One
only contains ISCSI Boot Firmware. The other also contains ISCSI CFG Block and ISCSI
CFG Program. ISCSI Boot Firmware will be programmed by default. ISCSI CFG Block
will be programmed if either there is no ISCSI CFG Block present in NVRAM or -c
option has been entered. ISCSI CFG Program will be programmed only when -p option
has been entered.
Options:
10.210 umpecho
cmd: umpecho
Options:
10.211 umpcfg
cmd: umpcfg
page 133
Broadcom Confidential and Proprietary
Broadcom NetXtreme Ethernet Adapter Diagnostic Users Guide
Syntax: umpcfg
1 UMP Settings
Description:
Provides the sub menu with the options described below.
0 Return to previous menu.
1 Enable/Disable SetLink
2 Enable/Disable RDIStallTimer
3 Set RDIStallTimerValue
4 DisableHostHashTable
5 Enable/Disable HostEchoControl
6 Enable/Disable Exceed_375ma_rule
7 Link Speed
0 : Return to previous menu
1 : Speed 10/100 (default)
2 : Speed ALL
3 : Speed 10
4 : Speed 100
5 : Speed 1000
6 : Duplex
7 : Auto/Force Mode
8 : Pause Capability
10.212 setump
cmd: setump
Syntax: setump
Options:
-d Disable UMP
-e Enable UMP
10.213 secfgsb1
cmd: secfgsb1
Syntax: secfgsb1
page 134
Broadcom Confidential and Proprietary
Broadcom NetXtreme Ethernet Adapter Diagnostic Users Guide
Options:
-v Vendor ID
-z Vendor Device ID
-s SubSystem Vendor ID
-i SubSystem Device ID
-B Led Mode 0: Mac 1:Phy1 2:Phy2 3:S Traffic 4:Shasta Mac 5:Wireless Combo
10.214 secfgsb2
cmd: secfgsb2
Syntax: secfgsb2
Options:
page 135
Broadcom Confidential and Proprietary
Broadcom NetXtreme Ethernet Adapter Diagnostic Users Guide
Pwr Mgt St = 0: D0 1: D1 2: D2 3: D3
10.215 secfgsb3
cmd: secfgsb3
Syntax: secfgsb3
Options:
10.216 secfghwsb1
cmd: secfghwsb1
Syntax: secfghwsb1
Options:
-z Vendor Device ID
-s SubSystem Vendor ID
-i SubSystem Device ID
-w WOL
page 136
Broadcom Confidential and Proprietary
Broadcom NetXtreme Ethernet Adapter Diagnostic Users Guide
10.217 secfghwsb2
cmd: secfghwsb2
Syntax: secfghwsb2
Options:
-e Engineering Change
-s Serial Number
-m Manufacturing ID
10.218 secfghwsb3
cmd: secfghwsb2
Syntax: secfghwsb2
Options:
-i VLAN ID
page 137
Broadcom Confidential and Proprietary
Broadcom NetXtreme Ethernet Adapter Diagnostic Users Guide
page 138
Broadcom Confidential and Proprietary
Broadcom NetXtreme Ethernet Adapter Diagnostic Users Guide
11 ERROR MESSAGES
/* NO_ERROR 0 */ "",
/* ERR_IND_REG_ERR 1 */ "Got 0x%08X @ 0x%08X. Expected 0x%08X",
/* ERR_CHIP_RUNNING 2 */ "Cannot perform task while chip is running",
/* ERR_BAD_NIC 3 */ "Invalid NIC device",
/* ERR_READ_ONLY_CLEAR 4 */ "Read only bit %s got changed after writing zero at
offset 0x%X",
page 139
Broadcom Confidential and Proprietary
Broadcom NetXtreme Ethernet Adapter Diagnostic Users Guide
/* ERR_ROM_ENABLE 100 */ "Expansion ROM Desired bit is not set after loading
firmware",
/* ERR_GPIO 101 */ "GPIO%d Error, write=%d, read=%d",
page 140
Broadcom Confidential and Proprietary
Broadcom NetXtreme Ethernet Adapter Diagnostic Users Guide
page 141
Broadcom Confidential and Proprietary
Broadcom NetXtreme Ethernet Adapter Diagnostic Users Guide
/* ERR_CPU_MEM2 164 */ "%s CPU memory error @ %08X, expected %08X but got
%08X",
/* ERR_SERIAL1 165 */ "PCIE Serial Device Number Capability Not Found.",
/* ERR_SERIAL2 166 */ "PCIE Serial Device Number Match Failure.",
/* ERR_POWER1 167 */ "PCIE Power Budget Capability Not Found.",
/* ERR_POWER2 168 */ "PCIE Power Budget Error (ad=%d, saw=%x, exp=%x).",
/* ERR_UMP_VS_DEV 169 */ "UMP VS Device Error",
/* ERR_HM_BR_LANES 170 */"HM Bridge Lanes Error: %d PCI-E lanes are actually
linked and running, expected %d.",
/* ERR_BRIDGE 171 */ "Invalid bridge.",
/* ERR_NO_LINK10 172 */ "No good link at 10 Mbits/s! Check Loopback plug",
/* ERR_NO_LINK100 173 */ "No good link at 100 Mbits/s! Check Loopback plug",
/* ERR_NO_LINK1000 174 */ "No good link at 1000 Mbits/s! Check Loopback plug",
/* ERR_DMA_SHASTA 175 */ "\nFailed! Saw=%x @ %x, Exp=%x from %x\n",
/* ERR_SECFG_CONT 176 */ "SECFG Config Error. Line %d",
/* ERR_SECFG_INVALID 177 */ "Invalid Argument in SECFG Config File at Line %d",
/* ERR_NV_SELFBOOT 178 */ "NVRAM is SELFBOOT",
/* ERR_PART_NUM 179 */ "Error Part Number Chick Failed"
/* ERR_UMPECHO 180 */ "UMP Echo - Debug Mode",
/* ERR_IMAGE_CHECKSUM 181 */ "Firmware image checksum error",
/* ERR_INVALID_SMB 182 */ "Invalid SMB Address",
/* ERR_LOM_CFG 183 */ "LOM CONF Bit mismatch in Reg 178 and Reg 7C04",
/* ERR_ISCSI_PGM 184 */ "iSCSI Programming Error",
/* ERR_BAD_CHIP_REV 185 */ "Invalid Chip Rev.",
/* ERR_NO_CPU 186 */ "Device has no internal CPU",
/* ERR_BAD_PARITY_VALUE 187 */ "Invalid Parity.",
/* ERR_BAD_VPD_CHKSUM 188 */ "Invalid VPD Checksum",
/* ERR_ESWITCH_CTRL_TO 189 */ "Halting E Switch Ctrl time out. %x",
/* ERR_ESWITCH_EVENT 190 */ "ESWITCH event not set. %x",
/* ERR_ESWITCH_TO 191 */ "E Switch time out. %x",
/* ERR_ESWITCH_ARBIT_TO 192 */ "Halting E Switch Ctrl Arbitor time out. %x",
/* ERR_ESWITCH_INTR 193 */ "ESWITCH interrupt not set. %d",
/* ERR_ESWITCH_STATUS 194 */ "ESWITCH status word not set. %x"
page 142
Broadcom Confidential and Proprietary