0
geotravel

Orange Pi Zero and CPU frequency

Recommended Posts

Hi

 

I have use Armbian v5.31 Debian jessie kernel 4.11.5-sun8i with Orange Pi Zero. When I have use armbianmonitor or rpimonitor always information

about CPU frequency is null. The directory sys/devices/system/cpu/cpu0/cpufreq/ are empty for this reason rpimonitor don't show related information 

to CPU

CPU total: undefined% (Sys: undefined%, User: undefined%, I/O wait: undefined%, Nice: undefined%)

CPU frequency: undefinedGHz  DRAM frequency: Not available

 

Regards

 

 

Share this post


Link to post
Share on other sites

Everything is fine. Development kernels can and do lack functions. This will be fixed in the stable build, when ready. Currently, we don't provide testing builds with next (should be stable) 4.13 kernel since it's too soon - you need to build it on your own ... and be ready for problems.

Share this post


Link to post
Share on other sites

Hi Igor,

 

Thank you for replay. Ok I must wait for stable release because I don't have possibility built armbian.   I have use ARMBIAN with kernel 4.11.5 which allow me 

simple paly with GPIO pins and I can use snd_aloop module compare with ARMBIAN base on kernel 3.4 which has misting snd_aloop module and not user-friendly support with GPIO 

 

I have seen that in https://dl.armbian.com/orangepizero/nightly/

only UBUNTU version, not DEBIAN jessie exist

 

Regards

 

Waldek

Share this post


Link to post
Share on other sites

hi

orangepi+2e : ARMBIAN 5.32 user-built Debian GNU/Linux 8 (jessie) 4.13.2-sunxi (no changes)

armbianmonitor -u

 

Perhaps I've the the same problem:

 

Spoiler

cpufreq-info
cpufrequtils 008: cpufreq-info (C) Dominik Brodowski 2004-2009
Report errors and bugs to cpufreq@vger.kernel.org, please.
analyzing CPU 0:
  no or unknown cpufreq driver is active on this CPU
  maximum transition latency: 0.00 ms.
analyzing CPU 1:
  ...
 
orangepi@orangepiplus2e:~$ sudo service cpufrequtils status
* cpufrequtils.service - LSB: set CPUFreq kernel parameters
   Loaded: loaded (/etc/init.d/cpufrequtils)
   Active: active (exited) since Fr 2017-09-15 17:03:24 CEST; 11min ago
  Process: 757 ExecStart=/etc/init.d/cpufrequtils start (code=exited, status=0/SUCCESS)

Sep 15 17:03:24 orangepiplus2e cpufrequtils[757]: CPUFreq Utilities: Setting ondemand CPUFreq governor...disabled, governor not available...done.
Sep 15 17:03:25 orangepiplus2e systemd[1]: Started LSB: set CPUFreq kernel parameters.
orangepi@orangepiplus2e:~$
dmesg |grep -i cpu
[    0.000000] Booting Linux on physical CPU 0x0
[    0.000000] CPU: ARMv7 Processor [410fc075] revision 5 (ARMv7), cr=50c5387d
[    0.000000] CPU: div instructions available: patching division code
[    0.000000] CPU: PIPT / VIPT nonaliasing data cache, VIPT aliasing instruction cache
[    0.000000] percpu: Embedded 17 pages/cpu @eed9e000 s39948 r8192 d21492 u69632
[    0.000000] pcpu-alloc: s39948 r8192 d21492 u69632 alloc=17*4096
[    0.000000] pcpu-alloc: [0] 0 [0] 1 [0] 2 [0] 3
[    0.000000] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=4, Nodes=1
[    0.001091] CPU: Testing write buffer coherency: ok
[    0.001399] /cpus/cpu@0 missing clock-frequency property
[    0.001415] /cpus/cpu@1 missing clock-frequency property
[    0.001430] /cpus/cpu@2 missing clock-frequency property
[    0.001447] /cpus/cpu@3 missing clock-frequency property
[    0.001456] CPU0: thread -1, cpu 0, socket 0, mpidr 80000000
[    0.002479] smp: Bringing up secondary CPUs ...
[    0.013073] CPU1: thread -1, cpu 1, socket 0, mpidr 80000001
[    0.023724] CPU2: thread -1, cpu 2, socket 0, mpidr 80000002
[    0.034335] CPU3: thread -1, cpu 3, socket 0, mpidr 80000003
[    0.034400] smp: Brought up 1 node, 4 CPUs
[    0.034412] CPU: All CPU(s) started in HYP mode.
[    0.034414] CPU: Virtualization extensions available.
[    0.449247] cpuidle: using governor ladder
[    0.449376] cpuidle: using governor menu
[    3.890777] ledtrig-cpu: registered to indicate activity on CPUs
[    7.046077] cpu cpu0: failed to get clock: -2
[    7.046105] cpufreq-dt: probe of cpufreq-dt failed with error -2

 

I've tried to load the cpufreq driver

orangepi@orangepiplus2e:~$ cat /etc/modules
#8189fs
arm_big_little
arm_big_little_dt

But nothing happens.

 

On 10.9.2017 at 9:35 AM, Igor said:

Everything is fine.

 

What does it mean ? No risk for my Pi ?

 

ciao nepo

Share this post


Link to post
Share on other sites
10 minutes ago, nepo said:

What does it mean ? No risk for my Pi ?

"Everything is fine" here means that we are aware of missing or not working features and you are using development images at your own risk, and any damage like this due to missing DVFS and thermal throttling is not our issue.

Share this post


Link to post
Share on other sites
2 minutes ago, zador.blood.stained said:

and you are using development images at your own risk,

I know that :thumbup:

 

Or to put it another way: No governor means the cpu run in highest level and can be damaged?

Share this post


Link to post
Share on other sites
1 minute ago, nepo said:

No governor means the cpu run in highest level and can be damaged?

It means that the CPU runs at clock speed that was set by u-boot (usually either 480MHz or 1008MHz) and while it will run fine, in a small confined space (like a plastic box) it may overheat and there will be no mechanisms to cool it down, even the critical trip point (shutting the board down) requires some setup.

Share this post


Link to post
Share on other sites

hi zador

 

thanks for reply !

1 hour ago, nepo said:

no or unknown cpufreq driver is active on this CPU

How to activate the driver or it's a mainline issue ?

Share this post


Link to post
Share on other sites

Hi,

 

I have switch via armbian-config to ARMBIAN 5.32.170921 nightly Debian GNU/Linux 8 (jessie) 4.11.12-sun8i

and armbianmonitor show cpu frequnecy

 

Regards

 

Share this post


Link to post
Share on other sites
Guest
This topic is now closed to further replies.
0