I just compiled this bl2 and kernel from this repo: BPI-R4-bsp-6.1. Now I would like to flash it to the EMMC of the BananaPi R4. Which files should I use to flash BL2 and the kernel itself? After build I found following files in .SD/
directory:
./SD/BPI-ROOT/usr/lib/atf/bananapi/bpi-r4/bl2_sdmmc.img
./SD/BPI-ROOT/usr/lib/atf/bananapi/bpi-r4/bl2_emmc.img
./SD/6.1.73.tgz
./SD/BOOTLOADER-bpi-r4-linux-6.1.tgz
./SD/6.1.73-net.tgz
./SD/BPI-BOOT-bpi-r4-linux-6.1.tgz
I would like to use commands described in Getting Started guide:
echo 0 > /sys/block/mmcblk0boot0/force_ro
dd if=bl2.img of=/dev/mmcblk0boot0
dd if=kernel.img of=/dev/mmcblk0
mmc bootpart enable 1 1 /dev/mmcblk0
Is this the right way to approach this?