Hello Jagan, On Thu, Sep 24, 2015 at 5:03 PM, Jagan Teki <jt...@openedev.com> wrote: ... > "sf protect on off len" then based on the offset and len write the > protected bits and skips the sectors which are protected by showing > warning say "protected sectors will not be erased!" [1]"
What about creating commands doing like this instead? "sf protect 000" ---> Write 000 to BP2 BP1 BP0 (do not protect any sector) "sf protect 001" ---> Write 001 to BP2 BP1 BP0 (protect the last 1/64 sectors) ... "sf protect 111" ---> Write 111 to BP2 BP1 BP0" (protect all sectors) Would this method be acceptable? It much simpler. I don't think that the proposed "sf protect on off len" would apply to the SPI NOR protection layout. Please advise. -- Otavio Salvador O.S. Systems http://www.ossystems.com.br http://code.ossystems.com.br Mobile: +55 (53) 9981-7854 Mobile: +1 (347) 903-9750 _______________________________________________ U-Boot mailing list U-Boot@lists.denx.de http://lists.denx.de/mailman/listinfo/u-boot