SD card won't get recognize if boot from EMMC

I’m trying to use EMMC as boot drive and the microSD as storage, but the SD is not being recognize.

I tried following instruction from this user’s guide: https://forum.armbian.com/index.php?/topic/1187-boot-from-emmc-with-blank-sd-in-slot-bpi-m3/ but has been unsuccessful because I’m not understand some of the step.

Help is appreciated.

What exactly did you not understand?

I’m stuck at the part “compile (BPI-M3-bsp)”. Don’t know how to do that.

“compile”… or “cross-compile” ?

just compile. Ok I just follow this guide to complie

https://bananapi.gitbooks.io/bpi-m3/en/howtocompilebpi-m3-bspkernelonbpi-m3.html

and this is what i got:

ubuntu@ubuntu:~/Downloads/BPI-M3-bsp-master$ ./build.sh NOTICE: new build.sh default select BPI_M3_1080P and pack all boards supported boards: BPI_M3_1080P BPI_M3_480P BPI_M3_720P BPI_M3_HSO_LCD7 BPI_M3_LCD5 BPI_M3_LCD7

BPI_M3_1080P configured. Now run make This tool support following building mode(s):

1. Build all, uboot and kernel and pack to download images.
2. Build uboot only.
3. Build kernel only.
4. kernel configure.
5. Pack the builds to target download image, this step must execute after u-boot,
   kernel and rootfs build out
6. update files for SD
7. Clean all build.

Please choose a mode(1-7): 1

Now building…

make -C u-boot-sunxi sun8iw6p1_config CROSS_COMPILE= -j16

make[1]: Entering directory ‘/home/ubuntu/Downloads/BPI-M3-bsp-master/u-boot-sunxi’

awk ‘(NF && $1 !~ /^#/) { print $1 ": " $1 “_config; $(MAKE)” }’ boards.cfg > .boards.depend

Configuring for sun8iw6p1 board…

make[1]: Leaving directory ‘/home/ubuntu/Downloads/BPI-M3-bsp-master/u-boot-sunxi’

make -C u-boot-sunxi all CROSS_COMPILE= -j16

make[1]: Entering directory ‘/home/ubuntu/Downloads/BPI-M3-bsp-master/u-boot-sunxi’

gcc: warning: ‘-mcpu=’ is deprecated; use ‘-mtune=’ or ‘-march=’ instead

gcc: error: unrecognized command line option ‘-mfpu=neon’

gcc: warning: ‘-mcpu=’ is deprecated; use ‘-mtune=’ or ‘-march=’ instead

gcc: error: unrecognized command line option ‘-mfpu=neon’

Generating include/autoconf.mk

gcc: warning: ‘-mcpu=’ is deprecated; use ‘-mtune=’ or ‘-march=’ instead

gcc: error: unrecognized command line option ‘-mfpu=neon’

gcc: warning: ‘-mcpu=’ is deprecated; use ‘-mtune=’ or ‘-march=’ instead

gcc: error: unrecognized command line option ‘-mfpu=neon’

gcc: warning: ‘-mcpu=’ is deprecated; use ‘-mtune=’ or ‘-march=’ instead

gcc: error: unrecognized command line option ‘-mfpu=neon’

Generating include/autoconf.mk.dep

gcc: warning: ‘-mcpu=’ is deprecated; use ‘-mtune=’ or ‘-march=’ instead

gcc: error: unrecognized command line option ‘-mfpu=neon’

gcc: warning: ‘-mcpu=’ is deprecated; use ‘-mtune=’ or ‘-march=’ instead

gcc: error: unrecognized command line option ‘-mfpu=neon’

gcc: warning: ‘-mcpu=’ is deprecated; use ‘-mtune=’ or ‘-march=’ instead

gcc: error: unrecognized command line option ‘-mfpu=neon’

gcc: warning: ‘-mcpu=’ is deprecated; use ‘-mtune=’ or ‘-march=’ instead

gcc: error: unrecognized command line option ‘-mfpu=neon’

gcc: warning: ‘-mcpu=’ is deprecated; use ‘-mtune=’ or ‘-march=’ instead

gcc: error: unrecognized command line option ‘-mfpu=neon’

gcc: warning: ‘-mcpu=’ is deprecated; use ‘-mtune=’ or ‘-march=’ instead

gcc: error: unrecognized command line option ‘-mfpu=neon’

gcc: warning: ‘-mcpu=’ is deprecated; use ‘-mtune=’ or ‘-march=’ instead

gcc: error: unrecognized command line option ‘-mfpu=neon’

gcc -DDO_DEPS_ONLY \

-g  -Os   -fno-common -ffixed-r8 -msoft-float   -D__KERNEL__ -I/home/ubuntu/Downloads/BPI-M3-bsp-master/u-boot-sunxi/include -I/home/ubuntu/Downloads/BPI-M3-bsp-master/u-boot-sunxi/include/openssl -fno-builtin -ffreestanding -nostdinc -isystem /usr/lib/gcc/x86_64-linux-gnu/6/include -pipe  -DCONFIG_ARM -D__ARM__ -mfpu=neon -D__NEON_SIMD__         -mcpu=cortex-a7 -Wall -Wstrict-prototypes      \
-o lib/asm-offsets.s lib/asm-offsets.c -c -S

gcc: warning: ‘-mcpu=’ is deprecated; use ‘-mtune=’ or ‘-march=’ instead

gcc: error: unrecognized command line option ‘-mfpu=neon’

Makefile:649: recipe for target ‘lib/asm-offsets.s’ failed

make[1]: *** [lib/asm-offsets.s] Error 1

make[1]: Leaving directory ‘/home/ubuntu/Downloads/BPI-M3-bsp-master/u-boot-sunxi’

Makefile:40: recipe for target ‘u-boot’ failed

make: *** [u-boot] Error 2

Build success!

There are some errors in there so I not sure if it’s right

This is your direction:

"After compile (BPI-M3-bsp) boot from SD Card, flash eMMC with the 5 files ,

export card=/dev/mmcblk1

dd if=boot0_sdcard.fex of=${card} bs=1k seek=8

dd if=u-boot.fex of=${card} bs=1k seek=19096

dd if=sunxi_mbr.fex of=${card} bs=1k seek=20480

dd if=boot-resource.fex of=${card} bs=1k seek=36864

dd if=env.fex of=${card} bs=1k seek=69632

dd if=boot.fex of=${card} bs=1k seek=86016"

So If I compile correctly, I should be able to find: boot0_sdcard.fex, u-boot.fex, sunxi_mbr.fex, ect… within the BPI-M3-bsp-master folder right? I can’t find them.

Do you mind uploading the 5 files that you compiled?

Uuups… No Problem

http:/www.intno.com/BPI_M3_1080P.ZIP

You’re welcome… #2chops