作者
QQ群:852283276
微信:arm80x86
微信公众号:青儿创客基地
B站:主页 https://space.bilibili.com/208826118
参考
解决
芯片bug,CPU不能处于IDLE模式,有三种方法禁止CPU IDLE,
- 通过uboot cmdline
setenv bootargs 'console=ttyPS0,115200n8 earlycon clk_ignore_unused cpuidle.off=1'
- 在内核menuconfig中禁止IDLE(CONFIG_CPU_IDLE)
$ petalinux-config -c kernel
or
$ bitbake -c menuconfig virtual/kernel
CPU Power Management --->
-> CPU Idle --->
[ ] CPU idle PM support
- 通过设备树更改bootargs
Add the below content to the dtsi file "<plnx-proj-root>/project-spec/meta-user/recipes-bsp/device-tree/files/system-user.dtsi"
/ {
chosen {
bootargs = "cpuidle.off=1";
};
};
$ petalinux-build -c device-tree