Hardware Status Monitoring?
#3
(03-20-2018, 12:48 PM)Leapo Wrote: Is it possible to measure hardware status (core temperature, core voltage, core clock, memory voltage, memory clock, etc.) on the Rock64 under Linux? So far, I've managed to read core temperature and clockspeed, but that's about it.

I know vcgencmd works on the Raspberry Pi, and was ported to the Pine64, but I haven't seen anything similar for the Rock64.

Readily available is the cpu temperature and cpu frequency - as reported by rock64_health.sh or rock64_diagnostics.sh

You can get the voltage (in microvolts) of the cpu here : /sys/class/regulator/regulator.7/microvolts

It used to be regulator.4, but it seems that is now for one of the USB ports.

Code:
eval cat /sys/class/regulator/regulator.{0..12}/name
regulator-dummy
vcc_phy
vcc_sys
vcc_sd
vcc_host_5v
vcc_host1_5v
vdd_logic
vdd_arm
vcc_ddr
vcc_io
vdd_18
vcc18_emmc
vdd_10

A lazy test of
Code:
eval cat /sys/class/regulator/regulator.{0..12}/microvolts
tells us that regulators 2,3,6,7,9,10,11 & 12 are the only ones reporting any voltages. So it looks like you can get the voltage of the SD card, eMMC, and CPU. regulator.8 which looks like it may be memory related doesn't seem to report any voltage info.

Code:
#!/bin/bash

REGULATOR_PATH="/sys/class/regulator/"

for regulator in `ls $REGULATOR_PATH | sort -V`; do
   echo $regulator, $(cat $REGULATOR_PATH/$regulator/name), $(cat $REGULATOR_PATH/$regulator/microvolts 2>/dev/null )
done

yields

regulator.0, regulator-dummy,
regulator.1, vcc_phy,
regulator.2, vcc_sys, 5000000
regulator.3, vcc_sd, 3300000
regulator.4, vcc_host_5v,
regulator.5, vcc_host1_5v,
regulator.6, vdd_logic, 1050000
regulator.7, vdd_arm, 1100000
regulator.8, vcc_ddr,
regulator.9, vcc_io, 3300000
regulator.10, vdd_18, 1800000
regulator.11, vcc18_emmc, 1800000
regulator.12, vdd_10, 1000000

I'm not sure what the other regulators are controlling... you might be able to work backwards from the names through the schematic to see what they are hooked up to... assuming the names are right...
  Reply


Messages In This Thread
Hardware Status Monitoring? - by Leapo - 03-20-2018, 12:48 PM
RE: Hardware Status Monitoring? - by evilbunny - 03-20-2018, 09:35 PM
RE: Hardware Status Monitoring? - by pfeerick - 03-21-2018, 05:28 AM
RE: Hardware Status Monitoring? - by Leapo - 03-21-2018, 03:40 PM
RE: Hardware Status Monitoring? - by NicoD - 03-31-2018, 06:30 PM
RE: Hardware Status Monitoring? - by PopcornMaker - 06-25-2019, 04:04 AM
RE: Hardware Status Monitoring? - by bendem - 03-15-2020, 08:44 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  The state of mainline hardware decoding CounterPillow 17 16,042 01-26-2022, 03:39 PM
Last Post: sigmaris
  Hardware acceleration using FFmpeg gusarg81 0 2,939 08-21-2020, 01:36 PM
Last Post: gusarg81
  hardware-accelerated video transcoding (Plex) on Rock64 mdr 2 7,542 02-07-2019, 03:42 PM
Last Post: mdr
  How to do hardware decoding of video? SuperSaiyanCaleb 9 16,107 08-28-2018, 01:39 PM
Last Post: mcerveny
  H264 hardware encoder not work sueshieh 3 6,697 11-02-2017, 03:57 AM
Last Post: dalmate
  What is name of gpio hardware on a rock64? gene83 6 6,828 10-05-2017, 07:57 AM
Last Post: gene83
  4.4 and Mainline Status Matrices Luke 0 2,530 08-17-2017, 02:32 AM
Last Post: Luke

Forum Jump:


Users browsing this thread: 1 Guest(s)