Page 1 of 1

dietpi-cpu odroid xu4

Posted: Fri Mar 24, 2017 2:24 pm
by kamilmirza
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 :)

Re: dietpi-cpu odroid xu4

Posted: Sat Mar 25, 2017 12:29 pm
by Fourdee
kamilmirza wrote: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 :)
Yep, should work, although, you may need to define the HW_MODEL index of system (which script needs for XU4 identification of 8 cores).

Code: Select all

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

Re: dietpi-cpu odroid xu4

Posted: Sun Mar 26, 2017 11:33 am
by kamilmirza
Fourdee wrote:
kamilmirza wrote: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 :)
Yep, should work, although, you may need to define the HW_MODEL index of system (which script needs for XU4 identification of 8 cores).

Code: Select all

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?

Re: dietpi-cpu odroid xu4

Posted: Sun Mar 26, 2017 6:07 pm
by Fourdee
kamilmirza wrote: 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):

Code: Select all

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_

Re: dietpi-cpu odroid xu4

Posted: Tue Mar 28, 2017 3:32 pm
by kamilmirza
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!