[U-Boot-Users] Unable to erase or write into flash

navin karnam navin.karnam at gmail.com
Fri Jul 4 06:52:25 CEST 2008


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.

On Fri, Jul 4, 2008 at 6:45 AM, Nobuhiro Iwamatsu <iwamatsu at nigauri.org>
wrote:

> Hi,
>
> 2008/7/3 navin karnam <navin.karnam at gmail.com>:
> > Hi all,
> >
> >
> > I ported u-boot-1.3.3 on board, when boot the board iam getting
> messagesas
> > below.
> What do you use archtechture?
>
> <snip>
> >
> > 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.
>
> I think you failed flash protect off. Please check protect infomation
> by flinfo command after protect off.
> When protection is not excluded, setting of Flash may be wrong.
>
> <snip>
>
> >
> ---------------------------------------------------------------------------------------
> >
> > 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?
>
> Best regards,
>  Nobuhiro
>



--
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.denx.de/pipermail/u-boot/attachments/20080704/59fcd9c6/attachment.htm 


More information about the U-Boot mailing list