wiki:SF_Ch_pstore

Version 2 (modified by admin, 7 years ago) (diff)

--

pstore

do debug the boot process the pstore driver is used to create a persitant storage area that survives boot.

The principle idea is:

  • boot the boot image that you want to debug and write the boot log to pstore
  • generate a kernel panic
  • boot a recovery boot image that also has pstore enabled to analyze the log

Kernel

The following options have to be enabled in the kernel config (in both boot images)

CONFIG_PSTORE=y
CONFIG_PSTORE_CONSOLE=y
CONFIG_PSTORE_PMSG=y
CONFIG_PSTORE_RAM=y

Kernel panic

For what ever reason the standard way to generate a kernel panic

echo c > /proc/sysrq-trigger

did not work for me so I created a kernel module that I can modprobe to generate a panic.

I am using the attached kernel module to create a kernel panic (modprobe the module) The files are placed in a directory "panic" in the kernel directory and enabled in kernel config with

CONFIG_GUHL_PANIC=m

Attachments (3)

Download all attachments as: .zip