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
Next revision Both sides next revision
en:c2_set_cpu_freq [2016/09/05 16:34]
joy.cho [How to set the number of cpu cores]
en:c2_set_cpu_freq [2016/09/08 15:31]
joy.cho [How to set max cpu frequency and cores]
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 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 60: Line 65:
 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 ​
Line 85: Line 91:
  
 # Boot Arguments # Boot Arguments
-# add maxcpus ​in bootargs +# 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} m_bpp=${m_bpp} vout=${vout} fsck.repair=yes net.ifnames=0 elevator=noop disablehpd=${hpd}"​+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>​ </​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.txt · Last modified: 2017/07/20 09:41 by joy.cho
CC Attribution-Share Alike 3.0 Unported
Driven by DokuWiki Recent changes RSS feed Valid CSS Valid XHTML 1.0