btw if you’re still after the image - I’ve made a build script which follows the same principles albeit using now different kernel/uboot.
Edit: And if you’d want to flash generated image to emmc you’d need
- boot from SD
- start ssh on the phone and download the same image to SD
- DD the image from SD to emmc
- mount boot [mmcblk1p1] partition [somewhere]
- modify boot.scr script to boot from mmc1 (instead of 0)
to modify boot scr you need to create a text file boot.txt
setenv bootargs root=/dev/mmcblk1p2 rootwait console=ttyS0,115200 loglevel=7 panic=10
load mmc 1:1 $kernel_addr_r Image
load mmc 1:1 $fdt_addr_r sun50i-a64-pinephone.dtb
booti $kernel_addr_r - $fdt_addr_r
and then
sudo mkimage -A arm64 -T script -n pinephone -d boot.txt <path to mounted emmc boot partition>/boot.scr