All of lore.kernel.org
 help / color / mirror / Atom feed
From: Simon Glass <sjg@chromium.org>
To: Jan Kiszka <jan.kiszka@siemens.com>
Cc: Alper Nebi Yasak <alpernebiyasak@gmail.com>,
	U-Boot Mailing List <u-boot@lists.denx.de>,
	 Heiko Thiery <heiko.thiery@gmail.com>
Subject: Re: [PATCH v2 4/5] binman: Convert FIT entry type to a subclass of Section entry type
Date: Mon, 28 Feb 2022 06:56:13 -0700	[thread overview]
Message-ID: <CAPnjgZ2O88ggp+Ne7Gid42WkXh9uVuQ8gakjwJvG8H1d_X4_Pw@mail.gmail.com> (raw)
In-Reply-To: <c010e06d-cea9-1aca-7f30-70faf20573de@siemens.com>

Hi Jan,

On Mon, 28 Feb 2022 at 04:48, Jan Kiszka <jan.kiszka@siemens.com> wrote:
>
> On 23.02.22 23:59, Simon Glass wrote:
> > Hi Alper,
> >
> > On Tue, 22 Feb 2022 at 11:58, Alper Nebi Yasak <alpernebiyasak@gmail.com> wrote:
> >>
> >> On 21/02/2022 07:40, Simon Glass wrote:
> >>> On Sat, 19 Feb 2022 at 08:53, Simon Glass <sjg@chromium.org> wrote:
> >>>> On Fri, 18 Feb 2022 at 10:34, Alper Nebi Yasak <alpernebiyasak@gmail.com> wrote:
> >>>>> I can reproduce this and tried a few things, but more issues just kept
> >>>>> popping up (outside u-boot as well). I got it to a point where the
> >>>>> command re-packs the FIT and the image but quite wrongly. The offset and
> >>>>> image-pos properties get added in the FIT, and the image main-section
> >>>>> just concatenates all entries without regard to set offsets. I'll
> >>>>> need more time to work those out, then to add tests and send patches.
> >>>>
> >>>> I am going to try to merge my fit generator series today.
> >>>>
> >>>> One issue I notice is that the conversion to use entry_Section changes
> >>>> the contents of the self._fit_entries dict. Before it was keyed by
> >>>> relative path, but entry_section keys self._entries by node name.
> >>
> >> Yeah, this causes an error in image.FindEntryPath() while trying to
> >> replace e.g. "/fit@0x280000/images/u-boot" since there is no "images"
> >> entry in the FIT. Changing the key to the node name works, but then the
> >> "binman replace" invocation needs to use e.g. "/fit@0x280000/u-boot".
> >>
> >>>>
> >>>> We may need to split it up. I will see if I can at least merge my
> >>>> series, which should not make things any worse, then see if I can come
> >>>> up with ideas.
> >>>>
> >>>> Thanks for the diff.
> >>>
> >>> I did a bit more fiddling and pushed a tree to u-boot-dm/fit-working
> >>>
> >>> It refactors the fit implementation to separate scanning from emitting
> >>> the tree and I think this might help quite a bit. I'll send out the
> >>> series when I get a chance in the next few days or so.
> >>
> >> I've also managed to somewhat fix the rest of the issues I wrote, so now
> >> I can replace a FIT entry with a modified one (having a different u-boot
> >> file), or replace a subentry of the FIT with an arbitrary file.
> >>
> >> I couldn't look at your new version much but I'll try to see how good my
> >> fixes apply on top of it, will probably take me longer to patchify things.
> >
> > OK I'm going to send a new series with (most of) your suggested fixes
> > a new patches, then my refactoring. Just need to get things through
> > CI.
> >
>
> What's the status here? I've just rebased over master, a simple revert
> of this commit no longer works, and the regression is still present. Are
> there any pending patches that fixes this and I should pick locally in
> order to rebase/test my pending things?

Please see this series and review if you can:

https://patchwork.ozlabs.org/user/todo/uboot/?series=287681

I did not add a test for your issue though. Can you take a look?

Regards,
Simon

  parent reply	other threads:[~2022-02-28 13:56 UTC|newest]

Thread overview: 27+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-02-07 22:08 [PATCH v2 0/5] binman: Improvements to FIT entry type Alper Nebi Yasak
2022-02-07 22:08 ` [PATCH v2 1/5] binman: Fix subentry expansion for " Alper Nebi Yasak
2022-02-08 15:05   ` Simon Glass
2022-02-08 20:39   ` Simon Glass
2022-02-07 22:08 ` [PATCH v2 2/5] binman: Register and check bintools from FIT subentries Alper Nebi Yasak
2022-02-07 22:08 ` [PATCH v2 3/5] binman: Check missing bintools of Section subclasses Alper Nebi Yasak
2022-02-07 22:08 ` [PATCH v2 4/5] binman: Convert FIT entry type to a subclass of Section entry type Alper Nebi Yasak
2022-02-14  9:09   ` Jan Kiszka
2022-02-15 12:27     ` Alper Nebi Yasak
2022-02-15 16:50       ` Jan Kiszka
2022-02-15 17:06         ` Jan Kiszka
2022-02-18 16:50           ` Jan Kiszka
2022-02-18 17:34             ` Alper Nebi Yasak
2022-02-19 15:53               ` Simon Glass
2022-02-21  4:40                 ` Simon Glass
2022-02-22 18:58                   ` Alper Nebi Yasak
2022-02-23 22:59                     ` Simon Glass
2022-02-28 11:48                       ` Jan Kiszka
2022-02-28 13:51                         ` Alper Nebi Yasak
2022-02-28 13:56                         ` Simon Glass [this message]
2022-02-28 14:14                           ` Jan Kiszka
2022-02-07 22:08 ` [PATCH v2 5/5] binman: Update image positions of FIT subentries Alper Nebi Yasak
2022-02-08 20:43   ` Simon Glass
2022-02-23  2:35   ` Simon Glass
2022-02-08 20:39 ` [PATCH v2 4/5] binman: Convert FIT entry type to a subclass of Section entry type Simon Glass
2022-02-08 20:39 ` [PATCH v2 3/5] binman: Check missing bintools of Section subclasses Simon Glass
2022-02-08 20:39 ` [PATCH v2 2/5] binman: Register and check bintools from FIT subentries 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=CAPnjgZ2O88ggp+Ne7Gid42WkXh9uVuQ8gakjwJvG8H1d_X4_Pw@mail.gmail.com \
    --to=sjg@chromium.org \
    --cc=alpernebiyasak@gmail.com \
    --cc=heiko.thiery@gmail.com \
    --cc=jan.kiszka@siemens.com \
    --cc=u-boot@lists.denx.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.