armada-388-clearfog-base.bootscript 995 B

123456789101112131415161718192021222324252627
  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. # Override DeviceTree for Clearfog Base
  6. # removed once U-Boot is able to detect the board variant.
  7. setenv fdtfile armada-388-clearfog-base.dtb
  8. # rootfs is always on the next partition
  9. setexpr openwrt_rootpart ${distro_bootpart} + 1
  10. # figure out partition uuid to pass to the kernel as root=
  11. part uuid ${devtype} ${devnum}:${openwrt_rootpart} uuid
  12. # generate bootargs (rootfs)
  13. setenv bootargs ${bootargs} root=PARTUUID=${uuid} rootfstype=auto rootwait
  14. # add console= option to bootargs, if any
  15. if test -n "${console}"; then
  16. setenv bootargs ${bootargs} console=${console}
  17. fi
  18. echo "Booting Linux with ${bootargs}"
  19. load ${devtype} ${devnum}:${distro_bootpart} ${fdt_addr_r} ${fdtfile}
  20. load ${devtype} ${devnum}:${distro_bootpart} ${kernel_addr_r} zImage
  21. bootz ${kernel_addr_r} - ${fdt_addr_r}