[BPIR3] Help instructions to flash NAND , then eMMC

Hi,

I am desperate to find up-to-date documentation related to Banana PI R3 installation of openwrt from scratch.

I managed to flash SD card and boot from there, put files to USB and mount the usb.

I have these files from openwrt build:

-rwxr-xr-x    1 root     root       1126713 Nov 25  2024 openwrt-23.05.5-98aa9450c2b1-mediatek-filogic-bananapi_bpi-r3-emmc-bl31-uboot.fip*
-rwxr-xr-x    1 root     root        200808 Nov 25  2024 openwrt-23.05.5-98aa9450c2b1-mediatek-filogic-bananapi_bpi-r3-emmc-preloader.bin*
-rwxr-xr-x    1 root     root       1091969 Nov 25  2024 openwrt-23.05.5-98aa9450c2b1-mediatek-filogic-bananapi_bpi-r3-snand-bl31-uboot.fip*
-rwxr-xr-x    1 root     root        205560 Nov 25  2024 openwrt-23.05.5-98aa9450c2b1-mediatek-filogic-bananapi_bpi-r3-snand-preloader.bin*

I tried to dd the snand file, either .fip and .bin gives me warning during flash and I couldn't boot from them.
I tried:

mtd erase /dev/mtd0
dd if=<file> of=/dev/mtdblock0

(replaced by .fip and .bin, same error).
What todo?

I followed:

But these does not seem to tell me how to flash NAND.

According to the wiki, you must first boot from SD before you can flash NAND.

Installation to SPI-NAND and SPI-NOR is possible when booting from microSD card.

Looks like DIP switches ABCD=1111 means "boot from SD, access to NAND, minus access to NOR".

Are the DIP switches set correctly?
Is the SD card with OpenWRT inserted?

According to wiki, you should get this menu on the serial console after setting DIP switches to ABCD=1111, powering up, when it is booting from SD:
https://asciinema.org/a/518024

Looks like you can hit "8" to install to NAND. Do you see this menu on the serial console?

Ok thanks so much!! With the help of the link you've provided and one guide I found here https://www.androidpimp.com/embedded/banana-pi-bpi-r3-router-board/3/ , I could install to NAND, then to eMMC!!!!

The official doc from openwrt for BPIR3 was so wrong, telling me to download a bunch of files for nothing, putting it to USB, doing some dd...

Awesome :slight_smile:

Yeah perhaps the wiki page could use a brush-up.

When I have the time, I will try to see how to push change for the wiki :slight_smile: thanks for you help for today.

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.