Files
u-boot/tools
Ivan Mikhaylov db82015929 fw_setenv: lock the flash only if it was locked before
With current implementation of fw_setenv, it is always locks u-boot-env
region if lock interface is implemented for such mtd device. You can
not control lock of this region with fw_setenv, there is no option for
it in config or in application itself. Because of this situation may
happen problems like in this thread on xilinx forum:
https://forums.xilinx.com/t5/Embedded-Linux/Flash-be-locked-after-use-fw-setenv-from-user-space
/td-p/1027851

A short summary of that link is: some person has issue with some spi
chip which has lock interface but doesn't locks properly which leads to
lock of whole flash memory on lock of u-boot-env region. As resulted
solution hack was added into spi-nor.c driver for this chip with lock
disablement.

Instead fix this problem by adding logic to fw_setenv only lock the
flash if it was already locked when we attempted to use it.

Signed-off-by: Ivan Mikhaylov <fr0st61te@gmail.com>
2020-07-31 10:13:00 -04:00
..
2020-07-28 19:30:39 -06:00
2019-10-08 16:35:59 +02:00
2020-07-26 19:59:57 -06:00
2019-12-06 16:44:20 -05:00
2019-07-29 00:20:31 +02:00
2020-06-12 13:14:07 -04:00
2020-04-26 14:25:21 -06:00
2019-11-04 18:15:32 -07:00
2020-04-26 14:25:21 -06:00