Skip to content

Commit

Permalink
Merge pull request #26 from antony-rheneus/hwsku_tg4810m
Browse files Browse the repository at this point in the history
sfp and fan fix
  • Loading branch information
antony-rheneus authored Jan 30, 2021
2 parents 3ca37a1 + def5b40 commit e6e5b04
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 2 deletions.
3 changes: 2 additions & 1 deletion device/delta/arm64-delta_tg4810m-r0/plugins/sfputil.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,8 @@ class SfpUtil(SfpUtilBase):
_port_to_eeprom_mapping = {}
port_to_i2c_mapping = {
}
_qsfp_ports = range(_port_start, ports_in_block + 1)
#_qsfp_ports = range(_port_start, ports_in_block + 1)
_qsfp_ports = {}
_changed_ports = [0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0]

def __init__(self):
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
# see: dh_installdeb(1)

sh /usr/sbin/tg4810m_plt_setup.sh
chmod a+x /usr/local/bin/tg4810minit.sh
systemctl enable tg4810minit.service
systemctl start tg4810minit.service
exit 0
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ load_kernel_drivers() {
# - Main entry

# Install kernel drivers required for i2c bus access
load_kernel_drivers
#load_kernel_drivers

# LOGIC to enumerate SFP eeprom devices - send 0x50 to kernel i2c driver - initialize devices
# the mux may be enumerated at number 4 or 5 so we check for the mux and skip if needed
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
# see: dh_installdeb(1)

sh /usr/sbin/tg48m-p_plt_setup.sh
chmod a+x /usr/local/bin/tg48m-pinit.sh
systemctl enable tg48m-pinit.service
systemctl start tg48m-pinit.service

Expand Down

0 comments on commit e6e5b04

Please sign in to comment.