dietpi-cpu odroid xu4

greetings

i really like the dietpi-cpu or cpu command/script on dietpi to view my temps and frequencies on my odroid XU4
can i import and use it in another OS?
if yes then how?
thank you in advance :slight_smile:

Yep, should work, although, you may need to define the HW_MODEL index of system (which script needs for XU4 identification of 8 cores).

wget https://github.com/Fourdee/DietPi/raw/master/dietpi/dietpi-cpuinfo 
chmod +x dietpi-cpuinfo

#Set for XU4
mkdir -p /DietPi/dietpi
echo 11 > /DietPi/dietpi/.hw_model

#Run
./dietpi-cpuinfo

thank you for your reply!
it works but frequencies are not correct
can’t find anything of “HW_MODEL index of system”
how can i fix this?

Strange, should work, try (copy + paste all into term):

mkdir -p /DietPi/dietpi
cat << _EOF_ > /DietPi/dietpi/.hw_model
11
oDroid XU3/4 (armv7l)
3
/dev/mmcblk0p2
non-DietPi-system
2
armv7l
Meveric
0

_EOF_

little processor stays at 200MHz and big at 2000MHz
tried and still the same output

EDIT: and its fine
changed the governor to performance and it raised
must tweak my interactive governor

thanks you for your work!