Skip to content

Problem when using the aml flash tool on MacOS #39

@verylovestars

Description

@verylovestars

Problem when using aml flash tool with VIM3L when trying to execute the bl2_boot command

Logs:

LIBUSB_DEBUG=4 ~/hardware/utils/aml-flash-tool/tools/macos/update bl2_boot ~/Downloads/vim3l-android-9-64bit-v241107-ota/bootloader.img
[timestamp] [threadID] facility level [function call] <message>
--------------------------------------------------------------------------------
[ 0.000010] [0001f8cf] libusb: debug [libusb_init_context] libusb v1.0.29.11953
[ 0.000018] [0001f8cf] libusb: debug [usbi_add_event_source] add fd 3 events 1
[ 0.000053] [0001f8d0] libusb: debug [darwin_event_thread_main] creating hotplug event source
[ 0.000156] [0001f8d0] libusb: debug [darwin_event_thread_main] darwin event thread ready to receive events
...
[ 0.002403] [0001f8cf] libusb: debug [darwin_get_cached_device] caching new device with sessionID 0x9eb95b3c7
[ 0.002476] [0001f8cf] libusb: debug [darwin_cache_device_descriptor] cached device descriptor:
[ 0.002479] [0001f8cf] libusb: debug [darwin_cache_device_descriptor]   bDescriptorType:    0x01
[ 0.002480] [0001f8cf] libusb: debug [darwin_cache_device_descriptor]   bcdUSB:             0x0200
[ 0.002480] [0001f8cf] libusb: debug [darwin_cache_device_descriptor]   bDeviceClass:       0x00
[ 0.002481] [0001f8cf] libusb: debug [darwin_cache_device_descriptor]   bDeviceSubClass:    0x00
[ 0.002482] [0001f8cf] libusb: debug [darwin_cache_device_descriptor]   bDeviceProtocol:    0x00
[ 0.002483] [0001f8cf] libusb: debug [darwin_cache_device_descriptor]   bMaxPacketSize0:    0x40
[ 0.002484] [0001f8cf] libusb: debug [darwin_cache_device_descriptor]   idVendor:           0x1b8e
[ 0.002484] [0001f8cf] libusb: debug [darwin_cache_device_descriptor]   idProduct:          0xc003
[ 0.002485] [0001f8cf] libusb: debug [darwin_cache_device_descriptor]   bcdDevice:          0x0020
[ 0.002486] [0001f8cf] libusb: debug [darwin_cache_device_descriptor]   iManufacturer:      0x01
[ 0.002487] [0001f8cf] libusb: debug [darwin_cache_device_descriptor]   iProduct:           0x02
[ 0.002487] [0001f8cf] libusb: debug [darwin_cache_device_descriptor]   iSerialNumber:      0x00
[ 0.002488] [0001f8cf] libusb: debug [darwin_cache_device_descriptor]   bNumConfigurations: 0x01
[ 0.002493] [0001f8cf] libusb: debug [darwin_check_configuration] active config: 1, first config: 1
[ 0.002494] [0001f8cf] libusb: debug [process_new_device] allocating new device in context 0x101786870 for with session 0x9eb95b3c7
[ 0.002495] [0001f8cf] libusb: debug [process_new_device] found device with address 1 port = 0 parent = 0x0 at 0xa77005f3a
[ 0.002499] [0001f8cf] libusb: debug [libusb_init_context] installing new context as implicit default
[ 0.002501] [0001f8cf] libusb: debug [libusb_get_device_list]  
[ 0.002513] [0001f8cf] libusb: debug [libusb_get_device_list]  
[ 0.002518] [0001f8cf] libusb: debug [libusb_get_device_descriptor]  
[ 0.002519] [0001f8cf] libusb: debug [libusb_get_config_descriptor] index 0
[ 0.002522] [0001f8cf] libusb: debug [libusb_get_device_descriptor]  
[ 0.002522] [0001f8cf] libusb: debug [libusb_get_config_descriptor] index 0
[ 0.002524] [0001f8cf] libusb: debug [libusb_get_config_descriptor] index 1
[ 0.002525] [0001f8cf] libusb: debug [parse_endpoint] skipping descriptor 0x25
[ 0.002528] [0001f8cf] libusb: debug [libusb_get_config_descriptor] index 2
[ 0.002529] [0001f8cf] libusb: debug [libusb_get_config_descriptor] index 3
[ 0.002532] [0001f8cf] libusb: debug [libusb_get_config_descriptor] index 4
[ 0.002535] [0001f8cf] libusb: debug [libusb_get_config_descriptor] index 5
[ 0.002540] [0001f8cf] libusb: debug [libusb_get_device_descriptor]  
[ 0.002541] [0001f8cf] libusb: debug [libusb_get_config_descriptor] index 0
[ 0.002542] [0001f8cf] libusb: debug [parse_configuration] skipping descriptor 0xb
[ 0.002544] [0001f8cf] libusb: debug [libusb_get_device_list]  
[ 0.002551] [0001f8cf] libusb: debug [libusb_get_device_list]  
[ 0.002558] [0001f8cf] libusb: debug [libusb_open] open 1.1
[ 0.002576] [0001f8cf] libusb: debug [darwin_open] device open for access
[ 0.002579] [0001f8cf] libusb: debug [libusb_claim_interface] interface 0
[ 0.002693] [0001f8cf] libusb: debug [get_endpoints] building table of endpoints.
[ 0.002701] [0001f8cf] libusb: debug [get_endpoints] interface: 0 pipe 1: dir: 1 number: 1
[ 0.002705] [0001f8cf] libusb: debug [get_endpoints] interface: 0 pipe 2: dir: 0 number: 2
[ 0.002712] [0001f8cf] libusb: debug [darwin_claim_interface] interface opened
[ 0.002751] [0001f8cf] libusb: debug [libusb_submit_transfer] transfer 0x1017862c0
[ 0.002815] [0001f8cf] libusb: debug [libusb_get_next_timeout] no URB with timeout or all handled by OS; no timeout!
[ 0.002818] [0001f8cf] libusb: debug [libusb_handle_events_timeout_completed] doing our own event handling
[ 0.002819] [0001f8cf] libusb: debug [handle_events] event sources modified, reallocating event data
[ 0.002821] [0001f8cf] libusb: debug [usbi_wait_for_events] poll() 1 fds with timeout in 60000ms
[ 0.002929] [0001f8d0] libusb: debug [darwin_async_io_callback] an async io operation has completed
[ 0.002940] [0001f8cf] libusb: debug [usbi_wait_for_events] poll() returned 1
[ 0.002942] [0001f8cf] libusb: debug [handle_event_trigger] event triggered
[ 0.002943] [0001f8cf] libusb: debug [darwin_handle_transfer_completion] handling transfer completion type control with kernel status 0
[ 0.002945] [0001f8cf] libusb: debug [usbi_handle_transfer_completion] transfer 0x1017862c0 has callback 0x100e8d564
[ 0.002947] [0001f8cf] libusb: debug [sync_transfer_cb] actual_length=0
[ 0.002948] [0001f8cf] libusb: debug [libusb_free_transfer] transfer 0x1017862c0
[ 0.002950] [0001f8cf] libusb: debug [libusb_submit_transfer] transfer 0x1017862c0
[ 0.002951] [0001f8cf] libusb: debug [ep_to_pipeRef] converting ep address 0x81 to pipeRef and interface
[ 0.002952] [0001f8cf] libusb: debug [ep_to_pipeRef] pipe 1 on interface 0 matches
[ 0.002982] [0001f8cf] libusb: debug [libusb_get_next_timeout] no URB with timeout or all handled by OS; no timeout!
[ 0.002984] [0001f8cf] libusb: debug [libusb_handle_events_timeout_completed] doing our own event handling
[ 0.002986] [0001f8cf] libusb: debug [usbi_wait_for_events] poll() 1 fds with timeout in 60000ms
[ 0.003080] [0001f8d0] libusb: debug [darwin_async_io_callback] an async io operation has completed
[ 0.003088] [0001f8cf] libusb: debug [usbi_wait_for_events] poll() returned 1
[ 0.003091] [0001f8cf] libusb: debug [handle_event_trigger] event triggered
[ 0.003093] [0001f8cf] libusb: debug [darwin_handle_transfer_completion] handling transfer completion type bulk with kernel status -536870163
[ 0.003094] [0001f8cf] libusb: warning [darwin_transfer_status] transfer error: device not responding (value = 0xe00002ed)
[ 0.003096] [0001f8cf] libusb: debug [usbi_handle_transfer_completion] transfer 0x1017862c0 has callback 0x100e8d564
[ 0.003097] [0001f8cf] libusb: debug [sync_transfer_cb] actual_length=0
[ 0.003098] [0001f8cf] libusb: debug [libusb_free_transfer] transfer 0x1017862c0
[LUSB]get cbw failed, want 512, ret -5
[LUSB]ERR(L1194):fail in parse cmd, ret=-1101
[ 0.003114] [0001f8cf] libusb: debug [libusb_release_interface] interface 0
[ 0.003308] [0001f8cf] libusb: debug [libusb_close]  
[ 0.003332] [0001f8cf] libusb: debug [libusb_exit]  
[ 0.003341] [0001f8d0] libusb: debug [darwin_event_thread_main] darwin event thread exiting
[ 0.003388] [0001f8cf] libusb: error [darwin_cleanup_devices] device still referenced at libusb_exit
[ 0.003390] [0001f8cf] libusb: error [darwin_cleanup_devices] device still referenced at libusb_exit
[ 0.003391] [0001f8cf] libusb: error [darwin_cleanup_devices] device still referenced at libusb_exit
[ 0.003392] [0001f8cf] libusb: debug [usbi_remove_event_source] remove fd 3
[ 0.003395] [0001f8cf] libusb: warning [libusb_exit] device 1.1 still referenced
[ 0.003396] [0001f8cf] libusb: warning [libusb_exit] device 2.1 still referenced
[ 0.003397] [0001f8cf] libusb: warning [libusb_exit] device 0.1 still referenced

Hardware:
OS MacOS 26.1
CPU M4 Pro

Tested on Vim3L, ultimately failed to achieve a positive result.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions