How to change bootargs of linux kernel running on SD card

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 
已解决

How to change bootargs of linux kernel running on SD card

跳至解决方案
3,106 次查看
m_kei
Contributor III

I am currently debugging the linux kernel on lx2160ardb_rev2 with firmware, rootfs and linux kernel (Boot) on the SD card. Both uboot and linux kernel are stored on the SD card and booted from the SD card.

When debugging the linux kernel, KASLR makes it impossible to debug the kernel as it is. I want to disable KASLR, but even though I added "nokaslr" to the bootargs in the uboot env, it is not actually disabled.

The bootargs for uboot are as follows. I tried "NOKASLR" in both uppercase and lowercase, but it does not change.

bootargs=console=ttyAMA0,115200 root=/dev/ram0 earlycon=pl011,mmio32,0x21c0000 ramdisk_size=0x2000000 default_hugepagesz=1024m hugepagesz=1024m hugepages=2 pci=pcie_bus_perf NOKASLR

If "run bootcmd_mmc0" is executed in this state, the following kernel boot log will be displayed.


[ 0.000000] Kernel command line: console=ttyAMA0,115200 earlycon=pl011,mmio32,0x21c0000 root=PARTUUID=e11c05f9-04 rw rootwait pci=pcie_bus_perf

[ 0.517827] KASLR enabled

You can see that "nokaslr" is not added to the Kernel command line even though "nokaslr" is added to bootargs.

How do I disable KASLR?

0 项奖励
回复
1 解答
3,084 次查看
yipingwang
NXP TechSupport
NXP TechSupport

=> setenv othbootargs nokaslr

在原帖中查看解决方案

0 项奖励
回复
1 回复
3,085 次查看
yipingwang
NXP TechSupport
NXP TechSupport

=> setenv othbootargs nokaslr

0 项奖励
回复