From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from phobos.denx.de (phobos.denx.de [85.214.62.61]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id E04D8C433F5 for ; Mon, 10 Jan 2022 15:32:19 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 428E282C6D; Mon, 10 Jan 2022 16:32:17 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="BqEAx+Zv"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id D3EC2830DC; Mon, 10 Jan 2022 16:32:14 +0100 (CET) Received: from mail-ed1-x530.google.com (mail-ed1-x530.google.com [IPv6:2a00:1450:4864:20::530]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id A76FC80636 for ; Mon, 10 Jan 2022 16:32:11 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=oliver.graute@gmail.com Received: by mail-ed1-x530.google.com with SMTP id t24so7252928edi.8 for ; Mon, 10 Jan 2022 07:32:11 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:date:to:cc:subject:message-id:mail-followup-to:references :mime-version:content-disposition:in-reply-to:user-agent; bh=qS9HXFOOjreGPbOw4P+9XUVIazmaehN5Odi912c/J6g=; b=BqEAx+ZvvMzL04hVNUITIrLW5HPVtCKsWotLJVV9932LN38hRLQfMV7P8OJPVEX/F2 DdM/sAJZ8HsO27LgL8jzK3PG7N10EitSW07eZvIqfE39SNBCoGfmalSIn8/Vgesuzw+0 fY3HJS+ULSv89h/pmgewz7g1gkut8tnF9nIbtPVTnNB5mHUAGERFR7cXJA8EsVn31bLI A+XZx7V0cDnF6nouhGWvbHQ/7nq17sKP5OZOwIQs4hoycxb1km7+L+ST2KebnFV99oOL BGxS3n+tZfuBdjyyWoMeLRzRjz+el5TzcP5StzGF8xnZRB+vaZVPhkgDs7b5rRnegOuk nxMA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:date:to:cc:subject:message-id :mail-followup-to:references:mime-version:content-disposition :in-reply-to:user-agent; bh=qS9HXFOOjreGPbOw4P+9XUVIazmaehN5Odi912c/J6g=; b=iCrG6iKf+AlNdMrRuxg8ehg2uYl7pMoTLah+fn2iqzqhSyJUcoyNENvf0rGtuREhE1 Vc0brIfiSmkOAqCaa4XiAGhJlos33jNiOgLYy0BXMgUqRIOqzLrnp7kJfFaR0FkKL5ZO WQ1EeIquMWVqUNqbZwkntYwigoWJyglKV5JS9GDSNX7CFzyUEt/NGTZAj1BRnZxloOGU DYXFi/DOZi4mhuKWK5lqwJfo3RtisNKNmSWLiVZp35XKTpaHs7ivw3LY9ZEEYH/kZR+I vt8ZeEvsKyxqffYXfv2x7Z8ms+0pDot8r/pvlAm7LTNpcSbtsspXHVDPCANFeqRdy6xb 9naQ== X-Gm-Message-State: AOAM533XcgpTQ9k1nfwrfcufP+zr9kjoqv5+khSnLHK3Pv5erJmDP2te 7Sk2TfM1INlTik9IrThvvwQ= X-Google-Smtp-Source: ABdhPJxTcR0qvNx68cVA6OEhfFKotgiyQUZLatNT5zUVVgthhrIUcPf7lnCrx7s6HvOboxminvRC+A== X-Received: by 2002:aa7:d547:: with SMTP id u7mr212548edr.76.1641828731213; Mon, 10 Jan 2022 07:32:11 -0800 (PST) Received: from localhost (dslb-002-207-138-002.002.207.pools.vodafone-ip.de. [2.207.138.2]) by smtp.gmail.com with ESMTPSA id q20sm3705555edt.13.2022.01.10.07.32.10 (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Mon, 10 Jan 2022 07:32:10 -0800 (PST) From: Oliver Graute X-Google-Original-From: Oliver Graute Date: Mon, 10 Jan 2022 16:32:01 +0100 To: ZHIZHIKIN Andrey Cc: Stefano Babic , Fabio Estevam , "NXP i.MX U-Boot Team" , "aford173@gmail.com" , "peng.fan@nxp.com" , "marcel.ziswiler@toradex.com" , "tharvey@gateworks.com" , "u-boot@lists.denx.de" Subject: Re: [RFC] imx: imx8qm-rom7720: switch to binman Message-ID: <20220110153201.GB10212@optiplex> Mail-Followup-To: ZHIZHIKIN Andrey , Stefano Babic , Fabio Estevam , "NXP i.MX U-Boot Team" , "aford173@gmail.com" , "peng.fan@nxp.com" , "marcel.ziswiler@toradex.com" , "tharvey@gateworks.com" , "u-boot@lists.denx.de" References: <20220110103033.29958-1-oliver.graute@kococonnector.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.9.4 (2018-02-28) X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.39 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" X-Virus-Scanned: clamav-milter 0.103.2 at phobos.denx.de X-Virus-Status: Clean On 10/01/22, ZHIZHIKIN Andrey wrote: > Hello Oliver, > > > -----Original Message----- > > From: Oliver Graute > > Sent: Monday, January 10, 2022 11:31 AM > > To: Oliver Graute ; Stefano Babic > > ; Fabio Estevam ; NXP i.MX U-Boot Team > > > > Cc: aford173@gmail.com; peng.fan@nxp.com; marcel.ziswiler@toradex.com; > > tharvey@gateworks.com; ZHIZHIKIN Andrey ; > > 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