From mboxrd@z Thu Jan 1 00:00:00 1970 From: Wolfgang Denk Date: Fri, 21 Jul 2006 13:45:32 +0200 Subject: [U-Boot-Users] Setting strataflash lock bit accidentally In-Reply-To: Your message of "Fri, 21 Jul 2006 13:22:20 +0200." <44C0B8EC.8090405@dave-tech.it> Message-ID: <20060721114532.18523353B57@atlas.denx.de> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de In message <44C0B8EC.8090405@dave-tech.it> you wrote: > > > Use MTD tools under Linux to unlock the flash? > > Indeed this is a possible solution but I'm looking for a general one > implemented in u-boot. In fact it must work with any operating system > and I must assume o.s. might not provide MTD or similar tools. It is easy to postulate requirements. But seriously, if you are careless enough to use flash chips which can change modes or even lose data by just writing random data to sequential addresses then you must also accept the consequences. Either provide adequate recovery mechanisms in Linux or your OS of choice or in U-Boot. I have to admit that I fail to understand what exactly your problem is: if you want to use the hardware protection features in U-Boot (including the unlocking of locked sectors) then just enable this feature in U-Boot. 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 Nobody goes to that restaurant anymore. It's too crowded.