Add initfs hook which causes a kernel panic (useful for debugging)
- Oct 02, 2018
-
-
Daniele Debernardi authored
-
This hook is useful (at least for me) to debug the mainline kernel when there's no serial output from the device.
The hook simply causes a kernel panic after 30 seconds, and these are the reasons:
CONFIG_RAMOOPS=y
and the debug-shell
hook in the boot partition, after
the kernel panic it will reboot and you can telnet in and read /proc/last_kmsg