You are not logged in.
Pages: 1
working with a 4th gen ipod touch
checking the usbmuxd service, it recognizes the ipod when attached via usb, and the service starts, something goes wrong here but i don't know what
sfo@box /mnt % systemctl status usbmuxd.service
● usbmuxd.service - Socket daemon for the usbmux protocol used by Apple devices
Loaded: loaded (/usr/lib/systemd/system/usbmuxd.service; static)
Active: active (running) since Thu 2023-12-21 10:30:56 EST; 8min ago
Docs: man:usbmuxd(8)
Main PID: 213183 (usbmuxd)
Tasks: 2 (limit: 18948)
Memory: 1.6M (peak: 2.2M)
CPU: 90ms
CGroup: /system.slice/usbmuxd.service
└─213183 /usr/bin/usbmuxd --user usbmux --systemd
Dec 21 10:30:56 box usbmuxd[213183]: [10:30:56.390][3] Using libusb 1.0.26
Dec 21 10:30:56 box usbmuxd[213183]: libusb: warning [op_get_configuration] device unconfigured
Dec 21 10:30:56 box usbmuxd[213183]: libusb: error [op_get_active_config_descriptor] device unconfigured
Dec 21 10:30:56 box usbmuxd[213183]: [10:30:56.396][3] Could not get old configuration descriptor for device 3-10: LIBUSB_ERROR_NOT_FOUND
Dec 21 10:30:56 box usbmuxd[213183]: [10:30:56.492][3] Initialization complete
Dec 21 10:30:56 box usbmuxd[213183]: [10:30:56.492][3] Enabled exit on SIGUSR1 if no devices are attached. Start a new instance with "--exit" to trigger.
Dec 21 10:30:56 box usbmuxd[213183]: [10:30:56.492][3] Connecting to new device on location 0x3000a as ID 1
Dec 21 10:30:56 box usbmuxd[213183]: [10:30:56.493][3] Connected to v2.0 device 1 on location 0x3000a with serial number 519625bc75f3b19ba32a75667e26b9e58249e6e1
Dec 21 10:30:56 box usbmuxd[213183]: [10:30:56.604][1] preflight_worker_handle_device_add: The stored pair record for device 519625bc75f3b19ba32a75667e26b9e58249e6e1 is invalid. Removing.
Dec 21 10:30:57 box usbmuxd[213183]: [10:30:57.035][1] preflight_worker_handle_device_add: ERROR StartSession failed on device 519625bc75f3b19ba32a75667e26b9e58249e6e1, lockdown error -5
lsusb shows the device is recognized, lsblk does not
sfo@box ~ % lsusb
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 001 Device 002: ID 8087:8000 Intel Corp. Integrated Rate Matching Hub
Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 002 Device 002: ID 8087:8008 Intel Corp. Integrated Rate Matching Hub
Bus 003 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 003 Device 002: ID 05e3:0608 Genesys Logic, Inc. Hub
Bus 003 Device 003: ID 0bda:0129 Realtek Semiconductor Corp. RTS5129 Card Reader Controller
Bus 003 Device 004: ID 1111:1111 Pandora International Ltd. Matias RGB Backlit Wired Keyboard
Bus 003 Device 005: ID 06cb:2970 Synaptics, Inc. touchpad
Bus 003 Device 006: ID 046d:c542 Logitech, Inc. M185 compact wireless mouse
Bus 003 Device 007: ID 04f2:b469 Chicony Electronics Co., Ltd HD WebCam
Bus 003 Device 008: ID 0489:e092 Foxconn / Hon Hai
Bus 003 Device 009: ID 05ac:129e Apple, Inc. iPod Touch 4.Gen
Bus 004 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
journal output:
Dec 21 10:06:51 box systemd[1]: /usr/lib/systemd/system/usbmuxd.service:7: PIDFile= references a path below legacy directory /var/run/, updating /var/run/usbmuxd.pid → /run/usbmuxd.pid; please update the unit file accordingly.
Dec 21 10:06:53 box kernel: usb 3-2: new high-speed USB device number 9 using xhci_hcd
Dec 21 10:06:53 box kernel: usb 3-2: New USB device found, idVendor=05ac, idProduct=129e, bcdDevice= 4.10
Dec 21 10:06:53 box kernel: usb 3-2: New USB device strings: Mfr=1, Product=2, SerialNumber=3
Dec 21 10:06:53 box kernel: usb 3-2: Product: iPod
Dec 21 10:06:53 box kernel: usb 3-2: Manufacturer: Apple Inc.
Dec 21 10:06:53 box kernel: usb 3-2: SerialNumber: 519625bc75f3b19ba32a75667e26b9e58249e6e1
Dec 21 10:06:54 box systemd[1]: /usr/lib/systemd/system/usbmuxd.service:7: PIDFile= references a path below legacy directory /var/run/, updating /var/run/usbmuxd.pid → /run/usbmuxd.pid; please update the unit file accordingly.
Dec 21 10:06:54 box kernel: usbcore: registered new device driver apple-mfi-fastcharge
Dec 21 10:06:54 box systemd[1]: Started Socket daemon for the usbmux protocol used by Apple devices.
Dec 21 10:06:54 box usbmuxd[177991]: [10:06:54.536][3] usbmuxd v1.1.1 starting up
Dec 21 10:06:54 box usbmuxd[177991]: [10:06:54.540][3] Successfully dropped privileges to 'usbmux'
Dec 21 10:06:54 box usbmuxd[177991]: [10:06:54.540][3] Using libusb 1.0.26
Dec 21 10:06:54 box usbmuxd[177991]: [10:06:54.551][3] Initialization complete
Dec 21 10:06:54 box usbmuxd[177991]: [10:06:54.552][3] Enabled exit on SIGUSR1 if no devices are attached. Start a new instance with "--exit" to trigger.
Dec 21 10:06:54 box usbmuxd[177991]: [10:06:54.552][3] Connecting to new device on location 0x30009 as ID 1
Dec 21 10:06:54 box usbmuxd[177991]: [10:06:54.552][3] Connected to v2.0 device 1 on location 0x30009 with serial number 519625bc75f3b19ba32a75667e26b9e58249e6e1
Dec 21 10:06:54 box kernel: ipheth 3-2:4.2: ipheth_enable_ncm: usb_control_msg: -32
Dec 21 10:06:54 box kernel: ipheth 3-2:4.2: Apple iPhone USB Ethernet device attached
Dec 21 10:06:54 box kernel: usbcore: registered new interface driver ipheth
Dec 21 10:06:54 box NetworkManager[865]: <info> [1703171214.6671] manager: (eth0): new Ethernet device (/org/freedesktop/NetworkManager/Devices/6)
Dec 21 10:06:54 box kernel: ipheth 3-2:4.2 enp0s20u2c4i2: renamed from eth0
Dec 21 10:06:54 box NetworkManager[865]: <info> [1703171214.6909] device (eth0): interface index 5 renamed iface from 'eth0' to 'enp0s20u2c4i2'
Dec 21 10:06:54 box NetworkManager[865]: <info> [1703171214.6958] device (enp0s20u2c4i2): state change: unmanaged -> unavailable (reason 'managed', sys-iface-state: 'external')
Dec 21 10:06:54 box NetworkManager[865]: <info> [1703171214.6990] settings: (enp0s20u2c4i2): created default wired connection 'Wired connection 2'
Dec 21 10:06:54 box usbmuxd[177991]: [10:06:54.782][1] preflight_worker_handle_device_add: The stored pair record for device 519625bc75f3b19ba32a75667e26b9e58249e6e1 is invalid. Removing.
Dec 21 10:06:55 box usbmuxd[177991]: [10:06:55.183][1] preflight_worker_handle_device_add: ERROR StartSession failed on device 519625bc75f3b19ba32a75667e26b9e58249e6e1, lockdown error -5
idevice can list its identifier (starting with 5, as seen above) but not pair with it
sfo@box ~ % idevicepair list
519625bc75f3b19ba32a75667e26b9e58249e6e1
e9b24beaecf9c608c5626ce6559806498a35d0b4
sfo@box ~ % idevicepair pair
No device found.
dmesg:
[ 7557.186973] usb 3-2: new high-speed USB device number 9 using xhci_hcd
[ 7557.328982] usb 3-2: New USB device found, idVendor=05ac, idProduct=129e, bcdDevice= 4.10
[ 7557.328998] usb 3-2: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[ 7557.329005] usb 3-2: Product: iPod
[ 7557.329009] usb 3-2: Manufacturer: Apple Inc.
[ 7557.329013] usb 3-2: SerialNumber: 519625bc75f3b19ba32a75667e26b9e58249e6e1
[ 7557.891999] usbcore: registered new device driver apple-mfi-fastcharge
[ 7558.055962] ipheth 3-2:4.2: ipheth_enable_ncm: usb_control_msg: -32
[ 7558.056169] ipheth 3-2:4.2: Apple iPhone USB Ethernet device attached
[ 7558.056208] usbcore: registered new interface driver ipheth
[ 7558.060745] ipheth 3-2:4.2 enp0s20u2c4i2: renamed from eth0
i tried generating the hash file from: https://wiki.archlinux.org/title/IPod
and saw no changes in the journal log, same problems persist.
it leaves me unable to use ifuse.
sfo@box ~ % ideviceinfo
ERROR: No device found!
any ideas on how to pair this?
Last edited by Bumble (2023-12-21 15:54:41)
Offline
try the following:
sudo systemctl restart usbmuxd
sudo avahi-daemon &
sudo usbfluxd -f -n &
printf '%s\n' 'Ready to connect with socat'
sudo socat tcp-listen:5000,fork unix-connect:/var/run/usbmuxd
Offline
try the following:
sudo systemctl restart usbmuxd sudo avahi-daemon & sudo usbfluxd -f -n & printf '%s\n' 'Ready to connect with socat' sudo socat tcp-listen:5000,fork unix-connect:/var/run/usbmuxd
i ran the last command in a separate terminal, i didn't see any different behavior for the pairing, this is the output.
sfo@box ~ % [19:24:42.709][3] usbfluxd v1.2.0 starting up
[19:24:42.709][4] Original usbmuxd socket file renamed: /var/run/usbmuxd -> /var/run/usbmuxd.orig
[19:24:42.709][4] Creating socket
[19:24:42.709][4] New Remote fd 4
[19:24:42.709][3] Initialization complete
Daemon already running on PID 850
[19:24:45.040][4] New client on fd 8 (pid 676720)
[19:24:45.040][4] Client 8 connection closed
[19:24:45.040][4] Disconnecting client 0xcb8230 fd 8
[19:24:50.046][4] New client on fd 8 (pid 676720)
[19:24:50.046][4] Client 8 connection closed
[19:24:50.046][4] Disconnecting client 0xcb8230 fd 8
[19:24:55.051][4] New client on fd 8 (pid 676720)
[19:24:55.051][4] Client 8 connection closed
[19:24:55.051][4] Disconnecting client 0xcb8230 fd 8
[19:25:00.053][4] New client on fd 8 (pid 676720)
[19:25:00.054][4] Client 8 connection closed
[19:25:00.054][4] Disconnecting client 0xcb8230 fd 8
[19:25:05.038][4] New client on fd 8 (pid 676720)
[19:25:05.038][4] Client 8 connection closed
[19:25:05.038][4] Disconnecting client 0xcb8230 fd 8
[19:25:10.044][4] New client on fd 8 (pid 676720)
[19:25:10.044][4] Client 8 connection closed
[19:25:10.044][4] Disconnecting client 0xcb8230 fd 8
[19:25:10.262][4] New client on fd 8 (pid 1028268)
[19:25:10.262][4] Client 8 connection closed
[19:25:10.262][4] Disconnecting client 0xcb8230 fd 8
[19:25:12.549][4] New client on fd 8 (pid 1028330)
[19:25:12.549][4] Client 8 connection closed
[19:25:12.549][4] Disconnecting client 0xcb8230 fd 8
[19:25:15.047][4] New client on fd 8 (pid 676720)
[19:25:15.047][4] Client 8 connection closed
[19:25:15.047][4] Disconnecting client 0xcb8230 fd 8
[19:25:20.050][4] New client on fd 8 (pid 676720)
[19:25:20.050][4] Client 8 connection closed
[19:25:20.050][4] Disconnecting client 0xcb8230 fd 8
Offline
i accidently pasted too much but it wouldnt change anything...
sudo systemctl restart usbmuxd
sudo avahi-daemon &
sudo socat tcp-listen:5000,fork unix-connect:/var/run/usbmuxd
i dont know what idevicepairlist is
usbfluxd -f -r <hostname>:5000
confirmed working
Last edited by ponyrider (2023-12-22 01:05:45)
Offline
this is what i've got
130 sfo@box ~ % sudo systemctl restart usbmuxd
sfo@box ~ % sudo avahi-daemon & sudo socat tcp-listen:5000,fork unix-connect:/var/run/usbmuxd
[1] 1120088
Daemon already running on PID 850
sfo@box ~ % sudo usbfluxd -f -r 519625bc75f3b19ba32a75667e26b9e58249e6e1:5000
[20:25:24.402][3] usbfluxd v1.2.0 starting up
[20:25:24.402][4] Original usbmuxd socket file renamed: /var/run/usbmuxd -> /var/run/usbmuxd.orig
[20:25:24.402][4] Creating socket
[20:25:24.402][4] New Remote fd 4
[20:25:24.402][3] Initialization complete
[20:25:27.945][1] socket_connect_timeout: unknown host '519625bc75f3b19ba32a75667e26b9e58249e6e1'
[20:25:27.945][1] ERROR: Could not connect to 519625bc75f3b19ba32a75667e26b9e58249e6e1:5000
[20:25:27.945][1] ERROR: Failed to add 519625bc75f3b19ba32a75667e26b9e58249e6e1:5000 to list of remotes
[20:25:28.580][4] New client on fd 5 (pid 676720)
[20:25:28.580][4] Client 5 connection closed
[20:25:28.580][4] Disconnecting client 0x240c1d0 fd 5
[20:25:32.845][4] New client on fd 5 (pid 1120453)
[20:25:32.845][4] Client 5 connection closed
[20:25:32.846][4] Disconnecting client 0x240c1d0 fd 5
[20:25:33.585][4] New client on fd 5 (pid 676720)
[20:25:33.585][4] Client 5 connection closed
[20:25:33.585][4] Disconnecting client 0x240c1d0 fd 5
[20:25:38.590][4] New client on fd 5 (pid 676720)
[20:25:38.590][4] Client 5 connection closed
[20:25:38.590][4] Disconnecting client 0x240c1d0 fd 5
[20:25:43.593][4] New client on fd 5 (pid 676720)
[20:25:43.593][4] Client 5 connection closed
[20:25:43.593][4] Disconnecting client 0x240c1d0 fd 5
[20:25:48.598][4] New client on fd 5 (pid 676720)
[20:25:48.598][4] Client 5 connection closed
[20:25:48.598][4] Disconnecting client 0x240c1d0 fd 5
[20:25:53.603][4] New client on fd 5 (pid 676720)
[20:25:53.603][4] Client 5 connection closed
[20:25:53.603][4] Disconnecting client 0x240c1d0 fd 5
^C[20:25:58.143][3] Caught signal 2, exiting
[20:25:58.143][4] Event processing interrupted
[20:25:58.143][3] usbfluxd shutting down
[20:25:58.143][4] usbmux_remote_dispose: Disconnecting remote fd 4
[20:25:58.143][3] Shutdown complete
[20:25:58.143][4] Original usbmuxd socket file restored: /var/run/usbmuxd.orig -> /var/run/usbmuxd
Offline
no
<hostname> aka localhost or whatever ip address
Offline
my apologies if i'm getting this wrong, do you mean the hostname of the ipod? i'm not sure how to find that, but using my machines hostname i see a lot of the same output
sfo@box ~ % sudo usbfluxd -f -r box:5000
[sudo] password for sfo:
[08:21:20.023][3] usbfluxd v1.2.0 starting up
[08:21:20.023][4] Original usbmuxd socket file renamed: /var/run/usbmuxd -> /var/run/usbmuxd.orig
[08:21:20.023][4] Creating socket
[08:21:20.023][4] New Remote fd 4
[08:21:20.023][3] Initialization complete
[08:21:20.143][1] box:5000 is open
[08:21:20.143][4] New Remote fd 5
[08:21:20.143][3] remote_mux_service_add: new remote id: 1
[08:21:20.143][3] Added remote box:5000
[08:21:20.144][4] New client on fd 9 (pid 73314)
[08:21:26.735][4] New client on fd 10 (pid 73486)
[08:21:26.735][4] Client 10 connection closed
[08:21:26.735][4] Disconnecting client 0x25181f0 fd 10
[08:21:30.239][1] box:5000 is open
[08:21:30.240][4] New client on fd 10 (pid 73554)
[08:21:30.240][4] Client 10 connection closed
[08:21:30.240][4] Disconnecting client 0x25181f0 fd 10
[08:21:31.058][4] New client on fd 10 (pid 73578)
[08:21:31.058][4] Client 10 connection closed
[08:21:31.058][4] Disconnecting client 0x25181f0 fd 10
Offline
[08:21:20.143][1] box:5000 is open
[08:21:20.143][4] New Remote fd 5
success!
Offline
whenever i try to pair/validate its still not working. ifuse doesn't mount anything.
these messages come specifically right after i try to pair
[08:21:31.058][4] Client 10 connection closed
[08:21:31.058][4] Disconnecting client 0x25181f0 fd 10
if i leave it running it constantly reconnects and disconnects. is there any hope for this?
edit: i'm going to be away for the next few days, i'll get back to this afterwards. i'm not too worried about this problem anymore so don't expend a large effort
Last edited by Bumble (2023-12-22 20:20:51)
Offline
People use usbfluxd to pass their iPhones into a mac VM. As far as i know it doesn't do anything except expose your device over a network.
As i said before:
i dont know what idevicepairlist is
but if you are doing something locally, i suppose you wouldn't need usbmuxd at all
Offline
Pages: 1