We're no longer updating This wiki!!

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
en:c2_set_cpu_freq [2016/09/05 16:32]
joy.cho [How to set max cpu frequency]
en:c2_set_cpu_freq [2017/07/20 09:41] (current)
joy.cho [How to set max cpu frequency]
Line 2: Line 2:
  
 <WRAP center round important>​ <WRAP center round important>​
-  * Ubuntu +  * Ubuntu ​: Available with 3.14.77-80 (Sep 8, 2016) or higher version 
-  * Android+  * Android ​: Available with Android v2.2 or higher version
 </​WRAP>​ </​WRAP>​
  
 +For further information,​ you can refer to the following forum thread.
 +
 +http://​forum.odroid.com/​viewtopic.php?​f=141&​t=23044
 ===== How to set max cpu frequency ===== ===== How to set max cpu frequency =====
  
Line 12: Line 15:
 == The available list of cpu frequency set == == The available list of cpu frequency set ==
  
-We recommend ​the following cpu frequency ​sets under normal conditions.+Here are the common ​sets we recommend ​under normal conditions.
  
 |  frequency ​ |  notation on boot.ini ​ | |  frequency ​ |  notation on boot.ini ​ |
Line 30: Line 33:
 |  1.680 GHz  |  "​1680" ​  | booting OK with 4 cores / recommend 3 cores for heavy load test  |  ​ |  1.680 GHz  |  "​1680" ​  | booting OK with 4 cores / recommend 3 cores for heavy load test  |  ​
 |  1.752 GHz  |  "​1752" ​  | booting OK with 4 cores / recommend 2 cores for heavy load test  | |  1.752 GHz  |  "​1752" ​  | booting OK with 4 cores / recommend 2 cores for heavy load test  |
-|  1.896 GHz  |  "​1896" ​ | booing ​OK with 1~3 cores / recommend running with a single core  | +|  1.896 GHz  |  "​1896" ​ | booting ​OK with 1~3 cores / recommend running with a single core  | 
-|  1.920 GHz  |  "​1920" ​ | booint ​OK with 1 or 2 cores / recommend running with a single core  |+|  1.920 GHz  |  "​1920" ​ | booting ​OK with 1 or 2 cores / recommend running with a single core  |
 |  1.944 GHz  |  "​1944" ​ | booting OK with a single core but unstable | |  1.944 GHz  |  "​1944" ​ | booting OK with a single core but unstable |
 |  2.016 GHz  |  "​2016" ​ | extremely unstable ​ | |  2.016 GHz  |  "​2016" ​ | extremely unstable ​ |
Line 37: Line 40:
 == setting boot.ini == == setting boot.ini ==
  
-Please modify **max_freq ** based on the aforementioned frequency table and be sure the unit is MHz.+Please modify **max_freq ** based on the aforementioned frequency table. The unit of max_freq in boot.ini ​is MHz
 + 
 +If you don't set max_freq in bootargs or the setting value is wrong one which doesn'​t exist in frequency table, max_freq will be set as "​1.536GHz"​ by default.
  
 <​code>​ <​code>​
Line 44: Line 49:
 # max cpu frequency in dvfs table / in MHz unit # max cpu frequency in dvfs table / in MHz unit
 # setenv max_freq "​2016" ​ # 2.016GHz # setenv max_freq "​2016" ​ # 2.016GHz
-# setenv max_freq "​1944" ​ # 1.944GHz 
 # setenv max_freq "​1944" ​ # 1.944GHz # setenv max_freq "​1944" ​ # 1.944GHz
 # setenv max_freq "​1920" ​ # 1.920GHz # setenv max_freq "​1920" ​ # 1.920GHz
Line 60: Line 64:
 After setting it, then be sure you do reboot. After setting it, then be sure you do reboot.
  
-You can check the frequency list as following. ​(example : setenv max_freq "​1656"​)+You can check the frequency list as following. ​
  
 +ex) setenv max_freq "​1656"​
 <​code>​ <​code>​
 root@odroid64:​~#​ cat /​sys/​devices/​system/​cpu/​cpu0/​cpufreq/​scaling_available_frequencies ​ root@odroid64:​~#​ cat /​sys/​devices/​system/​cpu/​cpu0/​cpufreq/​scaling_available_frequencies ​
 100000 250000 500000 1000000 1296000 1536000 1656000 ​ 100000 250000 500000 1000000 1296000 1536000 1656000 ​
 </​code>​ </​code>​
 +
 +===== How to set the number of cpu cores  =====
 +
 +Also, you can set cpu-cores you want to activate using boot.ini
 +
 +The available range is "​1"​ to "​4"​
 +
 +== setting boot.ini ==
 +
 +<​code>​
 +### boot.ini
 +
 +# max cpu-cores
 +# setenv maxcpus "​1"​
 +# setenv maxcpus "​2"​
 +# setenv maxcpus "​3"​
 +setenv maxcpus "​4"​
 +
 +# Boot Arguments
 +# add max_freq in bootargs
 +setenv bootargs "​root=UUID=e139ce78-9841-40fe-8823-96a304a09859 rootwait ro ${condev} no_console_suspend max_freq=${max_freq} maxcpus=${maxcpus} hdmimode=${m} ${comde} m_bpp=${m_bpp} vout=${vout} fsck.repair=yes net.ifnames=0 elevator=noop disablehpd=${hpd}"​
 +</​code>​
 +
 +After setting it, then please be sure you do reboot.
 +
 +You can check the activated cpu cores as following.
 +
 +ex) setenv maxcpus "​2"​
 +<​code>​
 +root@odroid64:​~#​ cat /​sys/​devices/​system/​cpu/​online ​
 +0-1
 +root@odroid64:​~#​ cat /​sys/​devices/​system/​cpu/​offline ​                                                                      
 +2-3
 +</​code>​
 +
 +<​code>​
 +root@odroid64:​~#​ cat /​proc/​cpuinfo ​
 +processor ​      : 0
 +BogoMIPS ​       : 2.00
 +Features ​       : fp asimd crc32
 +CPU implementer : 0x41
 +CPU architecture:​ 8
 +CPU variant ​    : 0x0
 +CPU part        : 0xd03
 +CPU revision ​   : 4
 +
 +processor ​      : 1
 +BogoMIPS ​       : 2.00
 +Features ​       : fp asimd crc32
 +CPU implementer : 0x41
 +CPU architecture:​ 8
 +CPU variant ​    : 0x0
 +CPU part        : 0xd03
 +CPU revision ​   : 4
 +
 +Hardware ​       : ODROID-C2
 +</​code>​
 +
en/c2_set_cpu_freq.1473062544.txt.gz · Last modified: 2016/09/05 16:32 by joy.cho
CC Attribution-Share Alike 3.0 Unported
Driven by DokuWiki Recent changes RSS feed Valid CSS Valid XHTML 1.0