[ECOS] fis write from linux kernel

Ian Campbell ijc@hellion.org.uk
Sat Feb 26 12:24:00 GMT 2005


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)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
URL: <http://sourceware.org/pipermail/ecos-discuss/attachments/20050226/53267102/attachment.sig>


More information about the Ecos-discuss mailing list