1. gentoo /etc/local.d # cat /boot/config-4.12.12-gentoo |grep -P "(VMCORE|CRASH_DUMP|RELOCATABLE|SMP)" CONFIG_X86_64_SMP=y CONFIG_GENERIC_SMP_IDLE_THREAD=y CONFIG_SMP=y # CONFIG_X86_VSMP is not set # CONFIG_MAXSMP is not set CONFIG_CRASH_DUMP=y CONFIG_RELOCATABLE=y CONFIG_PM_SLEEP_SMP=y CONFIG_PROC_VMCORE=y 2. gentoo /etc/local.d # cat kdump.start #!/bin/bash kexec -p /boot/vmlinuz-4.12.12-gentoo \ --initrd=/boot/initramfs-genkernel-x86_64-4.12.12-gentoo \ --append="root=/dev/vda1 single irqpoll maxcpus=1 reset_devices dolvm softlevel=kdump" 3. gentoo /etc/local.d # kexec --v kexec-tools 2.0.14 4. Unknown type (Reserved) while parsing /sys/firmware/memmap/5/type. Please report this as bug. Using RANGE_RESERVED now. Unknown type (Reserved) while parsing /sys/firmware/memmap/1/type. Please report this as bug. Using RANGE_RESERVED now. Unknown type (Reserved) while parsing /sys/firmware/memmap/6/type. Please report this as bug. Using RANGE_RESERVED now. Unknown type (Reserved) while parsing /sys/firmware/memmap/4/type. Please report this as bug. Using RANGE_RESERVED now. Unknown type (Reserved) while parsing /sys/firmware/memmap/2/type. Please report this as bug. Using RANGE_RESERVED now. ELF core (kcore) parse failed Cannot load /boot/vmlinuz-4.12.12-gentoo
(In reply to ruipan from comment #0) > 1. > gentoo /etc/local.d # cat /boot/config-4.12.12-gentoo |grep -P > "(VMCORE|CRASH_DUMP|RELOCATABLE|SMP)" > CONFIG_X86_64_SMP=y > CONFIG_GENERIC_SMP_IDLE_THREAD=y > CONFIG_SMP=y > # CONFIG_X86_VSMP is not set > # CONFIG_MAXSMP is not set > CONFIG_CRASH_DUMP=y > CONFIG_RELOCATABLE=y > CONFIG_PM_SLEEP_SMP=y > CONFIG_PROC_VMCORE=y > > > 2. > gentoo /etc/local.d # cat kdump.start > #!/bin/bash > kexec -p /boot/vmlinuz-4.12.12-gentoo \ > --initrd=/boot/initramfs-genkernel-x86_64-4.12.12-gentoo \ > --append="root=/dev/vda1 single irqpoll maxcpus=1 reset_devices dolvm > softlevel=kdump" > > 3. > gentoo /etc/local.d # kexec --v > kexec-tools 2.0.14 > > 4. > Unknown type (Reserved) while parsing /sys/firmware/memmap/5/type. Please > report this as bug. Using RANGE_RESERVED now. > Unknown type (Reserved) while parsing /sys/firmware/memmap/1/type. Please > report this as bug. Using RANGE_RESERVED now. > Unknown type (Reserved) while parsing /sys/firmware/memmap/6/type. Please > report this as bug. Using RANGE_RESERVED now. > Unknown type (Reserved) while parsing /sys/firmware/memmap/4/type. Please > report this as bug. Using RANGE_RESERVED now. > Unknown type (Reserved) while parsing /sys/firmware/memmap/2/type. Please > report this as bug. Using RANGE_RESERVED now. > ELF core (kcore) parse failed > Cannot load /boot/vmlinuz-4.12.12-gentoo in step 4, I exec the /etc/local.d/kdump.start script. It seems kexec-tools 2.0.14 don't support linux 4.12.12? or I did any config wrong in this case. :)
This should be fixed in >=sys-apps/kexec-tools-2.0.15. https://git.kernel.org/pub/scm/utils/kernel/kexec/kexec-tools.git/commit/kexec/firmware_memmap.c?id=fab91841c717150aca4bc73e4c54769305e27ade https://git.kernel.org/pub/scm/utils/kernel/kexec/kexec-tools.git/commit/kexec/kexec-elf.c?id=ed15ba1b9977e506637ff1697821d97127b2c919 Can you please test kexec-tools-2.0.15 and confirm?