Open odd22 opened 2 years ago
@odd22 can you please create a PR with your fix? Community can review. Thanks.
@zhangyanzhao Yes of course, but only for the first one a.k.a. the sonic-platform-accton-wedge100bf-32qs_1.1_amd64.deb package. For the second, one, it is related to P4studio SDE component which it is not open-source. I'll contact Intel/Barefoot for this issue.
Description
Attempt installing SONiC master or 202111 version on a brand new Edge Core Wedge100bf-32qs failed while it is working fine on the 32x version.
Thus, the switch is not functioning correctly: Platform management show nothing and Tofino ASIC is not initialized
Steps to reproduce the issue:
docker ps -a
to see that syncd docker is not running and have a look to dmesg to see the error messageDescribe the results you received:
sonic-platform-accton-wedge100bf-32qs_1.1_amd64.deb package is not installed with pmon docker inoperate syncd docker crashed
Describe the results you expected:
sonic-platform-accton-wedge100bf-32qs_1.1_amd64.deb package should be installed with all
show platform xxx
output as expected running syncd docker andshow interfaces status
reporting all live interfaces.How to correct these bugs
1/ For the debian package, there is a wrong dependency in https://github.com/Azure/sonic-buildimage/blob/master/platform/barefoot/sonic-platform-modules-accton/debian/control line 11. It should be removed like for Accton Braodcom platform for example. It is also possible to force the installation of the package with
dpkg -i --force-all sonic-platform-accton-wedge100bf-32qs_1.1_amd64.deb
2/ For syncd, there is a missing link in /opt/bfn/install/lib/platform. The /usr/bin/syncd_init_common.sh script looks into /etc/machine.conf to determine the exact platform to determine which library must be preloaded:
Here, it found
x86_64-accton_wedge100bf_32qs-r0
but only a link forx86_64-accton_wedge100bf_32x-r0
exist in /opt/bfn/install/lib/platform. Thus, LD_LIBRARY_PATH is not correctly setup causing syncd to crash as it not pre-loaded the platform library. To correct the problem, a link should be added like this:x86_64-accton_wedge100bf_32qs-r0 -> x86_64-accton_wedge100bf_65x-r0
Again, this is a debian packaging problem.Once both manual actions done, the platform is working as expected.