Bug 11386

Summary: kexec-tools doesn't work with poky-tiny
Product: [Build System, Metadata & Runtime] OE-Core Reporter: Aníbal Limón <anibal.limon>
Component: kernelAssignee: Unassigned <unassigned>
Status: RESOLVED NOTABUG QA Contact:
Severity: normal    
Priority: Medium CC: alejandro.hernandez, randy.macleod, sgw, tom.zanussi
Version: 2.3   
Target Milestone: 4.99   
Hardware: x86   
OS: Multiple   
Whiteboard:
OS type for building Yocto: --- Type of Regression: New (Never tested)
Verified: Documentation change: No (bug/feature does not impact docs)

Description Aníbal Limón 2017-04-19 18:47:36 UTC
When try to use kexec-tools with poky-tiny this don't work showing:

root@qemux86:~# kexec -l /boot/bzImage --reuse-cmdline
Could not find a free area of memory of 0x8000 bytes...
locate_hole failed

For enable kexec-tools the linux-yocto-tiny recipe needs to enable via a file cfg or fragment, kernel option CONFIG_KEXEC=y.

Here the local.conf settings:

MACHINE ??= "qemux86"
CORE_IMAGE_EXTRA_INSTALL = "kernel-image kexec-tools"
DISTRO = "poky-tiny"

After some research seems to be related to kernel configuration to increase the default memory values. [1][2][3]

[1] https://www.novell.com/support/kb/doc.php?id=7014586
[2] http://www.linuxquestions.org/questions/linux-software-2/kexec-kdump-problems-611634/
[3] http://lists.infradead.org/pipermail/kexec/2010-July/004234.html
Comment 1 Alejandro Hernandez 2017-05-19 17:51:21 UTC
Hey Anibal,

Is this working on poky?, because at first sight we dont set CONFIG_KEXEC anywhere for poky either.
Comment 2 Aníbal Limón 2017-05-23 15:19:27 UTC
(In reply to comment #1)
> Hey Anibal,
> 
> Is this working on poky?, because at first sight we dont set CONFIG_KEXEC
> anywhere for poky either.

Yes, it works using poky and as you mention there is a need to enable CONFIG_KEXEC into the kernel in a separate step.

Anibal
Comment 3 Randy MacLeod 2020-06-25 08:15:29 UTC
Kexec is not a tiny use case. tiny is missing features and it doesn't make sense to deal with the problem.