./tools/update bl2_boot u-boot_kvim3_noab.bin fails

Steps:

$ ./tools/update write u-boot_kvim3_noab.bin 0xfffa0000 0x10000

Transfer Complete! total size is 65536 Bytes

$ ./tools/update run 0xfffa0000
[update]Run at Addr fffa0000
AmlUsbRunBinCode:ram_addr=fffa0000

$ ./tools/update bl2_boot u-boot_kvim3_noab.bin
get cbw failed, want 512, ret 0
[LUSB]ERR(L1172):fail in parse cmd, ret=-1079

Why does the last step fail?

I also tried the alternative pyamlboot. This also failed:

boot-g12.py u-boot_kvim3_noab.bin
Firmware Version :
ROM: 3.2 Stage: 0.0
Need Password: 0 Password OK: 0
Writing u-boot_kvim3_noab.bin at 0xfffa0000…
[DONE]
Running at 0xfffa0000…
[DONE]
Traceback (most recent call last):
File “/home/dwhea/.local/bin/boot-g12.py”, line 47, in
(length, offset) = dev.getBootAMLC()
File “/home/dwhea/.local/lib/python3.7/site-packages/pyamlboot/pyamlboot.py”, line 360, in getBootAMLC
data_or_wLength = None)
File “/home/dwhea/.local/lib/python3.7/site-packages/usb/core.py”, line 1077, in ctrl_transfer
self.__get_timeout(timeout))
File “/home/dwhea/.local/lib/python3.7/site-packages/usb/backend/libusb1.py”, line 901, in ctrl_transfer
timeout))
File “/home/dwhea/.local/lib/python3.7/site-packages/usb/backend/libusb1.py”, line 602, in _check
raise USBTimeoutError(_strerror(ret), ret, _libusb_errno[ret])
usb.core.USBTimeoutError: [Errno 110] Operation timed out

I realized I was using the wrong binary for my kvim3l board, and tried the proper command

$ /tools/update bl2_boot u-boot_kvim3l_noab.bin

but this failed in the same way.

So I then tried boot-g12.py with the correct u-boot_kvim3l_noab.bin and it worked!

$ boot-g12.py u-boot_kvim3l_noab.bin
Firmware Version :
ROM: 3.2 Stage: 0.0
Need Password: 0 Password OK: 0
Writing u-boot_kvim3l_noab.bin at 0xfffa0000…
[DONE]
Running at 0xfffa0000…
[DONE]
AMLC dataSize=16384, offset=65536, seq=0…
[DONE]
AMLC dataSize=49152, offset=393216, seq=1…
[DONE]
AMLC dataSize=16384, offset=229376, seq=2…
[DONE]
AMLC dataSize=49152, offset=245760, seq=3…
[DONE]
AMLC dataSize=16384, offset=65536, seq=4…
[DONE]
AMLC dataSize=49152, offset=393216, seq=5…
[DONE]
AMLC dataSize=16384, offset=229376, seq=6…
[DONE]
AMLC dataSize=49152, offset=245760, seq=7…
[DONE]
AMLC dataSize=49152, offset=294912, seq=8…
[DONE]
AMLC dataSize=16384, offset=65536, seq=9…
[DONE]
AMLC dataSize=1068912, offset=81920, seq=10…
[DONE]
[BL2 END]

$ fastboot devices
A60CC14F506A fastboot

Hope this helps someone else!

I am experiencing the same.