public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
From: Tom Rini <trini@konsulko.com>
To: "François Ozog" <francois.ozog@linaro.org>
Cc: Jan Kiszka <jan.kiszka@siemens.com>,
	Simon Glass <sjg@chromium.org>,
	U-Boot Mailing List <u-boot@lists.denx.de>,
	Le Jin <le.jin@siemens.com>,
	Bao Cheng Su <baocheng.su@siemens.com>,
	Nian Gao <nian.gao@siemens.com>,
	Chao Zeng <chao.zeng@siemens.com>,
	Lokesh Vutla <lokeshvutla@ti.com>
Subject: Re: [PATCH v7 5/5] iot2050: Enable watchdog support, but do not auto-start it
Date: Mon, 13 Sep 2021 12:16:56 -0400	[thread overview]
Message-ID: <20210913161656.GQ12964@bill-the-cat> (raw)
In-Reply-To: <CAHFG_=VZrs0M2D51041e=Z4p5_2u9BPtdp-MmO0Tv-xYj5CkgQ@mail.gmail.com>

[-- Attachment #1: Type: text/plain, Size: 4455 bytes --]

On Mon, Sep 13, 2021 at 06:08:10PM +0200, François Ozog wrote:
> On Mon, 13 Sept 2021 at 17:36, Tom Rini <trini@konsulko.com> wrote:
> 
> > On Mon, Sep 13, 2021 at 04:59:35PM +0200, Jan Kiszka wrote:
> > > On 13.09.21 16:56, Tom Rini wrote:
> > > > On Mon, Sep 13, 2021 at 04:31:37PM +0200, Jan Kiszka wrote:
> > > >> On 13.09.21 14:34, Tom Rini wrote:
> > > >>> On Mon, Sep 13, 2021 at 09:57:45AM +0200, Jan Kiszka wrote:
> > > >>>> On 11.09.21 02:10, Tom Rini wrote:
> > > >>>>> On Tue, Aug 03, 2021 at 04:24:05PM +0200, Jan Kiszka wrote:
> > > >>>>>
> > > >>>>>> From: Jan Kiszka <jan.kiszka@siemens.com>
> > > >>>>>>
> > > >>>>>> This allows to use the watchdog in custom scripts but does not
> > enforce
> > > >>>>>> that the OS has to support it as well.
> > > >>>>>>
> > > >>>>>> Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com>
> > > >>>>>
> > > >>>>> Sorry for the late reply.  This causes CI to fail:
> > > >>>>> Building current source for 1 boards (1 thread, 16 jobs per thread)
> > > >>>>>    aarch64:  +   iot2050
> > > >>>>> +(iot2050) WARNING ATF file bl31.bin NOT found, resulting binary
> > is non-functional
> > > >>>>> +(iot2050) WARNING OPTEE file bl32.bin NOT found, resulting might
> > be non-functional
> > > >>>>> +(iot2050) binman: Filename 'k3-rti-wdt.fw' not found in input
> > path (.,/home/trini/work/u-boot/u-boot,board/siemens/iot2050,arch/arm/dts)
> > (cwd='/tmp/iot2050/.bm-work/iot2050')
> > > >>>>> +(iot2050) make[1]: *** [all] Error 1
> > > >>>>> +(iot2050) make: *** [sub-make] Error 2
> > > >>>>>     0    0    1 /1              iot2050
> > > >>>>>
> > > >>>>> And needs to be handled like ATF/OPTEE/etc where CI can build but
> > throw
> > > >>>>> a "THIS WILL NOT RUN CORRECTLY" type warning to the user.
> > > >>>>>
> > > >>>>
> > > >>>> I was about to sent an update anyway - time passed, and now we even
> > have
> > > >>>> support for the next generation integrated from the beginning. But
> > > >>>> related upstream DT changes are not yet merged.
> > > >>>
> > > >>> OK.
> > > >>>
> > > >>>> But back to this issue: How can CI be fed with all those required
> > > >>>> binaries? The build makes no sense in their absence.
> > > >>>
> > > >>> To be clearer, CI isn't fed all of the binaries, we just use
> > /dev/null
> > > >>> in that case and try and make it clear it won't boot.  K3 isn't a
> > good
> > > >>> example here, but I think sunxi uses binman and handles this same
> > class
> > > >>> of problem?
> > > >>>
> > > >>
> > > >> I'm seeing it additionally carrying a "missing-msg" property, but that
> > > >> alone (even with missing-blob-help updated) does not make the build
> > > >> pass. It rather seems I'm missing some "allow_missing" property for
> > that
> > > >> image, but even reading the code gives no clue yet how to achieve
> > that.
> > > >> Yet another binman mystery.
> > > >
> > > > You might also need a new file in tools/binman/etype/ ?  Also, it will
> > > > have a non-zero exit status still, but with a value of 101 which we
> > > > check for and know that's "binary blob missing" and so OK to allow CI
> > to
> > > > pass on.
> > > >
> > >
> > > Err, that doesn't sound like binman is making my life easier. Why can't
> > > a I simple do something like
> > >
> > >       k3-rti-wdt-firmware {
> > >               type = "blob";
> > >               load = <0x82000000>;
> > >               blob {
> > >                       filename = CONFIG_WDT_K3_RTI_FW_FILE;
> > >                       missing-msg = "k3-rti-wdt-firmware";
> > >                       allow_missing;
> > >               };
> > >       };
> > >
> > > and be done?
> >
> > Sounds like a good idea, and I'm not quite sure what's missing to go
> > from where we are today to there.  I might be missing something myself.
> >
> 
> If that entry is located in a DT for U-Boot consumption why not, but in the
> DT that is associated to a platform that is passed to the OS, that sounds
> like a practice to avoid as this does not describe hardware. Thinking
> compatibility, is the filename/filepath really OS independent ?

So, here's one of those cases where we aren't really talking about the
runtime device tree so much as how we configure the build.  binman is
how we assemble the assorted binaries in to a functional blob for a
given platform without having to write a new tool for every SoC.

-- 
Tom

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 659 bytes --]

  reply	other threads:[~2021-09-13 16:17 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-08-03 14:24 [PATCH v7 0/5] Add SIMATIC IOT2050 board support Jan Kiszka
2021-08-03 14:24 ` [PATCH v7 1/5] arm: dts: Add IOT2050 device tree files Jan Kiszka
2021-08-03 14:24 ` [PATCH v7 2/5] board: siemens: Add support for SIMATIC IOT2050 devices Jan Kiszka
2021-08-03 14:24 ` [PATCH v7 3/5] arm64: dts: ti: k3-am65-mcu: Add RTI watchdog entry Jan Kiszka
2021-08-03 14:24 ` [PATCH v7 4/5] watchdog: rti_wdt: Add support for loading firmware Jan Kiszka
2021-08-03 14:24 ` [PATCH v7 5/5] iot2050: Enable watchdog support, but do not auto-start it Jan Kiszka
2021-09-11  0:10   ` Tom Rini
2021-09-13  7:57     ` Jan Kiszka
2021-09-13 12:34       ` Tom Rini
2021-09-13 14:31         ` Jan Kiszka
2021-09-13 14:56           ` Tom Rini
2021-09-13 14:59             ` Jan Kiszka
2021-09-13 15:36               ` Tom Rini
2021-09-13 16:08                 ` François Ozog
2021-09-13 16:16                   ` Tom Rini [this message]
2021-09-13 16:10                 ` Jan Kiszka

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=20210913161656.GQ12964@bill-the-cat \
    --to=trini@konsulko.com \
    --cc=baocheng.su@siemens.com \
    --cc=chao.zeng@siemens.com \
    --cc=francois.ozog@linaro.org \
    --cc=jan.kiszka@siemens.com \
    --cc=le.jin@siemens.com \
    --cc=lokeshvutla@ti.com \
    --cc=nian.gao@siemens.com \
    --cc=sjg@chromium.org \
    --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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox