mvebu: add support for SolidRun ClearFog Pro
[openwrt/openwrt.git] / target / linux / mvebu / image / clearfog-pro.bootscript
1 # Standard Boot-Script
2 # use only well-known variable names provided by U-Boot Distro boot
3 # This script assumes the boot partition to be partition 1
4 # and that the root partition is always partition 2.
5 # The vendor u-boot ships without setexpr compiled in.
6
7 # figure out partition uuid to pass to the kernel as root=
8 part uuid ${devtype} ${devnum}:2 uuid
9
10 # generate bootargs (rootfs)
11 setenv bootargs root=PARTUUID=${uuid} rootfstype=auto rootwait
12
13 echo "Booting Linux with ${bootargs}"
14 load ${devtype} ${devnum}:${distro_bootpart} ${fdt_addr_r} @DTB@.dtb
15 load ${devtype} ${devnum}:${distro_bootpart} ${kernel_addr_r} Image
16 booti ${kernel_addr_r} - ${fdt_addr_r}