mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* Data about Apple iPod, Mac, Powerbook, iBook needed
@ 2006-04-08 17:36 Stefan Richter
  2006-04-15  7:55 ` Jon Masters
  0 siblings, 1 reply; 5+ messages in thread
From: Stefan Richter @ 2006-04-08 17:36 UTC (permalink / raw)
  To: linux1394-user; +Cc: linux-kernel

Hi all,

a number of Apple iPods have buggy firmware which report a wrong disk 
size when plugged in. This may lead to I/O errors, making the iPod 
inaccessible under Linux. I have been told this happens especially if 
the kernel is configured for EFI partition support.

The USB storage driver already contains a workaround for several iPod 
models. We need to add the same to the FireWire storage driver (sbp2). 
Alas we cannot use the same model IDs like usb-storage to detect whether 
a disk is actually an iPod. In particular, sbp2 must be able to 
distinguish between iPods and Apple Macs or Powerbooks or iBooks which 
are attached to a Linux box in "target disk mode".

Therefore I need help from people who have a FireWire iPod and a Linux 
box with FireWire port:

1. Please plug it in via FireWire and report the output of
    $ cat /sys/bus/ieee1394/devices/000a27*-0/model_id
    and of
    $ dmesg | grep "hdwr sectors"
2. If it is an USB/FireWire combo iPod, please also plug it in
    via USB and report the output of
    $ dmesg | grep "hdwr sectors"
I would also like to know the model of iPod (i.e. generation of iPod) 
and the version of the Linux kernel.

I also need help from people who have an Apple Mac or Powerbook or iBook 
and a Linux box with FireWire port:

A. On the Linux box, unload the sbp2 driver:
    # modprobe -r sbp2
    Reload it with the following parameter:
    # modprobe sbp2 force_inquiry_hack=1
    Also make sure that ohci1394 is loaded. (Check with lsmod. Some
    rare host adapters need pcilynx instead oh ohci1394.)
B. Reboot the Apple and hold the "t" key. This boots the Mac into
    "target disk mode", i.e. lets it expose its built-in HDD as a
    FireWire disk. The "t" key can be released when a big FireWire
    symbol is shown on the screen.
C. Connect the Mac and the Linux box via FireWire. The sbp2 driver
    should now log in into the Mac, which will be shown in the kernel
    log as well as in /proc/scsi/scsi. Please report the output of
    $ dmesg | grep firmware_revision
D. The Mac can be unplugged and normally rebooted after this.

Thanks in advance to everyone who takes the time to collect these data.
-- 
Stefan Richter
-=====-=-==- -=-- -=---
http://arcgraph.de/sr/

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Data about Apple iPod, Mac, Powerbook, iBook needed
  2006-04-08 17:36 Data about Apple iPod, Mac, Powerbook, iBook needed Stefan Richter
@ 2006-04-15  7:55 ` Jon Masters
  2006-04-18  9:41   ` Jody McIntyre
  0 siblings, 1 reply; 5+ messages in thread
From: Jon Masters @ 2006-04-15  7:55 UTC (permalink / raw)
  To: Stefan Richter; +Cc: linux1394-user, linux-kernel

On 4/8/06, Stefan Richter <stefanr@s5r6.in-berlin.de> wrote:

> Therefore I need help from people who have a FireWire iPod and a Linux
> box with FireWire port:
>
> 1. Please plug it in via FireWire and report the output of
>     $ cat /sys/bus/ieee1394/devices/000a27*-0/model_id

Reported ID is 0x000000.

>     and of
>     $ dmesg | grep "hdwr sectors"

I don't have that output in my logs, but hdparm tells me:

/dev/sda:
 readonly = 0 (off)
 readahead = 256 (on)
 geometry = 38147/64/32, sectors = 40000536576, start = 0

> I would also like to know the model of iPod (i.e. generation of iPod)
> and the version of the Linux kernel.

It's a 3G iPod and the box in question is a Powerbook[0] running a
rawhide (Fedora) kernel based on 2.6.16.1.

Jon.

[0] All the Powerbooks here run only Linux.

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Data about Apple iPod, Mac, Powerbook, iBook needed
  2006-04-15  7:55 ` Jon Masters
@ 2006-04-18  9:41   ` Jody McIntyre
  2006-04-18 13:06     ` Jon Masters
  0 siblings, 1 reply; 5+ messages in thread
From: Jody McIntyre @ 2006-04-18  9:41 UTC (permalink / raw)
  To: Jon Masters; +Cc: Stefan Richter, linux1394-user, linux-kernel

On Sat, Apr 15, 2006 at 08:55:30AM +0100, Jon Masters wrote:

> [0] All the Powerbooks here run only Linux.

You can still do the 't' thing.  It's in the firmware.  However, Stefan
has already sent me a patch so he probably doesn't need this information
anymore.

Cheers,
Jody

> 
> 
> -------------------------------------------------------
> This SF.Net email is sponsored by xPML, a groundbreaking scripting language
> that extends applications into web and mobile media. Attend the live webcast
> and join the prime developer group breaking into this new coding territory!
> http://sel.as-us.falkag.net/sel?cmd=lnk&kid\x110944&bid$1720&dat\x121642
> _______________________________________________
> mailing list Linux1394-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/linux1394-user

-- 

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Data about Apple iPod, Mac, Powerbook, iBook needed
  2006-04-18  9:41   ` Jody McIntyre
@ 2006-04-18 13:06     ` Jon Masters
  2006-04-18 16:42       ` Stefan Richter
  0 siblings, 1 reply; 5+ messages in thread
From: Jon Masters @ 2006-04-18 13:06 UTC (permalink / raw)
  To: Jody McIntyre; +Cc: Stefan Richter, linux1394-user, linux-kernel

On 4/18/06, Jody McIntyre <scjody@modernduck.com> wrote:
> On Sat, Apr 15, 2006 at 08:55:30AM +0100, Jon Masters wrote:
>
> > [0] All the Powerbooks here run only Linux.
>
> You can still do the 't' thing.  It's in the firmware.  However, Stefan
> has already sent me a patch so he probably doesn't need this information
> anymore.

Sure. I was just hinting that the original post implied one owned a
Mac and/or a Linux box and that the two weren't necessarily the same
thing :-)

Jon.

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Data about Apple iPod, Mac, Powerbook, iBook needed
  2006-04-18 13:06     ` Jon Masters
@ 2006-04-18 16:42       ` Stefan Richter
  0 siblings, 0 replies; 5+ messages in thread
From: Stefan Richter @ 2006-04-18 16:42 UTC (permalink / raw)
  To: Jon Masters; +Cc: Jody McIntyre, linux1394-user, linux-kernel

Jon Masters wrote:
> On 4/18/06, Jody McIntyre <scjody@modernduck.com> wrote:
>> On Sat, Apr 15, 2006 at 08:55:30AM +0100, Jon Masters wrote:
>> > [0] All the Powerbooks here run only Linux.
>>
>> You can still do the 't' thing.  It's in the firmware.  However, Stefan
>> has already sent me a patch so he probably doesn't need this information
>> anymore.
> 
> Sure. I was just hinting that the original post implied one owned a
> Mac and/or a Linux box and that the two weren't necessarily the same
> thing :-)

Jon, if you have the time and two available machines, I would still be
interested if there is a firmware_revision logged by sbp2 when it logs
in into a Powerbook in target disk mode.

(Remember to unload/reload sbp2 with "modprobe sbp2
force_inquiry_hack=1" on the machine which is running Linux; sbp2 would
not print that log message otherwise. There will also be no log message
if the Powerbook's firmware does not generate a firmware_revision entry
in the first place, as has been reported by iBook owners.)

TIA,
-- 
Stefan Richter
-=====-=-==- -=-- =--=-
http://arcgraph.de/sr/

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2006-04-18 16:44 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-04-08 17:36 Data about Apple iPod, Mac, Powerbook, iBook needed Stefan Richter
2006-04-15  7:55 ` Jon Masters
2006-04-18  9:41   ` Jody McIntyre
2006-04-18 13:06     ` Jon Masters
2006-04-18 16:42       ` Stefan Richter

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®