cfpro-boot.script 846 B

12345678910111213141516171819202122
  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. # generate bootargs for rootfs on MMC
  6. if test "${devtype}" = "mmc"; then
  7. setexpr openwrt_rootpart ${distro_bootpart} + 1
  8. setenv bootargs ${bootargs} root=/dev/mmcblk${devnum}p${openwrt_rootpart} rootfstype=auto rootwait
  9. fi
  10. # here one could add logic for other rootfs device types such as scsi and usb
  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} ${fdtfile}
  17. load ${devtype} ${devnum}:${distro_bootpart} ${kernel_addr_r} zImage
  18. bootz ${kernel_addr_r} - ${fdt_addr_r}