[U-Boot] Can not erase first 2 sectors on flash

Wolfgang Denk wd at denx.de
Thu Jun 24 20:55:44 CEST 2010


Dear Chen Wen,

In message <AANLkTinSedp4src5LFcmlraDSRsx_lCDiCCZoRR841go at mail.gmail.com> 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!_


More information about the U-Boot mailing list