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?
解決済! 解決策の投稿を見る。
=> setenv othbootargs nokaslr