How to configure fix CPU frequency?

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

How to configure fix CPU frequency?

1,696 Views
matter
Contributor II

Hi,

we use the following development setup:

Processor: IMX6ULL

Board: MCIMX6ULL-14X14-EVK

BSP: git://git.freescale.com/imx/fsl-arm-yocto-bsp.git -b imx-4.1-krogoth

Use case: For efficiency and testing reasons, we want the IMX6ULL processor to always run at the minimum frequency available (198Mhz) - independent of the current system load. Therefore, we want to build a Yocto-based Linux image that ties the processor to that fixed, predefined frequency value. In general, what would be the right/intended way to do this?

So far, we tried to change the kernel configuration by setting the default governor to userspace. Therefore, we followed the steps from the Yocto Manual. However, neither our defconfig nor our config fragments have been recognized by the bitbake build process.

Thanks in advance!

Regards,

Matthias

Labels (1)
0 Kudos
2 Replies

1,166 Views
Rita_Wang
NXP TechSupport
NXP TechSupport

 if you are running Linux , you can add boot command in the uboot to set it run on the frequency you need .

Please add this in the bootargs.

"arm_freq=***"

0 Kudos

1,166 Views
matter
Contributor II

Ok, but this changes the frequency only while the Linux kernel is loaded, right? Subsequently, the Linux governors (default is ondemand) take over which may change the frequency again.

For this reason, we would like to set the default governor to userspace and set the frequency to a fixed value of 198MHz at compile time using the Yocto build process. How can we achive this?

Regards,

Matthias

0 Kudos