public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
From: Marcel Ziswiler <marcel.ziswiler@toradex.com>
To: "ye.li@nxp.com" <ye.li@nxp.com>,
	"alpernebiyasak@gmail.com" <alpernebiyasak@gmail.com>,
	"uboot-imx@nxp.com" <uboot-imx@nxp.com>,
	"festevam@gmail.com" <festevam@gmail.com>,
	"peng.fan@nxp.com" <peng.fan@nxp.com>,
	"sbabic@denx.de" <sbabic@denx.de>,
	"sjg@chromium.org" <sjg@chromium.org>,
	"u-boot@lists.denx.de" <u-boot@lists.denx.de>
Cc: "oliver.graute@kococonnector.com" <oliver.graute@kococonnector.com>
Subject: Re: [PATCH v2 0/8] imx8: switch missing boards to binman
Date: Wed, 16 Nov 2022 09:47:04 +0000	[thread overview]
Message-ID: <56cf058164f331ce99ce75b0751b825ee2e07fc0.camel@toradex.com> (raw)
In-Reply-To: <CAOMZO5Dpmz97ZjxgEq3viqV2M_CA76JqwTCN3mr4KT7zKyaKQw@mail.gmail.com>

Hi guys

On Fri, 2022-11-11 at 14:55 -0300, Fabio Estevam wrote:
> On Fri, Nov 11, 2022 at 2:40 PM Fabio Estevam <festevam@gmail.com> wrote:
> 
> > I removed SPL support, which does not seems to be needed as the scufw
> > handles DDR init.
> > 
> > I don't have access to an imx8qm/qxp board here.
> > 
> > Could you try removing SPL support from your board and see if it boots
> > with binman support?
> 
> Ok, let's SPL for now as this is a different topic for discussion.

Sorry, for jumping in (late) again. However, I still have some serious doubts about the whole topic and was
rather surprised that this series just all of a sudden got applied. I hope it is just me being confused so
please bear with me.

What exactly is binman vs. imx8image now doing (vs. what was it doing before)? Let us e.g. look at the i.MX
8QuadMax MEK board:

arch/arm/dts/fsl-imx8qm-mek.dts [1]:

That one just includes the following:

arch/arm/dts/imx8qm-u-boot.dtsi [2]:

[snip]

>	u-boot-spl-ddr {

That seems to be the SPL stuff. However, as mentioned before, it has nothing to do with the DDR initialisation
as that is done by the SCFW, not? Anyway, does using SPL even make sense then? I highly doubt it or does
anybody know any sensible reason for it?

[snip]

>		mkimage {

Here above u-boot-spl-ddr.bin gets run through imx8image with the configuration taken from here (if I am not
mistaken):

board/freescale/imx8qm_mek/imximage.cfg [3]:

> /* Boot from SD, sector size 0x400 */
> BOOT_FROM SD 0x400
> /* SoC type IMX8QM */
> SOC_TYPE IMX8QM
> /* Append seco container image */
> APPEND mx8qm-ahab-container.img
> /* Create the 2nd container */
> CONTAINER
> /* Add scfw image with exec attribute */
> IMAGE SCU mx8qm-mek-scfw-tcm.bin
> /* Add ATF image with exec attribute */
> IMAGE A35 spl/u-boot-spl.bin 0x00100000

So, if I am not mistaken this does already add SECO, SCFW and ATF, right?

BTW: There is also still a board/freescale/imx8qm_mek/uboot-container.cfg [4] which likely no longer serves any
purpose, not?

Anyway, let's continue with our discussion on [2]:

[snip]

>	itb {
>		filename = "u-boot.itb";

So we create a fit image.

[snip]

>				uboot {

Which contains U-Boot proper.

[snip]

>				atf {

And ATF.

[snip]

>				scfw {

And SCFW.

[snip]

>					scfw_blob {
>						filename = "mx8qm-val-scfw-tcm.bin";

BTW: Are we supposed to have a hard-coded file name for that val board here?

[snip]

>				seco {

And SECO.

[snip]

>					seco_blob {
>						filename = "mx8qm-ahab-container.img";

BTW: At least nowadays that one would likely officially rather be called mx8qmb0-ahab-container.img.

[snip]

>				@fdt-SEQ {

And, of course, the(m) device tree(s).

However, are we sure any of them ATF, SCFW and/or SECO in that fit image are even ever used? How exactly is
this supposed to work?

[snip]

>	imx-boot {

Then it creates flash.bin but only containing the SPL?

[snip]

[1] https://source.denx.de/u-boot/u-boot/-/blob/master/arch/arm/dts/fsl-imx8qm-mek.dts
[2] https://source.denx.de/u-boot/u-boot/-/blob/master/arch/arm/dts/imx8qm-u-boot.dtsi
[3] https://source.denx.de/u-boot/u-boot/-/blob/master/board/freescale/imx8qm_mek/imximage.cfg
[4] https://source.denx.de/u-boot/u-boot/-/blob/master/board/freescale/imx8qm_mek/uboot-container.cfg

Thanks for clarifying the whole situation.

Cheers

Marcel

  reply	other threads:[~2022-11-16  9:47 UTC|newest]

Thread overview: 39+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-11-04 15:03 [PATCH v2 0/8] imx8: switch missing boards to binman Oliver Graute
2022-11-04 15:03 ` [PATCH v5 1/8] imx: imx8qm-rom7720: switch " Oliver Graute
2022-11-12 16:26   ` sbabic
2022-11-04 15:03 ` [PATCH v6 2/8] imx: imx8qm: cgtqmx8: " Oliver Graute
2022-11-12 16:26   ` sbabic
2022-11-04 15:03 ` [PATCH v2 3/8] imx: imx8qxp: imx8qxp_mek " Oliver Graute
2022-11-12 16:25   ` sbabic
2022-11-04 15:03 ` [PATCH v2 4/8] imx: imx8qm: imx8qm_mek " Oliver Graute
2022-11-12 16:26   ` sbabic
2022-11-04 15:03 ` [PATCH v2 5/8] imx: imx8qxp: giedi " Oliver Graute
2022-11-12 16:25   ` sbabic
2022-11-04 15:03 ` [PATCH v1 6/8] imx: imx8qxp: deneb " Oliver Graute
2022-11-12 16:26   ` sbabic
2022-11-04 15:03 ` [PATCH v2 7/8] imx: imx8x: colibri: " Oliver Graute
2022-11-12 16:25   ` sbabic
2022-11-04 15:03 ` [PATCH v2 8/8] imx: imx8: apalis: " Oliver Graute
2022-11-09 17:47   ` Marcel Ziswiler
2022-11-10 16:35     ` oliver.graute@kococonnector.com
2022-11-12 16:26   ` sbabic
2022-11-15 10:05     ` Marcel Ziswiler
2022-11-15 10:23       ` Stefano Babic
2022-11-04 16:31 ` [PATCH v2 0/8] imx8: switch missing boards " Fabio Estevam
2022-11-08 16:43   ` Stefano Babic
2022-11-08 22:16     ` Fabio Estevam
2022-11-09 15:44       ` Stefano Babic
2022-11-09 16:14       ` Oliver Graute
2022-11-09 16:19     ` Oliver Graute
2022-11-09 17:45       ` Fabio Estevam
2022-11-10 16:11         ` Tom Rini
2022-11-11 12:53         ` Oliver Graute
2022-11-11 17:40           ` Fabio Estevam
2022-11-11 17:55             ` Fabio Estevam
2022-11-16  9:47               ` Marcel Ziswiler [this message]
2022-11-18 13:41               ` Oliver Graute
2022-11-18 13:50                 ` Fabio Estevam
2022-11-22 14:23               ` Oliver Graute
2022-12-02  1:00                 ` Fabio Estevam
2022-11-18 12:35             ` Oliver Graute
2022-11-09 16:50   ` Marcel Ziswiler

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=56cf058164f331ce99ce75b0751b825ee2e07fc0.camel@toradex.com \
    --to=marcel.ziswiler@toradex.com \
    --cc=alpernebiyasak@gmail.com \
    --cc=festevam@gmail.com \
    --cc=oliver.graute@kococonnector.com \
    --cc=peng.fan@nxp.com \
    --cc=sbabic@denx.de \
    --cc=sjg@chromium.org \
    --cc=u-boot@lists.denx.de \
    --cc=uboot-imx@nxp.com \
    --cc=ye.li@nxp.com \
    /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