<feed xmlns='http://www.w3.org/2005/Atom'>
<title>u-boot.git/tools, branch v2022.04-rc2</title>
<subtitle>Unnamed repository; edit this file 'description' to name the repository.</subtitle>
<id>http://cgit.235523.xyz/u-boot.git/atom/tools?h=v2022.04-rc2</id>
<link rel='self' href='http://cgit.235523.xyz/u-boot.git/atom/tools?h=v2022.04-rc2'/>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/u-boot.git/'/>
<updated>2022-02-11T20:11:52Z</updated>
<entry>
<title>Merge tag 'efi-2022-04-rc2-4' of https://source.denx.de/u-boot/custodians/u-boot-efi</title>
<updated>2022-02-11T20:11:52Z</updated>
<author>
<name>Tom Rini</name>
<email>trini@konsulko.com</email>
</author>
<published>2022-02-11T20:07:49Z</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/u-boot.git/commit/?id=162c22bfbc4141f22937c6bc37aa02fd4621e76c'/>
<id>urn:sha1:162c22bfbc4141f22937c6bc37aa02fd4621e76c</id>
<content type='text'>
Pull request for efi-2022-04-rc2-4

Documentation:

* mkeficapsule man-page

UEFI changes:

* add support for signing images to mkeficapsule
* add support for user define capsule GUID
* adjust unit tests for capsules
* fix UEFI image signature validation in case of multiple signatures
</content>
</entry>
<entry>
<title>tools: mkeficapsule: allow for specifying GUID explicitly</title>
<updated>2022-02-11T19:07:55Z</updated>
<author>
<name>AKASHI Takahiro</name>
<email>takahiro.akashi@linaro.org</email>
</author>
<published>2022-02-09T10:10:39Z</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/u-boot.git/commit/?id=d9612f4426b490a5df420083b5aaf812607d4197'/>
<id>urn:sha1:d9612f4426b490a5df420083b5aaf812607d4197</id>
<content type='text'>
The existing options, "--fit" and "--raw," are only used to put a proper
GUID in a capsule header, where GUID identifies a particular FMP (Firmware
Management Protocol) driver which then would handle the firmware binary in
a capsule. In fact, mkeficapsule does the exact same job in creating
a capsule file whatever the firmware binary type is.

To prepare for the future extension, the command syntax will be a bit
modified to allow users to specify arbitrary GUID for their own FMP driver.
OLD:
   [--fit &lt;image&gt; | --raw &lt;image&gt;] &lt;capsule file&gt;
NEW:
   [--fit | --raw | --guid &lt;guid-string&gt;] &lt;image&gt; &lt;capsule file&gt;

Signed-off-by: AKASHI Takahiro &lt;takahiro.akashi@linaro.org&gt;
Reviewed-by: Simon Glass &lt;sjg@chromium.org&gt;
</content>
</entry>
<entry>
<title>tools: mkeficapsule: add firmware image signing</title>
<updated>2022-02-11T19:07:55Z</updated>
<author>
<name>AKASHI Takahiro</name>
<email>takahiro.akashi@linaro.org</email>
</author>
<published>2022-02-09T10:10:35Z</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/u-boot.git/commit/?id=16abff246b400bcb6f1ef85e501e5bbbd3c6aa53'/>
<id>urn:sha1:16abff246b400bcb6f1ef85e501e5bbbd3c6aa53</id>
<content type='text'>
With this enhancement, mkeficapsule will be able to sign a capsule
file when it is created. A signature added will be used later
in the verification at FMP's SetImage() call.

To do that, we need specify additional command parameters:
  -monotonic-cout &lt;count&gt; : monotonic count
  -private-key &lt;private key file&gt; : private key file
  -certificate &lt;certificate file&gt; : certificate file
Only when all of those parameters are given, a signature will be added
to a capsule file.

Users are expected to maintain and increment the monotonic count at
every time of the update for each firmware image.

Signed-off-by: AKASHI Takahiro &lt;takahiro.akashi@linaro.org&gt;
Reviewed-by: Simon Glass &lt;sjg@chromium.org&gt;
Acked-by: Ilias Apalodimas &lt;ilias.apalodimas@linaro.org&gt;
</content>
</entry>
<entry>
<title>tools: build mkeficapsule with tools-only_defconfig</title>
<updated>2022-02-11T19:07:55Z</updated>
<author>
<name>AKASHI Takahiro</name>
<email>takahiro.akashi@linaro.org</email>
</author>
<published>2022-02-09T10:10:34Z</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/u-boot.git/commit/?id=9af16cc8f1ad8144db6d70ea65a51e4ef1398397'/>
<id>urn:sha1:9af16cc8f1ad8144db6d70ea65a51e4ef1398397</id>
<content type='text'>
Add CONFIG_TOOLS_MKEFICAPSULE. Then we want to always build mkeficapsule
if tools-only_defconfig is used.

Signed-off-by: AKASHI Takahiro &lt;takahiro.akashi@linaro.org&gt;
Reviewed-by: Simon Glass &lt;sjg@chromium.org&gt;
</content>
</entry>
<entry>
<title>fw_env: simplify logic &amp; code paths in the fw_env_open()</title>
<updated>2022-02-11T16:29:23Z</updated>
<author>
<name>Rafał Miłecki</name>
<email>rafal@milecki.pl</email>
</author>
<published>2022-01-12T11:47:06Z</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/u-boot.git/commit/?id=07c79dd5fdeaefb39c9e7a97f3b66de63109a18d'/>
<id>urn:sha1:07c79dd5fdeaefb39c9e7a97f3b66de63109a18d</id>
<content type='text'>
Environment variables can be stored in two formats:
1. Single entry with header containing CRC32
2. Two entries with extra flags field in each entry header

For that reason fw_env_open() has two main code paths and there are
pointers for CRC32/flags/data.

Previous implementation was a bit hard to follow:
1. It was checking for used format twice (in reversed order each time)
2. It was setting "environment" global struct fields to some temporary
   values that required extra comments explaining it

This change simplifies that code:
1. It introduces two clear code paths
2. It sets "environment" global struct fields values only once it really
   knows them

To be fair there are *two* crc32() calls now and an extra pointer
variable but that should be cheap enough and worth it.

Signed-off-by: Rafał Miłecki &lt;rafal@milecki.pl&gt;
</content>
</entry>
<entry>
<title>fw_env: make flash_io() take buffer as an argument</title>
<updated>2022-02-11T16:29:23Z</updated>
<author>
<name>Rafał Miłecki</name>
<email>rafal@milecki.pl</email>
</author>
<published>2022-01-12T11:47:05Z</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/u-boot.git/commit/?id=f178f7c9550c4fd9c644f79a1eb2dafa5bcdce25'/>
<id>urn:sha1:f178f7c9550c4fd9c644f79a1eb2dafa5bcdce25</id>
<content type='text'>
It's usually easier to understand code &amp; follow it if all arguments are
passed explicitly. Many coding styles also discourage using global
variables.

Behaviour of flash_io() was a bit unintuitive as it was writing to a
buffer referenced in a global struct. That required developers to
remember how it works and sometimes required hacking "environment"
global struct variable to read data into a proper buffer.

Signed-off-by: Rafał Miłecki &lt;rafal@milecki.pl&gt;
</content>
</entry>
<entry>
<title>mkimage: Improve documentation of algo-name parameter</title>
<updated>2022-02-11T16:29:10Z</updated>
<author>
<name>Jan Kiszka</name>
<email>jan.kiszka@siemens.com</email>
</author>
<published>2022-02-05T12:19:36Z</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/u-boot.git/commit/?id=32a711dbdbec9aed6777d1059d115b1c83d36fca'/>
<id>urn:sha1:32a711dbdbec9aed6777d1059d115b1c83d36fca</id>
<content type='text'>
Addresses the feedback provided on 5902a397d029 ("mkimage: Allow to
specify the signature algorithm on the command line") which raced with
the merge.

Signed-off-by: Jan Kiszka &lt;jan.kiszka@siemens.com&gt;
Reviewed-by: Simon Glass &lt;sjg@chromium.org&gt;
</content>
</entry>
<entry>
<title>Merge tag 'dm-pull-8feb22-take3' of https://gitlab.denx.de/u-boot/custodians/u-boot-dm</title>
<updated>2022-02-10T14:19:44Z</updated>
<author>
<name>Tom Rini</name>
<email>trini@konsulko.com</email>
</author>
<published>2022-02-10T14:02:06Z</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/u-boot.git/commit/?id=2ccd2bc8c3580e00c51094c5cc2b3e2ead8d35c3'/>
<id>urn:sha1:2ccd2bc8c3580e00c51094c5cc2b3e2ead8d35c3</id>
<content type='text'>
patman snake-case conversion
binman fit improvements
ACPI fixes and making MCFG available to ARM

[trini: Update scripts/pylint.base]
Signed-off-by: Tom Rini &lt;trini@konsulko.com&gt;
</content>
</entry>
<entry>
<title>tools: kwboot: Allow to use -b without image path as the last getopt() option</title>
<updated>2022-02-10T06:12:16Z</updated>
<author>
<name>Pali Rohár</name>
<email>pali@kernel.org</email>
</author>
<published>2022-02-07T09:12:24Z</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/u-boot.git/commit/?id=9e6d71d2b55f156c907d073825359d6ae441d9cf'/>
<id>urn:sha1:9e6d71d2b55f156c907d073825359d6ae441d9cf</id>
<content type='text'>
Currently it is possible to call "kwboot -b -t /dev/ttyUSB0" but not to
call "kwboot -b /dev/ttyUSB0".

Fix it by not trying to process the last argv[], which is non-getopt()
option (tty path) as the image path for -b.

Fixes: c513fe47dca2 ("tools: kwboot: Allow to use option -b without image path")
Reported-by: Marcel Ziswiler &lt;marcel@ziswiler.com&gt;
Signed-off-by: Pali Rohár &lt;pali@kernel.org&gt;
Reviewed-by: Marcel Ziswiler &lt;marcel@ziswiler.com&gt;
Tested-by: Marcel Ziswiler &lt;marcel@ziswiler.com&gt;
</content>
</entry>
<entry>
<title>tools: kwboot: Fix detection of quit esc sequence</title>
<updated>2022-02-10T06:12:16Z</updated>
<author>
<name>Pali Rohár</name>
<email>pali@kernel.org</email>
</author>
<published>2022-02-03T16:45:20Z</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/u-boot.git/commit/?id=de7514046ea5e66ecdfcffc59031e0561d5b3aa6'/>
<id>urn:sha1:de7514046ea5e66ecdfcffc59031e0561d5b3aa6</id>
<content type='text'>
Quit esc sequence may be also in the middle of the read buffer.
Fix the detection for that case.

Signed-off-by: Pali Rohár &lt;pali@kernel.org&gt;
Reviewed-by: Stefan Roese &lt;sr@denx.de&gt;
</content>
</entry>
</feed>
