aboutsummaryrefslogtreecommitdiff
path: root/target/linux/mvebu/image/turris-omnia.bootscript
blob: fcec5fc1b8fc7db08487c9f69ce601d700879738 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
# Determine root device
setexpr rootpart ${distro_bootpart} + 1
if test ${devtype} = mmc -a ${devnum} = 0; then
	setenv rootdev /dev/mmcblk0p${rootpart}
elif test ${devtype} = scsi -a ${devnum} = 0; then
	setenv rootdev /dev/sda${rootpart}
else
	# New U-Boot only
	part uuid ${devtype} ${devnum}:${rootpart} uuid
	setenv rootdev PARTUUID=${uuid}
fi
setenv bootargs earlyprintk console=ttyS0,115200 root=${rootdev} rootfstype=auto rootwait

# Load and boot
load ${devtype} ${devnum}:${distro_bootpart} ${fdt_addr_r} @DTB@.dtb
load ${devtype} ${devnum}:${distro_bootpart} ${kernel_addr_r} zImage
bootz ${kernel_addr_r} - ${fdt_addr_r}