Skip to content

Instantly share code, notes, and snippets.

Created June 15, 2009 12:44
Show Gist options
  • Save anonymous/130078 to your computer and use it in GitHub Desktop.
Save anonymous/130078 to your computer and use it in GitHub Desktop.
usbmuxd: starting
usb_set_debug: Setting debugging level to 5 (on)
usbmuxd: waiting for connection
... run iphone_id <serial> ...
usbmuxd: new client connected (fd=5)
usbmuxd: usbmuxd_client_init_thread[b7de0b90]: started (fd=5)
usbmuxd: usbmuxd_client_init_thread[b7de0b90]: Got scan packet!
usbmuxd: usbmuxd_send_result: tag=2 result=0
usbmuxd: usbmuxd_client_init_thread[b7de0b90]: usb init
usb_os_init: Found USB VFS at /dev/bus/usb
usbmuxd: usbmuxd_client_init_thread[b7de0b90]: usb find busses
usb_os_find_busses: Found 003
usb_os_find_busses: Found 002
usb_os_find_busses: Found 001
usbmuxd: usbmuxd_client_init_thread[b7de0b90]: usb find devices
usb_os_find_devices: Found 026 on 003
skipped 3 class/vendor specific interface descriptors
skipped 2 class/vendor specific interface descriptors
skipping descriptor 0x25
skipped 1 class/vendor specific endpoint descriptors
skipped 1 class/vendor specific interface descriptors
usb_os_find_devices: Found 009 on 003
skipping descriptor 0x21
skipped 1 class/vendor specific endpoint descriptors
usb_os_find_devices: Found 010 on 003
skipped 1 class/vendor specific interface descriptors
skipped 1 class/vendor specific interface descriptors
usb_os_find_devices: Found 008 on 003
usb_os_find_devices: Found 007 on 003
skipping descriptor 0x21
skipped 1 class/vendor specific endpoint descriptors
usb_os_find_devices: Found 006 on 003
usb_os_find_devices: Found 005 on 003
skipped 1 class/vendor specific interface descriptors
usb_os_find_devices: Found 004 on 003
usb_os_find_devices: Found 003 on 003
usb_os_find_devices: Found 002 on 003
usb_os_find_devices: Found 001 on 003
error obtaining child information: Inappropriate ioctl for device
error obtaining child information: Inappropriate ioctl for device
error obtaining child information: Inappropriate ioctl for device
error obtaining child information: Inappropriate ioctl for device
error obtaining child information: Inappropriate ioctl for device
usb_os_find_devices: Found 001 on 002
usb_os_find_devices: Found 001 on 001
usbmuxd: usbmuxd_client_init_thread[b7de0b90]: Looking for attached devices...
usbmuxd: usbmuxd_client_init_thread[b7de0b90]: Found device on bus 003, id 026
usbmuxd: usbmuxd_client_init_thread[b7de0b90]: Waiting for connect request
usbmuxd: new client connected (fd=6)
usbmuxd: usbmuxd_client_init_thread[b75dfb90]: started (fd=6)
usbmuxd: usbmuxd_client_init_thread[b75dfb90]: Setting up connection to usb device 3:26 on port 62078
usbmuxd: usbmuxd_client_init_thread[b75dfb90]: creating new usb connection, device 3:26
usb_os_init: Found USB VFS at /dev/bus/usb
usb_os_find_busses: Found 003
usb_os_find_busses: Found 002
usb_os_find_busses: Found 001
usb_os_find_devices: Found 026 on 003
skipped 3 class/vendor specific interface descriptors
skipped 2 class/vendor specific interface descriptors
skipping descriptor 0x25
skipped 1 class/vendor specific endpoint descriptors
skipped 1 class/vendor specific interface descriptors
usb_os_find_devices: Found 009 on 003
skipping descriptor 0x21
skipped 1 class/vendor specific endpoint descriptors
usb_os_find_devices: Found 010 on 003
skipped 1 class/vendor specific interface descriptors
skipped 1 class/vendor specific interface descriptors
usb_os_find_devices: Found 008 on 003
usb_os_find_devices: Found 007 on 003
skipping descriptor 0x21
skipped 1 class/vendor specific endpoint descriptors
usb_os_find_devices: Found 006 on 003
usb_os_find_devices: Found 005 on 003
skipped 1 class/vendor specific interface descriptors
usb_os_find_devices: Found 004 on 003
usb_os_find_devices: Found 003 on 003
usb_os_find_devices: Found 002 on 003
usb_os_find_devices: Found 001 on 003
error obtaining child information: Inappropriate ioctl for device
error obtaining child information: Inappropriate ioctl for device
error obtaining child information: Inappropriate ioctl for device
error obtaining child information: Inappropriate ioctl for device
error obtaining child information: Inappropriate ioctl for device
usb_os_find_devices: Found 001 on 002
usb_os_find_devices: Found 001 on 001
claiming interface... done.
usbmux_get_specific_device: success
usbmuxd: usbmuxd_client_init_thread[b75dfb90]: add to device list
usbmuxd: usbmuxd_client_init_thread[b75dfb90]: device_count = 0
usbmux_new_client: send_to_device (30000 --> 62078)
===============================
send_to_device: trying to send
0000: 00 00 00 06 00 00 00 1c 75 30 f2 7e 00 00 00 00 | ........u0.~....
0010: 00 00 00 00 50 02 02 00 00 00 00 1c | ....P.......
===============================
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
send_to_device: sent to device
0000: 00 00 00 06 00 00 00 1c 75 30 f2 7e 00 00 00 00 | ........u0.~....
0010: 00 00 00 00 50 02 02 00 00 00 00 1c | ....P.......
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
usbmuxd: usbmuxd_bulk_reader_thread: started
usbmuxd: usbmuxd_client_handler_thread[b65bcb90]: started (device 3:26, use_count=1)
usbmuxd: usbmuxd_send_result: tag=3 result=0
usbmuxd: handleConnectResult: Success
usbmuxd: usbmuxd_client_reader_thread[b5dbbb90]: started (device 3:26, use_count=1)
<<<<<<<<<<<<<<<<<<<<<<<<<<<
recv_from_device_timeout: received from device:
0000: 00 00 00 06 00 00 00 1c f2 7e 75 30 00 00 00 00 | .........~u0....
0010: 00 00 00 01 52 12 02 00 3e 0a 3c 2f | ....R...>.</
<<<<<<<<<<<<<<<<<<<<<<<<<<<
usbmux_pullbulk: recv_from_device_timeout (62078 --> 30000)
usbmux_pullbulk: found client, calling append_receive_buffer
client is still waiting for handshake.
yes, got syn+ack ; replying with ack.
append_receive_buffer: send_to_device (30000 --> 62078)
===============================
send_to_device: trying to send
0000: 00 00 00 06 00 00 00 1c 75 30 f2 7e 00 00 00 01 | ........u0.~....
0010: 01 00 00 00 50 10 02 00 00 00 00 1c | ....P.......
===============================
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
send_to_device: sent to device
0000: 00 00 00 06 00 00 00 1c 75 30 f2 7e 00 00 00 01 | ........u0.~....
0010: 01 00 00 00 50 10 02 00 00 00 00 1c | ....P.......
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
usbmux_send: send_to_device(30000 --> 62078)
===============================
send_to_device: trying to send
0000: 00 00 00 06 00 00 01 15 75 30 f2 7e 00 00 00 01 | ........u0.~....
0010: 00 00 00 00 50 10 02 00 00 00 01 15 00 00 00 f5 | ....P...........
0020: 3c 3f 78 6d 6c 20 76 65 72 73 69 6f 6e 3d 22 31 | <?xml version="1
0030: 2e 30 22 20 65 6e 63 6f 64 69 6e 67 3d 22 55 54 | .0" encoding="UT
0040: 46 2d 38 22 3f 3e 0a 3c 21 44 4f 43 54 59 50 45 | F-8"?>.<!DOCTYPE
0050: 20 70 6c 69 73 74 20 50 55 42 4c 49 43 20 22 2d | plist PUBLIC "-
0060: 2f 2f 41 70 70 6c 65 20 43 6f 6d 70 75 74 65 72 | //Apple Computer
0070: 2f 2f 44 54 44 20 50 4c 49 53 54 20 31 2e 30 2f | //DTD PLIST 1.0/
0080: 2f 45 4e 22 20 22 68 74 74 70 3a 2f 2f 77 77 77 | /EN" "http://www
0090: 2e 61 70 70 6c 65 2e 63 6f 6d 2f 44 54 44 73 2f | .apple.com/DTDs/
00a0: 50 72 6f 70 65 72 74 79 4c 69 73 74 2d 31 2e 30 | PropertyList-1.0
00b0: 2e 64 74 64 22 3e 0a 3c 70 6c 69 73 74 20 76 65 | .dtd">.<plist ve
00c0: 72 73 69 6f 6e 3d 22 31 2e 30 22 3e 0a 3c 64 69 | rsion="1.0">.<di
00d0: 63 74 3e 0a 09 3c 6b 65 79 3e 52 65 71 75 65 73 | ct>..<key>Reques
00e0: 74 3c 2f 6b 65 79 3e 0a 09 3c 73 74 72 69 6e 67 | t</key>..<string
00f0: 3e 51 75 65 72 79 54 79 70 65 3c 2f 73 74 72 69 | >QueryType</stri
0100: 6e 67 3e 0a 3c 2f 64 69 63 74 3e 0a 3c 2f 70 6c | ng>.</dict>.</pl
0110: 69 73 74 3e 0a | ist>.
===============================
<<<<<<<<<<<<<<<<<<<<<<<<<<<
recv_from_device_timeout: received from device:
0000: 00 00 00 06 00 00 00 20 f2 7e 75 30 00 00 00 01 | ....... .~u0....
0010: 00 00 00 fa 57 10 02 00 6f 77 53 65 00 00 01 56 | ....W...owSe...V
<<<<<<<<<<<<<<<<<<<<<<<<<<<
usbmux_pullbulk: recv_from_device_timeout (62078 --> 30000)
usbmux_pullbulk: found client, calling append_receive_buffer
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
send_to_device: sent to device
0000: 00 00 00 06 00 00 01 15 75 30 f2 7e 00 00 00 01 | ........u0.~....
0010: 00 00 00 00 50 10 02 00 00 00 01 15 00 00 00 f5 | ....P...........
0020: 3c 3f 78 6d 6c 20 76 65 72 73 69 6f 6e 3d 22 31 | <?xml version="1
0030: 2e 30 22 20 65 6e 63 6f 64 69 6e 67 3d 22 55 54 | .0" encoding="UT
0040: 46 2d 38 22 3f 3e 0a 3c 21 44 4f 43 54 59 50 45 | F-8"?>.<!DOCTYPE
0050: 20 70 6c 69 73 74 20 50 55 42 4c 49 43 20 22 2d | plist PUBLIC "-
0060: 2f 2f 41 70 70 6c 65 20 43 6f 6d 70 75 74 65 72 | //Apple Computer
0070: 2f 2f 44 54 44 20 50 4c 49 53 54 20 31 2e 30 2f | //DTD PLIST 1.0/
0080: 2f 45 4e 22 20 22 68 74 74 70 3a 2f 2f 77 77 77 | /EN" "http://www
0090: 2e 61 70 70 6c 65 2e 63 6f 6d 2f 44 54 44 73 2f | .apple.com/DTDs/
00a0: 50 72 6f 70 65 72 74 79 4c 69 73 74 2d 31 2e 30 | PropertyList-1.0
00b0: 2e 64 74 64 22 3e 0a 3c 70 6c 69 73 74 20 76 65 | .dtd">.<plist ve
00c0: 72 73 69 6f 6e 3d 22 31 2e 30 22 3e 0a 3c 64 69 | rsion="1.0">.<di
00d0: 63 74 3e 0a 09 3c 6b 65 79 3e 52 65 71 75 65 73 | ct>..<key>Reques
00e0: 74 3c 2f 6b 65 79 3e 0a 09 3c 73 74 72 69 6e 67 | t</key>..<string
00f0: 3e 51 75 65 72 79 54 79 70 65 3c 2f 73 74 72 69 | >QueryType</stri
0100: 6e 67 3e 0a 3c 2f 64 69 63 74 3e 0a 3c 2f 70 6c | ng>.</dict>.</pl
0110: 69 73 74 3e 0a | ist>.
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
append_receive_buffer: putting 4 bytes into client's recv_buffer
<<<<<<<<<<<<<<<<<<<<<<<<<<<
recv_from_device_timeout: received from device:
0000: 00 00 00 06 00 00 01 72 f2 7e 75 30 00 00 00 05 | .......r.~u0....
0010: 00 00 00 fa 57 10 02 00 6f 77 53 65 3c 3f 78 6d | ....W...owSe<?xm
0020: 6c 20 76 65 72 73 69 6f 6e 3d 22 31 2e 30 22 20 | l version="1.0"
0030: 65 6e 63 6f 64 69 6e 67 3d 22 55 54 46 2d 38 22 | encoding="UTF-8"
0040: 3f 3e 0a 3c 21 44 4f 43 54 59 50 45 20 70 6c 69 | ?>.<!DOCTYPE pli
0050: 73 74 20 50 55 42 4c 49 43 20 22 2d 2f 2f 41 70 | st PUBLIC "-//Ap
0060: 70 6c 65 2f 2f 44 54 44 20 50 4c 49 53 54 20 31 | ple//DTD PLIST 1
0070: 2e 30 2f 2f 45 4e 22 20 22 68 74 74 70 3a 2f 2f | .0//EN" "http://
0080: 77 77 77 2e 61 70 70 6c 65 2e 63 6f 6d 2f 44 54 | www.apple.com/DT
0090: 44 73 2f 50 72 6f 70 65 72 74 79 4c 69 73 74 2d | Ds/PropertyList-
00a0: 31 2e 30 2e 64 74 64 22 3e 0a 3c 70 6c 69 73 74 | 1.0.dtd">.<plist
00b0: 20 76 65 72 73 69 6f 6e 3d 22 31 2e 30 22 3e 0a | version="1.0">.
00c0: 3c 64 69 63 74 3e 0a 09 3c 6b 65 79 3e 52 65 71 | <dict>..<key>Req
00d0: 75 65 73 74 3c 2f 6b 65 79 3e 0a 09 3c 73 74 72 | uest</key>..<str
00e0: 69 6e 67 3e 51 75 65 72 79 54 79 70 65 3c 2f 73 | ing>QueryType</s
00f0: 74 72 69 6e 67 3e 0a 09 3c 6b 65 79 3e 52 65 73 | tring>..<key>Res
0100: 75 6c 74 3c 2f 6b 65 79 3e 0a 09 3c 73 74 72 69 | ult</key>..<stri
0110: 6e 67 3e 53 75 63 63 65 73 73 3c 2f 73 74 72 69 | ng>Success</stri
0120: 6e 67 3e 0a 09 3c 6b 65 79 3e 54 79 70 65 3c 2f | ng>..<key>Type</
0130: 6b 65 79 3e 0a 09 3c 73 74 72 69 6e 67 3e 63 6f | key>..<string>co
0140: 6d 2e 61 70 70 6c 65 2e 6d 6f 62 69 6c 65 2e 6c | m.apple.mobile.l
0150: 6f 63 6b 64 6f 77 6e 3c 2f 73 74 72 69 6e 67 3e | ockdown</string>
0160: 0a 3c 2f 64 69 63 74 3e 0a 3c 2f 70 6c 69 73 74 | .</dict>.</plist
0170: 3e 0a | >.
<<<<<<<<<<<<<<<<<<<<<<<<<<<
usbmux_pullbulk: recv_from_device_timeout (62078 --> 30000)
usbmux_pullbulk: found client, calling append_receive_buffer
append_receive_buffer: putting 342 bytes into client's recv_buffer
recv_buf_timeout: fd=5 recv returned 0
usbmuxd: usbmuxd_client_init_thread[b7de0b90]: Did not receive any connect request.
usbmuxd: usbmuxd_client_init_thread[b7de0b90]: terminating
usbmuxd: usbmuxd_client_init_thread[b7de0b90]: terminated
usbmuxd: reclaimed client thread (fd=5)
<<<<<<<<<<<<<<<<<<<<<<<<<<<
recv_from_device_timeout: received from device:
0000: 00 00 00 06 00 00 00 1c f2 7e 75 30 00 00 01 5b | .........~u0...[
0010: 00 00 00 fa 50 04 00 00 40 06 00 00 | ....P...@...
<<<<<<<<<<<<<<<<<<<<<<<<<<<
usbmux_pullbulk: recv_from_device_timeout (62078 --> 30000)
usbmux_pullbulk: found client, calling append_receive_buffer
peer sent connection reset. setting error: -104
usbmuxd: usbmuxd_client_reader_thread[b5dbbb90]: encountered USB read error: -104
usbmuxd: usbmuxd_client_reader_thread[b5dbbb90]: terminated
usbmuxd: usbmuxd_client_handler_thread[b65bcb90]: USB write error: -104
usbmuxd: usbmuxd_client_handler_thread[b65bcb90]: terminating
usbmuxd: usbmuxd_client_handler_thread[b65bcb90]: terminated
usbmuxd: usbmuxd_client_init_thread[b75dfb90]: closing connection
===============================
send_to_device: trying to send
0000: 00 00 00 06 00 00 00 1c 75 30 f2 7e 00 00 00 fa | ........u0.~....
0010: 00 00 01 5b 50 01 00 00 00 00 00 1c | ...[P.......
===============================
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
send_to_device: sent to device
0000: 00 00 00 06 00 00 00 1c 75 30 f2 7e 00 00 00 fa | ........u0.~....
0010: 00 00 01 5b 50 01 00 00 00 00 00 1c | ...[P.......
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
usbmuxd: usbmuxd_client_init_thread[b75dfb90]: terminating
usbmuxd: usbmuxd_client_init_thread[b75dfb90]: last client disconnected, cleaning up
usbmuxd: usbmuxd_client_init_thread[b75dfb90]: joining bulk_reader...
<<<<<<<<<<<<<<<<<<<<<<<<<<<
recv_from_device_timeout: received from device:
0000: 00 00 00 06 00 00 00 1c f2 7e 75 30 00 00 01 5b | .........~u0...[
0010: 00 00 00 fa 55 04 00 00 36 38 36 5d | ....U...686]
<<<<<<<<<<<<<<<<<<<<<<<<<<<
usbmux_pullbulk: recv_from_device_timeout (62078 --> 30000)
usbmux_pullbulk: found client, calling append_receive_buffer
peer sent connection reset. setting error: -104
freeing up connection (30000->62078)
usbmuxd: usbmuxd_bulk_reader_thread: terminated
usbmuxd: usbmuxd_client_init_thread[b75dfb90]: terminated
usbmuxd: reclaimed client thread (fd=6)
... unplug device and terminate usbmuxd ...
CTRL+C pressed
Checking if we can terminate (no more devices attached)...
usb_os_init: Found USB VFS at /dev/bus/usb
usb_os_find_busses: Found 003
usb_os_find_busses: Found 002
usb_os_find_busses: Found 001
usb_os_find_devices: Found 009 on 003
skipping descriptor 0x21
skipped 1 class/vendor specific endpoint descriptors
usb_os_find_devices: Found 010 on 003
skipped 1 class/vendor specific interface descriptors
skipped 1 class/vendor specific interface descriptors
usb_os_find_devices: Found 008 on 003
usb_os_find_devices: Found 007 on 003
skipping descriptor 0x21
skipped 1 class/vendor specific endpoint descriptors
usb_os_find_devices: Found 006 on 003
usb_os_find_devices: Found 005 on 003
skipped 1 class/vendor specific interface descriptors
usb_os_find_devices: Found 004 on 003
usb_os_find_devices: Found 003 on 003
usb_os_find_devices: Found 002 on 003
usb_os_find_devices: Found 001 on 003
error obtaining child information: Inappropriate ioctl for device
error obtaining child information: Inappropriate ioctl for device
error obtaining child information: Inappropriate ioctl for device
error obtaining child information: Inappropriate ioctl for device
usb_os_find_devices: Found 001 on 002
usb_os_find_devices: Found 001 on 001
check_fd: EINTR
usbmuxd: terminating
usbmuxd: waiting for child threads to terminate...
usbmuxd: usbmuxd: terminated
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment