Discussion:
Raspberry Pi 1B cpu scaling
(too old to reply)
basti
2022-11-11 10:20:01 UTC
Permalink
Hello,

I have installed the 20220121_raspi_1_bullseye.img.xz image from
https://raspi.debian.net/tested-images/
on one of my old Raspberry Pi 1B.

As I can see cpu scaling seems to not work.

|I have to load the kernel model.

***@counter:~# lsmod | grep cpu
cpufreq_ondemand       16384  0

/sys/devices/system/cpu/cpu/X//cpufreq/scaling_max_freq is not available
so I compile vcgencmd to test it.

|***@counter:~# vcgencmd measure_clock arm
frequency(48)=700000000

Is always 700 Mhz, also when I try to stress the Pi with "stress --cpu 2
--timeout 60s".

***@counter:~# vcgencmd get_config int | grep freq
arm_freq=950
arm_freq_min=700
core_freq=250
sdram_freq=450
hdmi_pixel_freq_limit:0=0x9a7ec80

So the next step I have try is to increase arm_freq_min to 800.
After reboot
***@counter:~# vcgencmd measure_clock arm
frequency(48)=800000000

So I verify that vcgencmd show the correct value.

Can someone reproduce this?
Why did cpu scaling not work on pi1 ?

Best Regards
Diederik de Haas
2022-11-11 10:40:02 UTC
Permalink
Post by basti
I have installed the 20220121_raspi_1_bullseye.img.xz image from
https://raspi.debian.net/tested-images/
on one of my old Raspberry Pi 1B.
As I can see cpu scaling seems to not work.
Support for CPU frequency scaling on the RPi 0/1 got added [1] to the
5.14.12-2~exp1 (and later) kernel and is not available on a Bullseye system.
You can get it by installing a kernel via backports or upgrading to Bookworm/
Testing.
Post by basti
/sys/devices/system/cpu/cpu/X//cpufreq/scaling_max_freq is not available
so I compile vcgencmd to test it.
frequency(48)=700000000
Is always 700 Mhz, also
AFAIK, the RPi 1 only has 1 frequency: 700Mhz ...
Post by basti
when I try to stress the Pi with "stress --cpu 2 --timeout 60s".
and only 1 CPU core, so I don't expect any change in that.

The RPi 0 (Zero) uses the same kernel and does have multiple frequencies.

HTH

[1] https://salsa.debian.org/kernel-team/linux/-/merge_requests/381
Loading...