You need flash in the BananaPi OpenWrt
Yes You need recovery to original firmware
You need flash in the BananaPi OpenWrt
Yes You need recovery to original firmware
Thanks, I know that, but how? flashing via dd gives an error, what should I do?
You need recovery emmc to original firmware
then flash nand in original firmware on emmc
@Mashiro this advice is completely useless, to update emmc you need to boot into nand, but it doesn’t work.
I tried to upload bl2 and fit from immortalwrt with the re-creation of the ubi partition and got the error from the screenshot.
I think can flash emmc from ram?(/tmp)
This is written about in the link: https://wiki.banana-pi.org/Getting_Started_with_BPI-R3_MINI
Because BPI-R3 MINI can’t support that it boot from SD, So the factory will flash one default image into Nand and EMMC Device. Anytime please confirm that one EMMC or Nand device include one bootable image, it’s very important!!
Flashing both at the same time is a very bad idea…boot from one and flash the other. Then boot the other and flash the first one. Else you can end of none bootable and you cannot get the device running again
@frank-w, hi, can you give me some advice on how to restore stock firmware on nand? Maybe upload dumps to mtd0-4? or flash it somehow from u-boot?
Thanks in advance.
I did it manually on r3 this way:
https://wiki.fw-web.de/doku.php?id=en:bpi-r3:uboot#nand_flash
R3mini should have same layout on nand,you only need to get files from usb or tftp (but i guess uboot does not support the airoha phy yet)
Make sure you erase the blocks first and then write the bl2/fip then you should be able to boot from nand till uboot and you can load linux kernel
My solution when I tried to restore to stock from immortalwrt (If ImmortalWrt’s U-boot is still accesible)
ls usb 0:1
to find the stock firmware binfatload usb 0:1 $loadaddr firmware.bin
to load firmwarenand info
? use this one to find out last address (mine was 0x8000000 I think)nand erase [blockname]
command to erase all blocks (like bl2, uboot…) (or nand erase 0x0 0x8000000
could work too)nand write $loadaddr 0 0x8000000
I didn’t write down the my solution when I recover my R3 Mini. so please check the proper command usage. The point was, ERASE NAND FIRST and write as much as NAND’s size
Thanks for documenting this. Wrapping up for others that need it
Get the Single NAND Image and place on a ext-fat drive. — referenced below as image.bin — Official BPI-R3-Mini Files → 2023-11-15 BPI-R3 Mini OpenWRT image with MTK Driver, Not Opensource - Google Drive
Boot from EMMC, and get into the uboot command shell.
usb start
ls usb 0:1 – Your File (Image.bin) should show up
fatload usb 0:1 $loadaddr image.bin
nand erase 0x0 0x8000000
nand write $loadaddr 0 0x8000000
Boot to Nand now working.
Can i flash image from ssh without USB Serial ? Like use image from /tmp for flash ?
You have no ssh in uboot…you need uart to get into uboot and then you either boot a linux-kernel with initrd for flashing or you need to flash from uboot
I have flashed image from here
But after flash eMMC, switch back and flash NAND, it can be boot. But after boot device infinity restart after few seconds. Im using Quectel RM520N-GL for connect 5G, so hard cuz stock image cannot activate 5G and after flash same error. Thanks for response frank-wI’d like to recommend checking out the ImmortalWrt
If you want to flash to nand, then emmc needs to be able to boot to openwrt/debian/archlinux. From there you can flash with ssh to nand.
Or boot openwrt/debian/archlinux from nand and then flash emmc with ssh.
Looks like its been a while, couldnt be sure the same problem, please feel to suggest another/new thread: If we flash the upstream OpenWrt emmc image to R3Mini, it works fine with emmc boot, however fails to boot from NAND. I see some messages related to flashing to NAND at uboot stage (from usb or tftd), but couldnt be sure.
How can we make NAND bootable again, preferably with current OpenWrt NAND image? but BPI stock images are also fine.
Thanks for this write up. I am trying to reflash my NAND, but I can’t seem to read the exFat file system on my USB drive.
I am able to enter uboot, start usb and scan devices. I can see the usbstick, but ls usb 0:1 does not list the files that should be there.
Any ideas?
MT7986> usb dev
IDE device 0: Vendor: PNY Rev: 1100 Prod: USB 2.0 FD Type: Removable Hard Disk Capacity: 7788.3 MB = 7.6 GB (15950592 x 512) MT7986> usb part
Partition Map for USB device 0 – Partition Type: DOS
Part Start Sector Num Sectors UUID Type 1 2048 15947776 9ee80019-01 07 MT7986> ls usb 0:1
Exfat is not supported by uboot…use fat16/fat32