Pelagicore / meta-pelux

PELUX is an open source, GENIVI compliant development platform that supports the Qt Automotive Suite
https://pelux.io
MIT License
39 stars 28 forks source link

Add support for kdump #16

Open jonte opened 7 years ago

jonte commented 7 years ago

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

Basically, we would need to:

Issues to consider

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

jonte commented 7 years ago

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

GordanM commented 7 years ago

@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 commented 7 years ago

@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 commented 5 years ago

Will be tracked by Jira issue OAI1209-340.