[U-Boot] [PATCH v2 5/5] cgtqmx6eval: Protect the manufacturing information in SPI NOR

Otavio Salvador otavio.salvador at ossystems.com.br
Wed Sep 23 18:51:50 CEST 2015


Hello Jagan,

On Wed, Sep 23, 2015 at 12:56 PM, Jagan Teki <jteki at openedev.com> wrote:
> All looks fine as per your patches, but probing flash from board files
> isn't a good approach if one more board add similar  approach.
>
> I have an idea similar to "cfi_flash" approach.
>
> "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]
>
> Use the Linux approach[2] for more information, let me know for any more inputs.
>
> [1] http://www.denx.de/wiki/view/DULG/UBootCmdGroupFlash#Section_5.9.3.4.
> [2] http://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git/commit/drivers/mtd/devices/m25p80.c?id=972e1b7b450a93589b2a4c709e68f68da059aa5c

I think this is a good option however, can we include this one for
this release and we can improve it for next?

-- 
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


More information about the U-Boot mailing list