Banana Pi R64 Can not run sysupgrade OpenWrt image from development snapshot

Sysupgrade OpenWrt image from development snapshot brunch can not run on Banana pi R64. To create working sysupgrade image for banana pi R64 need follow this instruction from banana pi forum:

  1. clone OpenWRT,
  2. change kernel to 4.19 in openwrt/target/linux/mediatek/makefile
  3. set target in make menuconfig 4 make defconfig (im not sure if that is needed)
  4. do kernel config as @bourne_hlm
"Device Drivers"-->"Memory Technology Device (MTD) support"-->"Command line partition table parsing"
"Device Drivers"-->"Memory Technology Device (MTD) support""Self-contained MTD device drivers"-->"MTD using block device"
"Device Drivers"-->"MMC/SD/SDIO card suport"->"MMC block device driver"
  1. add attached patch into openwrt/target/linux/mediatek/patches-4.19 1000-R64_OpenWRT_4_19_eMMC.patch (2.9 KB), it is modified patch @nagi from
  2. build
1 Like

There is now a rootdisk target for this device. It produces a .bin.gz image, which appears to be for emmc.

However I'm not able to successfully write it to emmc, any ideas?

I was able to make it work from here:

Select ext4 as target images, set 20MB kernel partition size, 100 MB rootfs size in menuconfig.

To flash fullimage (includes GPT, Preloader, ATF):

dd of=/dev/mmcblk0 bs=512 seek=0 if=openwrt-mediatek-mt7622-bpi_bananapi-r64-rootdisk-ext4-fullimage-emmc.bin

To flash sysupgrade.bin (can also be used from luci, backup config works):

dd of=/dev/mmcblk0 bs=512 seek=4096 if=openwrt-mediatek-mt7622-bpi_bananapi-r64-rootdisk-ext4-sysupgrade-emmc.bin

1 Like