Hi numbqq,
I flashed vim3-android-9-64bit-v230719.img into eMMC, and flashed vim3-ubuntu-22.04-server-linux-6.1-fenix-1.4-221229.img.xz into USB storage by the tool balenaEtcher. I found system will boot from eMMC, I tried to insert the USB storage into both USB port on my VIM3, the results are the same. Here is the boot log.
G12B:BL:6e7c85:2a3b91;FEAT:E0F83180:402000;POC:F;RCY:0;EMMC:0;READ:0;0.
bl2_stage_init 0x01
bl2_stage_init 0x81
hw id: 0x0000 - pwm id 0x01
bl2_stage_init 0xc1
bl2_stage_init 0x02
L0:00000000
L1:20000703
L2:00008067
L3:14000000
B2:00402000
B1:e0f83180
TE: 153015
BL2 Built : 19:23:21, Sep 18 2020. g12b g9fde858 - gongwei.chen@droid11-sz
Board ID = 8
Set A53 clk to 24M
Set A73 clk to 24M
Set clk81 to 24M
A53 clk: 1200 MHz
A73 clk: 1200 MHz
CLK81: 166.6M
smccc: 00029e9a
eMMC boot @ 0
sw8 s
board id: 8
Load FIP HDR DDR from eMMC, src: 0x00010200, des: 0xfffd0000, size: 0x00004000, part: 0
Get wrong ddr fw magic! Error!!
fw parse done
PIEI prepare done
00000000
emmc switch 1 ok
ddr saved addr:00016000
Load ddr parameter from eMMC, src: 0x02c00000, des: 0xfffd0000, size: 0x00001000, part: 0
00000000
emmc switch 0 ok
fastboot data verify
result: 255
Cfg max: 12, cur: 1. Board id: 255. Force loop cfg
LPDDR4 probe
LPDDR4_PHY_V_0_1_22-Built : 14:57:26, Sep 1 2020. g12b g3c95fed - gongwei.chen@droid11-sz
ddr clk to 1608MHz
dmc_version 0001
Check phy result
INFO : End of CA training
INFO : End of initialization
INFO : Training has run successfully!
Check phy result
INFO : End of initialization
INFO : End of read enable training
INFO : End of fine write leveling
INFO : End of read dq deskew training
INFO : End of MPR read delay center optimization
INFO : End of Write leveling coarse delay
INFO : End of read delay center optimization
INFO : Training has run successfully!
Check phy result
INFO : End of initialization
INFO : End of MPR read delay center optimization
INFO : End of write delay center optimization
INFO : End of read delay center optimization
INFO : End of max read latency training
INFO : Training has run successfully!
1D training succeed
Check phy result
INFO : End of initialization
INFO : End of 2D read delay Voltage center optimization
INFO : End of 2D read delay Voltage center optimization
INFO : End of 2D write delay Voltage center optimization
INFO : End of 2D write delay Voltage center optimization
INFO : Training has run successfully!
soc_vref_reg_value 0x 00000026 00000026 00000027 00000027 00000026 00000025 00000025 00000027 00000026 00000024 00000027 00000025 00000025 00000025 00000028 00000026 00000025 00000025 00000026 00000026 00000024 00000024 00000026 00000026 00000025 00000027 00000026 00000026 00000025 00000026 00000026 00000024 dwc_ddrphy_apb_wr((0<<20)|(2<<16)|(0<<12)|(0xb0):0004
dram_vref_reg_value 0x 00000015
2D training succeed
auto size-- 65535DDR cs0 size: 2048MB
DDR cs1 size: 2048MB
DMC_DDR_CTRL: 00e00024DDR size: 3928MB
cs0 DataBus test pass
cs1 DataBus test pass
cs0 AddrBus test pass
cs1 AddrBus test pass
non-sec scramble use zero key
ddr scramble enabled
100bdlr_step_size ps== 444
result report
boot times 0Enable ddr reg access
00000000
emmc switch 3 ok
Authentication key not yet programmed
get rpmb counter error 0x00000007
00000000
emmc switch 0 ok
Load FIP HDR from eMMC, src: 0x00010200, des: 0x01700000, size: 0x00004000, part: 0
Load BL3X from eMMC, src: 0x00078200, des: 0x01768000, size: 0x000e4800, part: 0
0.0;M3 CHK:0;cm4_sp_mode 0
[Image: g12b_v1.1.3396-c893a7153 2020-11-11 13:54:36 gongwei.chen@droid11-sz]
OPS=0x10
ring efuse init
chipver efuse init
29 0b 10 00 01 15 19 00 00 15 31 34 32 58 33 50
[0.016082 Inits done]
secure task start!
high task start!
low task start!
run into bl31
NOTICE: BL31: v1.3(release):5c909a099
NOTICE: BL31: Built : 17:18:21, Nov 20 2020
NOTICE: BL31: G12A normal boot!
NOTICE: BL31: BL33 decompress pass
ERROR: Error initializing runtime service opteed_fast
U-Boot 2015.01-gb6634a96e4-dirty (Jul 19 2023 - 20:54:20)
DRAM: 3.8 GiB
Relocation Offset is: d6e1d000
mmu cfg end: 0xe0000000
mmu cfg end: 0xe0000000
spi_post_bind(spifc): req_seq = 0
board init
register usb cfg[0][1] = 00000000d7f30708
aml_i2c_init_port init regs for 0
MCU version: 0x00 0x03
MCU version is to low! Doesn't support froce boot from SD card.
NAND: MMC: aml_priv->desc_buf = 0x00000000d3e0da70
aml_priv->desc_buf = 0x00000000d3e0fdb0
SDIO Port B: 0, SDIO Port C: 1
co-phase 0x3, tx-dly 0, clock 400000
co-phase 0x3, tx-dly 0, clock 400000
co-phase 0x3, tx-dly 0, clock 400000
emmc/sd response timeout, cmd8, cmd->cmdarg=0x1aa, status=0x3ff2800
emmc/sd response timeout, cmd55, cmd->cmdarg=0x0, status=0x3ff2800
co-phase 0x3, tx-dly 0, clock 400000
co-phase 0x1, tx-dly 0, clock 40000000
[set_emmc_calc_fixed_adj][875]find fixed adj_delay=20
init_part() 297: PART_TYPE_AML
[mmc_init] mmc init success
start dts,buffer=00000000d3e12620,dt_addr=00000000d3e12620
get_partition_from_dts() 92: ret 0
parts: 17
00: logo 0000000000800000 1
01: recovery 0000000001800000 1
02: misc 0000000000800000 1
03: dtbo 0000000000800000 1
04: cri_data 0000000000800000 2
05: param 0000000001000000 2
06: boot 0000000001000000 1
set has_boot_slot = 0
07: rsv 0000000001000000 1
08: metadata 0000000001000000 1
09: vbmeta 0000000000200000 1
10: tee 0000000002000000 1
11: vendor 000000001f000000 1
12: odm 0000000008000000 1
13: system 0000000078800000 1
14: product 0000000008000000 1
15: cache 0000000046000000 2
16: data ffffffffffffffff 4
init_part() 297: PART_TYPE_AML
eMMC/TSD partition table have been checked OK!
crc32_s:0x1577dad == storage crc_pattern:0x1577dad!!!
crc32_s:0xee152b83 == storage crc_pattern:0xee152b83!!!
crc32_s:0x79f50f07 == storage crc_pattern:0x79f50f07!!!
mmc env offset: 0x4d400000
In: serial
Out: serial
Err: serial
board late init
aml log : internal sys error!
reboot_mode=cold_boot
TP050 id=0xff
TP101 id=0xff
panel_type=lcd_1 khadas_mipi_id=0 id=0---default old_TS050 id=1,lcd_1---old_TS050 id=2,lcd_2---TS101 id=3,lcd_3---new_TS050
[aml_i2c_xfer] error ret = -5 i2c master b current slave addr is 0xc
i2c_read: i2c transfer failed
Error reading the chip: -5
khadas camera id=0xfffffffb
khadas_camera_id=1 id=1---is OS08A10 id=2---is IMX415
[store]To run cmd[emmc dtb_read 0x1000000 0x40000]
_verify_dtb_checksum()-3354: calc 1b498a99, store 1b498a99
_verify_dtb_checksum()-3354: calc 1b498a99, store 1b498a99
dtb_read()-3569: total valid 2
update_old_dtb()-3550: do nothing
aml_i2c_init_port init regs for 0
fusb302_init: Device ID: 0x91
amlkey_init() enter!
[EFUSE_MSG]keynum is 1
vpu: driver version: v20190313
vpu: detect chip type: 9
vpu: clk_level default: 7(666667000Hz), max: 7(666667000Hz)
vpu: clk_level in dts: 7
vpu: vpu_power_on
vpu: set_vpu_clk
vpu: set clk: 666667000Hz, readback: 666666667Hz(0x100)
vpu: set_vpu_clk finish
vpu: vpu_module_init_config
vpp: vpp_init
vpp: vpp osd2 matrix rgb2yuv..............
hdr_func 4, hdr_process_select 0x1
LCD_RESET PIN: 0
lcd: lcd_debug_print flag: 0
lcd: detect mode: tablet, key_valid: 0
lcd: detect lcd_clk_path: 1
lcd: failed to get lcd_cpu_gpio_names
lcd: load config from dts
lcd: pinctrl_version: 2
lcd: use panel_type=lcd_1
lcd: bl: pinctrl_version: 2
lcd: bl: name: backlight_pwm, method: 1
lcd: error: gpio: wrong name invalid
lcd: bl: pwm_reg=0x00800002
lcd: bl: aml_bl_power_ctrl: 0
Net: use internal ethernet
--------ext_ethernet=0
+++++++++ext_ethernet=0
dwmac.ff3f0000 Waiting for PHY auto negotiation to complete.... done
The Best Window is index 38
[KM]Msg:isEncrypt=
[KM]Msg:keyAttr is 0x00000000
dwmac.ff3f0000amlkey_init() enter!
amlkey_init() 71: already init!
[EFUSE_MSG]keynum is 1
ramdump_init, add:0, size:0
CONFIG_AVB2: null
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
wipe_data=successful
wipe_cache=successful
upgrade_step=2
aml log : internal sys error!
reboot_mode:::: cold_boot
lcd: error: outputmode[576cvbs] is not support
hpd_state=0
do_hpd_detect: hdmimode=1080p60hz
do_hpd_detect: colorattribute=444,8bit
Saving Environment to aml-storage...
mmc env offset: 0x4d400000
Writing to MMC(1)... done
no sink, fallback to 720p60hz[4]
hdr mode is 0
dv mode is ver:0 len: 0
hdr10+ mode is 0
read hdmichecksum 0x00000000, colorattribute 444,8bit
read hdmimode 1080p60hz, colorspace <NULL>, colordepth <NULL>
do_get_parse_edid: autoMode = false, manualMode=16
isYuv4kSink: false, maxTMDSRate=150
do_get_parse_edid: non-yuv4k sink: inColorSpace: HDMI_COLOR_FORMAT_RGB
do_get_parse_edid: default inColorDepth: HDMI_COLOR_DEPTH_24B
TV is same, initial mode is: 576cvbs attr: 444,8bit
HDMI cable is NOT connected
Unknown command 'dovi' - try 'help'
[OSD]load fb addr from dts:/meson-fb
[OSD]set initrd_high: 0x7f800000
[OSD]fb_addr for logo: 0x7f800000
[OSD]load fb addr from dts:/meson-fb
[OSD]fb_addr for logo: 0x7f800000
[OSD]VPP_OFIFO_SIZE:0xfff01fff
[CANVAS]canvas init
[CANVAS]addr=0x7f800000 width=3840, height=2160
[OSD]osd_hw.free_dst_data: 0,719,0,575
[OSD]osd1_update_disp_freescale_enable
hdmitx: outputmode[576cvbs] is invalid
lcd: error: outputmode[576cvbs] is not support
hdr_packet
vpp: hdr_policy = 1
vpp: Rx hdr_info.hdr_sup_eotf_smpte_st_2084 = 0
s_version: U-Boot 2015.01-gb6634a96e4-dirty
normal power on
boot wol: disable
[reg_31] 0xd8a
[reg_16] 0x0
[reg_17] 0x7fff
[reg_19] 0x0
[reg_31] 0x0
[reg_31] 0xd40
[reg_22] 0x0
[reg_31] 0x0
saradc: 0x287, hw_ver: 0x32 (VIM3.V12)
gpio: pin GPIOAO_7 (gpio 7) value is 1
port mode is usb3.0
Command: bcb uboot-command
Start read misc partition datas!
BCB hasn't any datas,exit!
s_version: U-Boot 2015.01-gb6634a96e4-dirty
Hit Enter or space or Ctrl+C key to stop autoboot -- : 1 0
cfgload: start ...
cfgload: reading /boot.ini from mmc 0:1 ...
card out
** Bad device mmc 0 **
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!
CONFIG_SYSTEM_AS_ROOT: systemroot
system_mode: 1
active_slot: normal
avb2: 0
ee_gate_off ...
avb2: 0
## Booting Android Image at 0x03080000 ...
Kernel command line: androidboot.dtbo_idx=0 --cmdline root=/dev/mmcblk0p18 buildvariant=userdebug
[store]Is good fdt check header, no need decrypt!
active_slot is normal
load dtb from 0x1000000 ......
find 1 dtbos
dtbos to be applied: 0
Apply dtbo 0
Uncompressing Kernel Image ... OK
kernel loaded at 0x01080000, end = 0x0265f808
Loading Device Tree to 000000001ffe5000, end 000000001ffffdb8 ... OK
fdt_fixup_memory_banks, reg:0000000000000000
Starting kernel ...
uboot time: 5570353 us
[ 0.000000@0] Booting Linux on physical CPU 0x0
[ 0.000000@0] Linux version 4.9.113-g7f3f7f3ef13b-dirty (xiong@server) (gcc version 6.3.1 20170109 (Linaro GCC 6.3-2017.02) ) #1 SMP PREEMPT Wed Jul 19 19:50:41 CST 2023
[ 0.000000@0] Boot CPU: AArch64 Processor [410fd034]
[ 0.000000@0] earlycon: aml-uart0 at MMIO 0x00000000ff803000 (options '')
[ 0.000000@0] bootconsole [aml-uart0] enabled
[ 0.000000@0] 07400000 - 07500000, 1024 KB, ramoops@0x07400000
[ 0.000000@0] fdt_init_reserved_mem, start:0x0000000005000000, end:0x0000000005400000, len:4 MiB
[ 0.000000@0] 05000000 - 05400000, 4096 KB, linux,secmon
[ 0.000000@0] fdt_init_reserved_mem, start:0x000000007f800000, end:0x0000000080000000, len:8 MiB
[ 0.000000@0] 7f800000 - 80000000, 8192 KB, linux,meson-fb
[ 0.000000@0] d0000000 - d8000000, 131072 KB, linux,ion-dev
[ 0.000000@0] cd800000 - d0000000, 40960 KB, linux,di_cma
[ 0.000000@0] Reserved memory: created DMA memory pool at 0x00000000cd800000, size 0 MiB
[ 0.000000@0] cd800000 - cd800000, 0 KB, linux,ppmgr
[ 0.000000@0] ba400000 - cd800000, 315392 KB, linux,codec_mm_cma
[ 0.000000@0] ba400000 - ba400000, 0 KB, linux,codec_mm_reserved
[ 0.000000@0] b6400000 - ba400000, 65536 KB, linux,vdin0_cma
[ 0.000000@0] b2400000 - b6400000, 65536 KB, linux,vdin1_cma
[ 0.000000@0] b1400000 - b2400000, 16384 KB, linux,galcore
[ 0.000000@0] a9400000 - b1400000, 131072 KB, linux,isp_cma
[ 0.000000@0] a7c00000 - a9400000, 24576 KB, linux,adapt_cma
[ 0.000000@0] cma: Reserved 8 MiB at 0x00000000a7400000
[ 0.000000@0] psci: probing for conduit method from DT.
[ 0.000000@0] psci: PSCIv1.0 detected in firmware.
[ 0.000000@0] psci: Using standard PSCI v0.2 function IDs
[ 0.000000@0] psci: MIGRATE_INFO_TYPE not supported.
[ 0.000000@0] psci: SMC Calling Convention v1.1
[ 0.000000@0] percpu: Embedded 26 pages/cpu @ffffffc0a72e5000 s68952 r8192 d29352 u106496
[ 0.000000@0] Detected VIPT I-cache on CPU0
[ 0.000000@0] CPU features: enabling workaround for ARM erratum 845719
[ 0.000000@0] Built 1 zonelists in Zone order, mobility grouping on. Total pages: 870912
[ 0.000000@0] Kernel command line: init=/init console=ttyS0,115200 no_console_suspend earlycon=aml-uart,0xff803000 ramoops.pstore_en=1 ramoops.record_size=0x8000 ramoops.console_size=0x4000 hdr_policy=1 hdr_priority= otg_device=1 reboot_mode_android=normal logo=osd0,loaded,0x3d800000 fb_width=1920 fb_height=1080 vout2=,enable vout=576cvbs,enable panel_type=lcd_1 lcd_ctrl=0x00000083 hdmitx=,444,8bit hdmimode=1080p60hz nativeui=disable hdmichecksum=0x00000000 dolby_vision_on=0 frac_rate_policy=1 hdmi_read_edid=1 cvbsmode=576cvbs osd_reverse=0 video_reverse=0 irq_check_en=0 androidboot.selinux=permissive androidboot.firstboot=0 jtag=disable wol_enable=0 spi_state=0 fusb302_state=1 hwver=VIM3.V12 factory_mac=c8:63:14:72:4c:d0 lcd_exist=0 ext_board_exist=0 androidboot.hardware=amlogic androidboot.bootloader=U-Boot 2015.01-gb6634a96e4-dirty androidboot.build.expect.baseband=N/A androidboot.serialno=c86314724cd0 mac=c8:63:14:72:4c:d0 androidboot.mac=c8:63:14:72:4c:d0 khadas_mipi_id=0 khadas_came
[ 0.000000@0] am_vecm: boot hdr_policy: 1
[ 0.000000@0] fb: osd0
[ 0.000000@0] fb: loaded
[ 0.000000@0] fb: 0x3d800000
[ 0.000000@0] fb: logo_info.fb_width=1920
[ 0.000000@0] fb: logo_info.fb_height=1080
[ 0.000000@0] vout: error: get_vout2_init_mode:
[ 0.000000@0] vout: vout2: enable: 1
[ 0.000000@0] vout: 576cvbs
[ 0.000000@0] vout: enable: 1
[ 0.000000@0] lcd: panel_type: lcd_1
[ 0.000000@0] lcd: lcd_ctrl: 0x00000083
[ 0.000000@0] vout: get hdmimode: 1080p60hz
[ 0.000000@0] jason hdmichecksum: 0x00000000
[ 0.000000@0] vout: get hdmi checksum: 0x00000000
[ 0.000000@0] vout: get cvbsmode: 576cvbs
[ 0.000000@0] vpp_axis_reverse: bootargs is 0
[ 0.000000@0] DI: di_read_canvas_reverse: bootargs is 0.
[ 0.000000@0] vdin_get_video_reverse: bootargs is 0.
[ 0.000000@0] phlock_phase_config: bootargs is 0.
[ 0.000000@0] init_wol_state, wol_enable=0
[ 0.000000@0] jason lcd_exist: 0
[ 0.000000@0] ext_board_exist: 0
......