From: tike64 Date: Thu, 25 Oct 2007 03:18:01 -0700 (PDT) Subject: [U-Boot-Users] Atmel flash block protection Message-ID: <186495.20597.qm@web59210.mail.re1.yahoo.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Dear List, Atmel flash has an useful feature with which you can protect blocks and will be never again able to write or erase them before next reset. I think this could be used to protect u-boot blocks from application messing up them. But I have a couple of puzzles in figuring out how to use this feature. If I enabled CFG_FLASH_PROTECTION and implemented flash_real_protect function, then u-boot would protect the u-boot blocks on powerup and it would be impossible to unprotect them afterwards to update u-boot itself. How I'd like the protection to work in this case is that u-boot would use only software protection to the point where application is started. Just before jumping into the application or kernel the u-boot would hardware-protect the software-protected blocks. The downside is that implementing this idea would need touching cmd_boot and cmd_bootm code. Would patches be accepted? Any other ideas? -- Timo __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com