All of lore.kernel.org
 help / color / mirror / Atom feed
From: Jonas Karlman <jonas@kwiboo.se>
To: Simon Glass <sjg@chromium.org>
Cc: "Alper Nebi Yasak" <alpernebiyasak@gmail.com>,
	"Pali Rohár" <pali@kernel.org>,
	"Heinrich Schuchardt" <xypron.glpk@gmx.de>,
	"Marek Behún" <kabel@kernel.org>,
	"Quentin Schulz" <quentin.schulz@theobroma-systems.com>,
	"Stefan Herbrechtsmeier" <stefan.herbrechtsmeier@weidmueller.com>,
	u-boot@lists.denx.de
Subject: Re: [PATCH 0/9] binman: Show missing blob message when building U-Boot
Date: Thu, 16 Mar 2023 07:45:04 +0000 (UTC)	[thread overview]
Message-ID: <0ea3ef72-2c96-bc38-d4cf-55c15cd8be33@kwiboo.se> (raw)
In-Reply-To: <CAPnjgZ2ktyL8Ht0=_jRqJtu4MNJ7uQZMBM4TQSTmxV6ptss55w@mail.gmail.com>

Hi Simon,
On 2023-03-10 21:49, Simon Glass wrote:
> Hi Jonas,
> 
> On Sun, 19 Feb 2023 at 14:02, Jonas Karlman <jonas@kwiboo.se> wrote:
>>
>> binman currently support showing a helpful missing blob message, but
>> only when the --allow-missing flag is used.
>>
>> This changes so that binman is invoked with the --allow-missing flag
>> and the helpful message can be shown by default when building U-Boot.
>>
>> Using the following:
>>
>>   make rockpro64-rk3399_defconfig
>>   make CROSS_COMPILE="aarch64-linux-gnu-"
>>
>> Before this series a build fails with:
>>
>>   binman: Filename 'atf-bl31' not found in input path (...)
>>
>> After this series a build fails with:
>>
>>   Image 'simple-bin' is missing external blobs and is non-functional: atf-bl31
>>
>>   /binman/simple-bin/fit/images/@atf-SEQ/atf-bl31 (atf-bl31):
>>      See the documentation for your board. You may need to build ARM Trusted
>>      Firmware and build with BL31=/path/to/bl31.bin
>>
>>   Image 'simple-bin' is missing external blobs but is still functional: tee-os
>>
>>   /binman/simple-bin/fit/images/@tee-SEQ/tee-os (tee-os):
>>      See the documentation for your board. You may need to build Open Portable
>>      Trusted Execution Environment (OP-TEE) with TEE=/path/to/tee.bin
>>
>>   Some images are invalid
>>
>> Builds will continue to fail when there is missing blobs, and the use of
>> BINMAN_ALLOW_MISSING=1 now only enables the --ignore-missing flag.
>>
>> This series also fixes a few minor issues that prevented some missing
>> and optional blobs to be detected for fit and mkimage entries.
>>
>> Patch 1-3 contains spelling fixes and code cleanup for related parts.
>> Patch 4-6 improve missing/optional detection for fit and mkimage entries.
>> Patch 7-8 improve the missing blob warning message output.
>> Patch 9 finally update Makefile to always pass the --allow-missing flag.
>>
>> The series is based on top of [1], and is the follow-up series meant to
>> address the issue with missing blob message for mkimage entries.
>>
>> [1] https://patchwork.ozlabs.org/project/uboot/cover/20230219150629.4012377-1-jonas@kwiboo.se/
>>
>> Jonas Karlman (9):
>>   binman: Remove redundant SetAllowFakeBlob from blob-ext entry
>>   binman: Fix spelling of nodes in code comments
>>   binman: Use correct argument name in docstrings
>>   binman: Override CheckOptional in fit entry
>>   binman: Implement missing check functions in mkimage entry
>>   binman: Mark mkimage entry missing when its subnodes is missing
>>   binman: Fix blank line usage for invalid images warning text
>>   binman: Show filename in missing blob help message
>>   Makefile: Show binman missing blob message
>>
>>  Makefile                                      |  2 +-
>>  tools/binman/control.py                       | 24 ++++++---
>>  tools/binman/entry.py                         |  2 +-
>>  tools/binman/etype/blob.py                    |  2 +-
>>  tools/binman/etype/blob_ext.py                |  8 ---
>>  tools/binman/etype/fit.py                     |  9 +++-
>>  tools/binman/etype/mkimage.py                 | 54 ++++++++++++++++++-
>>  tools/binman/etype/section.py                 |  6 +--
>>  tools/binman/ftest.py                         |  9 ++++
>>  tools/binman/state.py                         |  2 +-
>>  .../test/278_mkimage_missing_multiple.dts     | 19 +++++++
>>  11 files changed, 111 insertions(+), 26 deletions(-)
>>  create mode 100644 tools/binman/test/278_mkimage_missing_multiple.dts
>>
>> --
>> 2.39.2
>>
> 
> I applied what I could of this to -next
> 
> Could you please take another look and see if we can get the rest in?

Sure, I will take a look at a v2 (with more tests) in next few days.

Still unclear what to do about "Makefile: Show binman missing blob
message" at [2]. Should I re-send it as-is, change it or just drop it?

[2] https://patchwork.ozlabs.org/project/uboot/patch/20230219220158.4160763-10-jonas@kwiboo.se/#3063614

Regards,
Jonas

> 
> Regards,
> Simon


  reply	other threads:[~2023-03-16  7:45 UTC|newest]

Thread overview: 29+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-02-19 22:02 [PATCH 0/9] binman: Show missing blob message when building U-Boot Jonas Karlman
2023-02-19 22:02 ` [PATCH 2/9] binman: Fix spelling of nodes in code comments Jonas Karlman
2023-02-21 19:35   ` Simon Glass
2023-03-08 22:17     ` Simon Glass
2023-02-19 22:02 ` [PATCH 1/9] binman: Remove redundant SetAllowFakeBlob from blob-ext entry Jonas Karlman
2023-02-21 19:35   ` Simon Glass
2023-03-08 22:17     ` Simon Glass
2023-02-19 22:02 ` [PATCH 4/9] binman: Override CheckOptional in fit entry Jonas Karlman
2023-02-21 19:35   ` Simon Glass
2023-02-19 22:02 ` [PATCH 3/9] binman: Use correct argument name in docstrings Jonas Karlman
2023-02-21 19:35   ` Simon Glass
2023-03-08 22:17     ` Simon Glass
2023-02-19 22:02 ` [PATCH 5/9] binman: Implement missing check functions in mkimage entry Jonas Karlman
2023-02-21 19:41   ` Simon Glass
2023-02-19 22:02 ` [PATCH 6/9] binman: Mark mkimage entry missing when its subnodes is missing Jonas Karlman
2023-02-21 19:41   ` Simon Glass
2023-02-19 22:02 ` [PATCH 8/9] binman: Show filename in missing blob help message Jonas Karlman
2023-02-21 19:41   ` Simon Glass
2023-02-19 22:02 ` [PATCH 7/9] binman: Fix blank line usage for invalid images warning text Jonas Karlman
2023-02-21 19:41   ` Simon Glass
2023-02-19 22:02 ` [PATCH 9/9] Makefile: Show binman missing blob message Jonas Karlman
2023-02-21 19:41   ` Simon Glass
2023-02-21 23:09     ` Tom Rini
2023-02-22 21:20       ` Simon Glass
2023-02-22 21:45         ` Tom Rini
2023-02-22 22:56           ` Simon Glass
2023-03-10 20:49 ` [PATCH 0/9] binman: Show missing blob message when building U-Boot Simon Glass
2023-03-16  7:45   ` Jonas Karlman [this message]
2023-03-16 13:48     ` Simon Glass

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=0ea3ef72-2c96-bc38-d4cf-55c15cd8be33@kwiboo.se \
    --to=jonas@kwiboo.se \
    --cc=alpernebiyasak@gmail.com \
    --cc=kabel@kernel.org \
    --cc=pali@kernel.org \
    --cc=quentin.schulz@theobroma-systems.com \
    --cc=sjg@chromium.org \
    --cc=stefan.herbrechtsmeier@weidmueller.com \
    --cc=u-boot@lists.denx.de \
    --cc=xypron.glpk@gmx.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.