public inbox for ecos-discuss@sourceware.org
 help / color / mirror / Atom feed
* [ECOS] flash erase and bootblocks
@ 2005-05-09 14:08 Will Wagner
  2005-05-11 20:41 ` Andrew Lunn
  0 siblings, 1 reply; 3+ messages in thread
From: Will Wagner @ 2005-05-09 14:08 UTC (permalink / raw)
  To: ecos-discuss

Hi All,

I have a question about support for smaller bootblock sectors when 
erasing/programming flash.

I have a driver for AMD AM29DL323D flash chips all working nicely. These 
chips have 8 smaller sectors at the beginning of flash.

The erase and program routines in flash_am29xxxx.inl have support for 
the smaller bootblocks. However the flash_erase function in flash.c 
doesn't support the bootblocks so if I try to erase just one of the 
smaller sectors it erases all of them at once.

Anyone got any suggestions on how to get round this? Otherwise I guess 
I'll have to alter flash_erase to suit my needs.

Mnay thanks,
Will Wagner


-- 
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [ECOS] flash erase and bootblocks
  2005-05-09 14:08 [ECOS] flash erase and bootblocks Will Wagner
@ 2005-05-11 20:41 ` Andrew Lunn
  2005-05-12 10:34   ` Bart Veer
  0 siblings, 1 reply; 3+ messages in thread
From: Andrew Lunn @ 2005-05-11 20:41 UTC (permalink / raw)
  To: Will Wagner; +Cc: ecos-discuss

On Mon, May 09, 2005 at 10:41:17AM +0100, Will Wagner wrote:
> Hi All,
> 
> I have a question about support for smaller bootblock sectors when 
> erasing/programming flash.
> 
> I have a driver for AMD AM29DL323D flash chips all working nicely. These 
> chips have 8 smaller sectors at the beginning of flash.
> 
> The erase and program routines in flash_am29xxxx.inl have support for 
> the smaller bootblocks. However the flash_erase function in flash.c 
> doesn't support the bootblocks so if I try to erase just one of the 
> smaller sectors it erases all of them at once.
> 
> Anyone got any suggestions on how to get round this? Otherwise I guess 
> I'll have to alter flash_erase to suit my needs.

Take a look at the flash_v2 branch in CVS. It has a new api which
should allow this to work much cleaner. There is a driver for AMD
devices, but i don't know if this particular device is supported. You
will need to check the sources.

        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

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [ECOS] flash erase and bootblocks
  2005-05-11 20:41 ` Andrew Lunn
@ 2005-05-12 10:34   ` Bart Veer
  0 siblings, 0 replies; 3+ messages in thread
From: Bart Veer @ 2005-05-12 10:34 UTC (permalink / raw)
  To: will_wagner; +Cc: ecos-discuss

>>>>> "Andrew" == Andrew Lunn <andrew@lunn.ch> writes:

    Andrew> On Mon, May 09, 2005 at 10:41:17AM +0100, Will Wagner wrote:
    >> Hi All,
    >> 
    >> I have a question about support for smaller bootblock sectors
    >> when erasing/programming flash.
    >> 
    >> I have a driver for AMD AM29DL323D flash chips all working
    >> nicely. These chips have 8 smaller sectors at the beginning of
    >> flash.
    >> 
    >> The erase and program routines in flash_am29xxxx.inl have
    >> support for the smaller bootblocks. However the flash_erase
    >> function in flash.c doesn't support the bootblocks so if I try
    >> to erase just one of the smaller sectors it erases all of them
    >> at once.
    >> 
    >> Anyone got any suggestions on how to get round this? Otherwise
    >> I guess I'll have to alter flash_erase to suit my needs.

    Andrew> Take a look at the flash_v2 branch in CVS. It has a new
    Andrew> api which should allow this to work much cleaner. There is
    Andrew> a driver for AMD devices, but i don't know if this
    Andrew> particular device is supported. You will need to check the
    Andrew> sources.

The V2 AMD driver supports all AMD devices and compatibles, by virtue
of not knowing anything at all about specific chips. Instead details
such as the boot sector layout are supplied on a per-platform basis,
or you can make it use CFI at the cost of a bit more code. You can
look at the documentation as well as the sources.

Bart

-- 
Bart Veer                       eCos Configuration Architect
http://www.ecoscentric.com/     The eCos and RedBoot experts


-- 
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2005-05-11 21:09 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-05-09 14:08 [ECOS] flash erase and bootblocks Will Wagner
2005-05-11 20:41 ` Andrew Lunn
2005-05-12 10:34   ` Bart Veer

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).