Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 241174 - New libraries for accessing iphone on linux via USB
Summary: New libraries for accessing iphone on linux via USB
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High enhancement (vote)
Assignee: Tony Vroon (RETIRED)
URL: http://matt.colyer.name/projects/ipho...
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-10-10 20:51 UTC by Brent Millare
Modified: 2009-06-09 16:32 UTC (History)
8 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
media-libs/libiphone-0.0.20081129.ebuild (libiphone-0.0.20081129.ebuild,1.28 KB, text/plain)
2008-11-29 15:15 UTC, SchAmane
Details
media-libs/libiphone/files/libiphone-strip_gnutls_version.patch (libiphone-strip_gnutls_version.patch,506 bytes, text/plain)
2008-11-29 15:16 UTC, SchAmane
Details
media-libs/ifuse-0.0.20081129.ebuild (ifuse-0.0.20081129.ebuild,1.13 KB, text/plain)
2008-11-29 15:17 UTC, SchAmane
Details
libiphone-0.1_pre20090404.ebuild (libiphone-0.1_pre20090404.ebuild,764 bytes, text/plain)
2009-04-04 22:47 UTC, Tony Vroon (RETIRED)
Details
0.1_pre20090404-gnutls-dependency.diff (0.1_pre20090404-gnutls-dependency.diff,546 bytes, patch)
2009-04-04 22:47 UTC, Tony Vroon (RETIRED)
Details | Diff
ifuse-0.1_pre20090404.ebuild (ifuse-0.1_pre20090404.ebuild,981 bytes, text/plain)
2009-04-04 22:55 UTC, Tony Vroon (RETIRED)
Details
libplist-0.12.ebuild (libplist-0.12.ebuild,485 bytes, text/plain)
2009-06-08 22:36 UTC, Tony Vroon (RETIRED)
Details
libiphone-0.9.1.ebuild (libiphone-0.9.1.ebuild,569 bytes, text/plain)
2009-06-08 22:47 UTC, Tony Vroon (RETIRED)
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Brent Millare 2008-10-10 20:51:53 UTC
The iphone can be made accessible via USB with iFuse and libiphone (See link)

The iphone is accessible via ssh but USB should be faster in most cases and a reliable, secure, and fast network is not always accessible.

Slowly, other distributions like debian are including it, Gentoo should have it as well.

All the code, protocol information, and contact information should be on their homepage provided as the link.

Reproducible: Always
Comment 1 Wormo (RETIRED) gentoo-dev 2008-10-12 23:32:56 UTC
Nice -- looks like iFuse made a lot of progress since I last took a look in June or so (when answer to the question "Does it work yet?" used to be "No.")

Developers already maintaining mobile-phone or pda ebuilds seem most likely to be interested in taking this on, since this helps you use an iphone like a pda...
Comment 2 Alin Năstac (RETIRED) gentoo-dev 2008-10-13 06:49:09 UTC
Hmm... I would be interested, but they don't have releases, which means only live ebuilds can be implemented. If you can convince author to provide tarballs for his projects, it will help us tremendously. Otherwise, I would let others deal with it.
Comment 3 Brent Millare 2008-10-13 07:08:54 UTC
I sent an email to their mailing list requesting the release.

Comment 4 SchAmane 2008-11-29 15:15:08 UTC
Created attachment 173762 [details]
media-libs/libiphone-0.0.20081129.ebuild

libiphone-0.0.20081129.ebuild
Comment 5 SchAmane 2008-11-29 15:16:45 UTC
Created attachment 173763 [details]
media-libs/libiphone/files/libiphone-strip_gnutls_version.patch
Comment 6 SchAmane 2008-11-29 15:17:18 UTC
Created attachment 173764 [details]
media-libs/ifuse-0.0.20081129.ebuild
Comment 7 SchAmane 2008-11-29 15:19:54 UTC
I just wrote two ebuilds for today git version of libiphone and ifuse. I can mount my ITouch 2G with this build ontop of gnutls-2.6.2.

So, please enjoy this and write me any feedback if it worked for you, or not.

Complete portage overlay part here: http://kvitka.net/ifuse/snapshots/iphone-portage-20091129.tar.bz2
Comment 8 biohazrd 2009-01-31 22:51:54 UTC
I used your overlay tools built fine for me, but I don't think it's mounting correctly for me.  I would have thought that hal would automount the device, but it doesn't for me even after restart dbus and hald.  I can manually mount it as root with:

mount -t fuse.ifuse /dev/bus/usb/001/025 /media/iphone

but I cannot access the device. The permissions look like (ls -a):

d?????????  ? ?        ?       ?            ? iphone

I ran the libiphone-initconf prior to this as well. (mounting it as root) Did a miss something in this process?  

This is one a newer 3G phones.  Also what app can sync music files? or should I be able to copy to it like any other device?   
Comment 9 Tony Vroon (RETIRED) gentoo-dev 2009-04-04 22:47:03 UTC
Created attachment 187331 [details]
libiphone-0.1_pre20090404.ebuild

Please let me know if you would like detailed ebuild feedback.
Comment 10 Tony Vroon (RETIRED) gentoo-dev 2009-04-04 22:47:30 UTC
Created attachment 187332 [details, diff]
0.1_pre20090404-gnutls-dependency.diff
Comment 11 Tony Vroon (RETIRED) gentoo-dev 2009-04-04 22:55:01 UTC
Created attachment 187334 [details]
ifuse-0.1_pre20090404.ebuild
Comment 12 Tony Vroon (RETIRED) gentoo-dev 2009-04-04 23:12:31 UTC
I've uploaded the required tarballs, they should make it onto the mirrors soon. Please confirm on the bug when the download works for you (it'll take time, "it's not there yet!" reports are not helpful). Once the download is working, please test the ebuilds and let me know if you have any problems (aside from the LDFLAGS QA warning that I already know about).
Right now I'm using Audacious to play an .m4a from /mnt/iphone/iTunes_Control/Music/F00, so the basics seem to work.

Please do note the warning I added to the ebuild, attempting to add music to an iPod Touch/iPhone will cause it to *wipe* the music library! This is primarily useful to make backups of your music.
Comment 13 Tony Vroon (RETIRED) gentoo-dev 2009-04-16 15:41:16 UTC
I didn't realise nobody cared enough to reply with success or failure.
Comment 14 Brent Millare 2009-04-16 21:45:31 UTC
(In reply to comment #13)
> I didn't realise nobody cared enough to reply with success or failure.
> 

People care, they sometimes go on vacation for a month. ;)

As for the download, it works. I noticed, however, that not all mirrors have the files. Also is it possible to access the root directories on the iphone? I seem to be limited only to the folder with Downloads, DCIM, Photos, iTunes_Control etc.
Comment 15 Fabiano Francesconi 2009-04-28 15:30:38 UTC
I have a (jailbroken) iPod Touch 2G.

No way to connect to it.

I tried with these ebuild and with git version (I compiled myself libplist+libiphone+ifuse).

Nothing is working.

The only thing that the app outputs is:
Something went in lockdown handshake.
Comment 16 Tony Vroon (RETIRED) gentoo-dev 2009-04-28 16:40:53 UTC
(In reply to comment #15)
> I tried with these ebuild and with git version (I compiled myself
> libplist+libiphone+ifuse).

Only the ebuild is relevant here.

> Nothing is working.

emerge --info is missing, as is the firmware version on the device.

> The only thing that the app outputs is:
> Something went in lockdown handshake.

This is best reported upstream, not here. 

Comment 17 Tony Vroon (RETIRED) gentoo-dev 2009-06-08 22:36:18 UTC
Created attachment 193943 [details]
libplist-0.12.ebuild

For further revision, causes an insecure runpath warning.
Comment 18 Tony Vroon (RETIRED) gentoo-dev 2009-06-08 22:47:29 UTC
Created attachment 193945 [details]
libiphone-0.9.1.ebuild
Comment 19 Tony Vroon (RETIRED) gentoo-dev 2009-06-08 23:16:36 UTC
libplist & libiphone committed. Working on ifuse now.
Comment 20 Tony Vroon (RETIRED) gentoo-dev 2009-06-08 23:26:38 UTC
This has been done, all 3 ebuilds are in the tree.
Comment 21 Peter Sääf 2009-06-09 16:04:47 UTC
/sbin/mount.fuse.ifuse oopses with memory corruption for me when I try to mount my iphone.
I can provide a backtrace here or in a new bug if you like. Or is it better if I take it upstream?
Comment 22 Tony Vroon (RETIRED) gentoo-dev 2009-06-09 16:18:25 UTC
Take it upstream please. I don't patch anything they do.
Also, avoid hijacking bugs. This is about adding ebuilds to the tree. That's been done.
Comment 23 Tomáš Chvátal (RETIRED) gentoo-dev 2009-06-09 16:32:33 UTC
libplist cleared in cvs, sorry to post here, just anouncing that i did what i promised ;]