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

Enable Zynq Temperature Monitoring #27

Draft
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

josephnobes-stfc
Copy link
Contributor

Added recipe for lmsensors to the project, which should enable the use of the sensors command to read data about the system.

This should enable the system to read its own temperature.

@josephnobes-stfc josephnobes-stfc added the enhancement New feature or request label Nov 17, 2021
@josephnobes-stfc josephnobes-stfc self-assigned this Nov 17, 2021
@josephnobes-stfc
Copy link
Contributor Author

Before merging, I need to verify that this allows the desired temperatures to be read. The aim is to be able to read internal temperatures from the Zynq. This is likely to come from UltraScale SYSMON, which should provide temperature and voltage readings.

@josephnobes-stfc
Copy link
Contributor Author

After uploading the image, the response from the sensors command (having run through all detections with sensors-detect) is as follows:

root@petalinux-custom:~# sensors
ff0e0000ethernetffffffff01-mdio-1
Adapter: MDIO adapter
temp1:        +34.0 C  (crit = +100.0 C)

root@petalinux-custom:~#

This sensor would appear to be the MDIO adapter (Alaska 88E1512), which has its own temperature sensor. The Zynq's own temperature has not been exposed.

@josephnobes-stfc josephnobes-stfc marked this pull request as draft November 17, 2021 17:40
@josephnobes-stfc
Copy link
Contributor Author

@josephnobes-stfc josephnobes-stfc changed the title Enabled the lmsensors recipe for temperature and voltage monitoring Enable Zynq Temperature Monitoring Nov 17, 2021
@josephnobes-stfc
Copy link
Contributor Author

See this:
https://support.xilinx.com/s/question/0D52E00006iHv06SAC/zynqmpsoc-ultrascale-sysfs-onchip-temperature-sensor-pl-ps-and-other-voltage-sensors?language=en_US

Temperatures are available as part of sysfs. Is there a better way of getting to them? Is this what the driver latches onto?

@josephnobes-stfc
Copy link
Contributor Author

This interface is called ZynqMP AMS.
For reference: https://xilinx-wiki.atlassian.net/wiki/spaces/A/pages/18842163/Zynq+UltraScale+MPSoC+AMS

According to Xilinx, this is in the Xilinx kernel only, not mainline.

Appears to work, but confusing to use. Will use script instead
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant