* Lombard Media Bay
@ 2000-02-22 14:49 Marcus H. Mendenhall
2000-02-22 22:48 ` Paul Mackerras
0 siblings, 1 reply; 3+ messages in thread
From: Marcus H. Mendenhall @ 2000-02-22 14:49 UTC (permalink / raw)
To: linuxppc-dev
I have been poking (in my limited spare time) at a problem I have
been having with the handling of the media bay on my PBG3 Broze (1999
Lombard... just to get in all the aliases this machine goes by :-) ).
If I boot with my zip drive (VST Zip) in the bay, I can read and
write from this drive. If I then eject the Zip, insert a CD-ROM
drive, eject it, and re-insert the CD-ROM, I can only access the
drive as read-only. Also, if I boot with the CD-ROM in, the Zi is
then read-only when inserted.
I have looked through a couple of spots in the kernel already, to wit:
drivers/macintosh/mediabay.c
drivers/block/ide-floppy.c (since the zip seems to be handled as a floppy)
and I cannot see where the decision is made as to whether a floppy
shows up as write-protected or not. There is only one reference to
the wp flag, and at first glance, this wasn't even accessed. I
supposed I could try to hack the flag to always-writable anytime a
zip is put in, but this might then mishandle read-only zips (which I
have never checked if they work anyway).
Does anyone out there have enough intimate familiarity with the
drivers to know exactly where to poke? (Paul M., are you listening?)
A related question is whether the DMA capability should get turned on
for the zip. Does it have the same capabilities as a regular IDE
drive, or is it really a lot more like a floppy in its interface?
Marcus Mendenhall
** Sent via the linuxppc-dev mail list. See http://lists.linuxppc.org/
^ permalink raw reply [flat|nested] 3+ messages in thread
* Lombard Media Bay
@ 2000-02-22 22:19 Marcus H. Mendenhall
0 siblings, 0 replies; 3+ messages in thread
From: Marcus H. Mendenhall @ 2000-02-22 22:19 UTC (permalink / raw)
To: linuxppc-dev
(Sorry if this is sent twice... I _think_ the first copy got rejected
because I sent it from the wrong email address...)
I have been poking (in my limited spare time) at a problem I have
been having with the handling of the media bay on my PBG3 Broze (1999
Lombard... just to get in all the aliases this machine goes by :-) ).
If I boot with my zip drive (VST Zip) in the bay, I can read and
write from this drive. If I then eject the Zip, insert a CD-ROM
drive, eject it, and re-insert the CD-ROM, I can only access the
drive as read-only. Also, if I boot with the CD-ROM in, the Zi is
then read-only when inserted.
I have looked through a couple of spots in the kernel already, to wit:
drivers/macintosh/mediabay.c
drivers/block/ide-floppy.c (since the zip seems to be handled as a floppy)
and I cannot see where the decision is made as to whether a floppy
shows up as write-protected or not. There is only one reference to
the wp flag, and at first glance, this wasn't even accessed. I
supposed I could try to hack the flag to always-writable anytime a
zip is put in, but this might then mishandle read-only zips (which I
have never checked if they work anyway).
Does anyone out there have enough intimate familiarity with the
drivers to know exactly where to poke? (Paul M., are you listening?)
A related question is whether the DMA capability should get turned on
for the zip. Does it have the same capabilities as a regular IDE
drive, or is it really a lot more like a floppy in its interface?
Marcus Mendenhall
** Sent via the linuxppc-dev mail list. See http://lists.linuxppc.org/
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Lombard Media Bay
2000-02-22 14:49 Lombard Media Bay Marcus H. Mendenhall
@ 2000-02-22 22:48 ` Paul Mackerras
0 siblings, 0 replies; 3+ messages in thread
From: Paul Mackerras @ 2000-02-22 22:48 UTC (permalink / raw)
To: linuxppc-dev, Marcus H. Mendenhall, linuxppc-dev
On Wed, 23 Feb 2000, Marcus H. Mendenhall wrote:
> If I boot with my zip drive (VST Zip) in the bay, I can read and
> write from this drive. If I then eject the Zip, insert a CD-ROM
> drive, eject it, and re-insert the CD-ROM, I can only access the
(do you mean "re-insert the Zip"?)
> drive as read-only. Also, if I boot with the CD-ROM in, the Zi is
> then read-only when inserted.
Hmmm... interesting. I've never tried with a zip drive, I don't have one.
> I have looked through a couple of spots in the kernel already, to wit:
> drivers/macintosh/mediabay.c
> drivers/block/ide-floppy.c (since the zip seems to be handled as a floppy)
An ATAPI floppy, yes, I would think.
> and I cannot see where the decision is made as to whether a floppy
> shows up as write-protected or not. There is only one reference to
> the wp flag, and at first glance, this wasn't even accessed. I
> supposed I could try to hack the flag to always-writable anytime a
> zip is put in, but this might then mishandle read-only zips (which I
> have never checked if they work anyway).
>
> Does anyone out there have enough intimate familiarity with the
> drivers to know exactly where to poke? (Paul M., are you listening?)
I'm not particularly familiar with the IDE driver code myself. I would
need to trace through it to find out where things are going wrong. A good
starting place would be to strace the mount command to see first of all
which system call is failing when you try to access it read-write.
> A related question is whether the DMA capability should get turned on
> for the zip. Does it have the same capabilities as a regular IDE
> drive, or is it really a lot more like a floppy in its interface?
Potentially it could do DMA. You can find out with `hdparm -i /dev/hda'.
--
Paul Mackerras, Senior Open Source Researcher, Linuxcare, Inc.
+61 2 6262 8990 tel, +61 2 6262 8991 fax
paulus@linuxcare.com.au, http://www.linuxcare.com.au/
Linuxcare. Support for the revolution.
** Sent via the linuxppc-dev mail list. See http://lists.linuxppc.org/
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2000-02-22 22:48 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2000-02-22 14:49 Lombard Media Bay Marcus H. Mendenhall
2000-02-22 22:48 ` Paul Mackerras
-- strict thread matches above, loose matches on Subject: below --
2000-02-22 22:19 Marcus H. Mendenhall
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).