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
Last revision Both sides next revision
odroid-c2:application_note:software:set_cpu_freq [2016/09/05 16:52]
joy.cho [How to set max cpu frequency]
odroid-c2:application_note:software:set_cpu_freq [2017/08/01 16:30]
luke.go
Line 1: Line 1:
 ====== How to set max cpu frequency and cores ====== ====== How to set max cpu frequency and cores ======
  
-<​WRAP ​center ​round important>​ +<WRAP round important>​ 
-This functionality has not been released yet. The version will be specified here after the new version release. +  * Ubuntu : Available with 3.14.77-80 (Sep 8, 2016) or higher version 
-  * Ubuntu : N/A +  * Android : Available with Android v2.2 or higher version
-  * Android : N/A+
 </​WRAP>​ </​WRAP>​
  
Line 34: 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 43: Line 42:
 Please modify **max_freq ** based on the aforementioned frequency table. The unit of max_freq in boot.ini is MHz. Please modify **max_freq ** based on the aforementioned frequency table. The unit of max_freq in boot.ini is MHz.
  
-<​code>​+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 ​ini>
 ### boot.ini ### boot.ini
  
 # 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 67: Line 67:
  
 ex) setenv max_freq "​1656"​ ex) setenv max_freq "​1656"​
-<​code>​+<​code ​bash target>
 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 ​
Line 80: Line 80:
 == setting boot.ini == == setting boot.ini ==
  
-<​code>​+<​code ​ini>
 ### boot.ini ### boot.ini
  
Line 99: Line 99:
  
 ex) setenv maxcpus "​2"​ ex) setenv maxcpus "​2"​
-<​code>​+<​code ​bash target>
 root@odroid64:​~#​ cat /​sys/​devices/​system/​cpu/​online ​ root@odroid64:​~#​ cat /​sys/​devices/​system/​cpu/​online ​
 0-1 0-1
Line 106: Line 106:
 </​code>​ </​code>​
  
-<​code>​+<​code ​bash target>
 root@odroid64:​~#​ cat /​proc/​cpuinfo ​ root@odroid64:​~#​ cat /​proc/​cpuinfo ​
 processor ​      : 0 processor ​      : 0
Line 125: Line 125:
 CPU part        : 0xd03 CPU part        : 0xd03
 CPU revision ​   : 4 CPU revision ​   : 4
 +
 +Hardware ​       : ODROID-C2
 </​code>​ </​code>​