Other Parts Discussed in Thread: OMAPL138,
Hi Expert,
The lastest release(2013) Linux version is 2.6 in TI website, now we need to update linux kernel, the solution is using linux 4.19 which is from OMAPL138 Linux PSDK (ti-processor-sdk-linux-omapl138-lcdk-06.03.00.106 ), we finished some migration on dts file and remove DSP related node/configuration, rebuild the kernel, after download the kernel into our board, it shows:
cpufreq: __target_index: Failed to change cpu frequency: -22
Description:
hardware environment:
1: UBL : AM1808’s UBL
2: u-boot: u-boot2013.01.01
3: PC: ubuntu18.04
4: SDK: ti-processor-sdk-linux-omapl138-lcdk-06.03.00.106
5: board: Customized board using AM1808E ZWT (456)
Code changes:(just kernel code in ti-processor-sdk-linux-omapl138-lcdk-06.03.00.106)
change device tree file:
1 arch/arm/boot/dts/da850-lcdk.dts:
comment three node: dsp_memory_region,sound and &dsp.
2 arch/arm/boot/dts/da850.dtsi:
comment two node: aliases and dsp: dsp@11800000 .
Others:
no change
Phenomenon:
When board start up and into uboot,download kernel , ramdisk and dtb into DDR by tftpboot command,and using bootm kernelAddr ramdiskAddr dtbAddr to start kernel,and kernel can start up and entry ramdisk, but it always show:
quary with command: cat /sys/devices/systrm/cpu/cpu0/cpufreq/
current running frequency (cpuinfo_cur_freq): 384MHZ
max support frequency (cpuinfo_max_freq ): 300MHZ
min support frequency ( cpuinfo_min_freq ):96MHZ
scaling_cur_freq: 96MHZ
kernel configuration:
Questions:
1, We used AM1808 UBL + uboot2013.01.01 + OAMPL138 Linux kernel, Is there any possible problem with this method? For example, UBoot version doesn't match with Kernel.
2, The AM1808 chip max freq is 456M . The cpuinfo_max_freq(300M) is the configured maximum OPP to operate from the Linux kernel, right? If yes, how to understand chip current running freq cpuinfo_cur_freq(384M) is larger than maximum OPP cpuinfo_max_freq (300M)? We will check and configure maximum OPP to operate as 456M from the Linux kernel then to see the result.
3, How should we do to change the MAX?For example, to make CPU work in max freq, Below are 3 methods we will try and any comments are welcome,
a."# echo 384000 > /sys/devices/system/cpu/cpufreq/policy0/scaling_min_freq"
b. choose the maximum OPP to operate at from the Linux kernel
c. u-boot> setenv maxcpuclk 456000000
Thanks very much.