Skip to content

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

Merged
lguohan merged 1 commit intosonic-net:masterfrom
brandonchuang:accton_util
Jan 2, 2021
Merged

[device/accton] Fix accton driver not been installed#6327
lguohan merged 1 commit intosonic-net:masterfrom
brandonchuang:accton_util

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