[U-Boot] [PATCH 06/51] cmd: Add command for calculating binary operations

Simon Glass sjg at chromium.org
Tue Jul 18 14:01:33 UTC 2017


Hi Mario,

On 14 July 2017 at 05:54, Mario Six <mario.six at gdsys.cc> wrote:
> This patch adds a command that enables the calculation of bit operations
> (AND, OR, XOR) on binary data from the command line. Memory locations as
> well as the contents of environment variables are eligible as sources
> and destination of the binary data used in the operations.
>
> The possible applications are manifold: Setting specific bits in
> registers using the regular read-OR-write pattern, masking out bits in
> bit values, implementation of simple OTP encryption using the XOR
> operation, etc.
>
> Signed-off-by: Mario Six <mario.six at gdsys.cc>

Is this very different from setexpr? It looks like it supports and / or.

Regards,
Simon


More information about the U-Boot mailing list