Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Failed to run rc.local, bcmcmd, accton_as5712_util.py #149

Open
cr2025x1 opened this issue Feb 6, 2018 · 6 comments
Open

Failed to run rc.local, bcmcmd, accton_as5712_util.py #149

cr2025x1 opened this issue Feb 6, 2018 · 6 comments

Comments

@cr2025x1
Copy link

cr2025x1 commented Feb 6, 2018

Switch : EdgeCore AS5712-54X
Version : SONiC-OS-HEAD.481-6045235

Failed to successfully execute rc.local. It looks like being timeout.

Also, it shows other problems when runnning commands below:

sudo bcmcmd -v "port xe interface=sr"
--> At the first time, it was successfully executed (apparently), however after a reboot, it hangs and shows no response

sudo accton_as5712_util.py set sfp 1 0
--> Fails to start with messages like "System is not ready. Install it first!"

sonic_dump_switch1_20180206_062831.tar.gz

@pollyhsu2git
Copy link

pollyhsu2git commented Feb 6, 2018

@cr2025x1,
Please try the attached patch under ~platform/broadcom/sonic-platform-modules-accton.
The cause: Upgrade linux-image version PR#1294 (sonic-net/sonic-buildimage#1294) by SONiC on 2018-02-01.
0001-Change-platform-modules-to-depend-on-3.16.0-5-amdn64.patch.zip

@cr2025x1
Copy link
Author

cr2025x1 commented Feb 9, 2018

I'm sorry, but how do I apply that patch? I tried and searched, but it looks like I reached a dead-end. And I also tried the most recent version, SONiC-OS-HEAD.485-0136284, but it still shows the same problem.

@pollyhsu2git
Copy link

pollyhsu2git commented Feb 9, 2018

@cr2025x1, we've pushed the revision with PR#1380, however, it's in the waiting queue to be reviewed / merged due to one of our sonic-net/sonic-buildimage#1339 pending for further discussion. For details, please refer to sonic-net/sonic-buildimage#1380.

@pollyhsu2git
Copy link

pollyhsu2git commented Feb 9, 2018

@cr2025x1, you could either wait for the revision merge of PR#1380, or you could build the SONiC image yourself upon applying the patch. To do so, please do the following:
#####
$ cd platform/broadcom/sonic-platform-modules-accton
$ git am 0001-Change-platform-modules-to-depend-on-3.16.0-5-amdn64.patch
#####
However, the patch will need the work to resolve the conflicts at your side due to sonic-net/sonic-buildimage#1339 again.

As to how to build the SONiC image, please refer to the SONiC Building Guide (https://github.com/Azure/sonic-buildimage/blob/master/README.md)

0001-Change-platform-modules-to-depend-on-3.16.0-5-amdn64.patch-20180209.zip

@cr2025x1
Copy link
Author

cr2025x1 commented Mar 15, 2018

@pollyhsu2git
I tested the build SONiC-OS-HEAD.521-6194a81 and I confirm it works. Thank you.
Still, I suggest if this command become unnecessary to turn on all ports, it would be much more better.

@lguohan lguohan closed this as completed Aug 21, 2018
@lguohan lguohan reopened this Aug 21, 2018
@lguohan
Copy link
Contributor

lguohan commented Aug 21, 2018

@pollyhsu2git , what is this command? I am wondering if there is better to way simplify this on the sonic side?

sudo accton_as5712_util.py set sfp 1 0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants