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
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -240,11 +240,12 @@ def log_os_system(cmd, show):
return status, output

def driver_inserted():
ret, lsmod = log_os_system("ls /sys/module/ | grep accton", 0)
ret, lsmod = log_os_system("ls /sys/module/*accton*", 0)
logging.info('mods:'+lsmod)
if not lsmod:
if ret :
return False

else :
return True

kos = [
'depmod -ae',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -145,11 +145,12 @@ def log_os_system(cmd, show):
return status, output

def driver_check():
ret, lsmod = log_os_system("lsmod| grep accton", 0)
ret, lsmod = log_os_system("ls /sys/module/*accton*", 0)
logging.info('mods:'+lsmod)
if len(lsmod) ==0:
return False
return True
if ret :
return False
else :
return True

kos = [
'modprobe i2c_dev',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -240,10 +240,12 @@ def log_os_system(cmd, show):
return status, output

def driver_inserted():
ret, lsmod = log_os_system("ls /sys/module | grep accton", 0)
ret, lsmod = log_os_system("ls /sys/module/*accton*", 0)
logging.info('mods:'+lsmod)
if len(lsmod) ==0:
if ret :
return False
else :
return True



Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -145,11 +145,12 @@ def log_os_system(cmd, show):
return status, output

def driver_check():
ret, lsmod = log_os_system("lsmod| grep accton", 0)
ret, lsmod = log_os_system("ls /sys/module/*accton*", 0)
logging.info('mods:'+lsmod)
if len(lsmod) ==0:
return False
return True
if ret :
return False
else :
return True



Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -145,11 +145,12 @@ def log_os_system(cmd, show):
return status, output

def driver_check():
ret, lsmod = log_os_system("ls /sys/module/ | grep accton", 0)
ret, lsmod = log_os_system("ls /sys/module/*accton*", 0)
logging.info('mods:'+lsmod)
if len(lsmod) ==0:
if ret :
return False
return True
else :
return True



Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -249,10 +249,12 @@ def log_os_system(cmd, show):
return status, output

def driver_inserted():
ret, lsmod = log_os_system("lsmod| grep accton", 0)
ret, lsmod = log_os_system("ls /sys/module/*accton*", 0)
logging.info('mods:'+lsmod)
if len(lsmod) ==0:
if ret :
return False
else :
return True



Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -150,11 +150,12 @@ def log_os_system(cmd, show):


def driver_check():
(ret, lsmod) = log_os_system('ls /sys/module/ | grep accton', 0)
logging.info('mods:' + lsmod)
if not lsmod:
ret, lsmod = log_os_system("ls /sys/module/*accton*", 0)
logging.info('mods:'+lsmod)
if ret :
return False
return True
else :
return True


kos = [
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -145,11 +145,12 @@ def log_os_system(cmd, show):
return status, output

def driver_check():
ret, lsmod = log_os_system("lsmod| grep accton", 0)
ret, lsmod = log_os_system("ls /sys/module/*accton*", 0)
logging.info('mods:'+lsmod)
if len(lsmod) ==0:
return False
return True
if ret :
return False
else :
return True



Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -147,11 +147,12 @@ def log_os_system(cmd, show):
return status, output

def driver_check():
ret, lsmod = log_os_system("lsmod| grep accton", 0)
ret, lsmod = log_os_system("ls /sys/module/*accton*", 0)
logging.info('mods:'+lsmod)
if len(lsmod) ==0:
return False
return True
if ret :
return False
else :
return True



Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -178,11 +178,12 @@ def log_os_system(cmd, show):
return status, output

def driver_check():
ret, lsmod = log_os_system("lsmod| grep accton", 0)
ret, lsmod = log_os_system("ls /sys/module/*accton*", 0)
logging.info('mods:'+lsmod)
if len(lsmod) ==0:
if ret :
return False
return True
else :
return True



Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -145,11 +145,12 @@ def log_os_system(cmd, show):
return status, output

def driver_check():
ret, lsmod = log_os_system("lsmod| grep accton", 0)
ret, lsmod = log_os_system("ls /sys/module/*accton*", 0)
logging.info('mods:'+lsmod)
if len(lsmod) ==0:
return False
return True
if ret :
return False
else :
return True



Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -267,10 +267,12 @@ def log_os_system(cmd, show):
return status, output

def driver_inserted():
ret, lsmod = log_os_system("lsmod| grep accton", 0)
ret, lsmod = log_os_system("ls /sys/module/*accton*", 0)
logging.info('mods:'+lsmod)
if len(lsmod) ==0:
if ret :
return False
else :
return True

#'modprobe cpr_4011_4mxx',

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -240,10 +240,12 @@ def log_os_system(cmd, show):
return status, output

def driver_inserted():
ret, lsmod = log_os_system("lsmod| grep accton", 0)
ret, lsmod = log_os_system("ls /sys/module/*accton*", 0)
logging.info('mods:'+lsmod)
if len(lsmod) ==0:
if ret :
return False
else :
return True


kos = [
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -248,10 +248,12 @@ def log_os_system(cmd, show):
return status, output

def driver_inserted():
ret, lsmod = log_os_system("lsmod| grep accton", 0)
ret, lsmod = log_os_system("ls /sys/module/*accton*", 0)
logging.info('mods:'+lsmod)
if len(lsmod) ==0:
if ret :
return False
else :
return True

def cpld_reset_mac():
ret, lsmod = log_os_system("i2cset -y 0 0x77 0x1", 0)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -167,11 +167,12 @@ def log_os_system(cmd, show):
return status, output

def driver_check():
ret, lsmod = log_os_system("lsmod| grep accton", 0)
ret, lsmod = log_os_system("ls /sys/module/*accton*", 0)
logging.info('mods:'+lsmod)
if len(lsmod) ==0:
return False
return True
if ret :
return False
else :
return True



Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -254,10 +254,12 @@ def log_os_system(cmd, show):
return status, output

def driver_inserted():
ret, lsmod = log_os_system("lsmod| grep accton", 0)
ret, lsmod = log_os_system("ls /sys/module/*accton*", 0)
logging.info('mods:'+lsmod)
if len(lsmod) ==0:
if ret :
return False
else :
return True


kos = [
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -181,10 +181,12 @@ def log_os_system(cmd, show):
return status, output

def driver_inserted():
ret, lsmod = log_os_system("lsmod| grep accton", 0)
ret, lsmod = log_os_system("ls /sys/module/*accton*", 0)
logging.info('mods:'+lsmod)
if len(lsmod) ==0:
if ret :
return False
else :
return True



Expand Down