boot.txt 788 B

12345678910111213141516171819202122
  1. # After modifying, run ./mkscr
  2. if test -n ${distro_bootpart}; then setenv bootpart ${distro_bootpart}; else setenv bootpart 1; fi
  3. part uuid ${devtype} ${devnum}:${bootpart} uuid
  4. setenv bootargs "console=tty0 console=${console} root=PARTUUID=${uuid} rw rootwait"
  5. if load ${devtype} ${devnum}:${bootpart} ${kernel_addr_r} /boot/vmlinuz-linux-libre; then
  6. gpio set 54
  7. echo fdt: ${fdtfile}
  8. if load ${devtype} ${devnum}:${bootpart} ${fdt_addr_r} /boot/dtbs/linux-libre/${fdtfile}; then
  9. gpio set 55
  10. if load ${devtype} ${devnum}:${bootpart} ${ramdisk_addr_r} /boot/initramfs-linux-libre.img; then
  11. gpio set 56
  12. bootz ${kernel_addr_r} ${ramdisk_addr_r}:${filesize} ${fdt_addr_r};
  13. else
  14. gpio set 56
  15. bootz ${kernel_addr_r} - ${fdt_addr_r};
  16. fi;
  17. fi;
  18. fi