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

Now this is available for BPI-R64/R3/R3mini/R4.

The files can be found here:

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

Find the correct mtk_uartboot executable for your system. I have build files for the R64, R3, R3mini, R4. Only the R3 is tested at the moment.

Make sure you have socat installed, edit /dev/ttyXXXX, and run :

sudo bash -c "./mtk_uartboot -p uart-bpir3m-atf.bin -f uart-bpir3m-fip.bin --aarch64 -s /dev/ttyUSB0 ; socat - /dev/ttyUSB0,raw,echo=0,b115200"

The files are quite large, so get a cup of coffee when uploading it to the R3mini.

It has my standard archlinuxarm initrd for emmc inside, which drops to a bash shell. The initrd can run my installscript and/or debootstrap. First setup your internet connection on eth0 or any other interface (defaults to wan):

bpir-dhcpc eth0

Now you’re ready to use ‘bpir-build’ ‘bpir-toolbox’ ‘debootstrap’ ‘wget’ ‘curl’ ‘nano’ ‘parted’ ‘mkfs-btrfs’ ‘tar’ ‘xz’ ‘gzip’ ‘zstd’, etc, etc.

You could use:

bpir-toolbox --nand-format

It will download necessary files and install uboot on nand. This version of U-Boot uses the standard distroboot and is setup to scan sd/emmc - nvme - nand, for extlinux.conf in this order. Need to have the boot flag set on the partition where this file can be found. If nothing is found on sd/emmc/nvme, it loads the same rescue initrd, but now from nand.

I need to add more documentation about ‘bpir-toolbox’, but you can look into the file to see which options to use. ‘bpir-build’ to install on nvme is added pretty recently also, so also needs documentation and testing.

Run

bpir-build -F

and go through menu to install on nvme

This all needs more testing…