All of lore.kernel.org
 help / color / mirror / Atom feed
From: Jens Axboe <axboe@suse.de>
To: Pascal Schmidt <der.eremit@email.de>
Cc: Alan Cox <alan@lxorguk.ukuu.org.uk>,
	Linux Kernel Mailing List <linux-kernel@vger.kernel.org>
Subject: Re: [IDE] trying to make MO drive work with ide-floppy/ide-cd
Date: Tue, 6 May 2003 16:07:51 +0200	[thread overview]
Message-ID: <20030506140751.GA25817@suse.de> (raw)
In-Reply-To: <Pine.LNX.4.44.0305061552520.1235-100000@neptune.local>

On Tue, May 06 2003, Pascal Schmidt wrote:
> On 6 May 2003, Alan Cox wrote:
> 
> > I'm not aware of any plans to make ide-floppy handle that disk, or reasons
> > you would want to use ide floppy in 2.5 not the ide-cd layer (which does
> > now handle writable devices I believe).
> 
> Okay, didn't think of that, so I now tried using ide-cd for the MO drive
> (2.5.68+bkcvs). I still had to patch ide-probe.c, just passing "hde=cdrom" 
> did not do what I wanted. ;)

Uh nasty :)

> Now I get the following at bootup:
> 
> hde: FUJITSU MCC3064AP, ATAPI OPTICAL drive
> hde: set_drive_speed_status: status=0x51 { DriveReady SeekComplete Error }
> hde: set_drive_speed_status: error=0x04
> Uniform CD-ROM driver Revision: 3.12
> end_request: I/O error, dev hde, sector 0
> hde: packet command error: status=0x51 { DriveReady SeekComplete Error }
> hde: packet command error: error=0x50
> end_request: I/O error, dev hde, sector 0
> ATAPI device hde:
>   Error: Illegal request -- (Sense key=0x05)
>   Invalid field in command packet -- (asc=0x24, ascq=0x00)
>   The failed "Mode Sense 10" packet command was: 
>   "5a 00 2a 00 00 00 00 00 18 00 00 00 00 00 00 00 "
>   Error in command data byte 8800
> hde: packet command error: status=0x51 { DriveReady SeekComplete Error }
> hde: packet command error: error=0x50
> end_request: I/O error, dev hde, sector 0
> ATAPI device hde:
>   Error: Illegal request -- (Sense key=0x05)
>   Invalid field in command packet -- (asc=0x24, ascq=0x00)
>   The failed "Mode Sense 10" packet command was: 
>   "5a 00 2a 00 00 00 00 00 18 00 00 00 00 00 00 00 "
>   Error in command data byte 8800
> end_request: I/O error, dev hde, sector 0

It barfs at a lot of commands, not surprisingly. ide-cd really has no
concept of devices other than cd/dvd.

> This doesn't look encouraging. However, the MO drive sort of works:
> 
> # mount -t ext2 /dev/hde /mnt/mo
> mount: block device /dev/hde is write-protected, mounting read-only
> 
> The disk gets mounted and reading works just fine. No write support,
> though. To reiterate, everything works under 2.4 using ide-scsi.

You need to patch cdrom.c as well:

	if ((fp->f_mode & FMODE_WRITE) && !CDROM_CAN(CDC_DVD_RAM))
		return -EROFS;

> What can I do to help get this drive supported under 2.5/ide-cd?

I'm tempted to say ide-scsi + sd, but that goes against my principles...
It shouldn't be too much work to make ide-cd work gracefully.

-- 
Jens Axboe


  reply	other threads:[~2003-05-06 14:07 UTC|newest]

Thread overview: 21+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-05-05 20:04 [IDE] trying to make MO drive work with ide-floppy Pascal Schmidt
2003-05-06  9:41 ` Alan Cox
2003-05-06 14:02   ` [IDE] trying to make MO drive work with ide-floppy/ide-cd Pascal Schmidt
2003-05-06 14:07     ` Jens Axboe [this message]
2003-05-06 15:19       ` Pascal Schmidt
2003-05-06 15:25         ` Jens Axboe
2003-05-06 15:43           ` Jens Axboe
2003-05-06 16:23             ` Pascal Schmidt
2003-05-06 16:22           ` Pascal Schmidt
2003-05-06 17:59           ` Pascal Schmidt
2003-05-06 18:04             ` Jens Axboe
2003-05-06 18:18               ` Pascal Schmidt
2003-05-06 14:10     ` Pascal Schmidt
2003-05-06 14:11       ` Jens Axboe
2003-05-06 15:15         ` Pascal Schmidt
2003-05-07 18:02       ` Pascal Schmidt
2003-05-07 19:33         ` Jens Axboe
2003-05-08 11:33           ` Pascal Schmidt
2003-05-08 12:09             ` Jens Axboe
2003-05-08 12:20               ` Bartlomiej Zolnierkiewicz
2003-05-08 12:43                 ` Pascal Schmidt

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20030506140751.GA25817@suse.de \
    --to=axboe@suse.de \
    --cc=alan@lxorguk.ukuu.org.uk \
    --cc=der.eremit@email.de \
    --cc=linux-kernel@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.