Hi ,
You are right, flash protect was not happening properly because i was not enabled the the FLAG
CFG_FLASH_PROTECTION. Now it is happening after enabling it.
Thanks and Regards,
Naveen.
Hi,
2008/7/3 navin karnam <navin.karnam@gmail.com>:
> Hi all,What do you use archtechture?
>
>
> I ported u-boot-1.3.3 on board, when boot the board iam getting messagesas
> below.
<snip>
>I think you failed flash protect off. Please check protect infomation
> But when try erasing flash :
> #erase all
> Erase Flash Bank # 1 - Warning: 259 protected sectors will not be erased!
> done
>
> So i enabled the flash for writing using:
> #protect off all
> Un-Protect Flash Bank # 1
>
> After that also i am unable erase the flash:
> #erase all
> ---------------------------------------------------
> Flash erase error at address 680000
> Block Erase Error.
> Block locked.
by flinfo command after protect off.
When protection is not excluded, setting of Flash may be wrong.
<snip>
Best regards,
> ---------------------------------------------------------------------------------------
>
> So how do i erase or write into flash, do i need to write my code which
> should do erase and writting into flash? or
> The code in u-boot is sufficient to that?
Nobuhiro