Re: Direct writing to the IDE on panic?

From: Steven Rostedt
Date: Fri Apr 14 2006 - 10:54:59 EST



On Fri, 14 Apr 2006, Alan Cox wrote:

> On Gwe, 2006-04-14 at 10:27 -0400, Steven Rostedt wrote:
> > Nice point. But fortunately, this is for a custom application running on
> > an embedded device, such that the data that is on another part of the disk
> > (which btw is an IDE flash) is just the application and the rest of the
> > OS. So, although a bad write to the disk will cause much more work, it
> > wont destroy data that cant be replaced.
>
> If you know the controller as well then you are correct in assuming the
> code to do the dump is very simple indeed providing you stick to PIO,
> especially if you know the set up is already done before crash
>

Thank you very much for your input Alan!

Now my strength in IDE is not that strong, hence the reason I was asking
if this was done before. I'd like to look at some examples before I go
ahead and figure it out on my own. I'm sure that I'm going to need to do
a rewrite for our specific configuration, but looking at others work might
make things easier.

Since this is all under GPL (my customer will give all the source to who
ever they distribute it to), I was hoping to take advantage of free
software here and not completely reinvent the wheel (and destroying it
along the way ;)

Thanks,

-- Steve

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