Skip to content

[platform]:Fix as7726 read thermal sensor issue#4135

Merged
lguohan merged 2 commits intosonic-net:masterfrom
jostar-yang:as7726_20200210_thermal
Feb 13, 2020
Merged

[platform]:Fix as7726 read thermal sensor issue#4135
lguohan merged 2 commits intosonic-net:masterfrom
jostar-yang:as7726_20200210_thermal

Conversation

@jostar-yang
Copy link
Contributor

- What I did
Fix as7726 read thermal sensor issue.
- How I did it
Due to linux create hwmonN node number, N isn't fixed. So modify to use "" to let thermal.py can correct sysfs. For example, use /sys/bus/i2c/devices/55-0048/hwmon/hwmon/temp1_input to instead of /sys/bus/i2c/devices/55-0048/hwmon/hwmon4/temp1_input
- How to verify it
Reboot DUT, and check as7726-32x-platform-monitor.service.
root@sonic:/home/admin# systemctl status as7726-32x-platform-monitor.service -l
● as7726-32x-platform-monitor.service - Accton AS7726-32X Platform Monitoring se
Loaded: loaded (/lib/systemd/system/as7726-32x-platform-monitor.service; enab
Active: active (running) since Mon 2020-02-10 06:54:34 UTC; 1min 10s ago
Process: 640 ExecStartPre=/usr/local/bin/accton_as7726_32x_util.py install

For error case, that will log as below ,
Feb 10 03:50:30 sonic accton_as7726_32x_monitor.py[7998]: No such device_path=/s**
Feb 10 03:50:30 sonic accton_as7726_32x_monitor.py[7998]: No such device_path=/s**
Feb 10 03:50:30 sonic accton_as7726_32x_monitor.py[7998]: No such device_path=/s**
- Description for the changelog

- A picture of a cute animal (not mandatory but encouraged)

@jleveque
Copy link
Contributor

Retest this please

@lguohan lguohan merged commit 427ed1f into sonic-net:master Feb 13, 2020
stepanblyschak pushed a commit to stepanblyschak/sonic-buildimage that referenced this pull request Feb 26, 2020
Due to linux create hwmonN node number, N isn't fixed. So modify to use "" to let thermal.py can correct sysfs. For example, use /sys/bus/i2c/devices/55-0048/hwmon/hwmon/temp1_input to instead of /sys/bus/i2c/devices/55-0048/hwmon/hwmon4/temp1_input
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants