| | 1 | == pstore == |
| | 2 | |
| | 3 | do debug the boot process the pstore driver is used to create a persitant storage area that survives boot. |
| | 4 | |
| | 5 | The principle idea is: |
| | 6 | - boot the boot image that you want to debug and write the boot log to pstore |
| | 7 | - generate a kernel panic |
| | 8 | - boot a recovery boot image that also has pstore enabled to analyze the log |
| | 9 | |
| | 10 | === Kernel === |
| | 11 | The following options have to be enabled in the kernel config (in both boot images) |
| | 12 | |
| | 13 | {{{ |
| | 14 | CONFIG_PSTORE=y |
| | 15 | CONFIG_PSTORE_CONSOLE=y |
| | 16 | CONFIG_PSTORE_PMSG=y |
| | 17 | CONFIG_PSTORE_RAM=y |
| | 18 | }}} |
| | 19 | |
| | 20 | == Kernel panic == |
| | 21 | I am using the attached kernel module to create a kernel panic (modprobe the module) |