From: Wolfgang Denk Date: Thu, 24 Jun 2010 20:55:44 +0200 Subject: [U-Boot] Can not erase first 2 sectors on flash In-Reply-To: References: <20100614071545.GA11255@linux1.cs.nctu.edu.tw> Message-ID: <20100624185544.C3626E5418B@gemini.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 Dear Chen Wen, In message you wrote: > > But I load my simple trace32 script, I can write data to flash via trace 32. > simple initial of trace32: > ========================================= > D.S DCR:0xF9 %LONG %BE 000000019 ; CPC0_PCI, PerWE, PAE > D.S DCR:0xF6 %LONG %BE 0 > gosub IEBC "EBC0_B0AP" 0x10 007869200 > gosub IEBC "EBC0_B0CR" 0x00 0FF09A000 ; 16MB @FE000000 > ========================================= > When I verify the value of "EBC and CPC0_PCI" register. > u-boot and simple script fill the same value on "EBC and CPC0_PCI" > > I am trying to find out what registers protect flash from writing. PerWE? with "WE" as in "Write Enable" ? Best regards, Wolfgang Denk -- DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de If there was anything that depressed him more than his own cynicism, it was that quite often it still wasn't as cynical as real life. - Terry Pratchett, _Guards! Guards!_