background image

Broadcom NetXtreme Ethernet Adapter • Diagnostic User’s Guide 

page 140 

Broadcom Confidential and Proprietary 

   -n<DEC>     iteration (The default iteration is 1. 0 means run forever) 

10.121 

msi 

Command:

 msi  

Description:

 Run MSI Test Manually 

Syntax: 

msi  

 

 

Options: 

   -c<HEX>   message count (2 to powered of c) (def=00000003) 

   -d 

option removed, kept for bcmediag compatibility 

   -i 

initializing MSI block 

   -o<DEC> 

offset (def=0) 

10.122 

memtest 

Command:

 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. 

Syntax:

 memtest [iteration] 

Options:

 

   -b 

Test BD SRAM 

   -c 

Test MBUF special 

   -d 

Test DMA SRAM 

   -e 

Test External Memory 

   -m 

Test MBUF SRAM 

   -n<DEC> 

iteration (The default iteration is 1. 0 means run forever) 

   -p 

Test CPU GPRs 

   -s 

Test Scratch Pad 

   -x 

Test MBUF SRAM via DMA 

Summary of Contents for NetXtreme

Page 1: ...NetXtreme Ethernet Adapter Diagnostic User s Guide page 1 Broadcom Confidential and Proprietary Broadcom NetXtreme Ethernet Adapter Diagnostic User s Guide B57diag DOS Version 15 0 B57diag UEFI Versi...

Page 2: ...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 resul...

Page 3: ...t 17 3 3 6 B6 External SRAM Test 18 3 3 7 B7 CPU GPR Test 18 3 4 MISC TESTS C GROUP 18 3 4 1 C1 EEPROM Test 18 3 4 2 C2 CPU Test 18 3 4 3 C3 DMA Test 18 3 4 4 C4 MII Test 19 3 4 5 C5 VPD Test 19 3 4 6...

Page 4: ...3 8 8 G8 APE CPU GRC Reset Test 27 3 8 9 G9 APE USB Test UEFI only 27 4 COMMAND LINE OPTION PARAMETERS 29 5 RECOVER DEVICE FROM CORRUPT NVAM 44 6 EEPROM TXT FORMAT 45 7 USER INTERFACE COMMANDS 50 8 SP...

Page 5: ...SECFG1 98 10 42 SECFG2 99 10 43 SECFG3 99 10 44 SECFG4 100 10 45 SECFG5 100 10 46 SETIPMI 101 10 47 LOADFW 102 10 48 CPUDTT 102 10 49 CPUDRT 103 10 50 CPUTRACE 103 10 51 HALTCPU 103 10 52 LOADBOOTCOD...

Page 6: ...0 96 MDEV 128 10 97 M2DEV 128 10 98 MIIMODE 129 10 99 LBERTRAM 129 10 100 DBERTRAM 129 10 101 BERTSTATS 130 10 102 RM 130 10 103 MRLOOP 130 10 104 PHYMSE 130 10 105 INITPHY 130 10 106 TAPDUMP 130 10 1...

Page 7: ...PD 150 10 149 INTR 151 10 150 INTRCTRL 151 10 151 INTT 151 10 152 MBUF 151 10 153 LOADDRV 152 10 154 UNLOADDRV 153 10 155 MACHALT 153 10 156 FTQ 153 10 157 ADDMC 154 10 158 DELMC 154 10 159 TXMACDES 1...

Page 8: ...10 205 VAR 168 10 206 MEMINFO 168 10 207 DELVAR 169 10 208 REGDUMP 169 10 209 REGCOMP 169 10 210 REGRESTORE 170 10 211 NVSIZE 170 10 212 ASPM 170 10 213 DIDS 171 10 214 SERIAL 171 10 215 POWER 171 10...

Page 9: ...180 10 241 LINKINTRTEST 180 10 242 IPV6EXTLD 180 10 243 IPV6EXTEN 181 10 244 CFGPAGESIZE 181 10 245 CPMU 181 10 246 MDIO 182 10 247 WAIT 182 10 248 IPSECSUPPORT 182 10 249 SADBTEST 182 10 250 SADBUTIL...

Page 10: ...Broadcom NetXtreme Ethernet Adapter Diagnostic User s Guide page 10 Broadcom Confidential and Proprietary...

Page 11: ...r 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 configurati...

Page 12: ...y yy version number sb57xxmy yy Selfboot Firmware file xx chip type m media type y yy version number eeprom bin Serial EEPROM FLASH config input file cpu bin cpu05 bin cpu14a bin cpu14b bin or cpusj...

Page 13: ...hown as below Their detailed explanation will be described later Group A A1 Indirect Register Test A2 Control Register Test A3 Interrupt Test A4 BIST A5 PCI Cfg Register Test A6 Serial Number Reg Test...

Page 14: ...ch Pad Test F6 APE Shared Memory Test F7 APE Shared Memory Indirect Access Test F8 APE Mutex Register Test F9 APE Timers Test Group G valid on APE enabled NetXtreme Controllers only G1 APE CPU Memory...

Page 15: ...tionality It enables interrupt and waits for interrupt to occur It waits for 500ms and reports error if could not generate interrupts Default Enabled 3 2 4 A4 BIST Command bist Function Hardware Built...

Page 16: ...e 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 c...

Page 17: ...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 f...

Page 18: ...t Enable 3 4 Misc Tests C Group 3 4 1 C1 EEPROM Test Command setest 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 conten...

Page 19: ...the file does not exists the following table is used Offset R O Mask R W Mask 0x00 0x0000 0x7180 0x02 0xffff 0x0000 0x03 0xffff 0x0000 0x04 0x0000 0xffff 0x05 0xefff 0x0000 0x06 0x0001 0x0000 0x07 0x0...

Page 20: ...s Check if all other TO bits are set and verify Timestamp Counter is incremented Default Enabled 3 4 7 C7 Expansion ROM Test Command romtest Function This function tests the ability to enable disable...

Page 21: ...ack by RJ45 loopback connector 10M s 100M s and 1000M s are used for this test Please note if the device supports E Switch such as 5756 the test is performed on both laptop mode and docking mode To pe...

Page 22: ...ult Enabled available only for NetXtreme controllers with E Switch support 3 5 8 D8 SADB Test Command nictest d8 Function This function tests the Security Association Data Base hardware in IPsec suppo...

Page 23: ...during manufacturing in order to detect board system build issues on the line analog side of the Ethernet controller Default Disabled NOTE The following tests in test groups F and G are only enabled...

Page 24: ...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 complem...

Page 25: ...est f8 Function Each of the registers in the APE Mutex Register block is tested to verify that each bit set in the Mutex Request register can acquire a corresponding grant bit in its paired Mutex Gran...

Page 26: ...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...

Page 27: ...tex Grant register After each grant bit is set it is written with back to verify the grant bit can be cleared Default Enabled 3 8 7 G7 APE CPU Timers Test Command nictest g7 Function This test each of...

Page 28: ...Broadcom NetXtreme Ethernet Adapter Diagnostic User s Guide page 28 Broadcom Confidential and Proprietary...

Page 29: ...firmware 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 dir us...

Page 30: ...d for field program of ISCSI firmware 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...

Page 31: ...ers 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 mfct filename updates the PCI SSID...

Page 32: ...t 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 d...

Page 33: ...ntire 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 SVI...

Page 34: ...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...

Page 35: ...sful 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 When f is entered softwa...

Page 36: ...Test C7 ROM Expansion Test C8 CPU Fetch Test D1 Mac Loopback Test not enabled on BCM5761 D2 Phy Loopback Test D5 MII Miscellaneous Test D6 MSI Test D7 E Switch Test Disabled Tests B6 External SRAM Te...

Page 37: ...I 5 Run tests five times ver display current version number If this option is entered it displays the software version number silkscreen revision and then exits the program e code Encryption Code Thi...

Page 38: ...s from command line If this option is entered the program will retrieve MAC address right after the mac option is entered The mac address has to be entered in hex and as shown in the following example...

Page 39: ...ontent 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 Loading EEPROM content from e...

Page 40: ...ds to normal diagnostics Checking EEPROM content passed or Checking EEPROM content invalid Loading EEPROM content from eeprom bin passed Programming EEPROM from eeprom bin passed Checking EEPROM conte...

Page 41: ...nable Disable Multiple Boot Agent A value of 1 will enable Multiple Boot Agent and a 0 will disable Example b57diag mba 0 Disabling mba mbap value Select Multiple Boot Agent Protocol value 0 Selecting...

Page 42: ...n error q Quick diagnostic mode asf value Enable Disable value 1 0 ASF in manufacture mode ipmi value Enable Disable value 1 0 IPMI in manufacture mode com value enable com port value 1 4 errctrl c On...

Page 43: ...ary otpwrtchk value Specify the times to do read check compare aftesr an OTP write fpara file Read b57diag options from a file lmac Log file per UUT based on input MAC address macnum value Restrict th...

Page 44: ...ng steps can be followed to recover the missing device 1 Use a PCI scan tool to scan all PCI devices in the system Find out the vendor id and device id of the missing device 2 Run B57diag with seldev...

Page 45: ...to enable secondary device s WOL the primary s WOL setting will be disabled with the following message Warning primary device WOL is disabled By default all commands configure the primary channel unt...

Page 46: ...56K 512K 1M 2M 4M 8M 16M DESIGN_TYPE nic lom VENDOR_SPECIFIC0 string 16 VENDOR_SPECIFIC1 string 16 REVERSE_NWAY yes no WOL_LIMIT_10 yes no FIBER_WOL_CAPABLE yes no CLOCK_RUN_SETTING enable disable DIS...

Page 47: ...l be selected If x0 is 1 suggested default values will be used If x0 is 2 user defined values will be used x1 Power Budgeting Data 0 Power Budgeting Data 1 x2 Power Budgeting Data 2 Power Budgeting Da...

Page 48: ...Read only VPD Vendor Specific Data V0 6 Product Name Broadcom NetXtreme Gigabit Ethernet Controller E Custom VPD Data Reference Description VPD Product description string e 1 Part Number Reference Des...

Page 49: ...INEERING_CHANGE 106679 15 MANUFACTURING_ID 14e4 Asset_Tag XYZ1234567 DUAL_MAC_MODE normal MBA_BOOT_PROTOCAL pxe MBA_BOOTSTRAP_TYPE bbs MBA_DELAY_TIME 6 EXPANSION_ROM_SIZE 128K DESIGN_TYPE nic select o...

Page 50: ...ode image dir Display file directory in NVRAM iscsiprg Program iSCSI from a File erase Erase file from directory in NVRAM pxeprg Upgrade PXE from a File flshdev Select flash device to access bitbang G...

Page 51: ...et current CPU break point select Select current CPU u Alias of disasm command trap Trap CPU memory cpuinfo Display CPU information cpualive Probe CPU if it is alive cpumemstatus Display internal CPU...

Page 52: ...ers via MII Management interface sdwrite Write SERDES registers via MII Management interface sdread Read SERDES registers via MII Management interface mdev Select current PHY to be accessed miimode Se...

Page 53: ...est On Shasta Family Of Devices apetest Run APE Self Tests Command Group power pmdcfg Dump Power Management Info pmpcfg Add Del Pattern pmpd Power Down MAC Command Group irq intr Dump Interrupt Info i...

Page 54: ...he screen pause Pause for user to hit a key q Exit the System alias name for quit verbose Change verbose settings beep Create a beep sound var Display current variables meminfo Report memory informati...

Page 55: ...asfmbox Create or Read ASF Mailboxes asfeng Enable Disable ASF engineering mode apeinfo Display APE related information apectl Control APE apeping send APE event to ping host from APE aperead Read AP...

Page 56: ...ing test 4 TX RX packets TX sides need to be configured txcfg RX sides need to be configured rxcfg Configure MAC and PHY loop back Call txpkt to transmit packets 5 The following tests need to setup te...

Page 57: ...ng the reference device as described in the previous section the user can test the DUT by running b57diag rf 0 c 1 t abcd T d3 Each of the previous options are described in the table below details of...

Page 58: ...ename File format Address range 0x00 0xFF num_bytes 256 max If only one argument is entered filename is assumed Otherwise start len value format must be used 10 2 vpdread Command vpread Description Re...

Page 59: ...Set Serial EEPROM mode to Auto 0 semode auto 2 Display Current mode 0 semode Current mode New NVRAM Access Auto device Flash ATMEL with buffer 10 7 seread Command seread Description Read NVRAM Syntax...

Page 60: ...n verbose level 0 1 2 def 0 Description This command implements both an interactive and a scripted mode of operation that allow a user to view modify the NetXtreme I controller configuration When invo...

Page 61: ...ng ID 14e4 16 Asset Tag XYZ01234567 17 Part Revision A0 18 Voltage 1 3V 0 1 8V 1 1 8V 19 Force PCI Mode Enable 1 Disable 2 Disable 20 PHY Type Copper 1 Fiber 2 Copper 21 Led Mode Mac Mode 0 Phy Mode1...

Page 62: ...pkg ID assign method GPIO 0 NVRAM 1 GPIO 61 NCSI pkg ID assign value 0 62 NCSI BMC connection method RMII 0 SMBus 1 RMII 63 NCSI SMBus Speed 100 0 400 1 Khz 100Khz 64 NCSI NC SMBus Slave Address 00 65...

Page 63: ...ristics of the device or default values of registers in the device 1 MAC Address Configure Description MAC address of the device 2 Power Dissipated D3 D2 D1 D0 Reference Description Power dissipated i...

Page 64: ...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...

Page 65: ...ription 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 mod...

Page 66: ...respectively swapXBAR 7 MAC_A and MAC_B are available and are supported as PCI function 0 MAC_B is the primary device and MAC_A mapped in the space of MAC_B To the OS and BOIS this looks like one por...

Page 67: ...ample 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 Specifi...

Page 68: ...A parameters Options 8 9 26 29 and 39 40 configure the boot protocol behavior Disable 0 Hide the MBA Setup Prompt The user is NOT give the option to change the MBA boot parameters Enable 1 Show the MB...

Page 69: ...firmware are loosely based on the in house Broadcom NIC card 15 0 Power Budget data 1 7 0 Base Power in 1 Watt For example 1 4 Watt should have value 14 9 8 PM State 00 D0 01 D1 10 D2 11 D3 12 10 Typ...

Page 70: ...of the chip which allows the presence of a cable to be detected by the chip valid for 5752M 5755M 5787M 5787FM devices Once this feature is enabled GPIO3 will be an Energy Detect Output Pin and will...

Page 71: ...ion Setting method to assign NCSI pkg ID GPIO 0 By GPIO NVRAM 1 By NVRAM 61 NCSI pkg ID assign value 5718 5719 5720 only Configure Description Setting NCSI pkg ID assign value 62 NCSI BMC connection m...

Page 72: ...5719 5720 only Configure Description Setting PCIe Tx de emphasis 0 dB 0 0 dB 3 5 dB 1 3 5 dB 6 dB 2 6 dB Rvsd 3 Reserved 69 Force Expansion ROM Advertisement 5718 5719 5720 only Configure Description...

Page 73: ...e SD 3 0 Disable 0 Disable Enable 1 Enable 65 SD Bus Power LED CTRL Configure Description Configure CR LED pin as SD Bus power or LED Ctrl Bus power 0 Bus power LED 1 LED Ctrl 66 SD LED Output CTRL Co...

Page 74: ...0 Disable override Activate Pull up and deactivate Pull down 1 Activate Pull up and deactivate Pull down Activate Pull down and deactivate Pull up 2 Activate Pull down and deactivate Pull up Deactivat...

Page 75: ...ion Disable 0 Disable SD function Enable 1 Enable SD function 78 ECC Error Reset Enable Configure Description Enable Disable xD Picture Card function Disable 0 Disable xD Picture Card function Enable...

Page 76: ...Phy2 Mode 3 Shared Traffic Lik LED Mode 4 Shasta MAC mode 5 Wireless Combo Mode Custom PCI power option c c Selfboot PCI Power Consumption Dissipate value 1 Use system default 2 Costom define 2 D0 Sta...

Page 77: ...e 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 r...

Page 78: ...acteristics 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...

Page 79: ...cribed below Mac Mode 0 The LEDs are controlled by the value in the Mac LED Control Register Phy Mode1 1 Three LEDs are used for 10 100 1000 Mbits s and each is driven individually by the device Phy M...

Page 80: ...D3 0 Configure Description Enable Disable SD 3 0 Disable 0 Disable Enable 1 Enable n SD Bus Power LED CTRL Configure Description Configure CR LED pin as SD Bus power or LED Ctrl Bus power 0 Bus power...

Page 81: ...ve High Active Low 1 Active Low t Memory Stick INS Chip Pull up Pull down Override Configure Description Configure Memory Stick INS internal Chip Pull up Pull down override Disable 0 Disable override...

Page 82: ...D Picture Card Detect Internal Chip Pull up Pull down Override Configure Description Configure xD Picture Card Detect Internal Chip Pull up Pull down Override Disable 0 Disable override Activate Pull...

Page 83: ...ared Traffic Lik LED Mode VPD Data option 9 _ 9 HW Selfboot VPD Data 1 Part Number BCM95906 2 Engineering Change 106679 15 3 Serial Number 0123456789 4 Manufacturing ID 14e4 5 Read only VPD Vendor Spe...

Page 84: ...r display purposes and does not affect the operating characteristics of the device or default values of registers in the device 1 MAC Address Configure Description MAC address of the device 2 Device I...

Page 85: ...ue 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...

Page 86: ...escription Program NVRAM and management firmware Syntax seprg file_name Input file need to be found in the same location as b57diag exe Options d Do not perform device check f string filename l HEX le...

Page 87: ...in a 2 Program NVRAM with APE DASH firmware dashfw rom and pad up to 300kilo bytes 0 seprg a k300 dashfw rom 3 Program NVRAM with APE DASH firmware dashfw rom as APE UPDATE image and pad up to 300kilo...

Page 88: ...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 For legacy bootcode only VPD...

Page 89: ...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 generat...

Page 90: ...re retransmitted three times This entry allows the user to specify in seconds the interval of time between these transmissions 6 Client IP address used for communication 7 Management console IP addres...

Page 91: ...nfig See the Alert Standard Format ASF Specification v2 0 for detailed descriptions of these records 7 Reserved Description Reserved 8 SMBus Init Data Description Not to be used by customers For Broad...

Page 92: ...o DER encode file k Specify minimum size of APE_CFG NVRAM entry D Delete config record s X Remove config record s e Encrypt config record s d Decrypt config records s r Specify record type in hex or b...

Page 93: ...tion Configure ASF in NVRAM Syntax flshmode auto passthru legacy new 10 19 flshread Command flshread Description Same as seread Syntax flshread start end len 10 20 chkpxe Command chkpxe Description Ch...

Page 94: ...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...

Page 95: ...ock Syntax seinit Options i DEC do not restore NVRAM clock default value def 0 10 29 searb Command searb Description set report current NVRAM arbitration bit Valid arbitraion number is 0 3 Syntax sear...

Page 96: ...33 setwol Command setwol Description Enable Disable WOL Syntax setwol e d Options d Disable WOL e Enable WOL 10 34 setpxe Command setpxe Description Enable Disable PXE Syntax setpxe Options d Disable...

Page 97: ...nst the file Syntax secomp Options c continue on error f string filename l HEX length def 00000000 o HEX offset def 00000000 10 37 dreset Command dreset Description double reset test for EEPROM debug...

Page 98: ...10 40 segencrc Command segencrc Description Append a CRC to the specified block Syntax segencrc start end start length 10 41 secfg1 Command secfg1 Description Configure NVRAM Group 1 Syntax secfg1 Op...

Page 99: ...e PCI Mode 1 Enable 2 Disable 10 43 secfg3 Command secfg3 Description Configure NVRAM Group 3 Syntax secfg3 Options l Led Mode 0 Mac 1 Phy1 2 Phy2 3 S Traffic 4 Shasta Mac 5 Wireless Combo r Max PCI R...

Page 100: ...ta V1 n Reversed Nway 0 No 1 Yes s Limit WOL Speed to 10 0 No 1 Yes f Fiber WOL Capable 0 No 1 Yes c Clock Run 0 Disable 1 Enable p Enable Phy Auto Power Down 0 No 1 Yes d Disable Power Saving 0 No 1...

Page 101: ...r Pri Port b IPMI SMB Address for Sec Port c Cable Sense Enable 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 o...

Page 102: ...def yes m don t turn on CPU Trace def on r don t reset CPU def reset s don t start cpu def start t load to tx cpu def rxpcu v disable verbose m UMP firmware a HEX set address in scratch pad to load d...

Page 103: ...ddr end_addr num_bytes Address range 0x00 0x80 Options u UMP firmware Debugging Trace Example 1 Read and display RX CPU trace from location 0x00 to 0x04 0 cpudrt 0 5 000 MainCpuA t00000030 164414e4 e1...

Page 104: ...ax loadbootcode filename Options d HEX data pattern to be used for memory init def 00000000 f string filename i don t initialize memory before loading def yes m don t turn on CPU Trace def on s don t...

Page 105: ...tax step 10 55 go Command go Description start CPU Syntax go 10 56 showgpr Command showgpr Description toggles showing cpu gpr mode Syntax showgpr 1 0 10 57 pc Command pc Description set current CPU p...

Page 106: ...ription trap cpu memory Syntax trap low high off 10 62 cpuinfo Command cpuinfo Description display cpu information Syntax cpuinfo r t 10 63 cpufetch Command cpufetch Description Test CPU Instruction f...

Page 107: ...elated info s1 s2 Show APE SMBus block 1 or 2 info r Show APE control registers f Show receive management filters m Show APE mutex and shared memory info n Show random NCSI e Show Ethernet MAC info E...

Page 108: ...NOP event are you alive r send APE reset event graceful f HEX turn rx mgmt filter all f2 on f1 off f0 w HEX set WFI mode sleep w1 off w0 deepsleep w2 t set APE date time e HEX send APE custom event dd...

Page 109: ...The host can be IPv4 IPv6 address or host name for a DNS lookup Syntax apeping host 10 68 aperead Command aperead Description Read APE local view data thru APE Syntax apectl start end len 10 69 apeotp...

Page 110: ...ASCII format l string add log entry text only C clear log 10 71 dmaw Command dmaw Description DMA from NIC to Host Memory Syntax dmaw Options 3 Force to use 32 bit bus 4 Allocate 4k aligned buffers a...

Page 111: ...fffffbf00000000 10 64 bit pattern 0000000000000000 64 bit pattern 11 64 bit pattern ffffffffffffffff 64 bit pattern def 00000000 q HEX low 32 bit of 64 bit pattern def FFFFFFFF v DEC Verbose 1 2 def 2...

Page 112: ...MA def 00000100 i Inc Len n DEC iteration o HEX Buffer offset def 00000000 p HEX Pattern of Data 0 byte increment 1 byte decrement 2 FF s 3 00 s 4 AA 55 5 55 AA 6 FFFFFFFF 000000000 FFFFFFFF 00000000...

Page 113: ...0 Priority Low Byte Swap No Word Swap No Dev 1 DMA Host 0068BB38 to SRAM 00000000 10 73 dma_h Command dma_h Description Dump DMA Entries Syntax dma_h start end 10 74 dma_d Command dma_d Description Du...

Page 114: ...and blast Description Blast Packets in Poll Mode and display statistics Load MAC driver before running the test Syntax blast Options a DEC IP total length def 0 c DEC Number of Tx buffer def 100 d DEC...

Page 115: ...ndom burst gap 7 random all above w DEC Low watermark max RxFrame value 0 65535 x Check length of received packet z DEC Tx Threshold def 5 B HEX IPSEC cipher ID incremental tst start cipher_id def 0 E...

Page 116: ...Y 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 ex...

Page 117: ...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 Ring00 0 0 Rxed Packets Ri...

Page 118: ...ics d3StatsLateCol 0 d3Collided2Times 0 d3Collided3Times 0 d3Collided4Times 0 d3Collided5Times 0 d3Collided6Times 0 d3Collided7Times 0 d3Collided8Times 0 d3Collided9Times 0 d3Collided10Times 0 d3Colli...

Page 119: ...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...

Page 120: ...rnal loopback mode 10 81 txpkt Command txpkt Description Transmit Packets Driver must be loaded Syntax txpkt Options a DEC Specify number of IP fragment count def 0 b DEC Burst length def 0 c Clear St...

Page 121: ...ion v Insert fragment count and fragment size into the packet w DEC Low watermark max RxFrame value 0 65535 z DEC Minimum fragment size 1 disable def 1 A Use static buffer B HEX Begin Cipher ID for th...

Page 122: ...ue of the first packet of an ISO stream def 0 U Use external loopback on 5714 5715 V DEC IPSEC test for IPv4 IPv6 def 4 X DEC Show IPSEC debug message Z DEC Max segment size def 0 10 82 statusblk Comm...

Page 123: ...rolDone 0 d3StatsIntlMacTxErrors 0 d3StatsSingleColFrames 0 d3StatsMultipleColFrames 0 dt3StatsDeferredTx 0 d3StatsExcessiveCol 0 d3StatsLateCol 0 d3Collided2Times 0 d3Collided3Times 0 d3Collided4Time...

Page 124: ...00 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 00ff1...

Page 125: ...st with TPROT Packets This command is same as command blast trm Syntax tprot Options d DEC Interpacket gap in microseconds def 10 10 87 qstat Command qstat Description Get a quick NIC statistic qstat...

Page 126: ...yntax irt Options n DEC Number of read write accesses def 1 r string Register offset 10 90 macmrd Command macmrd Description Test an individual register Test an individual register with a specified nu...

Page 127: ...s Syntax pcimrd Options d DEC Delay in uS def 0 n DEC Number of read write accesses def 1 r string Register offset 10 93 inband Command inband Description Force inband Syntax inband Options s HEX Stan...

Page 128: ...0002 4 Read 5 MII registers start from register 0 0 mread 0 5 00 1100 7949 0020 6051 01e1 10 96 mdev Command mdev Description Select current PHY to be accessed The default device ID is 0x01 If no par...

Page 129: ...0 Setting MII auto mode to OFF 0 miimode 1 Setting MII auto mode to ON 0 miimode 10 99 lbertram Command lbertram Description Load data to PHY BIST RAM Syntax lbertram filename Options c DEC channel nu...

Page 130: ...n Read MII Registers Syntax rm 10 103 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 Syn...

Page 131: ...The data pattern must be specified Syntax memsearch begin end len data 10 108 read Command read Description Read Memory Syntax read lImSsxX begin end len Configuration space 32 S Configuration space...

Page 132: ...5717 APE Mutex registers 32 o OTP registesr 32 Example 1 Read from Configuration space 0 read 10 000010 f4000004 2 Read from Register 0 read 10 000010 f4000004 3 Read from SRAM 0 read 10 000010 000100...

Page 133: ...access of host memory 16 x direct access of host memory 8 direct access of host memory in Byte ASCII format 8 g APE registers 32 p APE Peripheral registers 32 u APE UART registers 32 r APE shared memo...

Page 134: ...ers 32 default SRAM 32 SRAM in Byte ASCII format 32 NVRAM SEEPROM FLASH 32 m MII registers 16 VPD Access 32 I indirect access of host memory 32 internal scratchpad 32 l direct access of host memory 32...

Page 135: ...tbit lImSsxX addr bit bit Configuration space 32 S Configuration space 16 X Configuration space 8 Registers 32 default SRAM 32 SRAM in Byte ASCII format 32 NVRAM SEEPROM FLASH 32 m MII registers 16 VP...

Page 136: ...ify Memory by anded with bits Syntax clearbit lImSsxX addr bit bit Configuration space 32 S Configuration space 16 X Configuration space 8 Registers 32 default SRAM 32 SRAM in Byte ASCII format 32 NVR...

Page 137: ...t Description Read the bit specified by bit Syntax readbit lImSsxX addr bit Configuration space 32 S Configuration space 16 X Configuration space 8 Registers 32 default SRAM 32 SRAM in Byte ASCII form...

Page 138: ...e default 32 bits read S 16 bits read X 8 bits read Syntax cread bus dev func S X begin end len 10 115 cwrite Command cwrite Description Write PCI configuration space of specified device default 32 bi...

Page 139: ...DEC iteration p DEC Pattern to test def 0 0 Increment 1 Decrement 1 0 s 2 FF s 3 AA55 4 55AA r Random address test w Force write test enable 10 119 regtest Command regtest Description MAC registers r...

Page 140: ...ediag compatibility i initializing MSI block o DEC offset def 0 10 122 memtest Command memtest Description Test memory blocks such as scratch pad BD sram DMA sram Mbuf external SRAM Running diagcfg ca...

Page 141: ...000000 10 124 bist Command bist Description Run BIST The default iteration is 1 0 means run forever Syntax bist iteration 10 125 nictest Command nictest Description Run a set of NIC Tests NIC test can...

Page 142: ...is 1 0 means run forever 10 127 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 pack...

Page 143: ...4k aligned buffers a HEX NIC address def 00002100 d Display DMA info f Force to use 32 bit bus h Test high priority l HEX Length of DATA to do DMA def 00000400 n DEC iteration o HEX Buffer offset def...

Page 144: ...no number is entered all tests in that group are disabled Syntax testd tests tests Example testd a12bc Disable test a1 a2 and all tests in group b and c testd ab cd Disables all tests testd Display d...

Page 145: ...Verbose level 0 2 def 1 L Loop There are total 260 test cases 258 unique tests cases which are described as follows Test case Pattern 0 ffffffff ffffffff 00000000 00000000 1 ffffffff fffffffe 00000000...

Page 146: ...ters 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...

Page 147: ...ax gpiotest Options n DEC iteration 10 138 cpudiag Command cpudiag Description run diagnostic from internal CPU Syntax cpudiag Options b Test BD SRAM 0x0000 0x0fff and 0x4000 0x7fff d Test DMA SRAM 0x...

Page 148: ...rctrl w c a l s w Wait on Error Program will pause and wait for user s action eng default c Continue on Error Program will continue even if the error is detected a Abort on Error Manufacturing default...

Page 149: ...ead Write Test with reset 10 143 miimisctest Command miimisctest Description Run MII Misc Tests Syntax miimisctest Options n DEC iteration 10 144 cpugprtest Command cpugprtest Description Run CPU GPR...

Page 150: ...image Syntax binchksum f filename Options f string filename v HEX Minor revision def 0 o string output filename 10 147 pmdcfg Command pmdcfg Description Display Power Management Info Syntax pmdcfg 10...

Page 151: ...0c IPC IS1 IS2 0x00 0x00 IPC IRR1 IRR2 0x18 0x00 IPC ILCR1 ILCR2 0x20 0x0e Worst Intr Latency 54476 CPU clocks 50 uS 10 150 intrctrl Command intrctrl Description Control Interrupt Controller Syntax in...

Page 152: ...hex def 00000000 n DEC MBUF number to display decode def 256 w MBUF workaround Example 1 Display MBUF chain 0 mbuf chain 143 144 145 146 147 148 149 14a 14b 14c 14d 14e 14f 150 151 152 153 154 155 15...

Page 153: ...CI 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 Determ...

Page 154: ...00000 00000000 60002160 Rx Data Complete FTQ 16 00000000 00000000 20000000 S W Type 1 FTQ 8 00000000 00000000 20000000 Host Coalescing FTQ 10 00000000 00000000 2000 00000000 MAC TX FTQ 11 00000000 000...

Page 155: ...heck to see if driver is loaded Returns 1 if driver is loaded returns 0 otherwise Syntax chklddrv 10 162 vlantag Command vlantag Description Display Clear vlanTag information Syntax vlantag Options c...

Page 156: ...Dump chip registesrs 7 Dump driver config parametesrs Example 1 Display debug information 0 debug 1 Tx Packets Enqueued 0 Tx Packet Complete 0 Tx Packet Complete Error 0 Rx Packets 0 Rx Unknown Packet...

Page 157: ...de to MBUF Memory The file name must be specified in the parameter Syntax pxecpy file Options f string filename 10 169 device Command device Description Show or Switch Device If no parameter is entere...

Page 158: ...wer irq mac misc 10 172 Command Description Alternate Help Command This is same command as help command Syntax vpd nvram cpu dma packet mii mem test power irq mac misc 10 173 radix Command radix Descr...

Page 159: ...1 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 F500...

Page 160: ...Start 0x00002000 0x00003fff 00002000 6 SRAM DMA End 0x00002000 0x00003fff 00003fff 7 SRAM MBUF Start 0x00008000 0x00015fff 00008000 8 SRAM MBUF End 0x00008000 0x00015fff 00000000 9 SRAM SPAD Start 0x0...

Page 161: ...our choice or ESC to exit 3 Driver Configuration Menu 1 Rx Coalescing Ticks 1000 2 Rx Coalescing Ticks During Intr 0 3 Rx Coalescing Frames 1 4 Rx Coalescing Frames During Intr 0 5 Tx Coalescing Ticks...

Page 162: ...r ESC to exit 10 181 reset Command reset Description Reset Chip Syntax reset Options c Simulate cold reset t Display time from reset to firmware invert signature w DEC Wait for firmware signature in m...

Page 163: ...o slave smbusrun 6919 read the data from slave Using smbusrun s for slave read write Using smbusrun f to set the clock frequency Syntax smbusrun options Options p Add PEC s Slave Monitoring SMBus acti...

Page 164: ...lt parameter for n is 10 Syntax new n 10 190 asfprg Command asfprg Description Program asf firmware into NVRAM The default file names are asfinit bin asfcpua bin and asfcpub bin which can be overwritt...

Page 165: ...st block offset to be loaded def 00000000 s HEX sram second block offset to be loaded def 00000000 10 193 inp Command inp Description input port not supported for UEFI Syntax inp addr Options l long w...

Page 166: ...length p pattern l packet length Options f string filename l DEC packet length in bytes 14 9018 def 1514 p DEC pattern selection 0 8 def 0 x DEC length to load in bytes default to EOF Pattern 0 Use bu...

Page 167: ...election A Syntax rbuf tx rx bistin bistout bistex offset len 10 199 cpbuf Command cpbuf Description Copy the content of rx buffer into tx buffer Only works with static buffer selection A Syntax cpbuf...

Page 168: ...oggles IO d toggles DEBUG p toggles PRINTER w toggles WARNING r toggles Interrupt Verbose f toggles flush per line to enable dynamic tracking h toggles hidden IO s toggles IPSEC trace 10 204 beep Comm...

Page 169: ...208 regdump Command regdump Description Dump register content to a file Syntax regdump Options c PCI Config Reg f string filename m MII Registers r DEC Mac Registers def 1 10 209 regcomp Command regc...

Page 170: ...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...

Page 171: ...sion 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 214 serial Command serial Description Compares the serial number...

Page 172: ...ption Find all bridges in the system Syntax findbridge 10 219 bridge Command bridge Description Switch to specified bridge Syntax bridge 10 220 pere Command pere Description Enable parity error respon...

Page 173: ...FG 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 Syntax iscsiprg...

Page 174: ...scription 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 Ena...

Page 175: ...setipmi Options e Enable IPMI Passthrough Firmware d Disable IPMI Passthrough Firmware 10 228 setump Command setump Description Enable Disable UMP Syntax setump Options d Disable UMP e Enable UMP 10 2...

Page 176: ...k MAC and Config l HEX Interation def 000000001 f string filename 10 231 defragment Command defragment Description Defragment NVRAM data Syntax defragment 10 232 secfgsb1 Command secfgsb1 Description...

Page 177: ...CI Power Consumption Dissipate Value D0 D3 D0 D3 G Cable Sense 0 No 1 Yes 10 233 secfgsb2 Command secfgsb2 Description Configure Selfboot NVRAM Group 2 Syntax secfgsb2 Options D PCIE Pwr Consumption D...

Page 178: ...z Vendor Device ID s SubSystem Vendor ID i SubSystem Device ID w WOL o Limit WOL Speed to 10 0 No 1 Yes a Wol Auto 0 Dis 1 Magic 2 Interest 3 Magic Interest B Led Mode 0 Mac 1 Phy1 2 Phy2 3 S Traffic...

Page 179: ...e Hardware Selfboot NVRAM Group 2 Syntax secfghwsb2 Options h Hide MBA Setup Prompt 0 Dis 1 En k MBA Setup Hot Key 0 Ctrl S 1 Ctrl B m MBA Boot Protocol 0 PXE 1 RPL 2 BOOTP 3 iSCSI b MBA Bootstrap Typ...

Page 180: ...d on both laptop mode and docking mode By setting this option the tests are performed only on the default port m internal engineering manual switch and MAC test 10 239 eswitchtest Command eswitchtest...

Page 181: ...e IPv6 Extension Headers Syntax ipv6exten 0 1 0 disable 1 enable 10 244 cfgpagesize Command cfgpagesize Description Configure Flash page size to 256 bytes or 512 bytes Syntax cfgpagesize v verbose Opt...

Page 182: ...ock override 4 read MII registers without core clock override 8 write read compare MII register without core clock override f all above 10 247 wait Command wait Description Delay for a bit Syntax wait...

Page 183: ...one SA entry def 0 U Dump all SA entries t Dump internal IPSec transmitted packets digest log for debug purpose r Dump internal IPSec received packets digest log for debug purpose s Dump internal IPS...

Page 184: ...4 Broadcom Confidential and Proprietary v Get APE diagnostic firmware version r Reset APE diagnostic interface d Display APE diagnostic result string G DEC Set APE GPIO output pin 0 6 g DEC Clear APE...

Page 185: ...XXXX ERR_PHY_TOO_MANY_REG 30 Too many registers specified in the file max is XXXX ERR_VPD_WRITE 31 Cannot write to VPD address XXXX ERR_VPD_DATA 32 VPD data error got XXXX XXXX expected XXXX ERR_NO_L...

Page 186: ...xpected XXXX but read XXXX at XXXX ERR_MEM_INIT 92 mem pool initialization failed ERR_MEM_UNINIT 93 mem pool un initialization failed ERR_PCI_REGS_WIDTH 94 Read Write PCI regs width XXXX affects wider...

Page 187: ...Reg Table ERR_FW_IMAGE_SIZE 159 Error Firmware image size XXXX larger than NVRAM size XXXX ERR_MISS_PXE 160 Error PXE firmware cannot be found in NVRAM ERR_MISS_ASF 161 Error ASF firmware cannot be fo...

Page 188: ...X ERR_APECPU_SMB 212 APE CPU SMBus Test error XXXX ERR_APECPU_GPIO 213 APE CPU GPIO Test error XXXX ERR_APECPU_EVENT 214 APE CPU Event Test error XXXX ERR_APECPU_MUTEX 215 APE CPU Mutex Test error XXX...

Page 189: ...Broadcom NetXtreme Ethernet Adapter Diagnostic User s Guide page 189 Broadcom Confidential and Proprietary...

Page 190: ...d only and they will change as users switch from one device to another nx1 BASE_ADDR the base address of the selected device e g 0xffbe0000 nx1 BASE_ADDR_HIGH the top 32 bits of the base address of th...

Page 191: ...ice e g 1 1 2 nx1 NVM_SIZE the flash size on the selected device e g 135168 nx1 NVM_TYPE the type of flash on the selected device e g BUFFERED nx1 BOARD the board number of the selected device e g 571...

Page 192: ...lected device nx1 DASH_VER the version of the DASH firmware residing in the selected device e g 1 30 0 0 nx1 WOL an indicator of whether or not WOL is enabled on the selected device e g 0 disabled 12...

Page 193: ...d5761 bin v2 0 3 apediag bin v2 0 1 cpu05 bin v3 4 cpu14a bin v3 4 cpu14b cin v3 4 cpu bin v3 0 cpudg05 bin v3 0 cpudiag bin v3 0 cpume bin v3 4 cpumem bin N A cpusc bin v4 3 cpusd bin v4 2 cpusj bin...

Reviews: