[U-Boot-Users] flash hardware protection with CFI driver does not autoprotect monitor completely

Stefan Roese sr at denx.de
Mon Nov 19 07:14:44 CET 2007


On Sunday 18 November 2007, Wolfgang Denk wrote:
> > > I think as a short term fix we might define an additional  area  that
> > > needs  to  be  protected  (the reset vector). Mid/long term we should
> > > change the code so you  can  pass  a  list  of  areas  (start/end  or
> > > start/length  pairs) that will be protected. This would, for example,
> > > also allow to keep certain other  areas  (FDT,  kernel  image,  etc.)
> > > auto-protected as well - configurable by the user ona per-board base.
> >
> > Sometinhg like this?
> >
> > Add this to board's config file:
> > #define CONFIG_FLASH_AUTOPROTECT_LIST {{0xfffe0000, 0xffffffff},
> > {0xfe000000, 0xfe0fffff}}
>
> Yes, that's what I meant, although I have to admit that my personal
> preference would be to use { start, size }  instead.
>
> What do you (and others) think?

Yes, I would prefer size too. This would lead to something like this on 4xx 
boards:

#define CONFIG_FLASH_AUTOPROTECT_LIST { {CFG_MONITOR_BASE, CFG_MONITOR_LEN} }

Thanks.

Viele Grüße,
Stefan

=====================================================================
DENX Software Engineering GmbH,     MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: +49-8142-66989-0 Fax: +49-8142-66989-80  Email: office at denx.de
=====================================================================




More information about the U-Boot mailing list