procedure for kdump enabling + executing a crash on imx8mp

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

procedure for kdump enabling + executing a crash on imx8mp

858件の閲覧回数
learner24
Contributor I

I am trying to enable kdump with below steps

Kernel configs enabled

1) CONFIG_CRASH_DUMP=Y

2) CONFIG_KCORE=Y

3) CONFIG_PROC_VMCORE=Y

4) CONFIG_DEBUG_INFO=Y

5) CONFIG_KEXEC=Y

6) CONFIG_SYSFS=Y

from uboot adding kernel cmdline with crashkernel=256M

then boot device and execute. For testing purpose i am using same kernel  

kexec -p /boot/ostree/poky-2f7333f6adb732f8d9de84f5291c21eaf4d3a7cb845762849607488e4cb706fd/vmlinuz-5.15.32+g08ef78a71302 --initrd=/boot/ostree/poky-2f7333f6adb732f8d9de84f5291c21eaf4d3a7cb845762849607488e4cb706fd/initramfs-5.15.32+g08ef78a71302.img --append=" console=ttymxc1,115200 rw root=/dev/mmcblk2p1"

echo c > /proc/sysrq-trigger

then output is ,

[ 745.578169] sysrq: Trigger a crash
[ 745.581590] Kernel panic - not syncing: sysrq triggered crash
[ 745.587337] CPU: 0 PID: 12277 Comm: sh Kdump: loaded Not tainted 5.15.32-congatec+g08ef78a71302 #1
[ 745.596298] Hardware name: congatec SX8P board (DT)
[ 745.601175] Call trace:
[ 745.603617] dump_backtrace+0x0/0x1d0
[ 745.607291] show_stack+0x18/0x70
[ 745.610608] dump_stack_lvl+0x68/0x84
[ 745.614270] dump_stack+0x18/0x34
[ 745.617585] panic+0x160/0x320
[ 745.620642] sysrq_reset_seq_param_set+0x0/0x90
[ 745.625177] __handle_sysrq+0x8c/0x19c
[ 745.628928] write_sysrq_trigger+0x88/0x120
[ 745.633114] proc_reg_write+0xa8/0xec
[ 745.636780] vfs_write+0xf0/0x28c
[ 745.640098] ksys_write+0x68/0xf4
[ 745.643417] __arm64_sys_write+0x20/0x2c
[ 745.647340] invoke_syscall+0x48/0x114
[ 745.651091] el0_svc_common.constprop.0+0xd4/0xfc
[ 745.655798] do_el0_svc+0x28/0x90
[ 745.659115] el0_svc+0x28/0x80
[ 745.662171] el0t_64_sync_handler+0xa4/0x130
[ 745.666442] el0t_64_sync+0x1a0/0x1a4
[ 745.670113] SMP: stopping secondary CPUs
[ 745.674554] Starting crashdump kernel...
[ 745.678477] Bye!

New kernel does not get loaded. 

is anything wrong? Basically i want to boot with initramfs . so is my parameters to kexec cmd is it correct ? please suggest

is using psstore, ramoops required ? can we not do this way ? I got this from this post

https://community.nxp.com/docs/DOC-347175

 

0 件の賞賛
返信
1 返信

835件の閲覧回数
Bio_TICFSL
NXP TechSupport
NXP TechSupport

Hello,

Try to change the dts and change the CMA to 512, lets see it that's works, because i don't see any issue here.

Regards

0 件の賞賛
返信