[U-Boot-Users] [PATCH] cfi_flash.c patches
Sangmoon Kim
dogoil at etinsys.com
Mon Aug 22 07:37:03 CEST 2005
Dear Tolunay Orkun,
Sorry for late reply.
> I think this is wrong approach. These sectors are protected for a reason
>
But some chips(like 28F320C3 from intel) automatically
protect all sectors after reset.
Although the chips have good reasons to do it.
I think, some boards also have good reasons to undo it.
> You should enable CFG_FLASH_PROTECTION in your board config file. If you
> don't do this U-Boot will do software protection of sectors (which is
> really for those flash chips with no hardware protection capability) and
> "protect off" will not issue unlock commands as you may have witnessed.
>
That's right. Power-on-protected-automatically chips need both
CFG_FLASH_PROTECTION and CFG_FLASH_PROTECT_CLEAR flags.
> CFG_FLASH_PROTECTION will enable the "protect off" command to disable
> protection properly on these sectors as it should.
>
I don't think it is convenient to protect off sectors manually
which is automatically protected during power on.
Best regards,
Sangmoon Kim
More information about the U-Boot
mailing list