
In message 430A0538.2040908@orkun.us you wrote:
I think "protect off" command is the convenience enough for this situation.
YMMV.
- All flash is writable by default.
Why do you even attempt to provide software protection for some sectors of flash when the chip does not provide such protection then?
To protect myself from doing stupid things too often. To allow me being lazy like running "era all" without need to think where U-Boot or the environment might be located on a board.
Why do you override the policy of other applications for sectors that U-Boot has no actual use itself. Why do you unlock them all and present
Because there simply *is* *no* policy at all. Especially not in a one-size-fits-all driver like cfi_flash which is what we are talking about.
If you have special requirements please feel free to implement these in your board specific code. But don't try to enforce your special ideas of how things should be on everybody else.
Best regards,
Wolfgang Denk