Howto Overclock your Odroid-C1

Post Reply
mlinuxguy
Posts: 842
Joined: Thu Feb 28, 2013 10:28 am
languages_spoken: english
ODROIDs: X, X2, XU, XU3, XU4, C1, C1+, C2, N1, USB-IO
Has thanked: 0
Been thanked: 0
Contact:

Howto Overclock your Odroid-C1

Post by mlinuxguy »

I will show you here how to overclock, it will require rebuilding the kernel
Note: at my current max speed of 1,728,000Hz I do not get an ethernet connection
until my /etc/rc.local script hits which cuts the max speed back down.
Once you have ethernet connection up you can switch back to max speed.

Update: To allow overclocked reboot with no need to change speeds in /etc/rc.local
You need to edit the DTS file as follows:

Code: Select all

# diff /usr/src/linux/arch/arm/boot/dts/meson8b_odroidc.dts /usr/src/linux/arch/arm/boot/dts/meson8b_odroidc.dts.orig
908c908
<                 reset_delay = <200>;
---
>                 reset_delay = <100>;
To overclock: edit this file first

Code: Select all

# diff usr/src/linux/arch/arm/mach-meson8b/clock.c.orig usr/src/linux/arch/arm/mach-meson8b/clock.c
63c63
< #define CPU_FREQ_LIMIT 1488000000
---
> #define CPU_FREQ_LIMIT 1728000000
Then change this include file:

Code: Select all

# diff usr/src/linux/arch/arm/mach-meson8b/include/mach/cpufreq_table.h.orig usr/src/linux/arch/arm/mach-meson8b/include/mach/cpufreq_table.h
22c22,25
<     {15       , CPUFREQ_TABLE_END},
---
>     {15       , 1536000  },
>     {16       , 1632000  },
>     {17       , 1728000  },
>     {18       , CPUFREQ_TABLE_END}, 
I did not see an easy way to set the default speed (it goes to max) so put this in /etc/rc.local

Code: Select all

echo 1536000 > /sys/devices/system/cpu/cpu0/cpufreq/scaling_max_freq
My current speed after getting a stable network connection

Code: Select all

# ./showfreq.sh
scaling max freq
1728000
cpuinfo max freq
1728000
cpuinfo cur freq
1728000
cpuinfo avail freq
96000 192000 312000 408000 504000 600000 696000 816000 912000 1008000 1104000 1200000 1296000 1416000 1488000 1536000 1632000 1728000
My temperature is:
# ./checktemp.sh
57

Now I run 30 seconds of heavy IPERF receive data on the Odroid-C1:
# ./checktemp.sh
59

I have a small heatsink on the CPU (smaller than the HK offering)
Attachments
odroid-c1.jpg
odroid-c1.jpg (23.78 KiB) Viewed 8333 times
Last edited by mlinuxguy on Mon Jan 19, 2015 11:18 am, edited 2 times in total.

User avatar
odroid
Site Admin
Posts: 36385
Joined: Fri Feb 22, 2013 11:14 pm
languages_spoken: English, Korean
ODROIDs: ODROID
Has thanked: 1431 times
Been thanked: 980 times
Contact:

Re: Howto Overclock your Odroid-C1

Post by odroid »

Very interesting but little bit scary. ;)
Can you take a picture of your heat hink?

Edit: Thank you for the picture.
It looks really tiny.

mlinuxguy
Posts: 842
Joined: Thu Feb 28, 2013 10:28 am
languages_spoken: english
ODROIDs: X, X2, XU, XU3, XU4, C1, C1+, C2, N1, USB-IO
Has thanked: 0
Been thanked: 0
Contact:

Re: Howto Overclock your Odroid-C1

Post by mlinuxguy »

I printed the case bottom and top on my 3d printer (Makerbot),
so I will have to re-design and reprint the top to fit the bigger heatsink I will put on it.

Curmudgeon
Posts: 49
Joined: Thu Jan 01, 2015 11:07 pm
languages_spoken: english
ODROIDs: C1, N2, C4
Has thanked: 2 times
Been thanked: 7 times
Contact:

Re: Howto Overclock your Odroid-C1

Post by Curmudgeon »

Is checktemp.sh available?

mlinuxguy
Posts: 842
Joined: Thu Feb 28, 2013 10:28 am
languages_spoken: english
ODROIDs: X, X2, XU, XU3, XU4, C1, C1+, C2, N1, USB-IO
Has thanked: 0
Been thanked: 0
Contact:

Re: Howto Overclock your Odroid-C1

Post by mlinuxguy »

Code: Select all

# cat checktemp.sh
#!/bin/bash
cat /sys/class/thermal/thermal_zone0/temp

newroad
Posts: 50
Joined: Fri Aug 30, 2013 6:08 am
languages_spoken: english
ODROIDs: U2, U3
Has thanked: 0
Been thanked: 0
Contact:

Re: Howto Overclock your Odroid-C1

Post by newroad »

Do we still need to rebuild the kernel
or
we can overclock just by updating the above mentioned files.

User avatar
odroid
Site Admin
Posts: 36385
Joined: Fri Feb 22, 2013 11:14 pm
languages_spoken: English, Korean
ODROIDs: ODROID
Has thanked: 1431 times
Been thanked: 980 times
Contact:

Re: Howto Overclock your Odroid-C1

Post by odroid »

The stock kernel has "1632000" and "1728000" options by default.

wintersdark
Posts: 25
Joined: Mon Jan 12, 2015 3:13 am
languages_spoken: english
ODROIDs: C1
Has thanked: 0
Been thanked: 0
Contact:

Re: Howto Overclock your Odroid-C1

Post by wintersdark »

Is it possible to overclock the CPU on Android? I'm fine with the two speeds mentioned above, just want to edge a smidgeon more performance out of the C1.

User avatar
odroid
Site Admin
Posts: 36385
Joined: Fri Feb 22, 2013 11:14 pm
languages_spoken: English, Korean
ODROIDs: ODROID
Has thanked: 1431 times
Been thanked: 980 times
Contact:

Re: Howto Overclock your Odroid-C1

Post by odroid »

The latest Android image has the overclocking option in the ODROID-Utility.

antonica
Posts: 11
Joined: Wed May 20, 2015 5:11 am
languages_spoken: spanish
ODROIDs: odroid c1
Has thanked: 0
Been thanked: 0
Contact:

Re: Howto Overclock your Odroid-C1

Post by antonica »

hi,
very good,
but is it hard to compile kernel? i have fear to loss my actual modules kernel

repomanz
Posts: 10
Joined: Sat Jun 18, 2016 4:54 am
languages_spoken: english
Has thanked: 0
Been thanked: 0
Contact:

Re: Howto Overclock your Odroid-C1

Post by repomanz »

Hi folks - is there a guide on how to do this for the C2?

mlinuxguy
Posts: 842
Joined: Thu Feb 28, 2013 10:28 am
languages_spoken: english
ODROIDs: X, X2, XU, XU3, XU4, C1, C1+, C2, N1, USB-IO
Has thanked: 0
Been thanked: 0
Contact:

Re: Howto Overclock your Odroid-C1

Post by mlinuxguy »

Cannot be done for the C2 without Amlogic changing one of the binary blobs it boots from
Look for my "Exploring C2 clock speeds" --> http://forum.odroid.com/viewtopic.php?f=139&t=18738
Short answer is ARM trustzone controls the voltage/frequency tables from values set in the signed binary blob
Even if you were to hack it you would have to be able to sign the blob

Post Reply

Return to “Hardware and peripherals”

Who is online

Users browsing this forum: No registered users and 1 guest