linuxppc-dev.lists.ozlabs.org archive mirror
 help / color / mirror / Atom feed
* Re: Ti Powerbooks and YDL 2.1 - Problems
  2001-11-06  2:41 Ti Powerbooks and YDL 2.1 - Problems Gavin Hemphill
@ 2001-11-06  0:37 ` Martin Costabel
  2001-11-06 15:16   ` Michael Schmitz
  2001-11-06 10:06 ` Benjamin Herrenschmidt
  1 sibling, 1 reply; 5+ messages in thread
From: Martin Costabel @ 2001-11-06  0:37 UTC (permalink / raw)
  To: hemphill; +Cc: yellowdog-general, linuxppc-dev


Gavin Hemphill wrote:
>
> Well I've just spent an interesting two days documenting a problem with
> the Ti Powerbooks and the 2.4 series kernels.  I have access to two
> 500Mhz Ti's with the Matshita DVD-ROM SR-8187 drives.  When I tried to
> follow Dan Burcaw's experimental instructions on doing a yup update of
> YDL2.0 to 2.1 I ran into the problem that a mount of any CD returned the
> error message "wrong media type" (I hadn't used the CD at all since
> moving to the 2.4 series kernels).

Did you try to mount it via the loop device:

 mount -o loop -t hfs /dev/cdrom /mnt/wherever

If this works, then you hit a kernel bug that was discussed 2 weeks ago
on linuxppc-dev
(thread "hfs cdrom broken in 2.4.13-pre" in
http://lists.linuxppc.org/linuxppc-dev/200110/threads5.html). It seems
to have been introduced around 2.4.10 and IIRC the result of the
discussion was that nobody was going to fix it.

Just a guess, could be something else entirely, of course.

--
Martin

** Sent via the linuxppc-dev mail list. See http://lists.linuxppc.org/

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

* Ti Powerbooks and YDL 2.1 - Problems
@ 2001-11-06  2:41 Gavin Hemphill
  2001-11-06  0:37 ` Martin Costabel
  2001-11-06 10:06 ` Benjamin Herrenschmidt
  0 siblings, 2 replies; 5+ messages in thread
From: Gavin Hemphill @ 2001-11-06  2:41 UTC (permalink / raw)
  To: yellowdog-general, linuxppc-dev


Well I've just spent an interesting two days documenting a problem with
the Ti Powerbooks and the 2.4 series kernels.  I have access to two
500Mhz Ti's with the Matshita DVD-ROM SR-8187 drives.  When I tried to
follow Dan Burcaw's experimental instructions on doing a yup update of
YDL2.0 to 2.1 I ran into the problem that a mount of any CD returned the
error message "wrong media type" (I hadn't used the CD at all since
moving to the 2.4 series kernels).  After trying all the various ways of
mounting an ISO CD I decided to try the 2.2 series kernels (which of
course are on the 2.0 CD - catch 22).  After downloading the old kernel
RPM's and installing them I was able to mount the CD with no problem and
actually completed the yup update to 2.1.  However with the new 2.4.10
kernel in place I'm back to the error message if I try and mount the CD
I used to do the update.  I've tried the latest kernels from Benh, and
the bk tree and they all report the same error.  It looks like the drive
is reporting that it doesn't have a DVD inserted, and fails to allow for
the fact that CDROMS are valid.  As a side note I've also observed this
error message on my G4 733 Tower with the superdrive.


** Sent via the linuxppc-dev mail list. See http://lists.linuxppc.org/

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

* Re: Ti Powerbooks and YDL 2.1 - Problems
  2001-11-06  2:41 Ti Powerbooks and YDL 2.1 - Problems Gavin Hemphill
  2001-11-06  0:37 ` Martin Costabel
@ 2001-11-06 10:06 ` Benjamin Herrenschmidt
  1 sibling, 0 replies; 5+ messages in thread
From: Benjamin Herrenschmidt @ 2001-11-06 10:06 UTC (permalink / raw)
  To: hemphill; +Cc: linuxppc-dev, yellowdog-general


>Well I've just spent an interesting two days documenting a problem with
>the Ti Powerbooks and the 2.4 series kernels.  I have access to two
>500Mhz Ti's with the Matshita DVD-ROM SR-8187 drives.  When I tried to
>follow Dan Burcaw's experimental instructions on doing a yup update of
>YDL2.0 to 2.1 I ran into the problem that a mount of any CD returned the
>error message "wrong media type" (I hadn't used the CD at all since
>moving to the 2.4 series kernels).  After trying all the various ways of
>mounting an ISO CD I decided to try the 2.2 series kernels (which of
>course are on the 2.0 CD - catch 22).  After downloading the old kernel
>RPM's and installing them I was able to mount the CD with no problem and
>actually completed the yup update to 2.1.  However with the new 2.4.10
>kernel in place I'm back to the error message if I try and mount the CD
>I used to do the update.  I've tried the latest kernels from Benh, and
>the bk tree and they all report the same error.  It looks like the drive
>is reporting that it doesn't have a DVD inserted, and fails to allow for
>the fact that CDROMS are valid.  As a side note I've also observed this
>error message on my G4 733 Tower with the superdrive.

This problem have been introduced by a change in the generic kernel
code that no longer does the necessary block size translation to mount
the 512 bytes block HFS filesystem from a 2048 bytes block CDROM device.

You have to mount it via the loopback device.

Ben.


** Sent via the linuxppc-dev mail list. See http://lists.linuxppc.org/

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

* Re: Ti Powerbooks and YDL 2.1 - Problems
       [not found] ` <20011106124602.29928@smtp.adsl.oleane.com>
@ 2001-11-06 14:43   ` Gavin Hemphill
  0 siblings, 0 replies; 5+ messages in thread
From: Gavin Hemphill @ 2001-11-06 14:43 UTC (permalink / raw)
  To: Benjamin Herrenschmidt; +Cc: linuxppc-dev


Ben:
	No problem, I can mount ISO cd's with the 2.2.19 (yellowdog) kernels
(those were the easiest for me to recover via ftp).  There are NO error
messages relating to ATAPI in dmesg with either the 2.2.19 or 2.4.10
(again yellowdog latest kernel).  I've tried it with your latest rsyncd
last night and have the same problem.  The error message in messages
with all the 2.4.x kernels on the Ti Powerbook only is "cdrom: PID xxxx
must open device O_NONBLOCK!" "open failed".  On the Wallstreet, Pismo,
and G4 tower there are no error messages and the mount succeeds.
	G++

Benjamin Herrenschmidt wrote:

>>	 I'd agree if it were an hfs cdrom. However, what I'm trying to do is
>>mount an ISO9660 cdrom (i.e. mount -t iso9660 /dev/cdrom /mnt/cdrom).
>>Now the same CD rom can be mounted on a Wallstreet, a Pismo, a G4 733
>>(when the superdrive is swapped out for a sony CDROM) all of which are
>>running the same kernel as the Ti Powerbook.  I guess I wasn't clear
>>enough in the description that this issue seems to be strictly related
>>to the Matshita SR-8187.  The other machines were installed from the
>>same install CD's etc.
>>
>
> Ah, ok, sorry, seems we have 2 different problems going on there...
>
> You say the same CD-ROM drive works with a 2.2.x kernel ?
>
> What 2.2.x version exactly ? Do you see any error from the ATAPI
> layer in dmesg ?
>
> Ben.
>
>
>


** Sent via the linuxppc-dev mail list. See http://lists.linuxppc.org/

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

* Re: Ti Powerbooks and YDL 2.1 - Problems
  2001-11-06  0:37 ` Martin Costabel
@ 2001-11-06 15:16   ` Michael Schmitz
  0 siblings, 0 replies; 5+ messages in thread
From: Michael Schmitz @ 2001-11-06 15:16 UTC (permalink / raw)
  To: Martin Costabel; +Cc: hemphill, yellowdog-general, linuxppc-dev


> > Well I've just spent an interesting two days documenting a problem with
> > the Ti Powerbooks and the 2.4 series kernels.  I have access to two
> > 500Mhz Ti's with the Matshita DVD-ROM SR-8187 drives.  When I tried to
> > follow Dan Burcaw's experimental instructions on doing a yup update of
> > YDL2.0 to 2.1 I ran into the problem that a mount of any CD returned the
> > error message "wrong media type" (I hadn't used the CD at all since
> > moving to the 2.4 series kernels).
>
> Did you try to mount it via the loop device:
>
>  mount -o loop -t hfs /dev/cdrom /mnt/wherever
>
> If this works, then you hit a kernel bug that was discussed 2 weeks ago
> on linuxppc-dev

This isn't a bug but a new feature :-) At least it's part of a new feature
(reblocking for filesystems where hardware blocksize doesn't match
filesystem blocksize via loopback) introduced in recent 2.4 kernels
(which-shoud-really-be-renamed-2.5 (tm)).

	Michael


** Sent via the linuxppc-dev mail list. See http://lists.linuxppc.org/

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

end of thread, other threads:[~2001-11-06 15:16 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2001-11-06  2:41 Ti Powerbooks and YDL 2.1 - Problems Gavin Hemphill
2001-11-06  0:37 ` Martin Costabel
2001-11-06 15:16   ` Michael Schmitz
2001-11-06 10:06 ` Benjamin Herrenschmidt
     [not found] <3BE7D31A.6040902@drea.dnd.ca>
     [not found] ` <20011106124602.29928@smtp.adsl.oleane.com>
2001-11-06 14:43   ` Gavin Hemphill

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).