Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
iPod... how do i connect it?
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Gentoo on PPC
View previous topic :: View next topic  
Author Message
_savage
Guru
Guru


Joined: 06 Jun 2004
Posts: 308
Location: Redmond, WA

PostPosted: Fri Jul 23, 2004 4:48 pm    Post subject: iPod... how do i connect it? Reply with quote

heya...

i found this thread https://forums.gentoo.org/viewtopic.php?t=198642 which kindof tells me how to mount the ipod. but what kernel modules do i need to connect it in the first place? i do have scsi compiled, but none of the mentioned /dev/sda or /dev/sdb devices actually shows up in /dev. when i use usb to connect it, linux picks it up (/var/log/messages)
Code:
 usb 2-1: new full speed USB device using address 2
but that's about it. no reaction on the firewire port.

is there any docu out there that i haven't found yet? i'm using 2.6.7 kernel on a 1 gig tibook.

thanks heaps :)
jens
_________________
Jens Troeger
http://savage.light-speed.de/


Last edited by _savage on Sat Jul 24, 2004 3:26 am; edited 1 time in total
Back to top
View user's profile Send private message
woolsherpahat
Guru
Guru


Joined: 09 Mar 2004
Posts: 347

PostPosted: Fri Jul 23, 2004 5:09 pm    Post subject: Reply with quote

Try this link:

http://www.justlinux.com/forum/showthread.php?s=&threadid=117825&highlight=ipod
Back to top
View user's profile Send private message
_savage
Guru
Guru


Joined: 06 Jun 2004
Posts: 308
Location: Redmond, WA

PostPosted: Sat Jul 24, 2004 3:25 am    Post subject: Reply with quote

Quote:
For a FireWire iPod, you need the following kernel modules:

<M> IEEE 1394 (FireWire) support (EXPERIMENTAL)
<M> OHCI-1394 support
<M> SBP-2 support (Harddisks etc.)
<M> Raw IEEE1394 I/O support

The iPod will be mounted like a scsi drive.
/dev/sda2 /mnt/ipod vfat defaults,user,noauto,sync,umask=000 0 0


that's what it says there, but it's not working. i do have all the modules installed, and when i modprobe them it's all fine. here is the log
Code:

Jul 23 20:11:51 tigger ieee1394: Initialized config rom entry `ip1394'
Jul 23 20:12:04 tigger ohci1394: $Rev: 1223 $ Ben Collins <bcollins@debian.org>
Jul 23 20:12:04 tigger ohci1394: fw-host0: Unexpected PCI resource length of 1000!
Jul 23 20:12:04 tigger ohci1394: fw-host0: OHCI-1394 1.0 (PCI): IRQ=[40]  MMIO=[f5000000-f50007ff]  Max Packet=[2048]
Jul 23 20:12:05 tigger ieee1394: Host added: ID:BUS[0-00:1023]  GUID[000393fffedb5abe]
Jul 23 20:12:14 tigger ieee1394: raw1394: /dev/raw1394 device initialized
Jul 23 20:13:38 tigger ieee1394: Node added: ID:BUS[0-01:1023]  GUID[000a2700026de95e]
Jul 23 20:13:38 tigger ieee1394: The root node is not cycle master capable; selecting a new root node and resetting...
Jul 23 20:13:38 tigger ieee1394: Node changed: 0-01:1023 -> 0-00:1023
Jul 23 20:13:38 tigger ieee1394: Node changed: 0-00:1023 -> 0-01:1023

is there something wrong with the modules? when i try to mount it, i get this
Code:
root@tigger ~ # mount -t hfsplus /dev/sda2 /mnt/ipod/
mount: special device /dev/sda2 does not exist

what am i doing wrong? or can i mount it through usb?

jens
_________________
Jens Troeger
http://savage.light-speed.de/
Back to top
View user's profile Send private message
boojummy
Tux's lil' helper
Tux's lil' helper


Joined: 21 Oct 2003
Posts: 124
Location: Medford, MA

PostPosted: Sat Jul 24, 2004 12:09 pm    Post subject: Reply with quote

Jens,

There's some good information here http://gtkpod.sourceforge.net/ about getting an iPod mouted under Linux.

I've been happily using my iPod with Gentoo for many months, but I upgraded from 2.4.22 to 2.6.7 a few days ago and something in my configuration broke. I'm planning on working on this today, so I'll post back my results if I fix anything.

Under 2.4.22 it seemed like having hotplugging support was the key to getting the system to recognize the device, but things have changed in 2.6 with the introduction of udev, if I'm not mistaken. (I haven't taken the time to understand how the new hotplugging stuff works)

Anyhow, under 2.4.22, it was pretty easy to get the iPod going.

1.) modprobe sbp2
2.) run the /etc/hotplug/ieee1394/rescan-scsi-bus.sh script (part of hotplug)
3. ) run mac-fdisk -l to see if the device has showed up yet (if not, troubleshoot)
4.) mount the iPod

As I said before, this procedure doesn't work anymore (get an error message when I run the hotplug script). OK, gotta go now. I'm buying a new car today.

-b
Back to top
View user's profile Send private message
boojummy
Tux's lil' helper
Tux's lil' helper


Joined: 21 Oct 2003
Posts: 124
Location: Medford, MA

PostPosted: Sat Jul 24, 2004 10:39 pm    Post subject: Reply with quote

Okay, I think I've got it figured out. My iPod is now working under 2.6.7.

As mentioned above, you want the following modules:

<M> IEEE 1394 (FireWire) support
<M> OHCI-1394 support
<M> SBP-2 support
<M> Raw IEEE1394 I/O support

(note: I actually built the first two into the kernel instead; shouldn't matter, though)

But most importantly, under 2.6, you will want to emerge hotplug AND udev. Turns out the reason why my iPod didn't work after upgrading to 2.6 was not only because I didn't compile in support for sbp2 (how could I have missed it?), but I didn't have udev. After emerging udev and rebooting, the system automatically recognized that I had a firewire hard drive and loaded the appropriate module (sbp2). Cool!

From dmesg:
Code:
ieee1394: Node added: ID:BUS[0-00:1023]  GUID[000a2700020fb702]
ieee1394: Host added: ID:BUS[0-01:1023]  GUID[003065fffe762674]
input: USB HID v1.00 Mouse [USBPS2] on usb-0001:02:09.0-1
sbp2: $Rev: 1219 $ Ben Collins <bcollins@debian.org>
scsi0 : SCSI emulation for IEEE-1394 SBP-2 Devices
ieee1394: sbp2: Logged into SBP-2 device
ieee1394: Node 0-00:1023: Max speed [S400] - Max payload [2048]
  Vendor: Apple     Model: iPod              Rev: 1.50
  Type:   Direct-Access                      ANSI SCSI revision: 02
SCSI device sda: 29297520 512-byte hdwr sectors (15000 MB)
sda: test WP failed, assume Write Enabled
sda: asking for cache data failed
sda: assuming drive cache: write through
 /dev/scsi/host0/bus0/target0/lun0: [mac] p1 p2 p3
Attached scsi removable disk sda at scsi0, channel 0, id 0, lun 0


BTW, don't believe the naysayers. You can keep your iPod as an HFS+ disk. Just make sure to add support for the HFS+ filesystem in your kernel.

After your system recognizes your iPod, you can mount it. Assuming you've already set up your /etc/fstab appropriately, you can simply type, e.g., 'mount /mnt/ipod'. Voila! BTW, here's my the appropriate line in my /etc/fstab:

Code:
/dev/sda3               /mnt/ipod       hfsplus         noauto,user,rw,nosuid   0 0


On HFS+ iPods, the 3rd partition is the data partition. You can see this by running mac-fdisk -l.

The only thing I haven't figured out yet is a graceful way to remove the iPod while my system is on. What I done typically is umount the partition, rmmod sbp2, and then disconnect the Pod. But my guess is that udev can do some of this for me, so if I figure that out, I'll post back again.

Good luck,
-b
Back to top
View user's profile Send private message
tweakt
Tux's lil' helper
Tux's lil' helper


Joined: 16 Sep 2003
Posts: 92
Location: Boston, MA. USA

PostPosted: Mon Jul 26, 2004 7:21 am    Post subject: Reply with quote

boojummy wrote:
The only thing I haven't figured out yet is a graceful way to remove the iPod while my system is on. What I done typically is umount the partition, rmmod sbp2, and then disconnect the Pod. But my guess is that udev can do some of this for me, so if I figure that out, I'll post back again.
Hi!

Finally got myself one of these awsome little things. It's a Gen3 (touch wheel). I'll share some tips & tricks that might help you out.

First off, mine came formatted vfat, but it's good to know r/w HFS+ support is stable now ;-) Also, I'm using USB 2.0 though at the block layer it just looks like a scsi disk, same as firewire.

If you are using udev... you might like this (you'll need BUS="ieee1394"... etc for Firewire):
Code:
/etc/udev/rules.d/80-ipod.rules:

BUS="usb", SYSFS{product}="iPod USB Interface", KERNEL="sd?1", NAME="ipod/firmware", SYMLINK="%k"
BUS="usb", SYSFS{product}="iPod USB Interface", KERNEL="sd?2", NAME="ipod/storage", SYMLINK="%k"

Code:
/etc/fstab:

/dev/ipod/storage  /mnt/ipod    vfat     noauto,user,dmask=077,fmask=177         0 0

That way, if you happen to plug in some other storage device first, you don't end up trying to sync your iTunes db with it... (I did that with a USB keychain) ;-)

Finally, I'm using gtkPod (GNOME desktop) and it has an option to automatically mount/unmount for you when you open and close it. It also has an option to send an 'eject' command before unmounting. This does the trick and the iPod says "Ok to disconnect". I know it's just superficial (should be safe as long as the filesystem is unmounted), but it makes me feel nice knowing it's working cleanly.
Back to top
View user's profile Send private message
_savage
Guru
Guru


Joined: 06 Jun 2004
Posts: 308
Location: Redmond, WA

PostPosted: Sat Aug 07, 2004 7:51 pm    Post subject: Reply with quote

boojummy wrote:
<M> IEEE 1394 (FireWire) support
<M> OHCI-1394 support
<M> SBP-2 support
<M> Raw IEEE1394 I/O support


yes, i have them compiled, but all as modules.

boojummy wrote:
But most importantly, under 2.6, you will want to emerge hotplug AND udev. Turns out the reason why my iPod didn't work after upgrading to 2.6 was not only because I didn't compile in support for sbp2 (how could I have missed it?), but I didn't have udev. After emerging udev and rebooting, the system automatically recognized that I had a firewire hard drive and loaded the appropriate module (sbp2). Cool!


did you have to configure it? i started hotplug and added it to the default runlevel. the output of my dmesg is this

Code:
ieee1394: Initialized config rom entry `ip1394'
ohci1394: $Rev: 1223 $ Ben Collins <bcollins@debian.org>
ohci1394: fw-host0: Unexpected PCI resource length of 1000!
ohci1394: fw-host0: OHCI-1394 1.0 (PCI): IRQ=[40]  MMIO=[f5000000-f50007ff]  Max Packet=[2048]
ieee1394: Host added: ID:BUS[0-00:1023]  GUID[000393fffedb5abe]
ip1394: $Rev: 1224 $ Ben Collins <bcollins@debian.org>
ip1394: eth2: IEEE-1394 IPv4 over 1394 Ethernet (fw-host0)
ieee1394: Node added: ID:BUS[0-01:1023]  GUID[000a2700026de95e]
ieee1394: The root node is not cycle master capable; selecting a new root node and resetting...
ieee1394: Node changed: 0-01:1023 -> 0-00:1023
ieee1394: Node changed: 0-00:1023 -> 0-01:1023


i don't see the sbp2 happening there? maybe hotplug doesn't pick it up?

cheers,
jens
_________________
Jens Troeger
http://savage.light-speed.de/
Back to top
View user's profile Send private message
_savage
Guru
Guru


Joined: 06 Jun 2004
Posts: 308
Location: Redmond, WA

PostPosted: Sat Aug 07, 2004 8:19 pm    Post subject: Reply with quote

hm, it all seems to work when i use usb instead of firewire...
_________________
Jens Troeger
http://savage.light-speed.de/
Back to top
View user's profile Send private message
HighOnBonsai
Apprentice
Apprentice


Joined: 05 Jan 2004
Posts: 260

PostPosted: Sun Aug 08, 2004 9:12 am    Post subject: Reply with quote

@_savage:

Did you try loading the sbp2 module manually?
Code:
# modprobe sbp2


iPod works fine for me with Firewire and USB(2.0)


Christopher
_________________
Are YOU high - on bonsai?
Back to top
View user's profile Send private message
_savage
Guru
Guru


Joined: 06 Jun 2004
Posts: 308
Location: Redmond, WA

PostPosted: Mon Aug 09, 2004 5:28 am    Post subject: Reply with quote

HighOnBonsai wrote:
Did you try loading the sbp2 module manually?
Code:
# modprobe sbp2


iPod works fine for me with Firewire and USB(2.0)


yes i did, and the module is there. i also noticed that it doesn't pick up the new G4 iPods on a usb port. my G3 works fine though on usb.

jens
_________________
Jens Troeger
http://savage.light-speed.de/
Back to top
View user's profile Send private message
HighOnBonsai
Apprentice
Apprentice


Joined: 05 Jan 2004
Posts: 260

PostPosted: Mon Aug 09, 2004 8:13 am    Post subject: Reply with quote

Mhmm... My 4th-gen iPod works fine with USB. Can you give us some dmesg when you insert the sbp2 modul? Maybe it is a filessystem problem. Is your 4th-gen iPod HFS formatted or VFAT? What about your 3rd-gen iPod? HFS support compiled in kernel?


Christopher
_________________
Are YOU high - on bonsai?
Back to top
View user's profile Send private message
suck_ma_penguin
Apprentice
Apprentice


Joined: 03 May 2004
Posts: 180

PostPosted: Sun Nov 07, 2004 4:25 pm    Post subject: UDEV + iPod Reply with quote

For me it's really wierd. If ipod is coldplugged, I get the devices ipod and ipod0, but I can't mount or eject them. If it's hotplugged I get sda and can use it as normal :s (using the udev rules above)
(using USB, 4thgen, HFS)
Back to top
View user's profile Send private message
jedsen
Apprentice
Apprentice


Joined: 15 Oct 2004
Posts: 276
Location: Sacramento, California, USA

PostPosted: Mon Nov 08, 2004 2:40 pm    Post subject: Reply with quote

After plugging it in use:
Code:
modprobe sbp2
modprobe ohci (to load the firmware)

Then mount it:
Code:
mount -t hfsplus /dev/sda3 /mnt/<ipod>

When your done, unount it, unload the ohci1394 module, and the others if you like, then unplug.
Back to top
View user's profile Send private message
mirko_3
l33t
l33t


Joined: 02 Nov 2003
Posts: 605
Location: Birreria

PostPosted: Sun Nov 14, 2004 6:28 pm    Post subject: Reply with quote

_savage: have you fixed the firewire problems? I'm getting the same dmesg when connecting my 3G ipod... :(
_________________
Non fa male! Non fa male!
Back to top
View user's profile Send private message
boltronics
n00b
n00b


Joined: 25 Nov 2002
Posts: 49
Location: Melbourne, Australia

PostPosted: Tue Dec 07, 2004 2:50 am    Post subject: Reply with quote

I'm getting the same dmesg when connecting my 4Gb iPod to my PC (which only supports firewire). Didn't use to have a problem with the 2.4 series. I've compiled all the options in as specified, and loaded sbp2, etc. Tried playing around with both hotplug and coldplug, and the rescan-scsi-bus.sh as mentioned on the http://gtkpod.sf.net website... nothing. Obviously, this error is not PPC-specific.
_________________
"Free" as in "free speech", not as in "free beer".
GPG key ID: 0x78FDC750
Back to top
View user's profile Send private message
mirko_3
l33t
l33t


Joined: 02 Nov 2003
Posts: 605
Location: Birreria

PostPosted: Tue Dec 07, 2004 1:11 pm    Post subject: Reply with quote

It works for me now. I don't know what fixed it, but I know in what direction you should look: udev. I changed the RC_DEVICE_TARBALL="no" in /etc/conf.d/rc to yes, rebooted twice (yes twice, the first time I had an error about creating the tarball on shutting down and the ipod still didn't work, the second time it did). Now, if the ipod works, as it did for me, try changing it back and rebooting. See if you get it working. Anyway, that's about what I did...
_________________
Non fa male! Non fa male!
Back to top
View user's profile Send private message
boltronics
n00b
n00b


Joined: 25 Nov 2002
Posts: 49
Location: Melbourne, Australia

PostPosted: Tue Dec 07, 2004 9:42 pm    Post subject: Reply with quote

I managed to finally get this going too now, but it was just prior to reading your post. I recompiled my kernel with Raw IEEE1394 I/O support changed from being static to a module, and rebooted. It instantly worked, and I didn't touch udev at all.

I'm not sure if changing this did anything, but it would seem unlikely. Could it be that either the iPod or the kernel just wanted a reboot while both were attached to each other? Somehow, I won't be at all surprised if it suddenly stops working again at a later date. Thanks for the info though, I'll check it out if this happens again.
_________________
"Free" as in "free speech", not as in "free beer".
GPG key ID: 0x78FDC750
Back to top
View user's profile Send private message
_savage
Guru
Guru


Joined: 06 Jun 2004
Posts: 308
Location: Redmond, WA

PostPosted: Fri Dec 10, 2004 4:15 pm    Post subject: Reply with quote

mirko_3 wrote:
_savage: have you fixed the firewire problems? I'm getting the same dmesg when connecting my 3G ipod... :(


I didn't touch it ever since. I think I upgradet to another kernel, which broke everything again, and I couldn't be bothered to do it all over. So I just let it be...

Jens :)
_________________
Jens Troeger
http://savage.light-speed.de/
Back to top
View user's profile Send private message
phoolish
n00b
n00b


Joined: 20 Nov 2004
Posts: 19

PostPosted: Thu Dec 16, 2004 5:15 am    Post subject: Reply with quote

I've been dealing with this problem all day and discovered that building the 2.6.9r1 kernel with SCSI SCSI disk support in the kernel alloing with the earlier suggestions solved the connection issue for me. (vfat ipod and a pismo 400mhz fw).

Phoolishly Possible

next airport AirSnort
_________________
and karma was her middle name. ~ a friend.
Back to top
View user's profile Send private message
Valkyr
Tux's lil' helper
Tux's lil' helper


Joined: 30 Jan 2004
Posts: 123
Location: Belgium

PostPosted: Thu Jan 06, 2005 11:41 pm    Post subject: Reply with quote

boltronics wrote:
I managed to finally get this going too now, but it was just prior to reading your post. I recompiled my kernel with Raw IEEE1394 I/O support changed from being static to a module, and rebooted. It instantly worked, and I didn't touch udev at all.

I'm not sure if changing this did anything, but it would seem unlikely. Could it be that either the iPod or the kernel just wanted a reboot while both were attached to each other? Somehow, I won't be at all surprised if it suddenly stops working again at a later date. Thanks for the info though, I'll check it out if this happens again.


Was your iPod connected when you rebooted?
My iPod works when I connect it at boottime but it doesn't when I connect it afterwards...
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Gentoo on PPC All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum