[U-Boot-Users] [PATCH] cfi_flash.c patches

Wolfgang Denk wd at denx.de
Mon Aug 22 22:53:52 CEST 2005


In message <430A0538.2040908 at 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

-- 
Software Engineering:  Embedded and Realtime Systems,  Embedded Linux
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de
There is a time in the tides of men, Which, taken at its flood, leads
on to success. On the other hand, don't count on it.   - T. K. Lawson




More information about the U-Boot mailing list