Wind River Support Network

HomeDefectsLIN1021-2958
Fixed

LIN1021-2958 : Kdump: the makedumpfile and crash doesn't work

Created: Mar 1, 2022    Updated: May 8, 2022
Resolved Date: Apr 26, 2022
Previous ID: LINCD-8388
Found In Version: 10.21.20.11
Fix Version: 10.21.20.12
Severity: Standard
Applicable for: Wind River Linux LTS 21
Component/s: Userspace

Description

1) setup.sh   --machine intel-x86-64 --dl-layers --distro wrlinux-cgl --templates feature/cut
2).  ./environment-setup-x86_64-wrlinuxsdk-linux
 
3) .  ./oe-init-build-env
 
4) bitbake wrlinux-image-cgl
 
5) boot on target and harddisk startup and make sure pass "maxcpus=1 crashkernel=512M@64M" to kernel command line to make crashkernel work.
 
6) run command as problem description
# TESTROOT=/opt/kdump
# mkdir -p $TESTROOT
# cp -f /boot/bzImage-`uname -r` $TESTROOT/crash-kernel
#  cp -f /boot/vmlinux-`uname -r` $TESTROOT/vmlinux
# kexec -p $TESTROOT/crash-kernel --append="`cat /proc/cmdline|sed 's/ crashkernel=.*//g'`"
# cat /sys/kernel/kexec_crash_loaded
1
# echo c > /proc/sysrq-trigger

After  the system boots up,
# cp /proc/vmcore  /opt/kdump
reboot the board

After the board boots up.
# TESTROOT="/opt/kdump"
#  makedumpfile --dump-dmesg -x $TESTROOT/vmlinux $TESTROOT/vmcore dmesgfile2
process_module: dwfl_module_getdwarf error.
init_dwarf_info: Can't get first elf header of $TESTROOT/vmlinux.

# crash $TESTROOT/vmcore $TESTROOT/vmlinux
[snip]
crash: /opt/kdump/vmlinux: no debugging data available
crash: vmlinux-5.10.99-yocto-standard: debuginfo file not found
[snip]


 

Workaround

wrlinux

Steps to Reproduce

1) setup.sh
 
 /lpg-build/cdc/fast_prod/WRLINUX_MASTER_WR/MASTER_WR_GIT/wrlinux-10/setup.sh   --machine intel-x86-64 --dl-layers --distro wrlinux-cgl --templates feature/cut
2). ./environment-setup-x86_64-wrlinuxsdk-linux
 
3) . ./oe-init-build-env
 
4) bitbake wrlinux-image-glibc-cgl
 
5) boot on target and harddisk startup and make sure pass "maxcpus=1 crashkernel=512M@64M" to kernel command line to make crashkernel work.
 
6) run command as problem descriptio
 
# TESTROOT=/opt/kdump
# mkdir -p $TESTROOT
# cp -f /boot/bzImage-`uname -r` $TESTROOT/crash-kernel
#  cp -f /boot/vmlinux-`uname -r` $TESTROOT/vmlinux
# kexec -p $TESTROOT/crash-kernel --append="`cat /proc/cmdline|sed 's/ crashkernel=.*//g'`"
# cat /sys/kernel/kexec_crash_loaded
1
# echo c > /proc/sysrq-trigger

After  the system boots up,
# cp /proc/vmcore  /opt/kdump
reboot the board

After the board boots up.
# TESTROOT="/opt/kdump"
#  makedumpfile --dump-dmesg -x $TESTROOT/vmlinux $TESTROOT/vmcore dmesgfile2
#  crash $TESTROOT/vmcore $TESTROOT/vmlinux 
Live chat
Online