[U-Boot-Users] Setting strataflash lock bit accidentally

Wolfgang Denk wd at denx.de
Fri Jul 21 13:02:14 CEST 2006


In message <44C0AA44.5050400 at dave-tech.it> you wrote:
> Let's assume that, because a software bug, an application has 
> accidentally set the lock bit of the flash sector used to store the 
> U-Boot environment. In this case, when trying to store a new environment 
> with the saveenv command, U-Boot would not be able to complete the 
> operation. Is it enough to define CFG_FLASH_PROTECTION in order to 
> handle this situation and to allow U-Boot to unlock the sector (same 
> thing would happen in case the locked sectors fall in the memrory area 
> devoted to store kernels or ramsisks)? If no, how do you suggest to 
> manage this situation?

Use MTD tools under Linux to unlock the flash?

Best regards,

Wolfgang Denk

-- 
Software Engineering:  Embedded and Realtime Systems,  Embedded Linux
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de
All a hacker needs is a tight PUSHJ, a loose pair of UUOs, and a warm
place to shift.




More information about the U-Boot mailing list