Re: Need IDE Taskfile Access

Andries Brouwer (aebr@win.tue.nl)
Sat, 22 Jun 2002 01:09:29 +0200


On Fri, Jun 21, 2002 at 11:40:40PM +0100, Alan Cox wrote:

> > I'm working with a group of people in an effort to get Linux running on the
> > XBox. The XBox uses a set of security PIO commands to restrict access to
> > the IDE drive, requiring a 32 byte password to be delivered before sector
> > access is allowed. As far as I can tell from my investigations and from
> > earlier discussions with Andre there is currently no way to issue this
> > command. If I'm wrong in my estimation just let me know how, otherwise I
> > simply wish add my voice to the (albeit small) outcry for supporting the
> > entire ATA spec.
>
> That would I suspect be something for the kerneli patch.

No. Don't be misled by the "password". Translated into driver language
the question just is: I have a vendor-unique command that must transport
data to the disk. How? And if it doesnt work today the possibility must
be added.

(Long ago I had various small programs that did vendor-unique things
to ata floppies, zip drives, large ide drives and the like.
Commands for doorlocking, for switching between removable disk / big floppy
mode, for reading and setting the native max address, etc.
Unfortunately some random patch that accompanied one of these programs
got into the official tree, so that we now have the HDIO_DRIVE_CMD ioctl.
It does do_cmd_ioctl(). But that was special purpose for setmax,
not general purpose, and it does not transport data to the disk.
We need a slightly more general interface. Maybe we do have it already,
I have not watched this closely.)

Andries
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/