BPI-R4:Cannot save to eMMC

Dear All,

I am trying booting from eMMC following “Getting Started BPI-R4 | BananaPi Docs”.

 echo 0 > /sys/block/mmcblk0boot0/force_ro
dd if=bl2_emmc-r4.img of=/dev/mmcblk0boot0
dd if=mtk-bpi-r4-EMMC-20240620.img of=/dev/mmcblk0
 mmc bootpart enable 1 1 /dev/mmcblk0

But booted device cannot save any files. How do I fix this issue?

Thanks in advance,

there are many posts regarding this…switch to mainline openwrt :wink:

Thank you for your reply frank-w.

I found same issue to my problem.

[   43.431287] jffs2: Empty flash at 0x00b3fa64 ends at 0x00b3fa68
[   43.437196] jffs2: Empty flash at 0x00b3fa74 ends at 0x00b3fa78
[   43.443104] jffs2: Empty flash at 0x00b3fa84 ends at 0x00b3fa88
[   43.449014] jffs2: Empty flash at 0x00b3fa94 ends at 0x00b3fa98
[   43.454925] jffs2: Empty flash at 0x00b3faa4 ends at 0x00b3faa8
[   43.460836] jffs2: Empty flash at 0x00b3fab4 ends at 0x00b3fab8
[   43.466763] jffs2: Empty flash at 0x00b3fac4 ends at 0x00b3fac8
[   43.472742] jffs2: Empty flash at 0x00b3fae4 ends at 0x00b3fae8
[   43.479157] jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00b40000: 0xb698 instead
[   43.488666] jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00b40004: 0xaaf9 instead
[   43.498138] jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00b40008: 0x51c2 instead
[   43.507606] jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00b4000c: 0x8e84 instead
[   43.517073] jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00b40010: 0x03f4 instead
[   43.526540] jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00b40014: 0x51b6 instead
[   43.536006] jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00b40018: 0xdcc8 instead
[   43.545471] jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00b4001c: 0x24ca instead
[   43.554937] jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00b40020: 0x51aa instead
[   43.564403] jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00b40024: 0xeaac instead
[   43.573868] jffs2: Further such events for this erase block will not be printed
[   43.582623] jffs2: Old JFFS2 bitmask found at 0x00b481ac
[   43.587929] jffs2: You cannot use older JFFS2 filesystems with newer kernels
[   43.595955] jffs2: Old JFFS2 bitmask found at 0x00b4fc84
[   43.601256] jffs2: You cannot use older JFFS2 filesystems with newer kernels

But wipefs is not installed, and opkg update was failed.

# opkg update
Downloading https://downloads.openwrt.org/releases/21.02-SNAPSHOT/targets/mediatek/mt7988/packages/Packages.gz
*** Failed to download the package list from https://downloads.openwrt.org/releases/21.02-SNAPSHOT/targets/mediatek/mt7988/packages/Packages.gz

Downloading https://downloads.openwrt.org/releases/21.02-SNAPSHOT/packages/aarch64_cortex-a53/base/Packages.gz
*** Failed to download the package list from https://downloads.openwrt.org/releases/21.02-SNAPSHOT/packages/aarch64_cortex-a53/base/Packages.gz

Downloading https://downloads.openwrt.org/releases/21.02-SNAPSHOT/packages/aarch64_cortex-a53/luci/Packages.gz
*** Failed to download the package list from https://downloads.openwrt.org/releases/21.02-SNAPSHOT/packages/aarch64_cortex-a53/luci/Packages.gz

Downloading https://downloads.openwrt.org/releases/21.02-SNAPSHOT/packages/aarch64_cortex-a53/mtk_openwrt_feed/Packages.gz
*** Failed to download the package list from https://downloads.openwrt.org/releases/21.02-SNAPSHOT/packages/aarch64_cortex-a53/mtk_openwrt_feed/Packages.gz

Downloading https://downloads.openwrt.org/releases/21.02-SNAPSHOT/packages/aarch64_cortex-a53/packages/Packages.gz
*** Failed to download the package list from https://downloads.openwrt.org/releases/21.02-SNAPSHOT/packages/aarch64_cortex-a53/packages/Packages.gz

Downloading https://downloads.openwrt.org/releases/21.02-SNAPSHOT/packages/aarch64_cortex-a53/routing/Packages.gz
*** Failed to download the package list from https://downloads.openwrt.org/releases/21.02-SNAPSHOT/packages/aarch64_cortex-a53/routing/Packages.gz

Downloading https://downloads.openwrt.org/releases/21.02-SNAPSHOT/packages/aarch64_cortex-a53/telephony/Packages.gz
*** Failed to download the package list from https://downloads.openwrt.org/releases/21.02-SNAPSHOT/packages/aarch64_cortex-a53/telephony/Packages.gz

Collected errors:
 * opkg_download: Failed to download https://downloads.openwrt.org/releases/21.02-SNAPSHOT/targets/mediatek/mt7988/packages/Packages.gz, wget returned 1.
 * opkg_download: Failed to download https://downloads.openwrt.org/releases/21.02-SNAPSHOT/packages/aarch64_cortex-a53/base/Packages.gz, wget returned 1.
 * opkg_download: Failed to download https://downloads.openwrt.org/releases/21.02-SNAPSHOT/packages/aarch64_cortex-a53/luci/Packages.gz, wget returned 1.
 * opkg_download: Failed to download https://downloads.openwrt.org/releases/21.02-SNAPSHOT/packages/aarch64_cortex-a53/mtk_openwrt_feed/Packages.gz, wget returned 1.
 * opkg_download: Failed to download https://downloads.openwrt.org/releases/21.02-SNAPSHOT/packages/aarch64_cortex-a53/packages/Packages.gz, wget returned 1.
 * opkg_download: Failed to download https://downloads.openwrt.org/releases/21.02-SNAPSHOT/packages/aarch64_cortex-a53/routing/Packages.gz, wget returned 1.
 * opkg_download: Failed to download https://downloads.openwrt.org/releases/21.02-SNAPSHOT/packages/aarch64_cortex-a53/telephony/Packages.gz, wget returned 1.

I tried to install from wipefs.ipk from local disk, but it was failed too.

# opkg install wipefs_2.39-2_aarch64_cortex-a72.ipk
Unknown package 'wipefs'.
Collected errors:
 * pkg_hash_fetch_best_installation_candidate: Packages for wipefs found, but incompatible with the architectures configured
 * opkg_install_cmd: Cannot install package wipefs.

I have got my BPI-R4 yesterday. Then I have tried to flush the official emmc image to emmc. I think, Nand image is not dirty. I don’t know what I did wrong.