Recover from upgrade boot loop?

Which Khadas SBC do you use?

Vim3

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

Ubuntu 22.04, not booting

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

was official krescue-pulled 18.04, did in-place upgrade

Please describe your issue below:

I’m in a bit of a pickle.
I’ve got the KRescue SD image on a SD card, but I can’t flip the boot mode to USB for some reason.
I tried the Keys mode, boot loop.
I’m connected to serial from my pi4 as described and have halted the boot loop into upgrade mode, but as described in the instructions, when I type

Run Update

it seems to be unhappy with what I’m doing

Post a console log of your issue below:


run update 
InUsbBurn
noSof
sof timeout, reset usb phy tuning
Device: SDIO Port B
Manufacturer ID: 3
OEM: 5344
Name: SL32G 
Tran Speed: 50000000
Rd Block Len: 512
SD version 3.0
High Capacity: Yes
Capacity: 29.7 GiB
mmc clock: 40000000
Bus Width: 4-bit
Device: SDIO Port B
Manufacturer ID: 3
OEM: 5344
Name: SL32G 
Tran Speed: 50000000
Rd Block Len: 512
SD version 3.0
High Capacity: Yes
Capacity: 29.7 GiB
mmc clock: 40000000
Bus Width: 4-bit
reading aml_autoscript
** Unable to read file aml_autoscript **
reading recovery.img
** Unable to read file recovery.img **
(Re)start USB...
USB0:   USB3.0 XHCI init start
Register 3000140 NbrPorts 2
Starting the controller
USB XHCI 1.10
scanning bus 0 for devices... 3 USB Device(s) found
       scanning usb for storage devices... Device NOT ready
   Request Sense returned 02 3A 00
Device NOT ready
   Request Sense returned 02 3A 00
2 Storage Device(s) found
** Bad device size - usb 0 **
** Bad device size - usb 0 **
Start read misc partition datas!
Cannot find dev.
amlmmc cmd <NULL> failed 

store - STORE sub-system

Usage:
store init flag
store read name addr off|partition size
    read 'size' bytes starting at offset 'off'
    to/from memory address 'addr', skipping bad blocks.
store write name addr off|partition size
    write 'size' bytes starting at offset 'off'
    to/from memory address 'addr', skipping bad blocks.
store rom_write add off size.
        write uboot to the boot device
store erase boot/data: 
        erase the area which is uboot or data 
store erase partition <partition_name>: 
        erase the area which partition in u-boot 
store erase dtb 
store erase key 
store disprotect key 
store rom_protect on/off 
store scrub off|partition size
        scrub the area from offset and size 
store dtb iread/read/write addr <size>
        read/write dtb, size is optional 
store key read/write addr <size>
        read/write key, size is optional 
store ddr_parameter read/write addr <size>
        read/write ddr parameter, size is optional 
store mbr addr
   update mbr/partition table by dtb

[burnup]Err:store_read_ops,L84:cmd failed, ret=1, [store  read misc 0xd3e30e40 ]
failed to store read misc.
info->magic = 
info->version_major = 0
info->version_minor = 0
info->slots[0].priority = 0
info->slots[0].tries_remaining = 0
info->slots[0].successful_boot = 0
info->slots[1].priority = 0
info->slots[1].tries_remaining = 0
info->slots[1].successful_boot = 0
info->crc32 = 0
Magic  is incorrect.
boot-info is invalid. Resetting.
save boot-info 
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
Cannot find dev.
amlmmc cmd <NULL> failed 

store - STORE sub-system

Usage:
store init flag
store read name addr off|partition size
    read 'size' bytes starting at offset 'off'
    to/from memory address 'addr', skipping bad blocks.
store write name addr off|partition size
    write 'size' bytes starting at offset 'off'
    to/from memory address 'addr', skipping bad blocks.
store rom_write add off size.
        write uboot to the boot device
store erase boot/data: 
        erase the area which is uboot or data 
store erase partition <partition_name>: 
        erase the area which partition in u-boot 
store erase dtb 
store erase key 
store disprotect key 
store rom_protect on/off 
store scrub off|partition size
        scrub the area from offset and size 
store dtb iread/read/write addr <size>
        read/write dtb, size is optional 
store key read/write addr <size>
        read/write key, size is optional 
store ddr_parameter read/write addr <size>
        read/write ddr parameter, size is optional 
store mbr addr
   update mbr/partition table by dtb

[burnup]Err:store_write_ops,L148:cmd [store  write misc 0xd3e30e40  0x0  0x820]0
active_slot: normal
Cannot find dev.
amlmmc cmd <NULL> failed 

store - STORE sub-system

Usage:
store init flag
store read name addr off|partition size
    read 'size' bytes starting at offset 'off'
    to/from memory address 'addr', skipping bad blocks.
store write name addr off|partition size
    write 'size' bytes starting at offset 'off'
    to/from memory address 'addr', skipping bad blocks.
store rom_write add off size.
        write uboot to the boot device
store erase boot/data: 
        erase the area which is uboot or data 
store erase partition <partition_name>: 
        erase the area which partition in u-boot 
store erase dtb 
store erase key 
store disprotect key 
store rom_protect on/off 
store scrub off|partition size
        scrub the area from offset and size 
store dtb iread/read/write addr <size>
        read/write dtb, size is optional 
store key read/write addr <size>
        read/write key, size is optional 
store ddr_parameter read/write addr <size>
        read/write ddr parameter, size is optional 
store mbr addr
   update mbr/partition table by dtb

[burnup]Err:store_read_ops,L84:cmd failed, ret=1, [store  read recovery 0x10800]
Err imgread(L328):Fail to read 0x100000B from part[recovery] at offset 0
kvim3#


I wondered if having the SD card inserted was confusing the
run update
script, but it seems to do the same without it.

I tried to poke around at the USB options ( moving the SD to a card reader ) making sure I could see a storage device and attempted to boot from USB but it seemed unhappy with that as well

kvim3#usb start  
(Re)start USB...
USB0:   USB3.0 XHCI init start
Register 3000140 NbrPorts 2
Starting the controller
USB XHCI 1.10
scanning bus 0 for devices... 3 USB Device(s) found
       scanning usb for storage devices... Device NOT ready
   Request Sense returned 02 3A 00
init_part() 282: PART_TYPE_DOS
2 Storage Device(s) found
kvim3#usb storage
  Device 0: Vendor: Generic  Rev: 2011 Prod: MassStorageClass
            Type: Removable Hard Disk
            Capacity: not available
  Device 1: Vendor: Generic  Rev: 2011 Prod: MassStorageClass
            Type: Removable Hard Disk
            Capacity: 30436.5 MB = 29.7 GB (62333952 x 512)

kvim3#usb part
## Unknown partition table


Partition Map for USB device 1  --   Partition Type: DOS

Part    Start Sector    Num Sectors     UUID            Type
  1     8192            524289          d19e43a4-01     0c
  2     540672          61793280        d19e43a4-02     83

kvim3#usbboot 0 1:1

Loading from usb device 1, partition 1: Name: usbdb1  Type: U-Boot
BUG: failure at ../drivers/usb/host/xhci-mem.c:36/xhci_flush_cache()!
BUG!
resetting ...
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: 201738

BL2 Built : 15:22:05, Aug 28 2019. g12b g1bf2b53 - luan.yuan@droid15-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: 00035be8
eMMC boot @ 0
sw8 s
DDR driver_vesion: LPDDR4_PHY_V_0_1_18 build time: Aug 28 2019 15:22:01
board id: 8
Load FIP HDR from eMMC, src: 0x00010200, des: 0xfffd0000, size: 0x00004000, par0
fw parse done
Load ddrfw from eMMC, src: 0x00060200, des: 0xfffd0000, size: 0x0000c000, part:0
Load ddrfw from eMMC, src: 0x00038200, des: 0xfffd0000, size: 0x00004000, part:0
PIEI prepare done
fastboot data load
00000000
emmc switch 1 ok
00000000
emmc switch 2 ok
fastboot data verify
verify result: 265
Cfg max: 4, cur: 1. Board id: 255. Force loop cfg
LPDDR4 probe
ddr clk to 1608MHz
Load ddrfw from eMMC, src: 0x0003c200, des: 0xfffd0000, size: 0x0000c000, part:0
00000000
emmc switch 0 ok

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 Write leveling coarse delay
INFO : Training has run successfully!
Check phy result
INFO : End of initialization
INFO : End of read dq deskew training
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
Load ddrfw from eMMC, src: 0x00048200, des: 0xfffd0000, size: 0x0000c000, part:0
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!

channel==0
RxClkDly_Margin_A0==97 ps 10
TxDqDly_Margin_A0==97 ps 10
RxClkDly_Margin_A1==87 ps 9
TxDqDly_Margin_A1==87 ps 9
TrainedVREFDQ_A0==26
TrainedVREFDQ_A1==26
VrefDac_Margin_A0==27
DeviceVref_Margin_A0==26
VrefDac_Margin_A1==27
DeviceVref_Margin_A1==26


channel==1
RxClkDly_Margin_A0==77 ps 8
TxDqDly_Margin_A0==97 ps 10
RxClkDly_Margin_A1==87 ps 9
TxDqDly_Margin_A1==106 ps 11
TrainedVREFDQ_A0==25
TrainedVREFDQ_A1==24
VrefDac_Margin_A0==26
DeviceVref_Margin_A0==24
VrefDac_Margin_A1==25
DeviceVref_Margin_A1==24

 dwc_ddrphy_apb_wr((0<<20)|(2<<16)|(0<<12)|(0xb0):0004 

soc_vref_reg_value 0x 00000026 00000028 00000028 00000027 00000028 00000027 0003
2D training succeed
aml_ddr_fw_vesion: LPDDR4_PHY_V_0_1_18 build time: Aug 28 2019 13:54:19
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== 437
result report
boot times 5Enable 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, par0
Load BL3X from eMMC, src: 0x00078200, des: 0x01768000, size: 0x000d0000, part: 0
0.0;M3 CHK:0;cm4_sp_mode 0
MVN_1=0x00000000
MVN_2=0x00000000
[Image: g12b_v1.1.3390-6ac5299 2019-09-26 14:10:05 luan.yuan@droid15-sz]
OPS=0x10
ring efuse init
chipver efuse init
29 0b 10 00 01 11 12 00 00 0a 33 32 4e 31 53 50 
[0.996362 Inits done]
secure task start!
high task start!
low task start!
run into bl31
NOTICE:  BL31: v1.3(release):4fc40b1
NOTICE:  BL31: Built : 15:58:17, May 22 2019
NOTICE:  BL31: G12A normal boot!
NOTICE:  BL31: BL33 decompress pass
ERROR:   Error initializing runtime service opteed_fast


U-Boot 2015.01 (Jul 25 2022 - 11:11:39)

DRAM:  3.8 GiB
Relocation Offset is: d6e42000
spi_post_bind(spifc): req_seq = 0
register usb cfg[0][1] = 00000000d7f39218
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.
MMC:   aml_priv->desc_buf = 0x00000000d3e32a70
aml_priv->desc_buf = 0x00000000d3e34db0
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, status=0x3ff2800
emmc/sd response timeout, cmd55, status=0x3ff2800
co-phase 0x3, tx-dly 0, clock 400000
co-phase 0x1, tx-dly 0, clock 40000000
aml_sd_retry_refix[983]:delay = 0x0,gadjust =0x2000
[mmc_startup] mmc refix success
init_part() 297: PART_TYPE_AML
[mmc_init] mmc init success
start dts,buffer=00000000d3e37620,dt_addr=00000000d3e37620
get_partition_from_dts() 91: ret 0
parts: 3
00:      logo   0000000000800000 1
01:   ramdisk   0000000002000000 1
02:    rootfs   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: 0x6c00000 
In:    serial
Out:   serial
Err:   serial
reboot_mode=watchdog_reboot
[store]To run cmd[emmc dtb_read 0x1000000 0x40000]
_verify_dtb_checksum()-3477: calc 6529f355, store 6529f355
_verify_dtb_checksum()-3477: calc 6529f355, store 6529f355
dtb_read()-3694: total valid 2
update_old_dtb()-3675: do nothing
aml_i2c_init_port init regs for 0
fusb302_init: Device ID: 0x91

amlkey_init() enter!
[EFUSE_MSG]keynum is 1
vpu: clk_level in dts: 7
vpu: vpu_power_on
vpu: set clk: 666667000Hz, readback: 666666667Hz(0x100)
vpu: vpu_module_init_config
vpp: vpp_init
vpp: vpp osd2 matrix rgb2yuv..............
cvbs: cpuid:0x29
LCD_RESET PIN: 0
lcd: detect mode: tablet, key_valid: 0
lcd: detect lcd_clk_path: 1
lcd: load config from dts
lcd: pinctrl_version: 2
lcd: use panel_type=lcd_0
lcd: bl: pinctrl_version: 2
lcd: bl: name: backlight_pwm, method: 1
lcd: bl: aml_bl_power_ctrl: 0
Net:   dwmac.ff3f0000
amlkey_init() enter!
amlkey_init() 71: already init!
[EFUSE_MSG]keynum is 1
MACADDR:02:00:00:12:11:01(from chipid)

upgrade_step=0
reboot_mode:::: watchdog_reboot

amlkey_init() enter!
amlkey_init() 71: already init!
[EFUSE_MSG]keynum is 1
[KM]Error:f[key_manage_query_size]L515:key[usid] not programed yet

mac address: c8:63:14:70:b5:9e
[KM]Error:f[key_manage_query_size]L515:key[deviceid] not programed yet
edid preferred_mode is <NULL>[0]
hdr mode is 0
dv  mode is ver:0  len: 0
hdr10+ mode is 0
HDMI cable is NOT connected
hpd_state=0
[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=5760, height=2160
card out
** Bad device mmc 0 **
Failed to mount ext2 filesystem...
** Unrecognized filesystem type **
1080138 bytes read in 79 ms (13 MiB/s)
[OSD]osd_hw.free_dst_data: 0,1079,0,1919
[OSD]osd1_update_disp_freescale_enable
cvbs: outputmode[panel] is invalid
hdmitx: outputmode[panel] is invalid
vpp: vpp_matrix_update: 0
vpp: g12a/b post2(bit12) matrix: YUV limit -> RGB ..............
lcd: enable: TS050, mipi, 1080x1920@47.6Hz
lcd: tablet driver init(ver 20180718): mipi
lcd: lcd_pll_wait_lock: pll_lock=1, wait_loop=1
vpp: vpp_init_lcd_gamma_table
lcd: pixel_clk = 120.000MHz, bit_rate = 960.000MHz, lanebyteclk = 120.000MHz
lcd:  Waiting STOP STATE LANE
lcd: dsi init on
lcd: bl: set level: 100, last level: 0
lcd: bl: aml_bl_power_ctrl: 1
lcd: clear mute
vpp: Rx hdr_info.hdr_sup_eotf_smpte_st_2084 = 0

amlkey_init() enter!
amlkey_init() 71: already init!
[EFUSE_MSG]keynum is 1
[KM]Error:f[key_manage_query_size]L515:key[usid] not programed yet

mac address: c8:63:14:70:b5:9e
[KM]Error:f[key_manage_query_size]L515:key[deviceid] not programed yet
gpio: pin GPIOAO_7 (gpio 7) value is 1
saradc: 0x28a, hw_ver: 0x32 (VIM3.V12)
Product checking: pass! Hardware version: VIM3.V12
normal power on
boot wol: disable
port mode is pcie
Hit Enter or space or Ctrl+C key to stop autoboot -- :  0 
pll tsensor avg: 0x2173, u_efuse: 0x80e8
temp1: 47
ddr tsensor avg: 0x219c, u_efuse: 0x80b7
temp2: 49
device cool done
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/boot.ini from mmc 0:1 ...
card out
** Bad device mmc 0 **
cfgload: no /boot/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:1 ...
Failed to mount ext2 filesystem...
** Unrecognized filesystem type **
cfgload: no /boot/boot.ini or empty file on mmc 1:1
cfgload: reading /boot/boot.ini from mmc 1:5 ...
10145 bytes read in 4 ms (2.4 MiB/s)
cfgload: applying boot.ini...
[#] Script a:d3e3a130 l:10125 c:0 s:0 - run
Starting boot.ini...
saradc: 0x28a, hw_ver: 0x32 (VIM3.V12)

mac address: c8:63:14:70:b5:9e
uboot type: vendor
Scanning mmc 0:1...
card out
** Bad device mmc 0 **
Scanning mmc 0:5...
card out
** Bad device mmc 0 **
Scanning mmc 1:1...
** Unrecognized filesystem type **
Scanning mmc 1:5...
10747591 bytes read in 310 ms (33.1 MiB/s)
29248000 bytes read in 829 ms (33.6 MiB/s)
90207 bytes read in 9 ms (9.6 MiB/s)
4561 bytes read in 5 ms (890.6 KiB/s)
Import env.txt
Can not get u-boot part UUID, set to NULL
Booting legacy kernel...
port mode is pcie
Apply dtbo uart3
225 bytes read in 10 ms (21.5 KiB/s)
Apply dtbo pwm_f
345 bytes read in 10 ms (33.2 KiB/s)
Apply dtbo i2c3
223 bytes read in 9 ms (23.4 KiB/s)
Apply dtbo i2s
3330 bytes read in 9 ms (361.3 KiB/s)
Apply dtbo os08a10
1072 bytes read in 10 ms (104.5 KiB/s)
Apply dtbo watchdog
222 bytes read in 10 ms (21.5 KiB/s)
HDMI: Autodetect: 1080p60hz
## Loading init Ramdisk from Legacy Image at 13000000 ...
   Image Name:   uInitrd
   Image Type:   AArch64 Linux RAMDisk Image (uncompressed)
   Data Size:    10747527 Bytes = 10.2 MiB
   Load Address: 00000000
   Entry Point:  00000000
   Verifying Checksum ... OK
load dtb from 0x1000000 ......
## Flattened Device Tree blob at 01000000
   Booting using the fdt blob at 0x1000000
   reserving fdt memory region: addr=1000000 size=17000
   Loading Ramdisk to 7edc0000, end 7f7ffe87 ... OK
   Loading Device Tree to 000000001ffe6000, end 000000001fffffff ... OK

Starting kernel ...

uboot time: 5416852 us
[    0.367146@2] codec_mm_module_init
[    0.374263@2] clkmsr ffd18004.meson_clk_msr: failed to get msr ring reg0
[    0.546421@2] dmi: Firmware registration failed.
[    0.550332@2] lcd: error: failed to get null
[    0.550352@2] lcd: error: Out of clock range, reset to default setting
[    0.550424@2] lcd: error: lcd_debug_info_if is null
[    0.719726@2] mtdoops: mtd device (mtddev=name/number) must be supplied
[    0.733381@3] meson_cpufreq_init:don't find the node <dynamic_gp1_clk>
[    0.735148@3] meson_cpufreq_init:don't find the node <dynamic_gp1_clk>
[    0.736982@3] ff803000.serial: clock gate not found
[    0.787287@3] amlogic-new-usb3-v2 ffe09080.usb3phy: This phy has no usb port
[    0.797362@3] meson-remote ff808040.rc: don't find the node <led_blink>
[    0.799715@3] meson-remote ff808040.rc: don't find the node <led_blink_frq>
[    0.807272@3] efuse efuse:  open efuse clk gate error!!
[    0.839610@4] meson-fb meson-fb: create ion_client ffffffc099bf0600, handle=0
[    0.839613@4] meson-fb meson-fb: ion memory(0): created fb at 0x00000000e580B
[    6.013991@0] di_get_vpu_clkb: get clk vpu error.
[    6.015243@0] get fclk_div5 err
[    6.016209@0] vdin_drv_probe: vdin cannot get msr clk !!!
[    6.022027@0] get fclk_div5 err
[    6.024708@0] vdin_drv_probe: vdin cannot get msr clk !!!
[    6.033336@0] amlvideo2 probe called
[    6.033814@0] amlvideo2 probe called
[    6.037830@0] Reserved memory: failed to init DMA memory pool at 0x00000000eB
[    6.049053@2] meson-mmc: >>>>>>>>hostbase ffffff8008a9a000, dmode 
[    6.104848@3] meson-mmc: >>>>>>>>hostbase ffffff8008b24000, dmode 
[    6.145110@0] meson-mmc: >>>>>>>>hostbase ffffff8008bae000, dmode 
[    6.147556@0] meson-mmc: Tuning transfer error: nmatch=0 tuning_err:0xffffffc
[    6.158754@0] meson-mmc: Tuning transfer error: nmatch=0 tuning_err:0xffffffc
[    6.185271@1] cectx ff80023c.aocec: cec driver date:2019/6/13:early suspend s
[    6.185271@1] 
[    6.190525@1] cectx ff80023c.aocec: compatible:amlogic, aocec-g12a
[    6.196251@1] cectx ff80023c.aocec: cecb_ver:0x1
[    6.200837@1] cectx ff80023c.aocec: line_reg:0x1
[    6.205449@2] cectx ff80023c.aocec: line_bit:0x3
[    6.209999@2] cectx ff80023c.aocec: ee_to_ao:0x1
[    6.214781@2] cectx ff80023c.aocec: not find 'port_num'
[    6.219799@2] cectx ff80023c.aocec: using cec:1
[    6.224316@2] cectx ff80023c.aocec: no hdmirx regs
[    6.229062@2] cectx ff80023c.aocec: no hhi regs
[    6.233573@2] cectx ff80023c.aocec: not find 'output'
[    6.240045@2] cectx ff80023c.aocec: irq cnt:2
[    6.243041@2] cectx ff80023c.aocec: wakeup_reason:0x0
[    6.248017@2] cectx ff80023c.aocec: cev val1: 0x0;val2: 0x0
[    6.253506@2] cectx ff80023c.aocec: aml_cec_probe success end
[    6.705877@2] defendkey ff630218.defendkey: Reserved memory is not enough!
[    6.919858@4] asoc-aml-card auge_sound: control 2:0:0:I2SIn CLK:0 is alreadyt
[    6.921951@4] snd_tdm ff642000.audiobus:tdmb: ASoC: Failed to add I2SIn CLK:6
[    6.929326@4] aml_dai_tdm_probe, failed add snd tdm controls
[    6.934963@4] asoc-aml-card auge_sound: control 2:0:0:I2SIn CLK:0 is alreadyt
[    6.942669@4] snd_tdm ff642000.audiobus:tdmc: ASoC: Failed to add I2SIn CLK:6
[    6.950031@4] aml_dai_tdm_probe, failed add snd tdm controls
[    7.323999@5] edt_ft5x06 3-0038: touchscreen probe failed
[    7.328044@5] hub 2-0:1.0: config failed, hub doesn't have any ports! (err -)
[    7.331109@5] usb usb2: Unsupported the hub
[    7.336607@5] rtc-hym8563 4-0051: hctosys: unable to read the hardware clock
[    7.456894@5] thermal thermal_zone0: binding zone soc_thermal with cdev ther2
[    7.460436@5] thermal thermal_zone0: binding zon[    7.576468@5] Kernel pani)
[    7.579256@5] CPU: 5 PID: 1 Comm: swapper/0 Not tainted 4.9.241 #37
[    7.585493@5] Hardware name: Khadas VIM3 (DT)
[    7.589826@5] Call trace:
[    7.592434@5] [ffffff8020003bc0+ 112][<ffffff800908b2f0>] dump_backtrace+0x08
[    7.599968@5] [ffffff8020003c30+  32][<ffffff800908b5bc>] show_stack+0x24/0x0
[    7.607162@5] [ffffff8020003c50+  48][<ffffff80094ecd18>] dump_stack+0xac/0x4
[    7.614356@5] [ffffff8020003c80+ 224][<ffffff80091c12e8>] panic+0x148/0x2c4
[    7.621289@5] [ffffff8020003d60+ 128][<ffffff800a52116c>] mount_block_root+04
[    7.629174@5] [ffffff8020003de0+  48][<ffffff800a5213c4>] mount_root+0x74/0x4
[    7.636367@5] [ffffff8020003e10+  48][<ffffff800a521594>] prepare_namespace+8
[    7.644340@5] [ffffff8020003e40+  96][<ffffff800a520da8>] kernel_init_freeab8
[    7.652576@5] [ffffff8020003ea0+   0][<ffffff8009f1b730>] kernel_init+0x18/08
[    7.659941@5] [0000000000000000+   0][<ffffff8009083ad0>] ret_from_fork+0x100
[    7.667393@5] SMP: stopping secondary CPUs
[    7.671470@5] Kernel Offset: disabled
[    7.675106@5] Memory Limit: none
[    7.681842@5] Rebooting in 5 seconds..
[   12.682110@5] reboot reason 1
bl31 reboot reason: 0xd
bl31 reboot reason: 0x1
system cmd  1.
ERROR:   gxbb System RþG12B:BL:6e7c85:2a3b91;FEAT:E0F83180:402000;POC:F;RCY:0;E1
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: 201080

BL2 Built : 15:22:05, Aug 28 2019. g12b g1bf2b53 - luan.yuan@droid15-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: 00035955
eMMC boot @ 0
sw8 s
DDR driver_vesion: LPDDR4_PHY_V_0_1_18 build time: Aug 28 2019 15:22:01
board id: 8
Load FIP HDR from eMMC, src: 0x00010200, des: 0xfffd0000, size: 0x00004000, par0
fw parse done
Load ddrfw from eMMC, src: 0x00060200, des: 0xfffd0000, size: 0x0000c000, part:0
Load ddrfw from eMMC, src: 0x00038200, des: 0xfffd0000, size: 0x00004000, part:0
PIEI prepare done
fastboot data load
00000000
emmc switch 1 ok
00000000
emmc switch 2 ok
fastboot data verify
verify result: 265
Cfg max: 4, cur: 1. Board id: 255. Force loop cfg
LPDDR4 probe
ddr clk to 1608MHz
Load ddrfw from eMMC, src: 0x0003c200, des: 0xfffd0000, size: 0x0000c000, part:0
00000000
emmc switch 0 ok

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 Write leveling coarse delay
INFO : Training has run successfully!
Check phy result
INFO : End of initialization
INFO : End of read dq deskew training
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
Load ddrfw from eMMC, src: 0x00048200, des: 0xfffd0000, size: 0x0000c000, part:0
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!

channel==0
RxClkDly_Margin_A0==97 ps 10
TxDqDly_Margin_A0==106 ps 11
RxClkDly_Margin_A1==97 ps 10
TxDqDly_Margin_A1==106 ps 11
TrainedVREFDQ_A0==27
TrainedVREFDQ_A1==26
VrefDac_Margin_A0==27
DeviceVref_Margin_A0==26
VrefDac_Margin_A1==26
DeviceVref_Margin_A1==26


channel==1
RxClkDly_Margin_A0==87 ps 9
TxDqDly_Margin_A0==106 ps 11
RxClkDly_Margin_A1==87 ps 9
TxDqDly_Margin_A1==106 ps 11
TrainedVREFDQ_A0==26
TrainedVREFDQ_A1==25
VrefDac_Margin_A0==25
DeviceVref_Margin_A0==25
VrefDac_Margin_A1==25
DeviceVref_Margin_A1==24

 dwc_ddrphy_apb_wr((0<<20)|(2<<16)|(0<<12)|(0xb0):0004 

soc_vref_reg_value 0x 00000026 00000028 00000028 00000027 00000028 00000026 0004
2D training succeed
aml_ddr_fw_vesion: LPDDR4_PHY_V_0_1_18 build time: Aug 28 2019 13:54:19
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== 437
result report
boot times 6Enable 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, par0
Load BL3X from eMMC, src: 0x00078200, des: 0x01768000, size: 0x000d0000, part: 0
0.0;M3 CHK:0;cm4_sp_mode 0
MVN_1=0x00000000
MVN_2=0x00000000
[Image: g12b_v1.1.3390-6ac5299 2019-09-26 14:10:05 luan.yuan@droid15-sz]
OPS=0x10
ring efuse init
chipver efuse init
29 0b 10 00 01 11 12 00 00 0a 33 32 4e 31 53 50 
[0.995737 Inits done]
secure task start!
high task start!
low task start!
run into bl31
NOTICE:  BL31: v1.3(release):4fc40b1
NOTICE:  BL31: Built : 15:58:17, May 22 2019
NOTICE:  BL31: G12A normal boot!
NOTICE:  BL31: BL33 decompress pass
ERROR:   Error initializing runtime service opteed_fast


U-Boot 2015.01 (Jul 25 2022 - 11:11:39)

DRAM:  3.8 GiB
Relocation Offset is: d6e42000
spi_post_bind(spifc): req_seq = 0
register usb cfg[0][1] = 00000000d7f39218
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.
MMC:   aml_priv->desc_buf = 0x00000000d3e32a70
aml_priv->desc_buf = 0x00000000d3e34db0
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, status=0x3ff2800
emmc/sd response timeout, cmd55, status=0x3ff2800
co-phase 0x3, tx-dly 0, clock 400000
co-phase 0x1, tx-dly 0, clock 40000000
aml_sd_retry_refix[983]:delay = 0x0,gadjust =0x2000
[mmc_startup] mmc refix success
init_part() 297: PART_TYPE_AML
[mmc_init] mmc init success
start dts,buffer=00000000d3e37620,dt_addr=00000000d3e37620
get_partition_from_dts() 91: ret 0
parts: 3
00:      logo   0000000000800000 1
01:   ramdisk   0000000002000000 1
02:    rootfs   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: 0x6c00000 
In:    serial
Out:   serial
Err:   serial
reboot_mode=normal
[store]To run cmd[emmc dtb_read 0x1000000 0x40000]
_verify_dtb_checksum()-3477: calc 6529f355, store 6529f355
_verify_dtb_checksum()-3477: calc 6529f355, store 6529f355
dtb_read()-3694: total valid 2
update_old_dtb()-3675: do nothing
aml_i2c_init_port init regs for 0
fusb302_init: Device ID: 0x91

amlkey_init() enter!
[EFUSE_MSG]keynum is 1
vpu: clk_level in dts: 7
vpu: vpu_power_on
vpu: set clk: 666667000Hz, readback: 666666667Hz(0x100)
vpu: vpu_module_init_config
vpp: vpp_init
vpp: vpp osd2 matrix rgb2yuv..............
cvbs: cpuid:0x29
LCD_RESET PIN: 0
lcd: detect mode: tablet, key_valid: 0
lcd: detect lcd_clk_path: 1
lcd: load config from dts
lcd: pinctrl_version: 2
lcd: use panel_type=lcd_0
lcd: bl: pinctrl_version: 2
lcd: bl: name: backlight_pwm, method: 1
lcd: bl: aml_bl_power_ctrl: 0
Net:   dwmac.ff3f0000
amlkey_init() enter!
amlkey_init() 71: already init!
[EFUSE_MSG]keynum is 1
MACADDR:02:00:00:12:11:01(from chipid)

upgrade_step=0
reboot_mode:::: normal

amlkey_init() enter!
amlkey_init() 71: already init!
[EFUSE_MSG]keynum is 1
[KM]Error:f[key_manage_query_size]L515:key[usid] not programed yet

mac address: c8:63:14:70:b5:9e
[KM]Error:f[key_manage_query_size]L515:key[deviceid] not programed yet
edid preferred_mode is <NULL>[0]
hdr mode is 0
dv  mode is ver:0  len: 0
hdr10+ mode is 0
HDMI cable is NOT connected
hpd_state=0
[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=5760, height=2160
card out
** Bad device mmc 0 **
Failed to mount ext2 filesystem...
** Unrecognized filesystem type **
1080138 bytes read in 79 ms (13 MiB/s)
[OSD]osd_hw.free_dst_data: 0,1079,0,1919
[OSD]osd1_update_disp_freescale_enable
cvbs: outputmode[panel] is invalid
hdmitx: outputmode[panel] is invalid
vpp: vpp_matrix_update: 0
vpp: g12a/b post2(bit12) matrix: YUV limit -> RGB ..............
lcd: enable: TS050, mipi, 1080x1920@47.6Hz
lcd: tablet driver init(ver 20180718): mipi
lcd: lcd_pll_wait_lock: pll_lock=1, wait_loop=1
vpp: vpp_init_lcd_gamma_table
lcd: pixel_clk = 120.000MHz, bit_rate = 960.000MHz, lanebyteclk = 120.000MHz
lcd:  Waiting STOP STATE LANE
lcd: dsi init on
lcd: bl: set level: 100, last level: 0
lcd: bl: aml_bl_power_ctrl: 1
lcd: clear mute
vpp: Rx hdr_info.hdr_sup_eotf_smpte_st_2084 = 0

amlkey_init() enter!
amlkey_init() 71: already init!
[EFUSE_MSG]keynum is 1
[KM]Error:f[key_manage_query_size]L515:key[usid] not programed yet

mac address: c8:63:14:70:b5:9e
[KM]Error:f[key_manage_query_size]L515:key[deviceid] not programed yet
gpio: pin GPIOAO_7 (gpio 7) value is 1
saradc: 0x28b, hw_ver: 0x32 (VIM3.V12)
Product checking: pass! Hardware version: VIM3.V12
normal power on
boot wol: disable
port mode is pcie
Hit Enter or space or Ctrl+C key to stop autoboot -- :  0 
kvim3#

I know that’s a lot of logdump. I may have tried to pick the wrong starting address for the usbboot command, but I’m having trouble identifying much of a way forward from here and I think I need some help.
Thanks for looking
cameron

Hello @Cameron

Please use TST mode to flash new image to recovery your board.

I get the expected blue light flashing 3 times, but then in minicom it looks very similar to the boot loop I’ve been seeing:
Trying to catch it all, but it seems there’s more lines than Minicom buffers before I can halt it

                                                                           
100bdlr_step_size ps== 437                                                      
result report                                                                   
boot times 1Enable 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, par0
Load BL3X from eMMC, src: 0x00078200, des: 0x01768000, size: 0x000d0000, part: 0
0.0;M3 CHK:0;cm4_sp_mode 0                                                      
MVN_1=0x00000000                                                                
MVN_2=0x00000000                                                                
[Image: g12b_v1.1.3390-6ac5299 2019-09-26 14:10:05 luan.yuan@droid15-sz]        
OPS=0x10                                                                        
ring efuse init                                                                 
chipver efuse init                                                              
29 0b 10 00 01 11 12 00 00 0a 33 32 4e 31 53 50                                 
[1.782735 Inits done]                                                           
secure task start!                                                              
high task start!                                                                
low task start!                                                                 
run into bl31                                                                   
NOTICE:  BL31: v1.3(release):4fc40b1                                            
NOTICE:  BL31: Built : 15:58:17, May 22 2019                                    
NOTICE:  BL31: G12A normal boot!                                                
NOTICE:  BL31: BL33 decompress pass                                             
ERROR:   Error initializing runtime service opteed_fast                         
                                                                                
                                                                                
U-Boot 2015.01 (Jul 25 2022 - 11:11:39)                                         
                                                                                
DRAM:  3.8 GiB                                                                  
Relocation Offset is: d6e42000                                                  
spi_post_bind(spifc): req_seq = 0                                               
register usb cfg[0][1] = 00000000d7f39218                                       
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.                 
MMC:   aml_priv->desc_buf = 0x00000000d3e32a70                                  
aml_priv->desc_buf = 0x00000000d3e34db0                                         
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, status=0x3ff2800                                
emmc/sd response timeout, cmd55, status=0x3ff2800                               
co-phase 0x3, tx-dly 0, clock 400000                                            
co-phase 0x1, tx-dly 0, clock 40000000                                          
aml_sd_retry_refix[983]:delay = 0x0,gadjust =0x2000                             
[mmc_startup] mmc refix success                                                 
init_part() 297: PART_TYPE_AML                                                  
[mmc_init] mmc init success                                                     
start dts,buffer=00000000d3e37620,dt_addr=00000000d3e37620                      
get_partition_from_dts() 91: ret 0                                              
parts: 3                                                                        
00:      logo   0000000000800000 1                                              
01:   ramdisk   0000000002000000 1                                              
02:    rootfs   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: 0x6c00000                                                       
In:    serial                                                                   
Out:   serial                                                                   
Err:   serial                                                                   
reboot_mode=normal                                                              
[store]To run cmd[emmc dtb_read 0x1000000 0x40000]                              
_verify_dtb_checksum()-3477: calc 6529f355, store 6529f355                      
_verify_dtb_checksum()-3477: calc 6529f355, store 6529f355                      
dtb_read()-3694: total valid 2                                                  
update_old_dtb()-3675: do nothing                                               
aml_i2c_init_port init regs for 0                                               
fusb302_init: Device ID: 0x91                                                   
                                                                                
amlkey_init() enter!                                                            
[EFUSE_MSG]keynum is 1                                                          
vpu: clk_level in dts: 7                                                        
vpu: vpu_power_on                                                               
vpu: set clk: 666667000Hz, readback: 666666667Hz(0x100)                         
vpu: vpu_module_init_config                                                     
vpp: vpp_init                                                                   
vpp: vpp osd2 matrix rgb2yuv..............                                      
cvbs: cpuid:0x29                                                                
LCD_RESET PIN: 0                                                                
lcd: detect mode: tablet, key_valid: 0                                          
lcd: detect lcd_clk_path: 1                                                     
lcd: load config from dts                                                       
lcd: pinctrl_version: 2                                                         
lcd: use panel_type=lcd_0                                                       
lcd: bl: pinctrl_version: 2                                                     
lcd: bl: name: backlight_pwm, method: 1                                         
lcd: bl: aml_bl_power_ctrl: 0                                                   
Net:   dwmac.ff3f0000                                                           
amlkey_init() enter!                                                            
amlkey_init() 71: already init!                                                 
[EFUSE_MSG]keynum is 1                                                          
MACADDR:02:00:00:12:11:01(from chipid)                                          
                                                                                
upgrade_step=0                                                                  
reboot_mode:::: normal                                                          
                                                                                
amlkey_init() enter!                                                            
amlkey_init() 71: already init!                                                 
[EFUSE_MSG]keynum is 1                                                          
[KM]Error:f[key_manage_query_size]L515:key[usid] not programed yet              
                                                                                
mac address: c8:63:14:70:b5:9e                                                  
[KM]Error:f[key_manage_query_size]L515:key[deviceid] not programed yet          
edid preferred_mode is <NULL>[0]                                                
hdr mode is 0                                                                   
dv  mode is ver:0  len: 0                                                       
hdr10+ mode is 0                                                                
HDMI cable is NOT connected                                                     
hpd_state=0                                                                     
[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=5760, height=2160                                 
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                                                     
** File not found /usr/share/fenix/logo/logo.bmp **                             
Failed to mount ext2 filesystem...                                              
** Unrecognized filesystem type **                                              
1080138 bytes read in 79 ms (13 MiB/s)                                          
[OSD]osd_hw.free_dst_data: 0,1079,0,1919                                        
[OSD]osd1_update_disp_freescale_enable                                          
cvbs: outputmode[panel] is invalid                                              
hdmitx: outputmode[panel] is invalid                                            
vpp: vpp_matrix_update: 0                                                       
vpp: g12a/b post2(bit12) matrix: YUV limit -> RGB ..............                
lcd: enable: TS050, mipi, 1080x1920@47.6Hz                                      
lcd: tablet driver init(ver 20180718): mipi                                     
lcd: lcd_pll_wait_lock: pll_lock=1, wait_loop=1                                 
vpp: vpp_init_lcd_gamma_table                                                   
lcd: pixel_clk = 120.000MHz, bit_rate = 960.000MHz, lanebyteclk = 120.000MHz    
lcd:  Waiting STOP STATE LANE                                                   
lcd: dsi init on                                                                
lcd: bl: set level: 100, last level: 0                                          
lcd: bl: aml_bl_power_ctrl: 1                                                   
lcd: clear mute                                                                 
vpp: Rx hdr_info.hdr_sup_eotf_smpte_st_2084 = 0                                 
                                                                                
amlkey_init() enter!                                                            
amlkey_init() 71: already init!                                                 
[EFUSE_MSG]keynum is 1                                                          
[KM]Error:f[key_manage_query_size]L515:key[usid] not programed yet              
                                                                                
mac address: c8:63:14:70:b5:9e                                                  
[KM]Error:f[key_manage_query_size]L515:key[deviceid] not programed yet          
gpio: pin GPIOAO_7 (gpio 7) value is 1                                          
saradc: 0x28a, hw_ver: 0x32 (VIM3.V12)                                          
Product checking: pass! Hardware version: VIM3.V12                              
normal power on                                                                 
boot wol: disable                                                               
port mode is pcie                                                               
Hit Enter or space or Ctrl+C key to stop autoboot -- :  0                       
pll tsensor avg: 0x2167, u_efuse: 0x80e8                                        
temp1: 46                                                                       
ddr tsensor avg: 0x218a, u_efuse: 0x80b7                                        
temp2: 48                                                                       
device cool done                                                                
cfgload: start ...                                                              
cfgload: reading /boot.ini from mmc 0:1 ...                                     
reading /boot.ini                                                               
** Unable to read file /boot.ini **                                             
cfgload: no /boot.ini or empty file on mmc 0:1                                  
cfgload: reading /boot/boot.ini from mmc 0:1 ...                                
reading /boot/boot.ini                                                          
** Unable to read file /boot/boot.ini **                                        
cfgload: no /boot/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:1 ...                                
Failed to mount ext2 filesystem...                                              
** Unrecognized filesystem type **                                              
cfgload: no /boot/boot.ini or empty file on mmc 1:1                             
cfgload: reading /boot/boot.ini from mmc 1:5 ...                                
10145 bytes read in 5 ms (1.9 MiB/s)                                            
cfgload: applying boot.ini...                                                   
[#] Script a:d3e61ce0 l:10125 c:0 s:0 - run                                     
Starting boot.ini...                                                            
saradc: 0x28a, hw_ver: 0x32 (VIM3.V12)                                          
                                                                                
mac address: c8:63:14:70:b5:9e                                                  
uboot type: vendor                                                              
Scanning mmc 0:1...                                                             
reading uInitrd                                                                 
** Unable to read file uInitrd **                                               
Scanning mmc 0:5...                                                             
** Invalid partition 5 **                                                       
Scanning mmc 1:1...                                                             
** Unrecognized filesystem type **                                              
Scanning mmc 1:5...                                                             
10747591 bytes read in 310 ms (33.1 MiB/s)                                      
29248000 bytes read in 829 ms (33.6 MiB/s)                                      
90207 bytes read in 9 ms (9.6 MiB/s)                                            
4561 bytes read in 5 ms (890.6 KiB/s)                                           
Import env.txt                                                                  
Can not get u-boot part UUID, set to NULL                                       
Booting legacy kernel...                                                        
port mode is pcie                                                               
Apply dtbo uart3                                                                
225 bytes read in 11 ms (19.5 KiB/s)                                            
Apply dtbo pwm_f                                                                
345 bytes read in 10 ms (33.2 KiB/s)                                            
Apply dtbo i2c3                                                                 
223 bytes read in 8 ms (26.4 KiB/s)                                             
Apply dtbo i2s                                                                  
3330 bytes read in 10 ms (325.2 KiB/s)                                          
Apply dtbo os08a10                                                              
1072 bytes read in 10 ms (104.5 KiB/s)                                          
Apply dtbo watchdog                                                             
222 bytes read in 11 ms (19.5 KiB/s)                                            
HDMI: Autodetect: 1080p60hz                                                     
## Loading init Ramdisk from Legacy Image at 13000000 ...                       
   Image Name:   uInitrd                                                        
   Image Type:   AArch64 Linux RAMDisk Image (uncompressed)                     
   Data Size:    10747527 Bytes = 10.2 MiB                                      
   Load Address: 00000000                                                       
   Entry Point:  00000000                                                       
   Verifying Checksum ... OK                                                    
load dtb from 0x1000000 ......                                                  
## Flattened Device Tree blob at 01000000                                       
   Booting using the fdt blob at 0x1000000                                      
   reserving fdt memory region: addr=1000000 size=17000                         
   Loading Ramdisk to 7edc0000, end 7f7ffe87 ... OK                             
   Loading Device Tree to 000000001ffe6000, end 000000001fffffff ... OK         
                                                                                
Starting kernel ...                                                             
Starting kernel ...                                                             
                                                                                
uboot time: 7062673 us                                                          
[    0.366727@3] codec_mm_module_init                                           
[    0.373416@3] clkmsr ffd18004.meson_clk_msr: failed to get msr ring reg0     
[    0.554006@3] dmi: Firmware registration failed.                             
[    0.557896@3] lcd: error: failed to get null                                 
[    0.557916@3] lcd: error: Out of clock range, reset to default setting       
[    0.557988@3] lcd: error: lcd_debug_info_if is null                          
[    0.735701@5] mtdoops: mtd device (mtddev=name/number) must be supplied      
[    0.749434@2] meson_cpufreq_init:don't find the node <dynamic_gp1_clk>       
[    0.751206@2] meson_cpufreq_init:don't find the node <dynamic_gp1_clk>       
[    0.753190@2] ff803000.serial: clock gate not found                          
[    0.803512@2] amlogic-new-usb3-v2 ffe09080.usb3phy: This phy has no usb port 
[    0.813572@2] meson-remote ff808040.rc: don't find the node <led_blink>      
[    0.815937@2] meson-remote ff808040.rc: don't find the node <led_blink_frq>  
[    0.823486@2] efuse efuse:  open efuse clk gate error!!                      
[    0.853489@3] meson-fb meson-fb: create ion_client ffffffc09aec6b40, handle=0
[    0.853492@3] meson-fb meson-fb: ion memory(0): created fb at 0x00000000e580B
[    6.013725@1] di_get_vpu_clkb: get clk vpu error.                            
[    6.014965@1] get fclk_div5 err                                              
[    6.015929@1] vdin_drv_probe: vdin cannot get msr clk !!!                    
[    6.021784@1] get fclk_div5 err                                              
[    6.024436@1] vdin_drv_probe: vdin cannot get msr clk !!!                    
[    6.033063@1] amlvideo2 probe called                                         
[    6.033573@1] amlvideo2 probe called                                         
[    6.037552@1] Reserved memory: failed to init DMA memory pool at 0x00000000eB
[    6.048787@2] meson-mmc: >>>>>>>>hostbase ffffff8008a9a000, dmode            
[    6.103844@2] meson-mmc: >>>>>>>>hostbase ffffff8008b24000, dmode            
[    6.145745@1] meson-mmc: >>>>>>>>hostbase ffffff8008bae000, dmode            
[    6.147917@0] meson-mmc: Tuning transfer error: nmatch=0 tuning_err:0xffffffc
[    6.158544@0] meson-mmc: Tuning transfer error: nmatch=0 tuning_err:0xffffffc
[    6.188990@1] cectx ff80023c.aocec: cec driver date:2019/6/13:early suspend s
[    6.188990@1]                                                                
[    6.194168@2] cectx ff80023c.aocec: compatible:amlogic, aocec-g12a           
[    6.199965@2] cectx ff80023c.aocec: cecb_ver:0x1                             
[    6.204538@2] cectx ff80023c.aocec: line_reg:0x1                             
[    6.209117@2] cectx ff80023c.aocec: line_bit:0x3                             
[    6.213739@2] cectx ff80023c.aocec: ee_to_ao:0x1                             
[    6.218440@2] cectx ff80023c.aocec: not find 'port_num'                      
[    6.223514@2] cectx ff80023c.aocec: using cec:1                              
[    6.228026@2] cectx ff80023c.aocec: no hdmirx regs                           
[    6.232776@2] cectx ff80023c.aocec: no hhi regs                              
[    6.237289@2] cectx ff80023c.aocec: not find 'output'                        
[    6.243758@2] cectx ff80023c.aocec: irq cnt:2                                
[    6.246767@2] cectx ff80023c.aocec: wakeup_reason:0x0                        
[    6.251728@2] cectx ff80023c.aocec: cev val1: 0x0;val2: 0x0                  
[    6.257220@2] cectx ff80023c.aocec: aml_cec_probe success end                
[    6.347591@0] meson-mmc: card IN                                             
[    6.715554@0] defendkey ff630218.defendkey: Reserved memory is not enough!   
[    6.939702@0] asoc-aml-card auge_sound: control 2:0:0:I2SIn CLK:0 is alreadyt
[    6.941806@0] snd_tdm ff642000.audiobus:tdmb: ASoC: Failed to add I2SIn CLK:6
[    6.949195@0] aml_dai_tdm_probe, failed add snd tdm controls                 
[    6.954819@0] asoc-aml-card auge_sound: control 2:0:0:I2SIn CLK:0 is alreadyt
[    6.962524@0] snd_tdm ff642000.audiobus:tdmc: ASoC: Failed to add I2SIn CLK:6
[    6.969912@2] aml_dai_tdm_probe, failed add snd tdm controls                 
[    7.323694@4] edt_ft5x06 3-0038: touchscreen probe failed                    
[    7.327924@4] hub 2-0:1.0: config failed, hub doesn't have any ports! (err -)
[    7.330802@4] usb usb2: Unsupported the hub                                  
[    7.336423@4] rtc-hym8563 4-0051: hctosys: unable to read the hardware clock 
[    7.456590@4] thermal thermal_zone0: binding zone soc_thermal with cdev ther2
[    7.460129@4] thermal thermal_zone0: binding zon[    7.576154@4] Kernel pani)
[    7.578941@4] CPU: 4 PID: 1 Comm: swapper/0 Not tainted 4.9.241 #37          
[    7.585177@4] Hardware name: Khadas VIM3 (DT)                                
[    7.589511@4] Call trace:                                                    
[    7.592118@4] [ffffff8020003bc0+ 112][<ffffff800908b2f0>] dump_backtrace+0x08
[    7.599652@4] [ffffff8020003c30+  32][<ffffff800908b5bc>] show_stack+0x24/0x0
[    7.606846@4] [ffffff8020003c50+  48][<ffffff80094ecd18>] dump_stack+0xac/0x4
[    7.614040@4] [ffffff8020003c80+ 224][<ffffff80091c12e8>] panic+0x148/0x2c4  
[    7.620974@4] [ffffff8020003d60+ 128][<ffffff800a52116c>] mount_block_root+04
[    7.628858@4] [ffffff8020003de0+  48][<ffffff800a5213c4>] mount_root+0x74/0x4
[    7.636051@4] [ffffff8020003e10+  48][<ffffff800a521594>] prepare_namespace+8
[    7.644025@4] [ffffff8020003e40+  96][<ffffff800a520da8>] kernel_init_freeab8
[    7.652260@4] [ffffff8020003ea0+   0][<ffffff8009f1b730>] kernel_init+0x18/08
[    7.659625@4] [0000000000000000+   0][<ffffff8009083ad0>] ret_from_fork+0x100
[    7.667078@4] SMP: stopping secondary CPUs                                   
[    7.671155@4] Kernel Offset: disabled                                        
[    7.674790@4] Memory Limit: none                                             
[    7.681517@4] Rebooting in 5 seconds..                                       
[   12.681795@4] reboot reason 1                                                
bl31 reboot reason: 0xd                                                         
bl31 reboot reason: 0x1                                                         
system cmd  1.                                                                  
ERROR:   gxbb System RþG12B:BL:6e7c85:2a3b91;FEAT:E0F83180:402000;POC:D;RCY:0;U.
bl2_stage_init 0x01                                                             
bl2_stage_init 0x81                                                             
hw id: 0x0000 - pwm id 0x01                                                     
bl2_stage_init 0xc1                                                             
bl2_stage_init 0x02                         ```

I did this with my Krescue SD in and not in, to see if there was something malformed in that card, or if the presence of the card was impacting my results, but it seems not to make a difference

Please provide the full logs, and make sure you have connected the board to you PC and enter upgrade mode sucessfully.