This is the mail archive of the ecos-discuss@sources.redhat.com mailing list for the eCos project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: fis write from linux kernel


On Fri, 2005-02-25 at 06:15 -0500, alfred hitch wrote:
> Hi,
> 
> Some more debugging , 
> I can write successfully to other areas of flash using my code . 
> so it seems that the redboot is locking that last erase block (fis
> area) and so buffer_write mode fails ??
> 
> if that the case, how can I verify and change this in the redboot code ? 
> Somone please tell me atleast this.
> 
> I am running short of time to deadline here -:( 
> (murphy law of last minute crash , causing me to do these last minute changes.)

You can lock and unlock MTD partitions from Linux using an ioctl
on /dev/mtdN, I forget what the ioctl is put a quick look through the
Linux headers should throw it up. I believe there are utilities in the
utils directory of MTD CVS called mtdlock and mtdunlock which implement
it already.

Ian.
-- 
Ian Campbell

"MSDOS didn't get as bad as it is overnight -- it took over ten years
of careful development."
(By dmeggins@aix1.uottawa.ca)

Attachment: signature.asc
Description: This is a digitally signed message part


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]