How to change bootargs of linux kernel running on SD card

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

How to change bootargs of linux kernel running on SD card

Jump to solution
2,238 Views
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 Kudos
1 Solution
2,216 Views
yipingwang
NXP TechSupport
NXP TechSupport

=> setenv othbootargs nokaslr

View solution in original post

0 Kudos
1 Reply
2,217 Views
yipingwang
NXP TechSupport
NXP TechSupport

=> setenv othbootargs nokaslr

0 Kudos