Trouble Flashing Vim3 Android 11 or 12 using Windows

Which Khadas SBC do you use?

VIM3

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

Android AOSP.

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

Khadas official preview image of AOSP Android 11 and Android 12.

Please describe your issue below:

I am unable to flash Android 11 or 12 AOSP firmware using the instructions provided for Windows. The Vim3 reboots as soon as I attempt to flash the u-boot and the process fails every time.

VIM3_T_AOSP_V211126\fastboot_update\tools>flash_uboot_vim3.bat

Transfer Complete! total size is 65536 Bytes
[update]:Run at Addr fffa0000
AmlUsbRunBinCode:ram_addr=fffa0000
[LUSB]ERR(L1069):Fail in start cmd, ret=-5
[LUSB]ERR(L1172):fail in parse cmd, ret=-1070
errorlevel -1173
!!!Flash uboot failed!!!
Press any key to continue . . .

If I execute the commands one at a time:

  1. update write u-boot_kvim3_noab.bin 0xfffa0000 0x10000
  2. update run 0xfffa0000
  3. update bl2_boot u-boot_kvim3_noab.bin

The VIM3 reboots after step 2 into Android 9 already installed on the eMMC. I can’t do anything about this.

Post a console log of your issue below:

VIM3_T_AOSP_V211126\fastboot_update\tools>flash_uboot_vim3.bat

Transfer Complete! total size is 65536 Bytes
[update]:Run at Addr fffa0000
AmlUsbRunBinCode:ram_addr=fffa0000
[LUSB]ERR(L1069):Fail in start cmd, ret=-5
[LUSB]ERR(L1172):fail in parse cmd, ret=-1070
errorlevel -1173
!!!Flash uboot failed!!!
Press any key to continue . . .

update write u-boot_kvim3_noab.bin 0xfffa0000 0x10000

Transfer Complete! total size is 65536 Bytes

update run 0xfffa0000
[update]:Run at Addr fffa0000
AmlUsbRunBinCode:ram_addr=fffa0000

Update:
After attempting the first three basic instructions using Windows:

  1. update write u-boot_kvim3_noab.bin 0xfffa0000 0x10000
  2. update run 0xfffa0000
  3. update bl2_boot u-boot_kvim3_noab.bin

I was able to complete step 3:

VIM3_T_AOSP_V211126\fastboot_update\tools>update bl2_boot u-boot_kvim3_noab.bin
[LUSB]:[AMLC]dataSize=16384, offset=65536, seq 0
[LUSB]:requestType=0
[LUSB]:before wait sum
[LUSB]:check sum OKAY
[LUSB]:[AMLC]dataSize=49152, offset=393216, seq 1
[LUSB]:requestType=0
[LUSB]:before wait sum
[LUSB]:check sum OKAY
[LUSB]:[AMLC]dataSize=16384, offset=229376, seq 2
[LUSB]:requestType=0
[LUSB]:before wait sum
[LUSB]:check sum OKAY
[LUSB]:[AMLC]dataSize=49152, offset=245760, seq 3
[LUSB]:requestType=0
[LUSB]:before wait sum
[LUSB]:check sum OKAY
[LUSB]:[AMLC]dataSize=49152, offset=294912, seq 4
[LUSB]:requestType=0
[LUSB]:before wait sum
[LUSB]:check sum OKAY
[LUSB]:[AMLC]dataSize=16384, offset=65536, seq 5
[LUSB]:requestType=0
[LUSB]:before wait sum
[LUSB]:check sum OKAY
[LUSB]:[AMLC]dataSize=1110384, offset=81920, seq 6
[LUSB]:requestType=0
[LUSB]:before wait sum
[LUSB]:check sum OKAY
[LUSB]:BL2 END, waiting TPL plug-in…

Now I am in the same situation that you are in, my Vim3 fails to enter fastboot mode.

  1. fastboot devices
    {no devices}

What I’ve tried so far:

  1. Reboot into normal eMMC Android 9
  2. Opend a ADB shell to the Vim3
  3. Typed “adb reboot fastboot”

The device reboots into update mode.
4. Type “fastboot devices”

The device list returned is blank.