Thank you very much! Where did you get the bl2 from? I can’t see it on EDIT: nevermind the preloader is the BL2
https://firmware-selector.immortalwrt.org/?version=23.05.1&target=mediatek/filogic&id=bananapi_bpi-r3-mini
and when I compile the image myself, for NAND I only get those two files:
...snand-bl31-uboot.fip
...snand-preloader.bin
I forgot to mention that the steps above I did were with the stock image and I only deleted the ubi because the wiki only provides the image .bin (Banana Pi BPI-R3 Mini - Banana Pi Wiki)
@frank-w
You boot till uboot here and load kernel+rootfs from usb. Is there a way to flash immortalwrt to ubi-partition?
I think if you do steps 9. and 10. from @nezar_taima post you can then either use luci to sysupgrade or scp the squashfs to /tmp and start the sysupgrade using the cli.
Or was your question to do all the steps directly in U-BOOT without ever booting into openwrt/immortalwrt?
basicly it should be all erased what is written afterwards. So if you only erase ubi,the bl2+fip may stay old or cause strange issues like the bootloop
That makes sense! I was wary of deleting the rest because I flashed the official image and they only provide the image .bin. My goal is to have immortalWRT on EMMC and the “official” image on NAND in case something goes wrong on the EMMC.
Do I have to compile the image myself from SinoVoips github in order to get the bl31 and preloader for NAND?
Is there a specific nand image or do you flash the emmc image to nand? Normally bootrom needs specific header for each bootdevice
What I did until I noticed that my NAND image bootloops is:
- I compiled immortalWRT.
- Followed the steps above from @1715173329 original post to flash the EMMC up until the TFTP part. Booting immortalWRT U-BOOT doesn’t activate my PHY Links. So I had to find another way without TFTP
- To get the sysupgrade image onto the EMMC I booted back into NAND and dd the sysupgrade like mentioned in this thread:
dd if=immortalwrt-mediatek-filogic-bananapi_bpi-r3-mini-squashfs-sysupgrade.itb of=/dev/mmcblk0p5 bs=512 conv=fsync
- Switched back to EMMC and immortalWRT was working. I only noticed NAND is bootlooping when I wanted to update my newly compiled immortalWRT image to EMMC.
I didn’t touch the NAND since I wanted to keep it stock. That’s why I was a bit confused how this happened.
Sidenote: Right now, when I “repair” the NAND (using the nand image of course) it boots but the EMMC bootloops. When I run the recovery image on EMMC, the EMMC works but the NAND starts bootlooping