clearfog-pro.bootscript 664 B

12345678910111213141516
  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. # figure out partition uuid to pass to the kernel as root=
  7. part uuid ${devtype} ${devnum}:2 uuid
  8. # generate bootargs (rootfs)
  9. setenv bootargs root=PARTUUID=${uuid} rootfstype=auto rootwait
  10. echo "Booting Linux with ${bootargs}"
  11. load ${devtype} ${devnum}:${distro_bootpart} ${fdt_addr_r} @[email protected]
  12. load ${devtype} ${devnum}:${distro_bootpart} ${kernel_addr_r} Image
  13. booti ${kernel_addr_r} - ${fdt_addr_r}