pmaports/device/device-pine64-pinephone/uboot-script.cmd
Martijn Braam 277817162d
device-pine64-pinephone: hardcode partitions (!756)
[ci:skip-build]: already built successfully in CI
2019-11-24 20:16:53 +01:00

23 lines
718 B
Batchfile

gpio set 114
setenv bootargs init=/init.sh rw console=tty0 console=ttyS0,115200 no_console_suspend earlycon=uart,mmio32,0x01c28000 panic=10 consoleblank=0 loglevel=1 cma=256M PMOS_NO_OUTPUT_REDIRECT pmos_boot=/dev/mmcblk${mmc_bootdev}p1 pmos_root=/dev/mmcblk${mmc_bootdev}p2
printenv
echo Loading DTB
load mmc ${mmc_bootdev}:1 ${fdt_addr_r} sun50i-a64-pinephone.dtb
echo Loading Initramfs
load mmc ${mmc_bootdev}:1 ${ramdisk_addr_r} uInitrd-postmarketos-allwinner
echo Loading Kernel
load mmc ${mmc_bootdev}:1 ${kernel_addr_r} vmlinuz-postmarketos-allwinner
gpio set 115
echo Resizing FDT
fdt addr ${fdt_addr_r}
fdt resize
echo Booting kernel
gpio set 116
booti ${kernel_addr_r} ${ramdisk_addr_r} ${fdt_addr_r}