[BPI-R3 Mini] Recovery uart boot to a linux initramfs image

I’ve created a first try-out version of the initrd recovery images for the bpi-R3-mini.

The files can be found here:

https://ftp.woudstra.mywire.org/mktuartboot/

Find the correct mtk_uartboot executable for your system.

Run something like:

./mtk_uartboot -p bpir3m-atf-ram-atf.bin --aarch64 -f fip-xz.bin

I have a fip.bin and fip-xz.bin to try it without and with a xz compressed linux Image file.

The files are quite large, so get a cup of coffee when uploading it to the R3mini. In case of the uncompressed image, I guess you could even finish your coffee before the upload has finished.

It has my standard archlinuxarm initrd for emmc inside, which looks for the bpir-emmc-root partition and drops to a bash shell if it cannot be found. The usb drivers should be ready to use an usb-stick to access some image to write.

I’ve only tested on a system with a functional bootchain. I just realised I did not check yet if perhapse the board paniced, did a reset and followed the normal bootchain.

There are some basic utilities on the initrd, but perhaps it is missing some tools and/or kernel modules. I think I should still add fsck tools. The firmware files for the ethernet phy are already included.