VIM3 internal sensors

Does VIM3 have internal voltage temperature sensors that I can query?

For example in raspberry pi 3b I can use vcgencmd to get voltage & temperature:

vcgencmd measure_volts core
vcgencmd measure_temp         

Looking for a similiar thing on my khadas vim 3 board.


The voltage doesn’t need to be measured as values are determined by device-tree and drivers and are essentially fixed (no overclocking possible). VIM3 also has thermal zones support and sensors show the temp readings for CPU and RAM temps. Where to read values from depends on the kernel version you’re using?

1 Like

Thanks for the response. Im on ubuntu server emmc version. I tried installing lm_sensors, but didn’t get any success with that.

This is what I get:


# sensors-detect revision 6284 (2015-05-31 14:00:33 +0200)
# Kernel: 4.9.206 aarch64
# Processor:  (//)

This program will help you determine which kernel modules you need
to load to use lm_sensors most effectively. It is generally safe
and recommended to accept the default answers to all questions,
unless you know what you're doing.

Some south bridges, CPUs or memory controllers contain embedded sensors.
Do you want to scan for them? This is totally safe. (YES/no): y
modprobe: FATAL: Module cpuid not found in directory /lib/modules/4.9.206
Failed to load module cpuid.
Silicon Integrated Systems SIS5595...                       No
VIA VT82C686 Integrated Sensors...                          No
VIA VT8231 Integrated Sensors...                            No
AMD K8 thermal sensors...                                   No
AMD Family 10h thermal sensors...                           No
AMD Family 11h thermal sensors...                           No
AMD Family 12h and 14h thermal sensors...                   No
AMD Family 15h thermal sensors...                           No
AMD Family 16h thermal sensors...                           No
AMD Family 15h power sensors...                             No
AMD Family 16h power sensors...                             No
Intel digital thermal sensor...                             No
Intel AMB FB-DIMM thermal sensor...                         No
Intel 5500/5520/X58 thermal sensor...                       No
VIA C7 thermal sensor...                                    No
VIA Nano thermal sensor...                                  No

Lastly, we can probe the I2C/SMBus adapters for connected hardware
monitoring devices. This is the most risky part, and while it works
reasonably well on most systems, it has been reported to cause trouble
on some systems.
Do you want to probe the I2C/SMBus adapters now? (YES/no): y
Sorry, no supported PCI bus adapters found.

Next adapter: Meson I2C adapter (i2c-3)
Do you want to scan it? (YES/no/selectively): y

Next adapter: Meson I2C adapter (i2c-4)
Do you want to scan it? (YES/no/selectively): Yes
Client found at address 0x18
Handled by driver `khadas-mcu' (built-in), chip type `khadas-mcu'
    (note: this is probably NOT a sensor chip!)
Client found at address 0x51
Handled by driver `rtc-hym8563' (built-in), chip type `hym8563'
    (note: this is probably NOT a sensor chip!)

Sorry, no sensors were detected.
Either your system has no sensors, or they are not supported, or
they are connected to an I2C or SMBus adapter that is not
supported. If you find out what chips are on your board, check for driver status.


No sensors found!
Make sure you loaded all the kernel drivers you need.
Try sensors-detect to find out which these are.

4.9 = legacy BSP kenel. Some “find / -name *thermal*” should turn up the relevant bits of /proc filesystem where the nodes you need to read are probably located. My personal knowledge is oriented towards more modern kernels, so sorry I can’t be more specific.

Thanks, I will try newer kernel once my SD cards arrive, as this kernel is the only one supported with EMMC.

Looks like there are some thermal devices:

find / -name *thermal*
find: ‘/proc/6286/task/6286/net’: Invalid argument
find: ‘/proc/6286/net’: Invalid argument


^ should have something readable, probably. Also, VIM3 has mainline u-boot support since the 2020.01 release so there’s nothing to stop you putting something modern on the eMMC storage.

I tried fenix but it doesn’t allow compiling newer versions to EMMC for some reason. I’ll try hacking around the shell script, maybe it will run :wink:

khadas@258cddb06e72:~/fenix$ source env/

Choose Khadas board:
1. Edge
2. VIM1
3. VIM2
4. VIM3
5. VIM3L

Which board would you like? [2] 3

Choose uboot version:
1. uboot-2015.01
2. uboot-mainline

Which uboot version would you like? [1] 2

Choose linux version:
1. linux-mainline

Which linux version would you like? [1] 1

Choose distribution:
1. Ubuntu
2. Debian

Which distribution would you like? [1] 1

Choose Ubuntu release:
1. bionic
2. focal

Which Ubuntu release would you like? [1] 1

Choose Ubuntu type:
1. server
2. xfce
3. lxde

Which Ubuntu type would you like? [1] 1

Set architecture to 'arm64' by default.

Choose install type:

FYI I’ve tried the latest Linux image which is available VIM3_Ubuntu-server-bionic_Linux-5.5-rc2_arm64_SD-USB_V0.8.2-20200103.7z and lm-sensors still don’t detect the sensors.

The weird part if I do:

cat /sys/devices/virtual/thermal/thermal_zone*/temp

I can see some numbers :slight_smile: