How to boot from SD card?

Which Khadas SBC do you use?

VIM3 Pro.

Which system do you use? Android, Ubuntu, OOWOW or others?

Android on EMMC and Manjaro on SD-card

Which version of system do you use? Khadas official images, self built images, or others?

Manjaro official images.

Please describe your issue below:

Can not boot from sd card after flash the Manjaro image to the sd-card. Will boot to android on the emmc.

Post a console log of your issue below:


Hit Enter or space or Ctrl+C key to stop autoboot -- :  0 
cfgload: start ...
cfgload: reading /boot.ini from mmc 0:1 ...
card in
co-phase 0x2, tx-dly 0, clock 400000
co-phase 0x2, tx-dly 0, clock 400000
co-phase 0x2, tx-dly 0, clock 400000
co-phase 0x2, tx-dly 0, clock 400000
co-phase 0x2, tx-dly 0, clock 40000000
aml_sd_retry_refix[983]:delay = 0x0,gadjust =0x22000
[mmc_startup] mmc refix success
init_part() 282: PART_TYPE_DOS
[mmc_init] mmc init success
reading /boot.ini
** Unable to read file /boot.ini **
cfgload: no /boot.ini or empty file on mmc 0:1
cfgload: reading /boot.ini from mmc 1:1 ...
Failed to mount ext2 filesystem...
** Unrecognized filesystem type **
cfgload: no /boot.ini or empty file on mmc 1:1
cfgload: reading /boot/boot.ini from mmc 1:5 ...
Failed to mount ext2 filesystem...
** Unrecognized filesystem type **
cfgload: no /boot/boot.ini or empty file on mmc 1:5
cfgload: failed to read boot.ini on all partitions!
pll tsensor avg: 0x1f20, u_efuse: 0x800d
temp1: 31
ddr tsensor avg: 0x1f5a, u_efuse: 0x8059
temp2: 32
device cool done
CONFIG_SYSTEM_AS_ROOT: systemroot 
system_mode: 1
Start read misc partition datas!
info->magic = 
info->version_major = 1
info->version_minor = 0
info->slots[0].priority = 15
info->slots[0].tries_remaining = 7
info->slots[0].successful_boot = 0
info->slots[1].priority = 14
info->slots[1].tries_remaining = 7
info->slots[1].successful_boot = 0
info->crc32 = -1075449479
active slot = 0
CONFIG_AVB2: null 
active_slot: normal
avb2: 0
ee_gate_off ...
avb2: 0
## Booting Android Image at 0x01080000 ...
Kernel command line: androidboot.dtbo_idx=0 --cmdline root=/dev/mmcblk0p18 buildvariant=userdebug
Start read misc partition datas!
info->magic = 
info->version_major = 1
info->version_minor = 0
info->slots[0].priority = 15
info->slots[0].tries_remaining = 7
info->slots[0].successful_boot = 0
info->slots[1].priority = 14
info->slots[1].tries_remaining = 7
info->slots[1].successful_boot = 0
info->crc32 = -1075449479
active slot = 0
active_slot is normal
load dtb from 0x1000000 ......
find 1 dtbos
dtbos to be applied: 0
Apply dtbo 0
   Loading Kernel Image(COMP_NONE) ... OK
   kernel loaded at 0x01080000, end = 0x019b3978
   Loading Device Tree to 0000000009fe6000, end 0000000009fff27a ... OK

Starting kernel ...


Problem: limited android u-boot
Manjaro use mainline way and works fine with mainline uboot

Soulitions

  1. remove android from emmc (with andoid bootloader) and after majaro sd images must works fine
  2. or install mainline uboot into emmc same must works
  3. or make custom manjaro boot scripts