This is the mail archive of the
ecos-discuss@sources.redhat.com
mailing list for the eCos project.
Re: fis write from linux kernel
- From: Andrew Lunn <andrew at lunn dot ch>
- To: alfred hitch <alfred dot hitch at gmail dot com>
- Cc: ecos-discuss at ecos dot sourceware dot org
- Date: Fri, 25 Feb 2005 12:38:49 +0100
- Subject: Re: [ECOS] fis write from linux kernel
- References: <29f91651050225031523a124aa@mail.gmail.com>
On Fri, Feb 25, 2005 at 06:15:23AM -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.
Changing RedBoot is not a reliable solution. You never know the state
of the flash, so you have to assume it is locked. Been there, done
that, fallen into the trap. What you really want to do it make Linux
unlock the block before you write to it. I don't know mtd, but i
expect there is a way to do this.
Andrew
--
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss