VIM4: can't boot into OOWOW from USB

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

OOWOW

Which version of system do you use? Please provide the version of the system here:

vim4-oowow-241112.000-spi-upgrade-sd.img.gz

Please describe your issue below:

For context:
I had oowow working and I used the wizard to flash the latest Android available at the time. I wanted to try out my own Android build (I followed the wiki and all went well) so I flashed it. I retrieved the kvim4_arm64-fastboot-flashall-eng.eblanc.zip, unzip it and ran flash-all.sh. It flashed the bootloader rebooted once and after that all fastboot commands ended with an error:

$ fastboot flash bootloader bootloader.img
< waiting for any device >
Warning: skip copying bootloader image avb footer (bootloader partition size: 0, bootloader image size: 4097024).
Sending 'bootloader' (4001 KB)                     FAILED (remote: 'unrecognized command')
fastboot: error: Command failed

The problem:
No I want to get back to something that work (probably Ubuntu) so I decided to go back into oowow. I pressed the Function key + brief Rest key but I got stuck in a bootloop:

U-Boot 2019.01 (May 12 2022 - 18:47:39 +0800)

DRAM:  8 GiB
Relocation Offset is: dfe05000
Relocating to dfe05000, new gd at d9df4dc8, sp at d9df4db0
board init
watchdog disable
fusb302_init: Device ID: 0x91
CC connected in 0 as UFP
fusb302 detect chip.port_num = 0
gpio: pin GPIOH_4 (gpio 152) value is 1
Setting bus to 6
gpio: pin GPIOB_12 (gpio 12) value is 1
[meson_mmc_probe]sd: Controller probe success!
[meson_mmc_probe]emmc: Controller probe success!
emmc: resp timeout, cmd8, status=0x1cf2800
emmc: resp timeout, cmd55, status=0x1cf2800
store flag: 0, types: 1
emmc init success!
boot_device:3
boot_seq:0
boot_bakups:2
rebuid_id :0
boot area list:
       bl2             0         40000
      bl2e         80000         13000
      bl2x         a6000         11000
    ddrfip         c8000         40000
    devfip        148000        300000
emmc: tuning start:
emmc: best_win_start =0, best_win_size =4
enable vendor_boot
enable vendor_boot
set has_boot_slot = 1
enable dynamic_partition
get ept from gpt success
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!!!
emmc probe success
Loading Environment from STORAGE... *** Warning - load env from spi, using default environment

OK
In:    serial@8000
Out:   serial@8000
Err:   serial@8000
board late init
upgrade_step 0
Start read misc partition datas!
active slot = 0
set vendor_boot_mode true
ab mode, read dtb from kernel
Err imgread(L204):Fmt unsupported! only support 0x3
Err imgread(L393):Fail in fdt check header
Fail in load dtb with cmd[imgread dtb boot_a 0x1000000]
vpu: find AML_VPU_CLK_LEVEL_DFT: 7
vpu: clk_level in dts: 7
vpu: vpu_power_on_new
vpu: set clk: 666667000Hz, readback: 666666667Hz(0x100)
vpu: vpu_module_init_config
vpu: vpu_probe
limit_res_1080p: 1
vpp: vpp_init, chip_id=54
vpp: g12a/b osd1 matrix rgb2yuv ..............
vpp: g12a/b osd2 matrix rgb2yuv..............
vpp: g12a/b osd3 matrix rgb2yuv..............
vpp: T7 osd4 matrix rgb2yuv..............
hdr_func: 8, hdr_process_select 0x1
hdr_func: 16, hdr_process_select 0x1
hdr_func: 256, hdr_process_select 0x1
hdr_func: 1, hdr_process_select 0x1
hdr_func: 2, hdr_process_select 0x1
rx trim:0x1001
lcd: lcd_debug_print flag: 0
lcd: error: check dts: FDT_ERR_BADMAGIC, load default lcd parameters
lcd: [0]: detect mode: tablet, key_valid: 0, clk_path: 0
lcd: config load from bsp
lcd: [0]: use default panel_type=vbyone_0
lcd: [0]: vbyone_0, vbyone, 10bit, 3840x2160
lcd: [1]: detect mode: tablet, key_valid: 0, clk_path: 0
lcd: config load from bsp
lcd: [1]: use default panel1_type=vbyone_1
lcd: [1]: vbyone_1, vbyone, 10bit, 3840x2160
lcd: [2]: detect mode: tablet, key_valid: 0, clk_path: 0
lcd: config load from bsp
lcd: [2]: use default panel2_type=lvds_1
lcd: [2]: lvds_1, lvds, 8bit, 1920x1080
bl: [0]: name: vbyone_0, method: 1
bl: [1]: name: vbyone_1, method: 1
bl: [2]: name: lvds_1, method: 5
buff: 1056601109712108
Start read misc partition datas!
rebootmode is cold_boot
rebootstatus is reboot_init, skip check
amlsecurecheck - try bootloader/dtb/recovery secure check

Usage:
amlsecurecheck
Unknown command 'update_tries' - try 'help'
Net:   pwr up eth
ex-phy
chip num 3
set rgmii
Setting bus to 6
hlm do_kbi
[KM]Error:f[keymanage_dts_parse]L299:not a fdt at 0x0000000001000000
MACADDR:02:ad:36:01:d3:c8(from sec_reg)
eth0: ethernet@fdc00000
Start read misc partition datas!
active slot = 0
set vendor_boot_mode true
ab mode, read dtb from kernel
recovery_status=
upgrade_step=0
hpd_state=0
do_hpd_detect: hdmimode=1080p60hz
no sink, fallback to 720p60hz[4]
hdr mode is 0
dv  mode is ver:0  len: 0
hdr10+ mode is 0
HDMI HPD low, no need parse EDID
[OSD]load fb addr from dts:/fb
[OSD]set initrd_high: 0x7f800000
[OSD]fb_addr for logo: 0x7f800000
[OSD]load fb addr from dts:/fb
[OSD]fb_addr for logo: 0x7f800000
[OSD]VPP_OFIFO_SIZE:0xfff01fff
MMC: no card present
MMC: no card present
** Unrecognized filesystem type **
** Unable to read file /usr/share/fenix/logo/logo.bmp **
outputmode[576cvbs] is invalid
hdr_packet
vpp: hdr_policy = 0
vpp: Rx hdr_info.hdr_sup_eotf_smpte_st_2084 = 0
## Error: "check_display" not defined
Setting bus to 6
hlm do_kbi
normal power on
Setting bus to 6
hlm do_kbi
boot wol: disable
Setting bus to 6
hlm do_kbi
=== ethernet phy register write:
[reg_31] 0xd8a
=== ethernet phy register write:
[reg_16] 0x0
=== ethernet phy register write:
[reg_17] 0x7fff
=== ethernet phy register write:
[reg_19] 0x0
=== ethernet phy register write:
[reg_31] 0x0
=== ethernet phy register write:
[reg_31] 0xd40
=== ethernet phy register write:
[reg_22] 0x0
=== ethernet phy register write:
[reg_31] 0x0
s_version: 01.01.220512.184739
[KM]Error:f[keymanage_dts_parse]L299:not a fdt at 0x0000000001000000
Setting bus to 6
hlm do_kbi
usid=3ca000004b
usid=3ca000004b
Setting bus to 6
hlm do_kbi
mac=c8:63:14:72:73:d6

** Unable to use mmc 1:3 for fatinfo **
emmc: resp timeout, cmd8, status=0x1cf2800
emmc: resp timeout, cmd55, status=0x1cf2800
emmc: tuning start:
emmc: best_win_start =0, best_win_size =4
switch to partitions #0, OK
mmc1(part 0) is current device
mmc switch to user success

** Unable to use mmc 1:3 for fatinfo **
[FACTORY-PROVISION] ERROR: device not available
gpio: pin GPIOD_4 (gpio 61) value is 1
reboot_mode : cold_boot
Hit SPACE in 2 seconds to stop autobootWarning: SPI speed fallback to 40000 kHz
SF: Detected w25q256fw with page size 256 Bytes, erase size 4 KiB, total 32 MiB erase_cmd = 0x20 read_cmd = 0xb write_cmd = 0x2

device 0 offset 0x4c8000, size 0x8000
SF: 32768 bytes @ 0x4c8000 Read: OK
## Script run a:00020000 l:1673 c:0
Krescue bootup...
sf read 0x00020000       0x4D0000   0x008000   && env import -t 0x00020000
device 0 offset 0x4d0000, size 0x8000
SF: 32768 bytes @ 0x4d0000 Read: OK
## Info: input data size = 1088 = 0x440
KRESCUE user config
sf read 0x00020000       0x4D8000   0x008000   && env import -t 0x00020000
device 0 offset 0x4d8000, size 0x8000
SF: 32768 bytes @ 0x4d8000 Read: OK
## Info: input data size = 89 = 0x59
===================
sf read 0x00020000       0x4E0000   0x008000   && bmp display 0x00020000 && osd enable
device 0 offset 0x4e0000, size 0x8000
SF: 32768 bytes @ 0x4e0000 Read: OK
sf read 0x01000000 0x4E8000 0x040000
device 0 offset 0x4e8000, size 0x40000
SF: 262144 bytes @ 0x4e8000 Read: OK
sf read 0x01080000 0x528000 0x6F9113
device 0 offset 0x528000, size 0x6f9113
SF: 7311635 bytes @ 0x528000 Read: OK
sf read 0x10000000 0xFA8000 0x6F9113
device 0 offset 0xfa8000, size 0xa07e00
SF: 10518016 bytes @ 0xfa8000 Read: OK
bootargs: video=HDMI-A-1:1920x1080@60 panic=10 net.ifnames=0 fbcon=font:TER16x32  config_firewall="allow" config_wifi="Bbox-78F6F846:GKAVQVrmf6mqQGhAYG"  console=ttyS0,921600 no_console_suspend earlycon=aml-uart,0xfe078000 ramoops.pstore_en=1 ramoops.record_size=0x8000 ramoops.console_size=0x4000 otg_device=1 logo=osd0,loaded,0x00300000 vout=1080p60hz,enable panel_type=vbyone_0 lcd_ctrl=0x000000a2 lcd_debug=0x00000000 panel1_type=vbyone_0 lcd1_ctrl=0x000000a2 panel2_type=lvds_1 lcd2_ctrl=0x00000081 hdmimode=1080p60hz outputmode=1080p60hz osd_reverse=0 video_reverse=0  boot_source=spi kresq_type=spi
booti 0x01080000 0x10000000 0x01000000
   Uncompressing Kernel Image
load dtb from 0x1000000 ......
## Flattened Device Tree blob at 01000000
   Booting using the fdt blob at 0x1000000
active_slot is _a
Start read dtbo_a partition datas!
"Synchronous Abort" handler, esr 0x96000044
Fault address:0x1220a00000010
elr: 000000000004e6d0 lr : 00000000000296a4 (reloc)
elr: 00000000dfe536d0 lr : 00000000dfe2e6a4
x0 : 0000000000000000 x1 : 0001220a00000000
x2 : 0000000000000020 x3 : 0000000000000001
x4 : 0000000200000004 x5 : 00000000dff71868
x6 : 000000000000000e x7 : 00000000dff71948
x8 : 00000001ffffffe4 x9 : 0000000000000008
x10: 00000000d9f10c80 x11: 00000000d9df38a4
x12: 0000000000000001 x13: 00000000d9dfc6d0
x14: 00000000dff16420 x15: 0000000000000010
x16: 00000000000010a0 x17: 00000000d9f15988
x18: 00000000d9df4dc8 x19: 0000000000000003
x20: 0000000000000020 x21: 00000000dff71868
x22: 0000000000000003 x23: 00000000d9df3bc8
x24: 0000000000000013 x25: 0000000000000200
x26: 0000000000000000 x27: 00000000dffb0a68
x28: 0000000000000000 x29: 00000000d9df2ab0

Call trace:
[<00000000dfe536d0>]N/A

Resetting CPU ...

resetting ...

So I decided to try and update the OOWOW version in the SPI flash. I flashed vim4-oowow-241112.000-spi-upgrade-sd.img.gz on a usb stick and rebooted.
I ended up stuck in the same bootloop.

So I erased my eMMC from u-boot in order to try and boot from USB but still no luck:

U-Boot 2019.01 (May 12 2022 - 18:47:39 +0800)

DRAM:  8 GiB
Relocation Offset is: dfe05000
Relocating to dfe05000, new gd at d9df4dc8, sp at d9df4db0
board init
watchdog disable
fusb302_init: Device ID: 0x91
CC connected in 0 as UFP
fusb302 detect chip.port_num = 0
gpio: pin GPIOH_4 (gpio 152) value is 1
Setting bus to 6
gpio: pin GPIOB_12 (gpio 12) value is 1
[meson_mmc_probe]sd: Controller probe success!
[meson_mmc_probe]emmc: Controller probe success!
emmc: resp timeout, cmd8, status=0x1cf2800
emmc: resp timeout, cmd55, status=0x1cf2800
store flag: 0, types: 1
emmc init success!
boot_device:3
boot_seq:0
boot_bakups:2
rebuid_id :0
boot area list:
       bl2             0         40000
      bl2e         80000         13000
      bl2x         a6000         11000
    ddrfip         c8000         40000
    devfip        148000        300000
emmc: tuning start:
emmc: best_win_start =5, best_win_size =5
enable vendor_boot
enable vendor_boot
set has_boot_slot = 1
enable dynamic_partition
get ept from gpt success
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!!!
emmc probe success
Loading Environment from STORAGE... *** Warning - load env from spi, using default environment

OK
In:    serial@8000
Out:   serial@8000
Err:   serial@8000
board late init
upgrade_step 0
Start read misc partition datas!
active slot = 0
set vendor_boot_mode true
ab mode, read dtb from kernel
Err imgread(L204):Fmt unsupported! only support 0x3
Err imgread(L393):Fail in fdt check header
Fail in load dtb with cmd[imgread dtb boot_a 0x1000000]
vpu: find AML_VPU_CLK_LEVEL_DFT: 7
vpu: clk_level in dts: 7
vpu: vpu_power_on_new
vpu: set clk: 666667000Hz, readback: 666666667Hz(0x100)
vpu: vpu_module_init_config
vpu: vpu_probe
limit_res_1080p: 1
vpp: vpp_init, chip_id=54
vpp: g12a/b osd1 matrix rgb2yuv ..............
vpp: g12a/b osd2 matrix rgb2yuv..............
vpp: g12a/b osd3 matrix rgb2yuv..............
vpp: T7 osd4 matrix rgb2yuv..............
hdr_func: 8, hdr_process_select 0x1
hdr_func: 16, hdr_process_select 0x1
hdr_func: 256, hdr_process_select 0x1
hdr_func: 1, hdr_process_select 0x1
hdr_func: 2, hdr_process_select 0x1
rx trim:0x1001
lcd: lcd_debug_print flag: 0
lcd: error: check dts: FDT_ERR_BADMAGIC, load default lcd parameters
lcd: [0]: detect mode: tablet, key_valid: 0, clk_path: 0
lcd: config load from bsp
lcd: [0]: use default panel_type=vbyone_0
lcd: [0]: vbyone_0, vbyone, 10bit, 3840x2160
lcd: [1]: detect mode: tablet, key_valid: 0, clk_path: 0
lcd: config load from bsp
lcd: [1]: use default panel1_type=vbyone_1
lcd: [1]: vbyone_1, vbyone, 10bit, 3840x2160
lcd: [2]: detect mode: tablet, key_valid: 0, clk_path: 0
lcd: config load from bsp
lcd: [2]: use default panel2_type=lvds_1
lcd: [2]: lvds_1, lvds, 8bit, 1920x1080
bl: [0]: name: vbyone_0, method: 1
bl: [1]: name: vbyone_1, method: 1
bl: [2]: name: lvds_1, method: 5
buff: 1056601109712108
Start read misc partition datas!
rebootmode is watchdog_reboot
rebootstatus is reboot_init, skip check
amlsecurecheck - try bootloader/dtb/recovery secure check

Usage:
amlsecurecheck
Unknown command 'update_tries' - try 'help'
Net:   pwr up eth
ex-phy
chip num 3
set rgmii
Setting bus to 6
hlm do_kbi
[KM]Error:f[keymanage_dts_parse]L299:not a fdt at 0x0000000001000000
MACADDR:02:ad:36:01:d3:c8(from sec_reg)
eth0: ethernet@fdc00000
Start read misc partition datas!
active slot = 0
set vendor_boot_mode true
ab mode, read dtb from kernel
recovery_status=
upgrade_step=0
hpd_state=0
do_hpd_detect: hdmimode=1080p60hz
no sink, fallback to 720p60hz[4]
hdr mode is 0
dv  mode is ver:0  len: 0
hdr10+ mode is 0
HDMI HPD low, no need parse EDID
[OSD]load fb addr from dts:/fb
[OSD]set initrd_high: 0x7f800000
[OSD]fb_addr for logo: 0x7f800000
[OSD]load fb addr from dts:/fb
[OSD]fb_addr for logo: 0x7f800000
[OSD]VPP_OFIFO_SIZE:0xfff01fff
MMC: no card present
MMC: no card present
** Unrecognized filesystem type **
** Unable to read file /usr/share/fenix/logo/logo.bmp **
outputmode[576cvbs] is invalid
hdr_packet
vpp: hdr_policy = 0
vpp: Rx hdr_info.hdr_sup_eotf_smpte_st_2084 = 0
## Error: "check_display" not defined
Setting bus to 6
hlm do_kbi
normal power on
Setting bus to 6
hlm do_kbi
boot wol: disable
Setting bus to 6
hlm do_kbi
=== ethernet phy register write:
[reg_31] 0xd8a
=== ethernet phy register write:
[reg_16] 0x0
=== ethernet phy register write:
[reg_17] 0x7fff
=== ethernet phy register write:
[reg_19] 0x0
=== ethernet phy register write:
[reg_31] 0x0
=== ethernet phy register write:
[reg_31] 0xd40
=== ethernet phy register write:
[reg_22] 0x0
=== ethernet phy register write:
[reg_31] 0x0
s_version: 01.01.220512.184739
[KM]Error:f[keymanage_dts_parse]L299:not a fdt at 0x0000000001000000
Setting bus to 6
hlm do_kbi
usid=3ca000004b
usid=3ca000004b
Setting bus to 6
hlm do_kbi
mac=c8:63:14:72:73:d6

** Unable to use mmc 1:3 for fatinfo **
emmc: resp timeout, cmd8, status=0x1cf2800
emmc: resp timeout, cmd55, status=0x1cf2800
emmc: tuning start:
emmc: best_win_start =5, best_win_size =5
switch to partitions #0, OK
mmc1(part 0) is current device
mmc switch to user success

** Unable to use mmc 1:3 for fatinfo **
[FACTORY-PROVISION] ERROR: device not available
gpio: pin GPIOD_4 (gpio 61) value is 1
reboot_mode : watchdog_reboot
Hit SPACE in 2 seconds to stop autobootWarning: SPI speed fallback to 40000 kHz
SF: Detected w25q256fw with page size 256 Bytes, erase size 4 KiB, total 32 MiB erase_cmd = 0x20 read_cmd = 0xb write_cmd = 0x2

device 0 offset 0x4c8000, size 0x8000
SF: 32768 bytes @ 0x4c8000 Read: OK
## Script run a:00020000 l:1673 c:0
Krescue bootup...
sf read 0x00020000       0x4D0000   0x008000   && env import -t 0x00020000
device 0 offset 0x4d0000, size 0x8000
SF: 32768 bytes @ 0x4d0000 Read: OK
## Info: input data size = 1088 = 0x440
KRESCUE user config
sf read 0x00020000       0x4D8000   0x008000   && env import -t 0x00020000
device 0 offset 0x4d8000, size 0x8000
SF: 32768 bytes @ 0x4d8000 Read: OK
## Info: input data size = 89 = 0x59
===================
sf read 0x00020000       0x4E0000   0x008000   && bmp display 0x00020000 && osd enable
device 0 offset 0x4e0000, size 0x8000
SF: 32768 bytes @ 0x4e0000 Read: OK
sf read 0x01000000 0x4E8000 0x040000
device 0 offset 0x4e8000, size 0x40000
SF: 262144 bytes @ 0x4e8000 Read: OK
sf read 0x01080000 0x528000 0x6F9113
device 0 offset 0x528000, size 0x6f9113
SF: 7311635 bytes @ 0x528000 Read: OK
sf read 0x10000000 0xFA8000 0x6F9113
device 0 offset 0xfa8000, size 0xa07e00
SF: 10518016 bytes @ 0xfa8000 Read: OK
bootargs: video=HDMI-A-1:1920x1080@60 panic=10 net.ifnames=0 fbcon=font:TER16x32  config_firewall="allow" config_wifi="Bbox-78F6F846:GKAVQVrmf6mqQGhAYG"  console=ttyS0,921600 no_console_suspend earlycon=aml-uart,0xfe078000 ramoops.pstore_en=1 ramoops.record_size=0x8000 ramoops.console_size=0x4000 otg_device=1 logo=osd0,loaded,0x00300000 vout=1080p60hz,enable panel_type=vbyone_0 lcd_ctrl=0x000000a2 lcd_debug=0x00000000 panel1_type=vbyone_0 lcd1_ctrl=0x000000a2 panel2_type=lvds_1 lcd2_ctrl=0x00000081 hdmimode=1080p60hz outputmode=1080p60hz osd_reverse=0 video_reverse=0  boot_source=spi kresq_type=spi
booti 0x01080000 0x10000000 0x01000000
   Uncompressing Kernel Image
load dtb from 0x1000000 ......
## Flattened Device Tree blob at 01000000
   Booting using the fdt blob at 0x1000000
active_slot is _a
Start read dtbo_a partition datas!
"Synchronous Abort" handler, esr 0x96000044
Fault address:0x1220a00000010
elr: 000000000004e6d0 lr : 00000000000296a4 (reloc)
elr: 00000000dfe536d0 lr : 00000000dfe2e6a4
x0 : 0000000000000000 x1 : 0001220a00000000
x2 : 0000000000000020 x3 : 0000000000000001
x4 : 0000000200000004 x5 : 00000000dff71868
x6 : 0000000000000008 x7 : 00000000dff718e8
x8 : 00000001ffffffe4 x9 : 0000000000000008
x10: 00000000d9f11f40 x11: 00000000d9df38a4
x12: 0000000000000001 x13: 00000000d9dfc6d0
x14: 00000000dff16420 x15: 0000000000000010
x16: 00000000000010a0 x17: 00000000d9f15758
x18: 00000000d9df4dc8 x19: 0000000000000003
x20: 0000000000000020 x21: 00000000dff71868
x22: 0000000000000003 x23: 00000000d9df3bc8
x24: 0000000000000013 x25: 0000000000000200
x26: 0000000000000000 x27: 00000000dffb0a68
x28: 0000000000000000 x29: 00000000d9df2ab0

Call trace:
[<00000000dfe536d0>]N/A

Resetting CPU ...

I tried to use run usb_boot but not luck either. But we see that extlinux.conf is beeing loaded:

U-Boot 2019.01 (May 12 2022 - 18:47:39 +0800)

DRAM:  8 GiB
Relocation Offset is: dfe05000
Relocating to dfe05000, new gd at d9df4dc8, sp at d9df4db0
board init
watchdog disable
fusb302_init: Device ID: 0x91
CC connected in 0 as UFP
fusb302 detect chip.port_num = 0
gpio: pin GPIOH_4 (gpio 152) value is 1
Setting bus to 6
gpio: pin GPIOB_12 (gpio 12) value is 1
[meson_mmc_probe]sd: Controller probe success!
[meson_mmc_probe]emmc: Controller probe success!
emmc: resp timeout, cmd8, status=0x1cf2800
emmc: resp timeout, cmd55, status=0x1cf2800
store flag: 0, types: 1
emmc init success!
boot_device:3
boot_seq:0
boot_bakups:2
rebuid_id :0
boot area list:
       bl2             0         40000
      bl2e         80000         13000
      bl2x         a6000         11000
    ddrfip         c8000         40000
    devfip        148000        300000
emmc: tuning start:
emmc: best_win_start =5, best_win_size =5
enable vendor_boot
enable vendor_boot
set has_boot_slot = 1
enable dynamic_partition
get ept from gpt success
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!!!
emmc probe success
Loading Environment from STORAGE... *** Warning - load env from spi, using default environment

OK
In:    serial@8000
Out:   serial@8000
Err:   serial@8000
board late init
upgrade_step 0
Start read misc partition datas!
active slot = 0
set vendor_boot_mode true
ab mode, read dtb from kernel
Err imgread(L204):Fmt unsupported! only support 0x3
Err imgread(L393):Fail in fdt check header
Fail in load dtb with cmd[imgread dtb boot_a 0x1000000]
vpu: find AML_VPU_CLK_LEVEL_DFT: 7
vpu: clk_level in dts: 7
vpu: vpu_power_on_new
vpu: set clk: 666667000Hz, readback: 666666667Hz(0x100)
vpu: vpu_module_init_config
vpu: vpu_probe
limit_res_1080p: 1
vpp: vpp_init, chip_id=54
vpp: g12a/b osd1 matrix rgb2yuv ..............
vpp: g12a/b osd2 matrix rgb2yuv..............
vpp: g12a/b osd3 matrix rgb2yuv..............
vpp: T7 osd4 matrix rgb2yuv..............
hdr_func: 8, hdr_process_select 0x1
hdr_func: 16, hdr_process_select 0x1
hdr_func: 256, hdr_process_select 0x1
hdr_func: 1, hdr_process_select 0x1
hdr_func: 2, hdr_process_select 0x1
rx trim:0x1001
lcd: lcd_debug_print flag: 0
lcd: error: check dts: FDT_ERR_BADMAGIC, load default lcd parameters
lcd: [0]: detect mode: tablet, key_valid: 0, clk_path: 0
lcd: config load from bsp
lcd: [0]: use default panel_type=vbyone_0
lcd: [0]: vbyone_0, vbyone, 10bit, 3840x2160
lcd: [1]: detect mode: tablet, key_valid: 0, clk_path: 0
lcd: config load from bsp
lcd: [1]: use default panel1_type=vbyone_1
lcd: [1]: vbyone_1, vbyone, 10bit, 3840x2160
lcd: [2]: detect mode: tablet, key_valid: 0, clk_path: 0
lcd: config load from bsp
lcd: [2]: use default panel2_type=lvds_1
lcd: [2]: lvds_1, lvds, 8bit, 1920x1080
bl: [0]: name: vbyone_0, method: 1
bl: [1]: name: vbyone_1, method: 1
bl: [2]: name: lvds_1, method: 5
buff: 1056601109712108
Start read misc partition datas!
rebootmode is watchdog_reboot
rebootstatus is reboot_init, skip check
amlsecurecheck - try bootloader/dtb/recovery secure check

Usage:
amlsecurecheck
Unknown command 'update_tries' - try 'help'
Net:   pwr up eth
ex-phy
chip num 3
set rgmii
Setting bus to 6
hlm do_kbi
[KM]Error:f[keymanage_dts_parse]L299:not a fdt at 0x0000000001000000
MACADDR:02:ad:36:01:d3:c8(from sec_reg)
eth0: ethernet@fdc00000
Start read misc partition datas!
active slot = 0
set vendor_boot_mode true
ab mode, read dtb from kernel
recovery_status=
upgrade_step=0
hpd_state=0
do_hpd_detect: hdmimode=1080p60hz
no sink, fallback to 720p60hz[4]
hdr mode is 0
dv  mode is ver:0  len: 0
hdr10+ mode is 0
HDMI HPD low, no need parse EDID
[OSD]load fb addr from dts:/fb
[OSD]set initrd_high: 0x7f800000
[OSD]fb_addr for logo: 0x7f800000
[OSD]load fb addr from dts:/fb
[OSD]fb_addr for logo: 0x7f800000
[OSD]VPP_OFIFO_SIZE:0xfff01fff
MMC: no card present
MMC: no card present
** Unrecognized filesystem type **
** Unable to read file /usr/share/fenix/logo/logo.bmp **
outputmode[576cvbs] is invalid
hdr_packet
vpp: hdr_policy = 0
vpp: Rx hdr_info.hdr_sup_eotf_smpte_st_2084 = 0
## Error: "check_display" not defined
Setting bus to 6
hlm do_kbi
normal power on
Setting bus to 6
hlm do_kbi
boot wol: disable
Setting bus to 6
hlm do_kbi
=== ethernet phy register write:
[reg_31] 0xd8a
=== ethernet phy register write:
[reg_16] 0x0
=== ethernet phy register write:
[reg_17] 0x7fff
=== ethernet phy register write:
[reg_19] 0x0
=== ethernet phy register write:
[reg_31] 0x0
=== ethernet phy register write:
[reg_31] 0xd40
=== ethernet phy register write:
[reg_22] 0x0
=== ethernet phy register write:
[reg_31] 0x0
s_version: 01.01.220512.184739
[KM]Error:f[keymanage_dts_parse]L299:not a fdt at 0x0000000001000000
Setting bus to 6
hlm do_kbi
usid=3ca000004b
usid=3ca000004b
Setting bus to 6
hlm do_kbi
mac=c8:63:14:72:73:d6

** Unable to use mmc 1:3 for fatinfo **
emmc: resp timeout, cmd8, status=0x1cf2800
emmc: resp timeout, cmd55, status=0x1cf2800
emmc: tuning start:
emmc: best_win_start =5, best_win_size =5
switch to partitions #0, OK
mmc1(part 0) is current device
mmc switch to user success

** Unable to use mmc 1:3 for fatinfo **
[FACTORY-PROVISION] ERROR: device not available
gpio: pin GPIOD_4 (gpio 61) value is 1
reboot_mode : watchdog_reboot
Hit SPACE in 2 seconds to stop autobootkvim4#
kvim4# run usb_boot
starting USB...
USB0:   Register 1000120 NbrPorts 1
Starting the controller
USB XHCI 1.10
USB1:   Register 2000120 NbrPorts 1
Starting the controller
USB XHCI 1.10
scanning bus 0 for devices... 1 USB Device(s) found
scanning bus 1 for devices... 3 USB Device(s) found
       scanning usb for storage devices... 1 Storage Device(s) found

IDE device 0: Vendor: Samsung  Rev: 1100 Prod: Flash Drive
            Type: Removable Hard Disk
            Capacity: 61188.1 MB = 59.7 GB (125313283 x 512)
** Bad device specification usb -bootable **
Scanning usb :1...
Found /boot/extlinux/extlinux.conf
Retrieving file: /boot/extlinux/extlinux.conf
178 bytes read in 26 ms (5.9 KiB/s)
Retrieving file: /boot/logo.bmp
518454 bytes read in 37 ms (13.4 MiB/s)
1:	oowow
Enter choice: 1:	oowow
Retrieving file: /rescue/oowow-rootfs.xz
10550272 bytes read in 274 ms (36.7 MiB/s)
Retrieving file: /rescue/Image.gz
10070402 bytes read in 259 ms (37.1 MiB/s)
Retrieving file: /rescue/fdt.kresq/amlogic/kvim4.dtb
123465 bytes read in 43 ms (2.7 MiB/s)
Retrieving file: /rescue/fdt.kresq/amlogic/kvim4.dtb.overlay.env
150 bytes read in 36 ms (3.9 KiB/s)
fdt_overlay_helper: /rescue/fdt.kresq/amlogic/kvim4.dtb.overlay.env
 /rescue/fdt.kresq/amlogic/kvim4.dtb.overlays: pcie_disable spifc_disable
Retrieving file: /rescue/fdt.kresq/amlogic/kvim4.dtb.overlays/pcie_disable.dtbo
227 bytes read in 41 ms (4.9 KiB/s)
fdt overlay: pcie_disable - apply
Retrieving file: /rescue/fdt.kresq/amlogic/kvim4.dtb.overlays/spifc_disable.dtbo
228 bytes read in 40 ms (4.9 KiB/s)
fdt overlay: spifc_disable - apply
Retrieving file: /boot/uEnv.txt
852 bytes read in 26 ms (31.3 KiB/s)
Import user vars: /boot/uEnv.txt 852 bytes
append: panic=10 net.ifnames=0 fbcon=font:TER16x32 console=ttyS0,921600 no_console_suspend earlycon=aml-uart,0xfe078000 xhci_hcd.quirks=0x800000 otg_device=1 irq_check_en=0 jtag=disable disable_ir=0 powermode=on  boot_source=spi kresq_type=sd logo=osd0,loaded,0x00300000 vout=576cvbs,enable vout2=panel1,enable panel_type=vbyone_0 lcd_ctrl=0x000000a2 lcd_debug=0x00000000 panel1_type=vbyone_1 lcd1_ctrl=0x000000a2 panel2_type=lvds_1 lcd2_ctrl=0x00000081 hdmimode=1080p60hz outputmode=576cvbs osd_reverse=0 video_reverse=0  testing=dev
   Uncompressing Kernel Image
load dtb from 0x1000000 ......
## Flattened Device Tree blob at 01000000
   Booting using the fdt blob at 0x1000000
active_slot is _a
Start read dtbo_a partition datas!
"Synchronous Abort" handler, esr 0x96000044
Fault address:0x1220a00000010
elr: 000000000004e6d0 lr : 00000000000296a4 (reloc)
elr: 00000000dfe536d0 lr : 00000000dfe2e6a4
x0 : 0000000000000000 x1 : 0001220a00000000
x2 : 0000000000000020 x3 : 0000000000000001
x4 : 0000000200000004 x5 : 00000000dff71868
x6 : 0000000000000006 x7 : 00000000dff718c8
x8 : 00000001ffffffe4 x9 : 0000000000000008
x10: 00000000d9f224c0 x11: 00000000d9df21a4
x12: 0000000000000001 x13: 00000000d9dfc6d0
x14: 00000000dff16420 x15: 0000000000000010
x16: 00000000000010a0 x17: 0000000000000000
x18: 00000000d9df4dc8 x19: 0000000000000003
x20: 0000000000000020 x21: 00000000dff71868
x22: 0000000000000003 x23: 00000000d9df24c8
x24: 0000000000000013 x25: 0000000000000200
x26: 0000000000000000 x27: 00000000dffb0a68
x28: 0000000000000000 x29: 00000000d9df13b0

Call trace:
[<00000000dfe536d0>]N/A

Resetting CPU ...

resetting ...

Hello @Skallwar

@hyphop will help you to check this issue later.

  1. oowow spi u-boot another not matched with your logs on my side U-Boot 2019.01 (Mar 09 2023 - 10:45:55 +0800) its after spi upgrade https://dl.khadas.com/products/vim4/firmware/oowow/versions/vim4/vim4-oowow-241112.000-spi-upgrade-sd.img.gz - i have check all works well on my side - looks like spi content was damaged or something on emmc boot areas

  2. just write to SD card this image https://dl.khadas.com/products/vim4/firmware/oowow/versions/vim4/vim4-oowow-241112.000-spi-upgrade-sd.img.gz

  3. break uboot - and do store init 3 for clear emmc

  4. boot oowow restore image from SD card not from USB flash

  5. wait and reboot

after restore oowow SPI content we can boot from usb

kvim4# usb start
starting USB...
USB0:   Register 1000120 NbrPorts 1
Starting the controller
USB XHCI 1.10
USB1:   No ----gpio-vbus-power
Register 2000120 NbrPorts 1
Starting the controller
USB XHCI 1.10
scanning bus 0 for devices... 1 USB Device(s) found
scanning bus 1 for devices... 3 USB Device(s) found
       scanning usb for storage devices... 1 Storage Device(s) found
kvim4# run usb_boot

IDE device 0: Vendor:          Rev: 1.00 Prod: SD Card Reader  
            Type: Removable Hard Disk
            Capacity: 15193.5 MB = 14.8 GB (31116288 x 512)
** Bad device specification usb -bootable **
Scanning usb :1...
Found /boot/extlinux/extlinux.conf
Retrieving file: /boot/extlinux/extlinux.conf
178 bytes read in 45 ms (2.9 KiB/s)
Retrieving file: /boot/logo.bmp
518454 bytes read in 52 ms (9.5 MiB/s)
1:	oowow
Enter choice: 1:	oowow
Retrieving file: /rescue/oowow-rootfs.xz
10550272 bytes read in 290 ms (34.7 MiB/s)
Retrieving file: /rescue/Image.gz
10070402 bytes read in 277 ms (34.7 MiB/s)
Retrieving file: /rescue/fdt.kresq/amlogic/kvim4n.dtb
123465 bytes read in 74 ms (1.6 MiB/s)
Retrieving file: /rescue/fdt.kresq/amlogic/kvim4n.dtb.overlay.env
MIPI LCD not exist, disable lcd node.
Retrieving file: /boot/uEnv.txt
852 bytes read in 40 ms (20.5 KiB/s)
Import user vars: /boot/uEnv.txt 852 bytes
append: panic=10 net.ifnames=0 fbcon=font:TER16x32 console=ttyS0,921600 no_console_suspend earlycon=aml-uart,0xfe078000 xhci_hcd.quirks=0x800000 otg_device=1 irq_check_en=0 jtag=disable disable_ir=0 powermode=on  boot_source=spi kresq_type=sd logo=osd0,loaded,0x00300000 vout=1080p60hz,enable vout2=1080p60hz,enable panel_type=mipi_0 lcd_ctrl=0x00000083 lcd_debug=0x00000000 panel1_type=vbyone_1 lcd1_ctrl=0x000000a2 panel2_type=lvds_1 lcd2_ctrl=0x00000081 hdmimode=1080p60hz outputmode=1080p60hz osd_reverse=0 video_reverse=0  testing=dev
   Uncompressing Kernel Image
load dtb from 0x1000000 ......
## Flattened Device Tree blob at 01000000
   Booting using the fdt blob at 0x1000000
   Loading Ramdisk to 7edf0000, end 7f7ffc00 ... OK
   reserving fdt memory region: addr=1000000 size=84000
   Loading Device Tree to 000000001ff79000, end 000000001fffffff ... OK
Can't find kaslr-seed property in chosen

Starting kernel ...

uboot time: 156372342 us
boot 64bit kernel

Hi there.
That works, thanks :slight_smile:
No I need to see why fastboot refuse my commands.
Thanks for your time :slight_smile: