All of lore.kernel.org
 help / color / mirror / Atom feed
From: Oliver Graute <oliver.graute@gmail.com>
To: ZHIZHIKIN Andrey <andrey.zhizhikin@leica-geosystems.com>
Cc: Stefano Babic <sbabic@denx.de>,
	Fabio Estevam <festevam@gmail.com>,
	"NXP i.MX U-Boot Team" <uboot-imx@nxp.com>,
	"aford173@gmail.com" <aford173@gmail.com>,
	"peng.fan@nxp.com" <peng.fan@nxp.com>,
	"marcel.ziswiler@toradex.com" <marcel.ziswiler@toradex.com>,
	"tharvey@gateworks.com" <tharvey@gateworks.com>,
	"u-boot@lists.denx.de" <u-boot@lists.denx.de>
Subject: Re: [RFC] imx: imx8qm-rom7720: switch to binman
Date: Mon, 10 Jan 2022 16:32:01 +0100	[thread overview]
Message-ID: <20220110153201.GB10212@optiplex> (raw)
In-Reply-To: <AM6PR06MB46910CF3A554D83C12C9F18FA6509@AM6PR06MB4691.eurprd06.prod.outlook.com>

On 10/01/22, ZHIZHIKIN Andrey wrote:
> Hello Oliver,
> 
> > -----Original Message-----
> > From: Oliver Graute <oliver.graute@kococonnector.com>
> > Sent: Monday, January 10, 2022 11:31 AM
> > To: Oliver Graute <oliver.graute@kococonnector.com>; Stefano Babic
> > <sbabic@denx.de>; Fabio Estevam <festevam@gmail.com>; NXP i.MX U-Boot Team
> > <uboot-imx@nxp.com>
> > Cc: aford173@gmail.com; peng.fan@nxp.com; marcel.ziswiler@toradex.com;
> > tharvey@gateworks.com; ZHIZHIKIN Andrey <andrey.zhizhikin@leica-geosystems.com>;
> > u-boot@lists.denx.de
> > Subject: [RFC] imx: imx8qm-rom7720: switch to binman
> > 
> > Switch to use binman to pack images
> 
> Please don't forget S-o-B, checkpatch does complain about it. ;)

will do it on next submission

> > 
> > ---
> > 
> > Run into this issue on the first try to get binman working:
> > 
> > make[1]: Nothing to be done for 'SPL'.
> >   BINMAN  flash.bin
> >   MKIMAGE flash.bin
> > Error: spl/u-boot-spl.cfgout[16] - Invalid command (LOADER)
> > arch/arm/mach-imx/Makefile:190: recipe for target 'flash.bin' failed
> > make[1]: *** [flash.bin] Error 1
> > make[1]: *** Deleting file 'flash.bin'
> > Makefile:1519: recipe for target 'flash.bin' failed
> > make: *** [flash.bin] Error 2
> > 
> > Some clue howto fix that?
> 
> This might be due to the fact that you're using the same u-boot-nodtb.bin binary twice: once in binman section, and once in ITB. You can try to rename the binman entry to a different name, this might do the trick. See [1] for sample of imx8mq_evk conversion.
 
ok I think I fixed that. I dropped additionally the following
statements:

make u-boot.bin
make flash.bin 

just make is enough here or?

But still get this warning even if CONFIG_SPL_FIT_GENERATOR is disabled.

make imx8qm_rom7720_a1_4G_defconfig && make
#
# configuration written to .config
#
scripts/kconfig/conf  --syncconfig Kconfig
  CFG     u-boot.cfg
  GEN     include/autoconf.mk
  GEN     include/autoconf.mk.dep
  CFG     spl/u-boot.cfg
  GEN     spl/include/autoconf.mk
===================== WARNING ======================
This board uses CONFIG_SPL_FIT_GENERATOR. Please migrate
to binman instead, to avoid the proliferation of
arch-specific scripts with no tests.
====================================================

> Is there any documentation available for this board that
> needs adaptions with new build instructions? I was not able
> to locate any doc for this board at all...

You find the doc here:

doc/board/advantech/imx8qm-rom7720-a1.rst

> 
> What I see is missing in this section is SECO and SCFW binaries.

> Can i.MX8QM boot without those? Otherwise generated image will be unusable.

you are right. This is still missing. Can you point me to a example with
SECO and SCFW? 

> This binman configuration suggests that there are 2 binaries that
> should be populated onto the bootable media: flash.bin and
> u-boot.itb. Can you please convert them to use a single binary?
> Sample code for this is also in [1].
> 
> Link: [1]: https://lore.kernel.org/u-boot/20211203161802.12699-1-andrey.zhizhikin@leica-geosystems.com/

thx for your suggestions

Best regards,

Oliver

  reply	other threads:[~2022-01-10 15:32 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-01-10 10:30 [RFC] imx: imx8qm-rom7720: switch to binman Oliver Graute
2022-01-10 14:29 ` ZHIZHIKIN Andrey
2022-01-10 15:32   ` Oliver Graute [this message]
2022-01-10 15:34   ` Marcel Ziswiler
2022-01-10 16:32     ` Adam Ford
2022-01-12  9:13 ` Oliver Graute
2022-01-13 14:31   ` Oliver Graute
2022-01-26  8:18   ` Oliver Graute

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=20220110153201.GB10212@optiplex \
    --to=oliver.graute@gmail.com \
    --cc=aford173@gmail.com \
    --cc=andrey.zhizhikin@leica-geosystems.com \
    --cc=festevam@gmail.com \
    --cc=marcel.ziswiler@toradex.com \
    --cc=peng.fan@nxp.com \
    --cc=sbabic@denx.de \
    --cc=tharvey@gateworks.com \
    --cc=u-boot@lists.denx.de \
    --cc=uboot-imx@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 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.