Hello, is there a ubi image with u-boot + fdt (stock image) that I can flash to my BPI-RV2 with an external flasher? I somehow made u-boot not start correctly when changing partition 3 (fdt/rootfs) to run Gentoo.
btw should I bridge these pads in red and use jtag from gpio header? I also have xgecu t48 and ch341a.
You can try this image
Yes, but the jtag and pcie functions are reused, so some changes need to be made
Okay thanks! I’ll try the image now. What changes do you mean, is there something I can do?
�Booting...
internal ECC error reading page 0x0
gmac check connect ret=0 cost time=2000 ms
����internal ECC error reading page 0x0
Using soft ecc in spi-nand
internal ECC error reading page 0x0
Using soft ecc in spi-nand
internal ECC error reading page 0x0
Using soft ecc in spi-nand
internal ECC error reading page 0x0
Using soft ecc in spi-nand
Bootloader is not available.
Reboot after 5 seconds!
************ 5 *************
************ 4 *************
************ 3 *************
************ 2 *************
************ 1 *************
************ 0 *************
Seems like the UBI image is in 0x0 on my original messed up flash and yours is in 0x20000
cat@moo ~/c/SNANDer/src $ binwalk3 rv2nand.rom
/home/cat/c/SNANDer/src/rv2nand.rom
---------------------------------------------------------------------------------------------------------------------------------
DECIMAL HEXADECIMAL DESCRIPTION
---------------------------------------------------------------------------------------------------------------------------------
0 0x0 UBI image, version: 1, image size: 10616832 bytes
10616832 0xA20000 UBI image, version: 1, image size: 9830400 bytes
20447232 0x1380000 UBI image, version: 1, image size: 9830400 bytes
30277632 0x1CE0000 UBI image, version: 1, image size: 9830400 bytes
40108032 0x2640000 UBI image, version: 1, image size: 9830400 bytes
49938432 0x2FA0000 UBI image, version: 1, image size: 9830400 bytes
59768832 0x3900000 UBI image, version: 1, image size: 9830400 bytes
69599232 0x4260000 UBI image, version: 1, image size: 262144 bytes
---------------------------------------------------------------------------------------------------------------------------------
Analyzed 1 file for 85 file signatures (187 magic patterns) in 437.0 milliseconds
cat@moo ~/c/SNANDer/src $ binwalk3 ~/Downloads/
AsyncTCP-3.2.15.tar.gz
ESPAsyncWebServer-3.1.4.tar.gz
WebSerial-master.zip
openwrt-imagebuilder-siflower-sf21.Linux-x86_64.tar.zst
openwrt-siflower-sf21-bananapi_bpi-rv2-nand-initramfs-kernel.bin
openwrt-siflower-sf21-bananapi_bpi-rv2-nor-initramfs-kernel.bin
openwrt-siflower-sf21h8898-bpi-rv2-nand-squashfs-fullflash.img
pico-sdk-2.1.1.tar.gz
cat@moo ~/c/SNANDer/src $ binwalk3 ~/Downloads/openwrt-
openwrt-imagebuilder-siflower-sf21.Linux-x86_64.tar.zst
openwrt-siflower-sf21-bananapi_bpi-rv2-nand-initramfs-kernel.bin
openwrt-siflower-sf21-bananapi_bpi-rv2-nor-initramfs-kernel.bin
openwrt-siflower-sf21h8898-bpi-rv2-nand-squashfs-fullflash.img
cat@moo ~/c/SNANDer/src $ binwalk3 ~/Downloads/openwrt-siflower-sf21h8898-bpi-rv2-nand-squashfs-fullflash.img
/home/cat/Downloads/openwrt-siflower-sf21h8898-bpi-rv2-nand-squashfs-fullflash.img
---------------------------------------------------------------------------------------------------------------------------------
DECIMAL HEXADECIMAL DESCRIPTION
---------------------------------------------------------------------------------------------------------------------------------
131072 0x20000 UBI image, version: 1, image size: 10485760 bytes
---------------------------------------------------------------------------------------------------------------------------------
Analyzed 1 file for 85 file signatures (187 magic patterns) in 8.0 milliseconds
I used ch341a to flash nand chip directly.