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

[device/accton] Fix accton driver not been installed #6327

Merged
merged 1 commit into from
Jan 2, 2021

Conversation

brandonchuang
Copy link
Contributor

Accton util applies lsmod to check if drivers are installed.
But lsmod may return error on startup and skip module installation.

Signed-off-by: Brandon Chuang brandon_chuang@edge-core.com

  • Why I did it
    Reported that sometimes the peripherals cannot be polled.

  • How I did it
    It's found that lsmod command may failed on startup, the accton util misjudges that drivers have been installed.
    The change here is not to apply lsmod to poll installed drivers.

  • How to verify it
    The bug can be probably replicated during several time of reboot.
    Replace with new script and reboot 100 times.
    Drivers are all well installed on these 100 reboot.

  • Which release branch to backport (provide reason below if selected)

  • 201811

  • 201911

  • 202006

  • Description for the changelog

Accton util applies lsmod to check if drivers are installed.
But lsmod may return error on startup and skip module installation.

Signed-off-by: Brandon Chuang <brandon_chuang@edge-core.com>
@lguohan lguohan merged commit c4156b8 into sonic-net:master Jan 2, 2021
lguohan pushed a commit that referenced this pull request Jan 15, 2021
Accton util applies lsmod to check if drivers are installed.
But lsmod may return error on startup and skip module installation.

Signed-off-by: Brandon Chuang <brandon_chuang@edge-core.com>
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

Successfully merging this pull request may close these issues.

2 participants