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

Stefan Roese sr at denx.de
Mon Nov 19 11:10:37 CET 2007


Hi Matthias,

On Monday 19 November 2007, Matthias Fuchs wrote:
> > 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} }
>
> This looks fine and I will start voting for this, too.

;)

> I am wondering if it is possible to get rid of the current autoprotection
> code (3 x flash_protect for monitor, env and 2nd env) in
> drivers/cfi_flash.c and fully implement it through the AUTOPROTECT_LIST
> without modifyiny all board config files. Any nice idea?

Not really. But it sounds like a good idea.

> Especially on 4xx when you like to have sometinhg like
>
> #define CONFIG_FLASH_AUTOPROTECT_LIST { {CFG_MONITOR_BASE, CFG_MONITOR_LEN}
> }
>
> in your config file you will flash_protect most of the bootloader flash
> space twice.

Yes.

Best regards,
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