Banana Pi BPI-R3 OpenWRT image

If I say install to nand then it says this

U-Boot 2023.07.02-OpenWrt-r24084-3aef61060e (Oct 04 2023 - 22:56:57 +0000)

CPU:   MediaTek MT7986
Model: BananaPi BPi-R3
DRAM:  2 GiB
Core:  53 devices, 24 uclasses, devicetree: embed
jedec_spi_nor spi_nor@0: unrecognized JEDEC id bytes: ff, ef, aa
MMC:   mmc@11230000: 0
Loading Environment from MMC... mmc fail to send stop cmd
mmc fail to send stop cmd
mmc fail to send stop cmd
mmc fail to send stop cmd
mmc fail to send stop cmd
mmc fail to send stop cmd
mmc fail to send stop cmd
mmc fail to send stop cmd
mmc fail to send stop cmd
mmc fail to send stop cmd
mmc fail to send stop cmd
mmc fail to send stop cmd
mmc fail to send stop cmd
mmc fail to send stop cmd
mmc fail to send stop cmd
mmc fail to send stop cmd
mmc fail to send stop cmd
mmc fail to send stop cmd
mmc fail to send stop cmd
* spi-nand0
  - device: spi_nand@1
  - parent: spi@1100a000
  - driver: spi_nand
  - type: NAND flash
  - block size:        0x20000 bytes
  - page size:         0x800 bytes
  - OOB size:          64 bytes
  - OOB available:     24 bytes
  - 0x000000000000-0x000008000000 : "spi-nand0"
          - 0x000000000000-0x000000080000 : "bl2"
          - 0x000000080000-0x000000380000 : "factory"
          - 0x000000380000-0x000000580000 : "fip"
          - 0x000000580000-0x000008000000 : "ubi"
mmc fail to send stop cmd
Press ENTER to return to menu 

I have tried to also reset all settings with option a. and that seems to do nothing.

which sd-card vendor/model do you use? we have seen some sporadic mmc-issues in uboot on R3, but have not nailed down to root cause as they do not happen always.

I have a samsung evo plus 32GB sdcard.

Can you try another model?

I did. It worked with a team32 GB Class 10 sdcard. Thank you for the help!!

I can boot from sd card and flash and boot from NOR following the instructions here: https://openwrt.org/toh/sinovoip/bananapi_bpi_r3_v1.0_v1.1#installation

But flashing to NAND or EMMC is not working. NAND will boot cycle but when switching over will then just boot to the shipping firmware. EMMC does not flash nor boot at all. When looking at /dev/mmcblk0 I can see no partition table exists. Can anyone offer some advise of how to debug/fix or will I need to get a serial console running to see uboot debug output?

Serial console is needed to determine what exactly goes wrong…all other is speculative

Hi everyone, I’ve just received my Banana Pi r3 and just getting started with it, serial console is ready and connected, sd card burnt is ready with latest Snapshot from official openwrt Just to confirm, i should boot from sd card and install to nand in bootloader menu? After it’s done, power off device, switch boot switch to boot from nand? That’s it?

Few questions

  1. Latest Snapshot is good to go?
  2. Will it update my bootloader as well?
  3. Nand vs nor , anyone using it on nor , what’s performance difference? What’s preferred
  4. Please mention any additional steps needed for process above?

Thanks everyone

Congratulation for choosing the R3!!! :+1:

As you can see, it can be tricky to install openwrt on BPI-R3:

But you can always fresh start from sd card again.

The 23.05.3 for R3 is some days out (2024-03-23). Do what you want, but I would not prefer the snapshot!

The questions you have are good! I’m also interested in …

1 Like

If you want to use the device in production right away and not be bothered with (rare) bugs in snapshot images, I’d recommend to use the OpenWrt 23.05.3 release instead which is known to be stable and work well on this device.

Yes, choosing to install via the bootloader menu will write the bootloader to the target media (and this is needed. you cannot run vanilla OpenWrt with SinoVoip’s loader which lacks features for uImage.FIT and device-tree overlays).

It’s important to mention that most problems users have been reporting with the installation process were due to faulty or bad microSD cards. If anything doesn’t work, try with a different microSD card.

Also be aware that all 4 dip switches for choosing the boot device (A, B) and chip-select on SPI (C) and MMC (D) bus need to be in the correct position for each step of the installation:

So “Don’t care” isn’t really true, you do need to care also about those.

1 Like

hello there! i got R3 and i cannot boot it from microsd card to flash it to emmc, i download openwrt-23.05.4-mediatek-filogic-bananapi_bpi-r3-sdcard.img from openwrt site (ether snapshot or 23.05 release wont boot) burn it to microsd card using bpi-copy tools also tried to burn it using dd it doesn’t matter, jumper all in high (up) position and this is what i get output in console:

NOTICE:  BL2: v2.9(release):OpenWrt v2023-07-24-00ac6db3-2 (mt7986-sdmmc-ddr4)
NOTICE:  BL2: Built : 22:14:18, Jul 15 2024
NOTICE:  WDT: Cold boot
NOTICE:  WDT: disabled
OTICE:  CPU: MT7986 (2000MHz)
NOTICE:  EMI: Using DDR4 settings
plex R/W mem test passed
ERROR:   MSDC: Command has timed out with cmd=8, arg=0x1aa
ERROR:   MSDC: Command has timed out with cmd=17, arg=0x0
ERROR:   Partition 'fip' not found
ERROR:   FIP boot source initialization failed with -2
PANIC at PC : 0x000000000020533c

but if i insert sd card to pc i can see the fip partition there

and if i burn snapshot it says something about gpt partition error so i guess im stuck there but i can boot if all jumpers in low position then i get U-boot menu but not much to see there i can’t flash or install anything from there

also the wiki Getting Started with BPI-R3 - Banana Pi Wiki mentions something about some kind of additional packages to have to be put in the usb stick in order to flash to emmc packages like mtk-bpi-r3-SD-WAN1-SFP1-20220619-single-image.img, mtk-bpi-r3-NAND-WAN1-SFP1-20220619-single-image.bin, bl2_emmc.img, mtk-bpi-r3-EMMC-WAN1-SFP1-20220619-single-image.img so what it all about i don’t really get it

yeah i guess this is what i did but it get me this also im not sure about this

put switches of the BananaPi into position to boot from SD card and select NAND flash with the SPI-chipselect switch

how did i select boot from sd card and NAND at the same time or this “spi-chipselect” is not what jumpers doing?

or i get this (if i set up switches like - A=1 B=0 C=1 D=1)

Screenshot_20240907_071935

but this is not looks like the right choose because there is no option to install anything

i get it that it suppose to be like this

Try mainline openwrt, i’m not sure vendor image can install it the same way.

The wiki page (Getting started) you’ve linked above tells manual steps from linux.

Here you get the mainline version: https://firmware-selector.openwrt.org/

thanx for the reply guys,it seems that it doesn’t really matter where you download img from cause it’s all lead in the same url after all

idk maybe i doing something wrong writing img to sd card (i tried dd or bpi-copy it doesn’t matter)

Bpi openwrt (21.02) does not result in same url…

Afaik boot from sd card boot with nand is 1-1-1-1 for boot switches. B=0 results booting from nand…so independ on what you have on sdmmc you do not boot from it

https://wiki.fw-web.de/doku.php?id=en:bpi-r3:uboot#bootmedium_selection