Sync music with a Jailbreak iPhone4 and IOS 5.1.1

Niccolò Belli <[email protected]> Thu, 28 Jun 2012 19:01:21 +0200
Newsgroups gmane.comp.ipod.gtkpod
Message-ID <[email protected]>
Hi,
I'm trying to sync some music from my Gentoo Linux amd64 to an iPhone 4 
(*Jailbreaked*) with IOS 5.1.1.

I'm using:
- app-pda/ipheth-pair-9999 (GIT)
- app-pda/libimobiledevice-9999 (GIT)
- app-pda/usbmuxd-999 (GIT)
- app-pda/libplist-999 (GIT)
- app-pda/ifuse-1.1.2
- gnome-base/gvfs-1.10.1
- sys-power/upower-0.9.17
- media-libs/libgpod-9999 (GIT)
- app-pda/gtkpod-2.1.2
- linux-3.4.4-rt13 + rss-counters patch

USB tethering works fine, I can mount it with ifuse and I can listen 
music using amarok 2.6 or banshee 2.4.1. Unfortunately I can't add new 
tracks: neither amarok nor banshee nor gtkpod succeed adding music to 
the iphone. Both amarok and banshee hangs, while gtkpod seem to 
successfully add the tracks but I can't see them in the iPhone. If I ssh 
into the iPhone I can see the tracks uploaded by gtkpod but the files 
aren't in the music list!

I *don't* get the "Unsupported checksum type" error message because I'm 
using libhashab.so[1] but I still can't see the tracks in the music list.

I also tried downgrading DBVersion[2] from 5 to 4 in 
/System/Library/Lockdown/Checkpoint.xml, rebooting and adding HashInfo 
from [3] to /var/mobile/Media/iTunes_Control/Device, but it still 
doesn't work :(

What's the problem? Is there no way to add some music with this useless 
piece of shit of phone even with the Jailbreak? Fortunately the iPhone 
isn't mine (I have an Android) but I still need to make it work.

Thanks,
Niccolò

P.S.
I don't think this is the problem because everything else works fine 
except adding music to the phone, but I also get some error messages 
when I attach the phone:

Jun 28 17:34:39 laptop kernel: [51352.600135] usb 2-1: new high-speed 
USB device number 3 using ehci_hcd
Jun 28 17:34:39 laptop kernel: [51352.718901] usb 2-1: New USB device 
found, idVendor=05ac, idProduct=1297
Jun 28 17:34:39 laptop kernel: [51352.718918] usb 2-1: New USB device 
strings: Mfr=1, Product=2, SerialNumber=3
Jun 28 17:34:39 laptop kernel: [51352.718934] usb 2-1: Product: iPhone
Jun 28 17:34:39 laptop kernel: [51352.718937] usb 2-1: Manufacturer: 
Apple Inc.
Jun 28 17:34:39 laptop kernel: [51352.718940] usb 2-1: SerialNumber: 
<serial>
Jun 28 17:34:40 laptop kernel: [51353.538254] ipheth 2-1:4.2: Apple 
iPhone USB Ethernet device attached
Jun 28 17:34:40 laptop kernel: [51353.538299] usbcore: registered new 
interface driver ipheth
Jun 28 17:34:40 laptop kernel: [51353.810974] upowerd[2461]: segfault at 
0 ip 00007f0b9fac25d0 sp 00007fff8795d548 error 4 in 
libc-2.14.1.so[7f0b9f9d3000+184000]
Jun 28 17:34:40 laptop kernel: [51353.817036] BUG: Bad rss-counter state 
mm:ffff8801357751c0 idx:1 val:-2
Jun 28 17:34:40 laptop kernel: [51353.817041] BUG: Bad rss-counter state 
mm:ffff8801357751c0 idx:2 val:2
Jun 28 17:34:40 laptop kernel: [51354.257733] iphone-set-info[6572]: 
segfault at 0 ip 00007f56ed6495d0 sp 00007fff5d3d5908 error 4 in 
libc-2.14.1.so[7f56ed55a000+184000]
Jun 28 17:34:41 laptop kernel: [51354.576849] ipheth-pair[6609]: 
segfault at 0 ip 00007f033a80a5d0 sp 00007fff37de6328 error 4 in 
libc-2.14.1.so[7f033a71b000+184000]
Jun 28 17:34:41 laptop udevd[2273]: 'ipheth-pair' [6609] terminated by 
signal 11 (Segmentation fault)
Jun 28 17:34:41 laptop NetworkManager[1337]: <warn> failed to allocate 
link cache: (-10) Operation not supported
Jun 28 17:34:41 laptop NetworkManager[1337]: <info> (eth1): carrier is OFF
Jun 28 17:34:41 laptop NetworkManager[1337]: <error> [1340897681.303754] 
[nm-device-ethernet.c:456] real_update_permanent_hw_address(): (eth1): 
unable to read permanent MAC address (error 0)
Jun 28 17:34:41 laptop NetworkManager[1337]: <info> (eth1): new Ethernet 
device (driver: 'ipheth' ifindex: 4)
Jun 28 17:34:41 laptop NetworkManager[1337]: <info> (eth1): exported as 
/org/freedesktop/NetworkManager/Devices/2
Jun 28 17:34:41 laptop NetworkManager[1337]: <info> (eth1): now managed
Jun 28 17:34:41 laptop NetworkManager[1337]: <info> (eth1): device state 
change: unmanaged -> unavailable (reason 'managed') [10 20 2]
Jun 28 17:34:41 laptop NetworkManager[1337]: <info> (eth1): bringing up 
device.
Jun 28 17:34:41 laptop NetworkManager[1337]: <info> (eth1): carrier now 
ON (device state 20)
Jun 28 17:34:41 laptop NetworkManager[1337]: <info> (eth1): preparing 
device.
Jun 28 17:34:41 laptop NetworkManager[1337]: <info> (eth1): deactivating 
device (reason 'managed') [2]
Jun 28 17:34:41 laptop NetworkManager[1337]: <info> (eth1): device state 
change: unavailable -> disconnected (reason 'none') [20 30 0]
Jun 28 17:34:46 laptop kernel: [51359.712057] ------------[ cut here 
]------------
Jun 28 17:34:46 laptop kernel: [51359.712068] WARNING: at 
net/sched/sch_generic.c:256 dev_watchdog+0xfb/0x15a()
Jun 28 17:34:46 laptop kernel: [51359.712072] Hardware name: X360 

Jun 28 17:34:46 laptop kernel: [51359.712075] NETDEV WATCHDOG: eth1 
(ipheth): transmit queue 0 timed out
Jun 28 17:34:46 laptop kernel: [51359.712079] Modules linked in: ipheth 
cpufreq_conservative fuse phc_intel(O) xt_multiport xt_tcpudp 
nf_conntrack_ipv6 nf_defrag_ipv6 nf_conntrack_ipv4 nf_defrag_ipv4 
xt_state nf_conntrack ip6table_filter ip6_tables iptable_filter 
ip_tables x_tables vboxnetadp(O) vboxnetflt(O) vboxdrv(O) kvm_intel kvm 
vhba(O) joydev uvcvideo videobuf2_core videodev media videobuf2_vmalloc 
coretemp videobuf2_memops arc4 samsung_laptop sg microcode psmouse 
serio_raw pcspkr iTCO_wdt sky2 iTCO_vendor_support battery fan thermal 
iwlwifi container mac80211 snd_hda_codec_hdmi cfg80211 
snd_hda_codec_realtek ac rfkill evdev power_supply snd_hda_intel 
snd_hda_codec snd_hwdep snd_pcm mperf snd_timer processor snd soundcore 
snd_page_alloc [last unloaded: acpi_cpufreq]
Jun 28 17:34:46 laptop kernel: [51359.712142] Pid: 11, comm: ksoftirqd/1 
Tainted: G  R        O 3.4.2-rt10 #1
Jun 28 17:34:46 laptop kernel: [51359.712146] Call Trace:
Jun 28 17:34:46 laptop kernel: [51359.712154]  [<ffffffff810420e7>] ? 
warn_slowpath_common+0x78/0x8c
Jun 28 17:34:46 laptop kernel: [51359.712159]  [<ffffffff8104219c>] ? 
warn_slowpath_fmt+0x45/0x4a
Jun 28 17:34:46 laptop kernel: [51359.712163]  [<ffffffff81394865>] ? 
netif_tx_lock+0x77/0x8a
Jun 28 17:34:46 laptop kernel: [51359.712167]  [<ffffffff813949cb>] ? 
dev_watchdog+0xfb/0x15a
Jun 28 17:34:46 laptop kernel: [51359.712173]  [<ffffffff8104c08e>] ? 
run_timer_softirq+0x18a/0x23b
Jun 28 17:34:46 laptop kernel: [51359.712176]  [<ffffffff813948d0>] ? 
netif_tx_unlock+0x58/0x58
Jun 28 17:34:46 laptop kernel: [51359.712181]  [<ffffffff8104727e>] ? 
__do_softirq_common+0x9a/0x139
Jun 28 17:34:46 laptop kernel: [51359.712185]  [<ffffffff81047692>] ? 
__thread_do_softirq+0xa2/0xf5
Jun 28 17:34:46 laptop kernel: [51359.712189]  [<ffffffff81047779>] ? 
run_ksoftirqd+0x94/0x194
Jun 28 17:34:46 laptop kernel: [51359.712193]  [<ffffffff810476e5>] ? 
__thread_do_softirq+0xf5/0xf5
Jun 28 17:34:46 laptop kernel: [51359.712198]  [<ffffffff81058dba>] ? 
kthread+0x81/0x89
Jun 28 17:34:46 laptop kernel: [51359.712204]  [<ffffffff8143f7d6>] ? 
_raw_spin_unlock_irq+0x27/0x39
Jun 28 17:34:46 laptop kernel: [51359.712208]  [<ffffffff81445124>] ? 
kernel_thread_helper+0x4/0x10
Jun 28 17:34:46 laptop kernel: [51359.712213]  [<ffffffff81058d39>] ? 
__init_kthread_worker+0x42/0x42
Jun 28 17:34:46 laptop kernel: [51359.712217]  [<ffffffff81445120>] ? 
gs_change+0x13/0x13
Jun 28 17:34:46 laptop kernel: [51359.712220] ---[ end trace 
0000000000000002 ]---
Jun 28 17:34:46 laptop kernel: [51359.712226] ipheth: ipheth_tx_timeout: 
TX timeout


This is with linux-3.4.2-rt10, I still didn't try with linux-3.4.4-rt13 
+ rss-counters patch.


[1]http://franck78.ath.cx/
[2]http://marcansoft.com/blog/2011/01/syncing-music-in-new-idevices-with-linux/
[3]http://ihash.marcansoft.com/

-- 
http://www.linuxsystems.it

------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/