VIM3 - Flash the Android image using the USB Burn tool on Windows

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

VIM3 connected to Windows 11 host PC.

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

Android AOSP.

Please describe your issue below:

I am using the USB burn tool defined at location VIM3/3L Install OS into eMMC via USB Flash Tool [Khadas Docs].
I can manage to flash the image which has an extension of .img using the USB burning tool. For example vim3-android-9-64bit-v240626.img. But I am not sure how can I use the tool to flash the images which has many .img files under a folder. For example, vim3-u-aosp-v240613.rar has boot.img, dtbo-unsigned.img, super.img, u-boot_kvim3_ab.bin, and userdata.img etc.

Kindly help to understand the usage of the tool to flash the bootloader for aosp.

Post a console log of your issue below:

NA

@Bhushan_Patil please check this guidance post:

@Bhushan_Patil ,

You can use the following script to burn on Windows。

  • flash uboot script :
@update write u-boot_kvim3_noab.bin 0xfffa0000 0x10000
@if NOT %errorlevel%==0 goto :error

@update run 0xfffa0000
@if NOT %errorlevel%==0 goto :error

@update bl2_boot u-boot_kvim3_noab.bin
@if NOT %errorlevel%==0 goto :error

@fastboot oem format
@if NOT %errorlevel%==0 goto :error


@fastboot flash bootloader u-boot_kvim3_noab.bin
@if NOT %errorlevel%==0 goto :error

@fastboot erase bootenv
@if NOT %errorlevel%==0 goto :error


@fastboot reboot bootloader
@echo !!!!!!!!Flash uboot successfully!!!!!!!!
@goto :exit

:error
@echo errorlevel %errorlevel%
@echo !!!!!!!!Flash uboot failed!!!!!!!!
@pause

:exit
  • flash image script :
@fastboot flash boot boot.img
@if NOT %errorlevel%==0 goto :error


@fastboot flash super super.img
@if NOT %errorlevel%==0 goto :error

@fastboot flash cache cache.img
@if NOT %errorlevel%==0 goto :error


@fastboot flash userdata userdata.img
@if NOT %errorlevel%==0 goto :error

@fastboot flash recovery recovery.img
@if NOT %errorlevel%==0 goto :error

@fastboot flash dtbo dtbo-unsigned.img
@if NOT %errorlevel%==0 goto :error


@fastboot reboot
@echo !!!!!!!!Flash some img successfully!!!!!!!!
@goto :exit

:error
@echo errorlevel %errorlevel%
@echo !!!!!!!!Flash some img failed!!!!!!!!
@pause

:exit
1 Like

Hi William.Lin,

I tried the script you described. It gives me an error < waiting for any device >.
Attached is the screenshot of the same.


Note: I have used the u-boot_kvim3_ab.bin instead of u-boot_kvim3_noab.bin.
Regards

Hello, you can refer to the instructions in this document for the burning method of Android 14

Thanks,

I followed the steps using the Ubuntu machine but made a small mistake.

  • flash Uboot:
    sudo ./update write u-boot_kvim3_ab.bin 0xfffa0000 0x10000
    sudo ./update run 0xfffa0000
    sudo ./update bl2_boot u-boot_kvim3_ab.bin
    sudo fastboot oem format
    sudo fastboot flash bootloader u-boot_kvim3_ab.bin
    sudo fastboot erase bootenv
    sudo fastboot reboot bootloader

  • press reset key.
    sudo fastboot flash boot boot.img
    sudo fastboot flash super super.img
    sudo fastboot flash userdata userdata.img
    sudo fastboot flash dtbo dtbo-unsigned.img
    sudo fastboot reboot

After the above step I was not able to detect the device under adb.

I guess I made a mistake of flashing the fastboot boot only with u-boot_kvim3_ab.bin bootloader.

I tried to correct it but I get below error after
sudo ./update bl2_boot u-boot_kvim3_ab.bin command

[LUSB]ERR(L1016):Fail in down data, want 16384, but -110
[LUSB]ERR(L1187):fail in download, sequence 0

Help is appreciated.

Regards
Bhushan