Add initfs hook which causes a kernel panic (useful for debugging)
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:
- If the device remains powered on for 30s before rebooting I know that he reached the initramfs script otherwise it failed earlier
- Installing a working kernel with
CONFIG_RAMOOPS=y
and thedebug-shell
hook in the boot partition, after the kernel panic it will reboot and you can telnet in and read/proc/last_kmsg
Merge request reports
Activity
assigned to @ollieparanoid
By Daniele Debernardi on 2018-09-26T23:34:54
Code looks good to me.
That's a great idea for debugging, thanks for the MR @drebrez!
By Oliver Smith on 2018-10-02T04:29:35
added 23 commits
-
5a8ae263...26bde0a5 - 22 commits from branch
master
- 75124bb5 - Add initfs hook which causes a kernel panic (useful for debugging)
By Oliver Smith on 2018-10-02T04:29:49
-
5a8ae263...26bde0a5 - 22 commits from branch
enabled an automatic merge when the pipeline for 75124bb5 succeeds
By Oliver Smith on 2018-10-02T04:31:12
Please register or sign in to reply