[Wedge100BF-series] Install and start up Accton Diag, Barefoot Shell and SDE Follow
Purpose:
Install and start up Accton Diag, use Diag in order to do some specific self-tests.
Model:
Wedge100BF-32X/65X/32QS
Agenda:
Section 1. Install Accton Diagnostic
Section 2. Install Diag Utility and start up.
Section 3. Start up Diag which had already installed before.
Section Ex. Startup Barefoot Shell & SDE
Download Link:
Wedge100BF-series Diag v0.0.1.5
Wedge100BF-series Diag Utility v0.36
Procedure:
Section 1. Install Accton Diagnostic
Step 1. Check the "Accton Diagnostic" had already installed or not.
Choose "ONIE" to enter ONIE GRUB menu, but if there's no NOS had been installed, switch will show ONIE GRUB menu directly.
Note: If the "Accton Diagnostic" had been installed, please skip to Section 2.
If choose "DIAG: Accton Diagnostic" but get error message, or the DIAG item don't even exist, please choose "ONIE: Rescue" to enter ONIE Rescue mode.
Then try "parted /dev/sda print" command to check whether the space enough 34.4G for DIAG.
If the memory is full of NOS, please "reboot" and choose "ONIE: Uninstall OS" in ONIE GRUB.
For Example:
** Rescue Mode Enabled **
ONIE:/ # parted /dev/sda print
Model: ATA FS128GM280I-AC (scsi)
Disk /dev/sda: 128GB
Sector size (logical/physical): 512B/512B
Partition Table: gpt
Disk Flags:
Number Start End Size File system Name Flags
1 1049kB 269MB 268MB fat16 EFI System boot, hidden
2 269MB 404MB 134MB ext4 ONIE-BOOT hidden
3 404MB 1477MB 1074MB ext4 NOVIWARE-BOOT
4 1477MB 128GB 127GB NOVIWARE-ROOT lvm
ONIE:/ #
Step 2. Install the Accton Diagnostic through TFTP/HTTP
** Rescue Mode Enabled **
ONIE:/ # ifconfig eth0 188.188.97.26
ONIE:/ # onie-nos-install tftp://188.188.99.1/Wedge100BF_Diag_v0_0_1_5.installer
Note: The green part must be modified to fit user's test environment.
After the installation done, choose "DIAG: Accton Diagnostic (accton_wedge100bf)"
root@bfn-switch:~#
Section 2. Install Diag Utility and start up
Note: If the Diag Utility had been install please skip to Section 3.
Step 1. Configure the IP address
root@bfn-switch:~# ifconfig enp2s0 188.188.97.26
Step 2. Transport the Diag Utility file by SCP
root@bfn-switch:~# scp matttsai@188.188.16.86:/home/matttsai/DIAG-V0.36.tgz /
Note: The green part must be modified to fit user's test environment.
Step 3. Extract Accton Diag package
root@bfn-switch:~# cd /
root@bfn-switch:/# tar zxvf DIAG-V0.36.tgz
Step 4. Into Accton Diag folder
root@bfn-switch:/# cd DIAG-V0.36/
root@bfn-switch:/DIAG-V0.36#
Step 5. Environment setup
root@bfn-switch:/DIAG-V0.36# sudo su
root@bfn-switch:/DIAG-V0.36# source sysenv
Step 6. Install Barefoor Networks Diag
root@bfn-switch:/DIAG-V0.36# sh ./bf-diag-install.sh
root@bfn-switch:/DIAG-V0.36# source sysenv2
Step 7. Compile and Install Diag Utility
root@bfn-switch:/DIAG-V0.36# cd diag_main
root@bfn-switch:/DIAG-V0.36/diag_main# make
root@bfn-switch:/DIAG-V0.36/diag_main# make install
root@bfn-switch:/DIAG-V0.36/diag_main# make clean
root@bfn-switch:/DIAG-V0.36/diag_main# cd ..
root@bfn-switch:/DIAG-V0.36#
Step 8. Modify ACC_MODEL_SKU parameter of sysenv file for hardware design
For Wedge100BF-32X/32QS :
root@bfn-switch:/DIAG-V0.36# export ACC_MODEL_SKU=MODEL_1U
For Wedge100BF-65X :
root@bfn-switch:/DIAG-V0.36# export ACC_MODEL_SKU=MODEL_2U
Step 9. Load Barefoot Diag driver and Intel ixgbe driver
root@bfn-switch:/DIAG-V0.36# source ./bf_diag_start.sh
[ 2794.889506] bf probe ok
Step 10. Start up Accton Diag
root@bfn-switch:/DIAG-V0.36# diag_main.py
Note: This takes about 3 minute at first time.
After check the "Please enter your choice (0 to quit):", press "Enter" will list all the Diag test item.
Initiating Accton Diag Environment is PASSED(0)!
Please enter your choice (0 to quit): tcp 0 0 :::8080 :::* LISTEN
*********************************************************
1 Check EEPROM of cpu management port
2 Read MAC address from cpu management port
4 The probe test cp2112 for usb-to-i2c bus
5 The R/W test for RTC timer
6 The R/W and keepalive test for Watchdog timer
7 The ICMP ECHO test for CPU management interface
8 Monitor CPUs temperature
9 Show TPM Information
11 The R/W test for memory device(RAM)
52 The R/W test for storage disk
53 The R/W test for external storage disk
54 Show COM-E HW information
55 Scan Tofino information
60 Make BMC backup image with LPC interface
61 Update BMC flash with LPC interface
70 The R/W test of devices for BMC management
71 The information check for BMC management
72 The Fan speed test
75 Get HW information from FRU EEPROM
76 Set HW information into FRU EEPROM
77 The sensor test for BMC management
78 Get HW information from Upper EEPROM
79 Set HW information into Upper EEPROM
80 Set file HW information into FRU EEPROM
81 Show the sensor information for CPU FPGA
82 Test system LED(OFF->RED->GREEN->BLUE->RECOVER)
83 Set post LED(0x00 - 0xFF)
85 Set file HW information into Upper EEPROM
86 Set FAN LED(OFF->RED->BLUE->RECOVER)
88 Console Selection Button test(SW2)
89 Reset Button test(SW1)
90 Show Board Revision ID
92 The ICMP ECHO test for BMC MAC2 interface
94 The ICMP ECHO test for BMC USB0 interface
96 (TBD)The SEL test for BMC
97 The RTC test for BMC
98 The watchdog test for BMC
99 Send RST signal to CP2112
101 Send Modbus RTU packet to RS-485 port
103 COM-E Power Button test
104 Show QSFP EEPROM
106 Verify EEPROM contents of 16 ports GE switch
110 Show IR3584 thernal
113 Get HW information from 21" PSU EEPROM
114 Set HW information into 21" PSU EEPROM
115 Show Revision of SYSTEM CPLD and Fan RackMon CPLD
117 Front Panel Push Button test
119 Check and Upgrade COM_E external BIOS
150 Load Barefoot Diagnostic Service
151 Show efuse information
152 Make traffic test for Barefoot 10GBASE-KR Interface
153 One port Traffic external stress test
154 One port Traffic internal stress test
155 Test front port LED(OFF->RED->GREEN->BLUE)
179 Unload Barefoot Diagnostic Service
180 Check retimer chipset status
199 Show PSU status
204 Reboot BMC
205 Update BMC firmware from TFTP server(Sideband)
208 Cold start the system
300 Set the uS card number of switch board into parameter
302 Set the count of Cold-Start system into parameter
303 Set the count of burnin counter into parameter
998 The unitest for diag test cases(BURN-IN mode)
999 The unitest for diag test cases(MFG mode)
*********************************************************
Please enter your choice (0 to quit):
Caution: If you see the message as below, please choose item 179 Unload Barefoot Diagnostic Service.
*********************************************************
Please enter your choice (0 to quit): 199
Barefoot diagnostic service state:
0x10: Disable
0x20: Enable
0x40: Already execute and Disable
The current state (0x20) of Barefoot diagnostic service is not matched the mask (0x50) for diag item 199
Please enter your choice (0 to quit):
Section 3. Start up Diag Utility which had already installed before
Step 1. Into Accton Diag folder
root@bfn-switch:~# cd /DIAG-V0.36/
root@bfn-switch:/DIAG-V0.36#
Step 2. Environment setup
root@bfn-switch:/DIAG-V0.36# sudo su
root@bfn-switch:/DIAG-V0.36# source sysenv
root@bfn-switch:/DIAG-V0.36# source sysenv2
Step 3. Modify ACC_MODEL_SKU parameter of sysenv file for hardware design
For Wedge100BF-32X/32QS :
root@bfn-switch:/DIAG-V0.36# export ACC_MODEL_SKU=MODEL_1U
For Wedge100BF-65X :
root@bfn-switch:/DIAG-V0.36# export ACC_MODEL_SKU=MODEL_2U
Step 4. Load Barefoot Diag driver and Intel ixgbe driver
root@bfn-switch:/DIAG-V0.36# source ./bf_diag_start.sh
[ 2794.889506] bf probe ok
Step 5. Start up Accton Diag
root@bfn-switch:/DIAG-V0.36# diag_main.py
Note: This takes about 3 minute at first time.
After check the "Please enter your choice (0 to quit):", press "Enter" will list all the Diag test item.
Please refer to Section 2. Step 10.
Section Ex. Startup Barefoot Shell & SDE
Same procedure start from Section 3. to Section 3. Step 4., after execute "source ./bf_diag_start.sh".
Start up the Barefoot Shell.
root@bfn-switch:/DIAG-V0.36# swutil -C -S --install-path=$BF_DIAG_INSTALL_DIR
(...omitted)
********************************************
* WARNING: Authorised Access Only *
********************************************
bfshell> root@bfn-switch:/DIAG-V0.36#
Note: It takes about 3 minute and stays at "bfshell>".
root@bfn-switch:/DIAG-V0.36# bfshell
********************************************
* WARNING: Authorised Access Only *
********************************************
bfshell>
Startup Barefoot SDE
bfshell> ucli
Starting UCLI from bf-shell
Cannot read termcap database;
using dumb terminal settings.
bf-sde>
Stop Barefoot shell
root@bfn-switch:/DIAG-V0.36# swutil -C -s
[argc] 2, [optind] 2, argv[2]=(null), optarg=(null)
Shutdown switch driver...
PID of bf_switchd is 1479
root@bfn-switch:/DIAG-V0.36#
Comments
0 comments
Please sign in to leave a comment.