Problems in flashing Android Images to VIM3

@aeropia
It is my result.

Um… why my VIM does not keep being connected…?

Does ‘update run’ command let VIM3 execute the u-boot image file just transfered? If that is true, the u-boot image file is problem…? Is there any precondition not to allow run the image?

Can you share your u-boot image file so that I would try by chance?

Thanks.

You can download it.

I have tried with the image file and the batch file included in the post. The result looks the same but there are error codes;

What do these mean?

C:\Users\aerop\work\fastboot_update\VIM3_R_AOSP_V210604\Android>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!!!

Thanks.

@aeropia
This error means that your board is not VIM3, it may be VIM3L.
VIM3L need u-boot_kvim3l_noab.bin file.

Really? No way!!:scream:

This is my board with A331D. How can it be VIM3L?

Mine is VIM3 Pro with 32GB eMMC from official Khadas store at Aliexpress.

@tenk.wang @zonggestsu
Strange enough, I have just flashed the u-boot successfully!!!

I removed the USB burning tool 2.2.0 from PC, remove the USB driver, downloaded new version of USB burning tool 2.2.4 and install it. And… run the same command again. The result looks good to me!

C:\Users\aerop\work\fastboot_update\VIM3_R_AOSP_V210604\Android>flash_uboot_vim3

Transfer Complete! total size is 65536 Bytes
[update]:Run at Addr fffa0000
AmlUsbRunBinCode:ram_addr=fffa0000
[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=1122160, offset=81920, seq 6
[LUSB]:requestType=0
[LUSB]:before wait sum
[LUSB]:check sum OKAY
[LUSB]:BL2 END, waiting TPL plug-in…
< waiting for any device >

OKAY [ 0.005s]
finished. total time: 0.005s
target reported max download size of 117440512 bytes
sending ‘bootloader’ (1175 KB)…
OKAY [ 0.058s]
writing ‘bootloader’…
OKAY [ 0.120s]
finished. total time: 0.183s
erasing ‘bootenv’…
OKAY [ 0.173s]
finished. total time: 0.173s
rebooting into bootloader…
OKAY [ 0.047s]
finished. total time: 0.047s
!!!Flash uboot successfully!!!

1 Like

I can finally flash every images to VIM3.
Thanks @tenk.wang, @zonggestsu for your advices!!

C:\Users\aerop\work\ VIM3_R_AOSP>flash_vim3
..
Transfer Complete! total size is 65536 Bytes
[update]:Run at Addr fffa0000
AmlUsbRunBinCode:ram_addr=fffa0000
[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...
< waiting for any device >
...
OKAY [  0.010s]
finished. total time: 0.010s
target reported max download size of 117440512 bytes
sending 'bootloader' (1164 KB)...
OKAY [  0.051s]
writing 'bootloader'...
OKAY [  0.120s]
finished. total time: 0.180s
erasing 'bootenv'...
OKAY [  0.180s]
finished. total time: 0.185s
rebooting into bootloader...
OKAY [  0.010s]
finished. total time: 0.010s
!!!!!!!!Flash uboot successfully!!!!!!!!
!!!!!!!!Press the vim3 board reset key!!!!!!!!
< waiting for any device >
target reported max download size of 117440512 bytes
sending 'boot' (21196 KB)...
OKAY [  0.940s]
writing 'boot'...
OKAY [  1.130s]
finished. total time: 2.070s
target reported max download size of 117440512 bytes
sending sparse 'super' 1/12 (114684 KB)...
OKAY [  5.219s]
writing 'super' 1/12...
OKAY [  6.144s]
sending sparse 'super' 2/12 (101712 KB)...
OKAY [  4.651s]
writing 'super' 2/12...
OKAY [  5.536s]
sending sparse 'super' 3/12 (114500 KB)...
OKAY [  5.212s]
writing 'super' 3/12...
OKAY [  6.433s]
sending sparse 'super' 4/12 (114684 KB)...
OKAY [  5.248s]
writing 'super' 4/12...
OKAY [  6.132s]
sending sparse 'super' 5/12 (114674 KB)...
OKAY [  5.343s]
writing 'super' 5/12...
OKAY [  6.255s]
sending sparse 'super' 6/12 (114684 KB)...
OKAY [  6.004s]
writing 'super' 6/12...
OKAY [  8.830s]
sending sparse 'super' 7/12 (106368 KB)...
OKAY [  4.862s]
writing 'super' 7/12...
OKAY [  5.766s]
sending sparse 'super' 8/12 (114684 KB)...
OKAY [  5.228s]
writing 'super' 8/12...
OKAY [  6.316s]
sending sparse 'super' 9/12 (114684 KB)...
OKAY [  5.242s]
writing 'super' 9/12...
OKAY [  6.242s]
sending sparse 'super' 10/12 (107468 KB)...
OKAY [  4.885s]
writing 'super' 10/12...
OKAY [  5.849s]
sending sparse 'super' 11/12 (104966 KB)...
OKAY [  5.069s]
writing 'super' 11/12...
OKAY [  7.008s]
sending sparse 'super' 12/12 (94052 KB)...
OKAY [  4.316s]
writing 'super' 12/12...
OKAY [  4.980s]
finished. total time: 136.846s
target reported max download size of 117440512 bytes
erasing 'cache'...
OKAY [  0.601s]
sending 'cache' (56 KB)...
OKAY [  0.000s]
writing 'cache'...
OKAY [  0.015s]
finished. total time: 0.616s
target reported max download size of 117440512 bytes
erasing 'userdata'...
OKAY [ 26.500s]
sending 'userdata' (128 KB)...
OKAY [  0.000s]
writing 'userdata'...
OKAY [  0.032s]
finished. total time: 26.547s
target reported max download size of 117440512 bytes
sending 'recovery' (27572 KB)...
OKAY [  1.234s]
writing 'recovery'...
OKAY [  1.424s]
finished. total time: 2.674s
target reported max download size of 117440512 bytes
sending 'dtbo' (8 KB)...
OKAY [ -0.000s]
writing 'dtbo'...
OKAY [ -0.000s]
finished. total time: 0.016s
rebooting...

finished. total time: -0.000s
!!!!!!!!Flash some img successfully!!!!!!!!

1 Like

@aeropia
Is it caused by USB burning tool? Thank you. We’ll pay attention next time.