summaryrefslogtreecommitdiffstats
path: root/target/linux/mvebu/image/clearfog-pro.bootscript
blob: 2e152445eb02d661ff099aad49604c4a059a1887 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
# Standard Boot-Script
# use only well-known variable names provided by U-Boot Distro boot
# This script assumes the boot partition to be partition 1
# and that the root partition is always partition 2.
# The vendor u-boot ships without setexpr compiled in.

# figure out partition uuid to pass to the kernel as root=
part uuid ${devtype} ${devnum}:2 uuid

# generate bootargs (rootfs)
setenv bootargs root=PARTUUID=${uuid} rootfstype=auto rootwait

echo "Booting Linux with ${bootargs}"
load ${devtype} ${devnum}:${distro_bootpart} ${fdt_addr_r} @DTB@.dtb
load ${devtype} ${devnum}:${distro_bootpart} ${kernel_addr_r} Image
booti ${kernel_addr_r} - ${fdt_addr_r}