Linux - KernelThis forum is for all discussion relating to the Linux kernel.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
issue:trying to load the second kernel to capture the crash dump when panic ic occurred
performed following pre conditions in menuconfig-
CONFIG_KEXEC=y
CONFIG_SYSFS=y
CONFIG_DEBUG_INFO=Y
CONFIG_CRASH_DUMP=y
CONFIG_PROC_VMCORE=y
CONFIG_PROC_DEVICETREE=y
also allocated the memory for crashkernel :crashkernel=16M@900M
Using kexec-tool 2.0.6 cross compiled for arm platform.
Executed below command to load/boot the second kernel on panic/crash but we are getting "unrecoverable error:" not enough data for mem property
kexec -p uImage_m14a0 --command-line="$(cat /proc/cmdline)"
error:
Unable to find /proc/device-tree//chosen/linux,stdout-path, printing from purgatory is disabled
"unrecoverable error:" not enough data for mem property
Hi Eli,
I checked the kexec-tools code and it was
failing to create flattened devicetree. I gave my own device tree as argument in /etc/default/kdump-tools.config and passed
--dtb argument. It worked for me after these changes. I am successfully able to get the kdump now on ARM.
from the source of kexec , the problem is here:
if (len < sizeof(buf))
{
printf("len = %d\n" , len);
printf("size of buf = %d\n" , sizeof(buf));
die("unrecoverable error: not enough data for mem property\n");
}
And why it happened?
because the device tree file /proc/device-tree/memory/reg is actually 8 bytes and not 16 bytes
the size of buf is 2 x 64 bit = 16 bytes
so why the device-tree/memory/reg in the imx arm linux is just 8 bytes ( 4 for offset and 4 for size) and not 8 for offset
and 8 for size.
any case , i compiled the sources , modified the code to load the correct address
i got kdump ready for dump
but it is not recording the memory when i trigger sysrq panic.
I guess a kexec for arm , that read the /proc/device-tree/memory/reg device tree should exists somewhere.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.