kdump support in yocto 4 (kernel 5.15.87)

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

kdump support in yocto 4 (kernel 5.15.87)

Jump to solution
913 Views
mabar52
Contributor III

Hi,

I would like to add support for kdump in our project.

Is the preferred way to use an external crashkernel or already loaded in mem of the primary kernel?

What steps should be undertaken?

what packages do I need to add to the image?

kexec-tools?

makedumpfile?

Kconf?

 

What of the kexec cmdline?

CPU used: IMX6SX.

Thanks in advance,

Mattias

0 Kudos
1 Solution
704 Views
mabar52
Contributor III

We will work with only the dmesg portion from the vmcore as for now. 
(MAKEDUMPFILE_ARGS="--dump-dmesg").

 

It now works and its ok as a first iteration with kdump so that we can at least see why the kernel crashed in dmesg.

View solution in original post

0 Kudos
6 Replies
854 Views
mabar52
Contributor III

Thanks, Joanxie. I have seen this page but it is not clear to me if an external kernel or internal already in mem kernel can be used.
I would prefer internal since I dont want to store an additional crashkernel on FS and flash.

Also what is the ramoops dts config for?
In the pptx it is not specified what kexec -p cmdline is to be used. I guess it also depends on the configuration (internal, external) used?

0 Kudos
803 Views
joanxie
NXP TechSupport
NXP TechSupport

I don't know what internal or external you mean, but you can use based on current kernel, ramoops dts config is for enable ramoops/pstore

I guess it also depends on the configuration (internal, external) used?

>Load the second kernel/dump-capture kernel?

0 Kudos
749 Views
mabar52
Contributor III

Advancing some as to having kdump started at boot.

But makedumpfle fails with this message, Im afraid:
process_module: dwfl_module_getdwarf error.
init_dwarf_info: Can't get first elf header of /boot/vmlinux-5.15.87-5.15.87-2.2.0+g3f51e675f758.
dwfl_module_getdwarf error.
init_dwarf_info: Can't get first elf header of /boot/vmlinux-5.15.87-5.15.87-2.2.0+g3f51e675f758.
process_module: dwfl_module_getdwarf error.
init_dwarf_info: Can't get first elf header of /boot/vmlinux-5.15.87-5.15.87-2.2.0+g3f51e675f758.
process_module: dwfl_module_getdwarf error.

 

I added 
IMAGE_INSTALL += "kernel-vmlinux"
To image build.

 

 

0 Kudos
748 Views
mabar52
Contributor III
Anyidea as to how use makedumpfile without a working vmlinux?
0 Kudos
705 Views
mabar52
Contributor III

We will work with only the dmesg portion from the vmcore as for now. 
(MAKEDUMPFILE_ARGS="--dump-dmesg").

 

It now works and its ok as a first iteration with kdump so that we can at least see why the kernel crashed in dmesg.

0 Kudos
865 Views
joanxie
NXP TechSupport
NXP TechSupport
0 Kudos