2002-04-25 14:58:39

by FonkiE

[permalink] [raw]
Subject: Re: problems with sbp2 and sd_mod (ipod firewire harddisk)

hi!

i have an ipod too. yesterday everything worked fine. today i updated
from firmware 1.02 to 1.1. now the system crashed with 'modprobe sbp2'.

i tried it with 2.4.17 and 2.4.19-pre1.

what i know is that the mac-partition-map changed. so it may as well be
the the code that handles that which is the problem...

the most info i can get out of logfiles:

Apr 25 15:56:05 elch kernel: ohci1394: $Revision: 1.80 $ Ben Collins
<[email protected]>
Apr 25 15:56:05 elch kernel: PCI: Found IRQ 11 for device 00:0d.0
Apr 25 15:56:05 elch kernel: ohci1394_0: OHCI-1394 1.0 (PCI): IRQ=[11]
MMIO=[efffe000-effff000] Max Packet=[2048]
Apr 25 15:56:05 elch kernel: ieee1394: Device added: node 1:1023, GUID
000a27000201e05c
Apr 25 15:56:05 elch /sbin/hotplug: no runnable
/etc/hotplug/ieee1394.agent is installed
Apr 25 15:56:11 elch kernel: ieee1394: sbp2: Driver forced to serialize
I/O (serialize_io = 1)
Apr 25 15:56:11 elch kernel: ieee1394: sbp2: Node 1:1023: Max speed
[S400] - Max payload [2048]
Apr 25 15:56:11 elch kernel: scsi4 : IEEE-1394 SBP-2 protocol driver
Apr 25 15:56:11 elch kernel: Vendor: Apple Model: iPod
Rev: 1.10
Apr 25 15:56:11 elch kernel: Type: Direct-Access
ANSI SCSI revision: 02
Apr 25 15:56:11 elch kernel: Attached scsi removable disk sdb at scsi4,
channel 0, id 0, lun 0
Apr 25 15:56:11 elch kernel: SCSI device sdb: 9780750 512-byte hdwr
sectors (5008 MB)
Apr 25 15:56:11 elch kernel: sdb: Write Protect is off

then CRASH...

what ipod version do others have? similar problems? how to track it down?

a working version of the logs: (firmware 1.02 if ipod, kernel 2.4.17)

Mar 23 18:36:20 elch kernel: ohci1394: $Revision: 1.80 $ Ben Collins
<[email protected]>
Mar 23 18:36:20 elch kernel: PCI: Found IRQ 11 for device 00:0d.0
Mar 23 18:36:20 elch kernel: ohci1394_0: OHCI-1394 1.0 (PCI): IRQ=[11]
MMIO=[efffe000-effff000] Max Packet=[2048]
Mar 23 18:36:20 elch kernel: ieee1394: Device added: node 0:1023, GUID
000a27000201e05c
Mar 23 18:36:20 elch /sbin/hotplug: no runnable
/etc/hotplug/ieee1394.agent is installed
Mar 23 18:36:27 elch kernel: ieee1394: sbp2: Driver forced to serialize
I/O (serialize_io = 1)
Mar 23 18:36:27 elch kernel: ieee1394: sbp2: Node 0:1023: Max speed
[S400] - Max payload [2048]
Mar 23 18:36:27 elch kernel: scsi2 : IEEE-1394 SBP-2 protocol driver
Mar 23 18:36:27 elch kernel: Vendor: 01234567 Model: 89ABCDEFGHIJKLMN
Rev: OPQR
Mar 23 18:36:27 elch kernel: Type: Direct-Access
ANSI SCSI revision: 02
Mar 23 18:36:27 elch kernel: Attached scsi removable disk sdb at scsi2,
channel 0, id 0, lun 0
Mar 23 18:36:27 elch kernel: SCSI device sdb: 9780750 512-byte hdwr
sectors (5008 MB)
Mar 23 18:36:27 elch kernel: sdb: Write Protect is off
Mar 23 18:36:27 elch kernel: sdb: [mac] sdb1 sdb2 sdb3

CU,
FonkiE


2002-04-25 15:26:50

by Ben Collins

[permalink] [raw]
Subject: Re: problems with sbp2 and sd_mod (ipod firewire harddisk)

On Thu, Apr 25, 2002 at 05:00:57PM +0200, FonkiE wrote:
> hi!
>
> i have an ipod too. yesterday everything worked fine. today i updated
> from firmware 1.02 to 1.1. now the system crashed with 'modprobe sbp2'.

See our website for obtaining the latest source. There are a lot of
changes to ohci1394 and sbp2 that have so far fixed every known issue
with sbp2 devices.

--
Debian - http://www.debian.org/
Linux 1394 - http://linux1394.sourceforge.net/
Subversion - http://subversion.tigris.org/
Deqo - http://www.deqo.com/

2002-04-25 15:39:25

by FonkiE

[permalink] [raw]
Subject: Re: problems with sbp2 and sd_mod (ipod firewire harddisk)

hi!

> > i have an ipod too. yesterday everything worked fine. today i updated
> > from firmware 1.02 to 1.1. now the system crashed with 'modprobe sbp2'.
>
> See our website for obtaining the latest source. There are a lot of
> changes to ohci1394 and sbp2 that have so far fixed every known issue
> with sbp2 devices.

thanks that worked:

Apr 25 17:37:52 elch kernel: ohci1394: $Rev: 460 $ Ben Collins <[email protected]>
Apr 25 17:37:52 elch kernel: PCI: Found IRQ 11 for device 00:0d.0
Apr 25 17:37:52 elch kernel: ohci1394_0: OHCI-1394 1.0 (PCI): IRQ=[11] MMIO=[efffe000-effff000] Max Packet=[2048]
Apr 25 17:37:53 elch kernel: ieee1394: Device added: Node[00:1023] GUID[000a27000201e05c] [Apple Computer, Inc.]
Apr 25 17:37:53 elch kernel: ieee1394: Host added: Node[01:1023] GUID[009096000000036a] [Linux OHCI-1394]
Apr 25 17:37:53 elch /sbin/hotplug: no runnable /etc/hotplug/ieee1394.agent is installed
Apr 25 17:38:23 elch kernel: ieee1394: sbp2: Logged into SBP-2 device
Apr 25 17:38:23 elch kernel: ieee1394: sbp2: Node[00:1023]: Max speed [S400] - Max payload [2048]
Apr 25 17:38:23 elch kernel: scsi3 : IEEE-1394 SBP-2 protocol driver (host: ohci1394)
Apr 25 17:38:23 elch kernel: $Revision: 1.0 $ James Goodwin <[email protected]>
Apr 25 17:38:23 elch kernel: SBP-2 module load options:
Apr 25 17:38:23 elch kernel: - Max speed supported: S400
Apr 25 17:38:23 elch kernel: - Max sectors per I/O supported: 255
Apr 25 17:38:23 elch kernel: - Max outstanding commands supported: 8
Apr 25 17:38:23 elch kernel: - Max outstanding commands per lun supported: 1
Apr 25 17:38:23 elch kernel: - Serialized I/O (debug): no
Apr 25 17:38:23 elch kernel: - Exclusive login: yes
Apr 25 17:38:23 elch kernel: Vendor: Apple Model: iPod Rev: 1.10
Apr 25 17:38:23 elch kernel: Type: Direct-Access ANSI SCSI revision: 02
Apr 25 17:38:23 elch kernel: Attached scsi removable disk sda at scsi3, channel 0, id 0, lun 0
Apr 25 17:38:23 elch kernel: SCSI device sda: 9780750 512-byte hdwr sectors (5008 MB)
Apr 25 17:38:23 elch kernel: sda: test WP failed, assume Write Enabled
Apr 25 17:38:24 elch kernel: sda: [mac] sda1 sda2 sda3

when is this scheduled for the main kernel? is it already in a pre-patch?

CU,
FonkiE
--
[email protected] pgp public key on request CU

2002-04-25 16:03:38

by Ben Collins

[permalink] [raw]
Subject: Re: problems with sbp2 and sd_mod (ipod firewire harddisk)

>
> when is this scheduled for the main kernel? is it already in a pre-patch?
>

I will be sending the latest source to Linux and Marcello within a day
or two.

--
Debian - http://www.debian.org/
Linux 1394 - http://linux1394.sourceforge.net/
Subversion - http://subversion.tigris.org/
Deqo - http://www.deqo.com/

2002-04-25 19:15:53

by J.A. Magallon

[permalink] [raw]
Subject: Re: problems with sbp2 and sd_mod (ipod firewire harddisk)


On 2002.04.25 Ben Collins wrote:
>>
>> when is this scheduled for the main kernel? is it already in a pre-patch?
>>
>
>I will be sending the latest source to Linux and Marcello within a day
>or two.
>

I see that iPod is seen as a mac disk (partition map).
Is it mounted as an hfs filesystem ? Are you aware of any hfs recent
development/bugfix ?

TIA

--
J.A. Magallon # Let the source be with you...
mailto:[email protected]
Mandrake Linux release 8.3 (Cooker) for i586
Linux werewolf 2.4.19-pre7-jam7 #1 SMP jue abr 25 00:19:56 CEST 2002 i686