Commit Graph

16 Commits

Author SHA1 Message Date
zhangn1985
4ce8c03b5b bootscript: remove panic=10 from bootargs (#1670)
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>
2019-12-16 12:22:00 +01:00
Igor Pecovnik
a26ccdee62 [odroid xu4] Drop kernel 3.10.y, default -> offical 4.14.y, next = vanilla 4.19.y http://ix.io/1rcZ & dev = n/a 2018-11-07 11:11:51 +01:00
zador-blood-stained
bedc19439f Merge safe changes from development to master, part 1 2018-04-29 15:47:40 +03:00
ThomasKaiser
ab786b312f UAS blacklist broken USB disk enclosures 2017-09-05 04:50:30 -07:00
zador-blood-stained
2645ab74b1 Update XU4 boot script to use armbianEnv.txt
debootstrap-ng currenly will still delete armbianEnv for sources that
use boot.ini
2017-09-04 13:03:44 +03:00
zador-blood-stained
8d4083c82f Try to fix XU4 boot script for the separate /boot setup 2017-09-01 13:30:25 +03:00
zador-blood-stained
24bdb91374 Update XU4 boot script from upstream 2017-08-31 16:18:48 +03:00
Igor Pecovnik
0a4eee7999 Enabling UUID on XU4. Tested. and disable console blanking 2017-08-26 19:07:17 +02:00
Igor Pecovnik
d3180af7bc Fix and enable serial console for XU4 2017-08-26 15:10:25 +02:00
Igor Pecovnik
9268b73289 Changing Odroid XU4 NEXT mainline u-boot with legacy for compatibility reasons - now it boots from SD and eMMC out of the box, kernel switching works. 2017-05-18 19:41:37 +02:00
Igor Pecovnik
fe4b7c8fd6 eMMC bootloader update how-to, working only on legacy / stock u-boot. 2017-03-06 13:15:59 +01:00
zador-blood-stained
0f898f3f31 Cleanup for several boot scripts
Parameters like "selinux" and "enforcing" should not be set by default
2017-03-04 21:23:53 +03:00
zador-blood-stained
4d1182753c Update sunxi and XU4 boot scripts 2016-10-24 13:54:25 +03:00
zador-blood-stained
2b70f68126 XU4 initrd and single partition images support 2016-10-14 15:09:47 +03:00
zador-blood-stained
06ca8c8d9d Put boot script name and root device into variables 2016-10-10 19:36:51 +03:00
zador-blood-stained
7c7b046700 Cleanup in boards.sh 2016-06-22 15:30:10 +03:00