Jetpack5.1.2 kernel5.10 如何使用kdump

我在jetpack5.1.2 kernel5.10环境下使用以下步骤试图使用kdump获取kernel panic,但是似乎无法正确开启,查询论坛说可能不支持,我想确认orin nx是否支持kdump?

sudo apt install linux-crashdump
sudo apt install crash

cmdline 增加crashkernel=auto


sudo reboot

zme@zme-0020:~$ cat /etc/default/grub.d/kdump-tools.cfg
GRUB_CMDLINE_LINUX_DEFAULT="$GRUB_CMDLINE_LINUX_DEFAULT crashkernel=2G-4G:320M,4G-32G:512M,32G-64G:1024M,64G-128G:2048M,128G-:4096M"

zme@zme-0020:~$ kdump-config show
 * no crashkernel= parameter in the kernel cmdline
DUMP_MODE:        kdump
USE_KDUMP:        1
KDUMP_SYSCTL:     kernel.panic_on_oops=1
KDUMP_COREDIR:    /var/crash
crashkernel addr: 
   /var/lib/kdump/vmlinuz
kdump initrd: 
   /var/lib/kdump/initrd.img
current state:    Not ready to kdump

kexec command:
  no kexec command recorded

显示Not ready to kdump

查询service状态

root@zme-0020:/home/zme# sudo service kdump-tools status
● kdump-tools.service - Kernel crash dump capture service
     Loaded: loaded (/lib/systemd/system/kdump-tools.service; enabled; vendor p>
     Active: active (exited) since Wed 2024-05-29 11:47:45 UTC; 33min ago
    Process: 659 ExecStart=/etc/init.d/kdump-tools start (code=exited, status=0>
   Main PID: 659 (code=exited, status=0/SUCCESS)

May 29 11:47:42 zme-0020 systemd[1]: Starting Kernel crash dump capture service>
May 29 11:47:45 zme-0020 kdump-tools[659]: Starting kdump-tools:
May 29 11:47:45 zme-0020 kdump-tools[946]:  * Invalid kernel version : 5.10.120>
May 29 11:47:45 zme-0020 kdump-tools[946]:  * /etc/default/kdump-tools: KDUMP_K>
May 29 11:47:45 zme-0020 systemd[1]: Finished Kernel crash dump capture service.

Hi,
It is not supported. Please use other tools for debugging.

Can you recommend a supported kernel panic tool?

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.