From mboxrd@z Thu Jan 1 00:00:00 1970 From: Sangmoon Kim Date: Mon, 22 Aug 2005 14:37:03 +0900 Subject: [U-Boot-Users] [PATCH] cfi_flash.c patches References: <00b301c5a476$5c707fe0$212d4cdc@smkim> <430626AE.9030607@orkun.us> Message-ID: <002c01c5a6db$8a115ed0$212d4cdc@smkim> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Dear Tolunay Orkun, Sorry for late reply. > I think this is wrong approach. These sectors are protected for a reason > But some chips(like 28F320C3 from intel) automatically protect all sectors after reset. Although the chips have good reasons to do it. I think, some boards also have good reasons to undo it. > You should enable CFG_FLASH_PROTECTION in your board config file. If you > don't do this U-Boot will do software protection of sectors (which is > really for those flash chips with no hardware protection capability) and > "protect off" will not issue unlock commands as you may have witnessed. > That's right. Power-on-protected-automatically chips need both CFG_FLASH_PROTECTION and CFG_FLASH_PROTECT_CLEAR flags. > CFG_FLASH_PROTECTION will enable the "protect off" command to disable > protection properly on these sectors as it should. > I don't think it is convenient to protect off sectors manually which is automatically protected during power on. Best regards, Sangmoon Kim