merge: targets: update image generation and targets
[openwrt/openwrt.git] / target / linux / mvebu / image / cfpro-boot.script
1 # Standard Boot-Script
2 # use only well-known variable names provided by U-Boot Distro boot
3 # This script assumes that there is a boot partition,
4 # and that the root partition is always the next one.
5
6 # generate bootargs for rootfs on MMC
7 if test "${devtype}" = "mmc"; then
8 setexpr openwrt_rootpart ${distro_bootpart} + 1
9 setenv bootargs ${bootargs} root=/dev/mmcblk${devnum}p${openwrt_rootpart} rootfstype=auto rootwait
10 fi
11
12 # here one could add logic for other rootfs device types such as scsi and usb
13
14 # add console= option to bootargs, if any
15 if test -n "${console}"; then
16 setenv bootargs ${bootargs} console=${console}
17 fi
18
19 echo "Booting Linux with ${bootargs}"
20 load ${devtype} ${devnum}:${distro_bootpart} ${fdt_addr_r} ${fdtfile}
21 load ${devtype} ${devnum}:${distro_bootpart} ${kernel_addr_r} zImage
22 bootz ${kernel_addr_r} - ${fdt_addr_r}