when there are some reasons which board failed to boot, eg rootfs crashes.
/init will fail to panic().
panic()
{
local console rest IFS
if command -v chvt >/dev/null 2>&1; then
chvt 1
fi
echo "$@"
# Disallow console access
if [ -n "${panic?}" ]; then
echo "Rebooting automatically due to panic= boot argument"
sleep "${panic}"
reboot
exit # in case reboot fails, force kernel panic
fi
...
}
when panic is set, there is no chance to fail into a shell, to debug what happens.
and device just keep reboot.
remove panic from bootargs to make it possible for users to find out why their boards fail to boot.
Signed-off-by: Zhang Ning <832666+zhangn1985@users.noreply.github.com>
|
||
|---|---|---|
| .. | ||
| boot-cubox.cmd | ||
| boot-espressobin.cmd | ||
| boot-macchiatobin-doubleshot.cmd | ||
| boot-marvell.cmd | ||
| boot-meson64.cmd | ||
| boot-mt7623.cmd | ||
| boot-mvebu-next.cmd | ||
| boot-odroid-c1.ini | ||
| boot-odroid-c2.ini | ||
| boot-odroid-n2-mainline.ini | ||
| boot-odroid-n2.ini | ||
| boot-odroid-xu4-default.ini | ||
| boot-pine64-default.cmd | ||
| boot-rockchip64.cmd | ||
| boot-rockchip.cmd | ||
| boot-rockpis.cmd | ||
| boot-s5p6818.cmd | ||
| boot-sun50i-next.cmd | ||
| boot-sunxi.cmd | ||
| boot-udoo.cmd | ||