cfbase-boot.script 990 B

1234567891011121314151617181920212223242526
  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. # generate bootargs for rootfs on MMC
  9. if test "${devtype}" = "mmc"; then
  10. setexpr openwrt_rootpart ${distro_bootpart} + 1
  11. setenv bootargs ${bootargs} root=/dev/mmcblk${devnum}p${openwrt_rootpart} rootfstype=auto rootwait
  12. fi
  13. # here one could add logic for other rootfs device types such as scsi and usb
  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}