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