[U-Boot] [PATCH] fw_env: Make env flash lock optional

Tom Rini trini at konsulko.com
Thu Jun 2 21:26:28 CEST 2016


On Thu, Jun 02, 2016 at 08:57:05PM +0200, Dirk Eibach wrote:
> Hi Wolfgang,
> 
> 2016-06-02 15:36 GMT+02:00 Wolfgang Denk <wd at denx.de>:
> > ...
> >> There are  cornercases where lock/unlock works properly in the kernel
> >> but not in u-boot. So we might have an environment that was locked by
> >> u-boot and are able to unlock it with fw_env.
> >
> > But then such a "fix" looks wrong to me.  If it works in Linux, why
> > not fix the code so it works in U-Boot, too?  I mean, if you have a
> > working example, that should be possible, or not?
> 
> Sometimes I simply need a tool to repair a device in the field where
> updating u-boot or kernel is not an option.
> But uploading modified fw_env tools is.

So in sum, things are already in a bad state and this is the only way to
correct things?  Can you please make this a cli option instead with
appropriately scary help/man text?  Thanks!

-- 
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: Digital signature
URL: <http://lists.denx.de/pipermail/u-boot/attachments/20160602/e7e0e07f/attachment.sig>


More information about the U-Boot mailing list