-
Notifications
You must be signed in to change notification settings - Fork 1.8k
Description
Syntax error on config.bcm for AS7312-54XS, AS7312-54X and AS7315-27XB causing interface not showing up
Tested on 201904_57, 201911_74, 201911_81 and master branch.
sudo show interfaces status
Shows nothing and the port didn't responds to any command.
Error occur on AS7312-54XS:
sonic INFO syncd#supervisord: syncd Platform configuration: format error in /usr/share/sonic/hwsku/th-as7312-48x25G+6x100G.config.bcm on line 110 (ignored)#15
After checking the file, in line 110 there is a comment " /* Port Map */ ". It looks like a syntax error.
You can check it here: th-as7312-48x25G+6x100G.config.bcm
Steps to reproduce the issue:
- install either 201904_57, 201911_74, 201911_81 or master branch on AS7312-54XS
sudo show interfaces status, shows nothing and the port didn't responds to any command.- check
show loggingcommand:sonic INFO syncd#supervisord: syncd Platform configuration: format error in /usr/share/sonic/hwsku/th-as7312-48x25G+6x100G.config.bcm on line 110 (ignored)#015
Describe the results you received:
sudo show interfaces status shows nothing and the port didn't responds to any command.
check show logging
Feb 14 10:12:45.737033 sonic INFO syncd#syncd: [none] board_id_default:445 Failed to obtain switch ID.
Feb 14 10:12:45.749332 sonic INFO syncd#supervisord: syncd DMA pool size: 33554432#015
Feb 14 10:12:45.749332 sonic INFO syncd#supervisord: syncd warning: device 0xb967 revision 0x2 is not supported#015
Feb 14 10:12:45.749332 sonic INFO syncd#supervisord: syncd Platform configuration: format error in /usr/share/sonic/hwsku/th-as7312-48x25G+6x100G.config.bcm on line 110 (ignored)#015
Describe the results you expected:
sudo show interfaces status should show something like this:
admin@sonic:~$ show interfaces status
Interface Lanes Speed MTU Alias Vlan Oper Admin Type Asym PFC
----------- --------------- ------- ----- ------------- ------ ------ ------- --------------- ----------
Ethernet0 73 10G 9100 swp001 routed down up N/A N/A
Ethernet1 74 10G 9100 swp002 routed down up N/A N/A
Ethernet2 75 10G 9100 swp003 routed down up N/A N/A
Ethernet3 76 10G 9100 swp004 routed down up N/A N/A
Output of show version:
SONiC Software Version: SONiC.master.294-ddd6368e
Distribution: Debian 10.4
Kernel: 4.19.0-6-amd64
Build commit: ddd6368e
Build date: Sat May 23 11:21:59 UTC 2020
Built by: johnar@jenkins-worker-7
Platform: x86_64-accton_as7312_54xs-r0
HwSKU: Accton-AS7312-54XS
ASIC: broadcom
Serial Number: 731254XS2004135
Uptime: 10:14:11 up 2 min, 1 user, load average: 1.10, 0.76, 0.30
Attach debug file sudo generate_dump:
Link to find the dump
The same comment is present in the following model too:
1)AS7312-54X
./x86_64-accton_as7312_54x-r0/Accton-AS7312-54X/th-as7312-48x25G+6x100G.config.bcm:110:/* Port Map */
2)AS7312-54XS (this model tested)
./x86_64-accton_as7312_54xs-r0/Accton-AS7312-54XS/th-as7312-48x25G+6x100G.config.bcm:110:/* Port Map */
3)AS7315-27XB
./x86_64-accton_as7315_27xb-r0/Accton-AS7315-27XB/qax-as7315-20x10G+4x25G+3x100G.config.bcm:110:/* Port Map */
Possible solution:
Change /* Port Map */ to #/* Port Map */