Can't boot from emmc

(Aesop Ghim) #1
  • Image :

I followed the guide of emmc boot as the following url.

The process is like this.

How to boot from eMMC:

boot from SD

sudo su

echo 0 > /sys/block/mmcblk1boot0/force_ro #enable /dev/mmcblk1boot0 write mode

bpi-bootsel BPI-R2-EMMC-boot0-0k.img.gz /dev/mmcblk1boot0 #write once

bpi-copy /path_to_your_image/


remove SD & power on

But it doesn’t work.

SD card booting always success. However emmc booting fails after bpi-copy the image.

Just RGB LED is on.

How to boot from emmc ?

(gary) #2

Thanks for your information, I will debug this issue, will update you when I find the root cause.

(gary) #3

Hi Aesop

I think this problem is cuased by the wrong partition configuration, please follow below steps to correct it(please note that the ubuntu image on emmc will be damaged):

  1. install the SD card with LEDE test image, we can get the image from link, also more information about this image in link BPI-R2 New image : Openwrt/LEDE 2017-09-08

  2. Power on the R2 board,

  3. After the u-boot prompt “BPI-R2>” appears, please enter the command “emmc ecsd” to check partition configuration, on your board, the partition configuration should be 0h

    [EXT_CSD] Partition config      : 0h
  4. Then run command “emmc pconf 0x48” to change it

  5. Power off this board, remove SD card, and then power it on, the board will boot with lede test image which is stored in EMMC.

  6. The ubuntu system you programmed to EMMC has been damaged yet, need to re-program it, so sorry for this.

Please let me know if you have any question…

Add latest U-boot support for BPI R2 & BPI R64 (not yet)
Image larger than flash

Hi Gary! Looks like your workaround works fine. Thank you!

(gary) #5

Thanks for your feedback, let us know if you have any problem.

(Aesop Ghim) #6

It really works. Next release image will be OK for this problem, right?

In addition, hope R2 BT to be ready soon, too.

Thank you!


Are there any other ways to correct the wrong partition configuration? I can’t get LEDE runing.

(Frank W.) #8

Flash actual uboot to any image (e.g. debian,ubuntu,…) boot from it and do steps above in uboot