Re: Direct writing to the IDE on panic?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Fri, 14 Apr 2006 10:54:19 -0400 (EDT) Steven Rostedt wrote:

> 
> 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 ;)

Rusty Russell had an IDE block dump patch during the 2.4
timeframe IIRC.  I don't know where it could be found now.
Maybe in old LKCD tarballs or archives?

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

[Index of Archives]     [Kernel Newbies]     [Netfilter]     [Bugtraq]     [Photo]     [Stuff]     [Gimp]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Video 4 Linux]     [Linux for the blind]     [Linux Resources]
  Powered by Linux