pureos-uboot-script.cmd 767 B

1234567891011121314151617181920212223242526272829303132
  1. gpio set 114
  2. if test ${mmc_bootdev} -eq 0 ; then
  3. echo "Booting from SD";
  4. setenv bootdev 0;
  5. else
  6. echo "Booting from eMMC";
  7. setenv bootdev 2;
  8. fi;
  9. setenv bootargs init=/sbin/init rw console=tty0 console=ttyS0,115200 no_console_suspend earlycon=uart,mmio32,0x01c28000 panic=10 consoleblank=0 loglevel=1 cma=256M root=/dev/mmcblk${bootdev}p2
  10. printenv
  11. echo Loading DTB
  12. load mmc ${mmc_bootdev}:1 ${fdt_addr_r} sun50i-a64-pinephone.dtb
  13. echo Loading Initramfs
  14. load mmc ${mmc_bootdev}:1 ${ramdisk_addr_r} uInitrd.img
  15. echo Loading Kernel
  16. load mmc ${mmc_bootdev}:1 ${kernel_addr_r} vmlinuz-postmarketos-allwinner
  17. gpio set 115
  18. echo Resizing FDT
  19. fdt addr ${fdt_addr_r}
  20. fdt resize
  21. echo Booting kernel
  22. gpio set 116
  23. booti ${kernel_addr_r} ${ramdisk_addr_r} ${fdt_addr_r}