How to change bootargs of linux kernel running on SD card

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

How to change bootargs of linux kernel running on SD card

ソリューションへジャンプ
3,105件の閲覧回数
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,083件の閲覧回数
yipingwang
NXP TechSupport
NXP TechSupport

=> setenv othbootargs nokaslr

元の投稿で解決策を見る

0 件の賞賛
返信
1 返信
3,084件の閲覧回数
yipingwang
NXP TechSupport
NXP TechSupport

=> setenv othbootargs nokaslr

0 件の賞賛
返信