Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for kdump #16

Open
jonte opened this issue Jun 14, 2017 · 4 comments
Open

Add support for kdump #16

jonte opened this issue Jun 14, 2017 · 4 comments

Comments

@jonte
Copy link
Contributor

jonte commented Jun 14, 2017

Debugging kernel crashes would be much easier if we had kdump support in the kernel & in systemd.

Basically, we would need to:

  • Configure the kernel with kdump, kexec and debug support (see 1)
  • Configure persistent bootloader settitings for the crashkernel parameter (depends on which bootloader we use)
  • Create systemd unit for loading backup kernel using kexec (see 1)

Issues to consider

Always enabbling kdump may cause performance issues, so maybe we want to enable it only on debug images.

@jonte
Copy link
Contributor Author

jonte commented Jun 14, 2017

Poky has recipes for the kexec utility: https://git.yoctoproject.org/cgit.cgi/poky/plain/meta/recipes-kernel/kexec

@GordanM
Copy link
Member

GordanM commented Jun 14, 2017

@jonte would it be reasonable to have a recipes-kernel/linux/linux-yocto/debug-extras.cfg file that enables kernel debugging and the developer should be responsible to configure it manually if needed?

On another note, there are quite a few kernel debug utilities that would make sense to include in this image I think they are found under Kernel Hacking menuconfig.

EDIT: typo

@jonte
Copy link
Contributor Author

jonte commented Jun 14, 2017

@GordanM Yes, that config file makes sense. I think it would also make sense to be able to enable the whole kdump feature using some config flag (or per defailt in dbg images)or so though, for ease of use.

There are a few steps you need to go through to get it all working, and it would be nice if PELUX helped out with enabling it.

@sashko
Copy link
Collaborator

sashko commented Aug 31, 2018

Will be tracked by Jira issue OAI1209-340.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants