Permalink
Browse files

Set XU4 frequency to 1.4 GHz

  • Loading branch information...
NEMS Linux
NEMS Linux committed Jan 14, 2019
1 parent af5b923 commit cf281024ace7640d8f0a83b7f7914dc1e05fd89c
Showing with 23 additions and 0 deletions.
  1. +20 −0 build/160-odroid-xu4
  2. +3 −0 nems-upgrade/1.4.1-1.5
@@ -0,0 +1,20 @@
#!/bin/bash

# This is for the Pine A64+

# The Pine64 platform requires some extra fandangling to resize the filesystem
# Thanks to Ayufan for doing all the legwork... I'd have scratched my head a while.

# There is also a folder located at /var/lib/pine64
# But we'll leave it to the cleanup script - not here

platform=$(/usr/local/share/nems/nems-scripts/info.sh platform)

if (( $platform == 11 )); then

# Lower the CPU speed to 1.4GHz to reduce temperature and improve reliability
echo 1400000 > /sys/devices/system/cpu/cpu0/cpufreq/scaling_max_freq
echo 1400000 > /sys/devices/system/cpu/cpu4/cpufreq/scaling_max_freq
echo conservative > /sys/devices/system/cpu/cpu4/cpufreq/scaling_governor

fi
@@ -59,6 +59,9 @@ if [[ "$ver" == "1.4.1" ]]; then
## Configure samba
/root/nems/nems-admin/build/155-samba

## ODROID XU4 changes in 1.5
/root/nems/nems-admin/build/160-odroid-xu4

else
echo "Cannot uprade NEMS $ver to 1.5."
fi

0 comments on commit cf28102

Please sign in to comment.