VIM4: can't boot into OOWOW from USB

  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