BPI-R2 emmc flash not working properly

Hello,

I am following below steps to flash OpenWRT images to EMMC,

Here, BPI-R2 board is up with SD card and EMMC.img is copied.

  1. dd if=mtk-bpi-r2-EMMC.img of=/dev/mmcblk0

  2. echo 0 > /sys/block/mmcblk0boot0/force_ro

  3. dd if=mtk-bpi-r2-EMMC.img of=/dev/mmcblk0boot0 bs=1M count=1

  4. reboot and run emmc pconf 48 on u-boot prompt

  5. power off/ remove SD card and power on

But, I am observing the following issues,

  1. Continuous observing below logs, jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x23b50004: 0x2000 instead jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x23b50008: 0x74cc instead jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x23b5000c: 0xaad5 instead jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x23b50010: 0x49d5 instead jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x23b50018: 0x0002 instead jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x23b5001c: 0x0002 instead jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x23b50020: 0x8000 instead

  2. Still observing old data in EMMC card, EMMC is not updated with new data.

Please let me know if observed similar issue and fixed it.

Thanks in advance.

Regards, Ashok

Step 4 has to be done first and only once before copy anything to emmc. If you have done it you can leave this step because partitioning is done…

Copy only preloader to boot0-block after deactivating force_ro. This is second step and has to be done also once.

After that you need only change userpartition with your image (lede/openwrt or whatever)

Btw. It will be necessary to know which openwrt-repo/version you are using

1 Like

Hello Frank,

Following below steps to sync openwrt source,

• git clone https://github.com/garywangcn/bpi-r2_lede.git

• cd bpi-r2_lede/

• git checkout bpi-r2-on-lede-v1

• make menuconfig (here “Target System” must be set to “MediaTek Ralink ARM”)

• make -j1 V=s

Regards, Ashok

Actually I am updating filesystem (created new files in etc folder) but those are not reflecting in board.

can any one help here.

Afaik lede/openwrt does not use partitions…it’s a filesystem loaded from a blob compiled in the image…i don’t know if this is writeable…

I’m not using lede/openwrt (mostly because of this)