clearfog.bootscript 850 B

1234567891011121314151617181920212223
  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. # rootfs is always on the next partition
  6. setexpr openwrt_rootpart ${distro_bootpart} + 1
  7. # figure out partition uuid to pass to the kernel as root=
  8. part uuid ${devtype} ${devnum}:${openwrt_rootpart} uuid
  9. # generate bootargs (rootfs)
  10. setenv bootargs ${bootargs} root=PARTUUID=${uuid} rootfstype=auto rootwait
  11. # add console= option to bootargs, if any
  12. if test -n "${console}"; then
  13. setenv bootargs ${bootargs} console=${console}
  14. fi
  15. echo "Booting Linux with ${bootargs}"
  16. load ${devtype} ${devnum}:${distro_bootpart} ${fdt_addr_r} @DTB@.dtb
  17. load ${devtype} ${devnum}:${distro_bootpart} ${kernel_addr_r} zImage
  18. bootz ${kernel_addr_r} - ${fdt_addr_r}