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 B92F4C3DA79 for ; Thu, 29 Dec 2022 07:01:36 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 2A6B585477; Thu, 29 Dec 2022 08:01:34 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=none (p=none dis=none) header.from=denx.de Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=denx.de; s=phobos-20191101; t=1672297294; bh=cC1NSt16jxByUMY3V1Rf1hmd+b6hSIhiChDL9vZ8WRc=; h=Subject:To:Cc:References:From:Date:In-Reply-To:List-Id: List-Unsubscribe:List-Archive:List-Post:List-Help:List-Subscribe: Reply-To:From; b=KLKv/ciV/RwKdTkNN2gjMmQDUzzvvIwO1H05C+ztxh+9e689FoS5esxjiE268bg+n HFORA+7oNgtw2fi8DtoRfs8oL9HzhAv0yMv2IcajfEIapEIsLBUwGqPfpBeHzy6s0V 6V+f6mIt0lPfkocCyc5xOLlIKagWL8SHFLMbRmHulA5MyPgBgodu5TLDI9M3Z1C8Tv zbR83NIydThRs1juPW31LqyMmajjbMoA9mDQFepTrzqsnS2WHKWYRzJBB/RRyfxZ+c 9p76dPODoSHVkyU98xAIDrLpoEffnWF+LTskAcv58e2Dzq4AbyvPM/q0BXphB8FAev mS70hvgAEYd3A== Received: from [192.168.1.107] (82-131-201-218.pool.digikabel.hu [82.131.201.218]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)) (No client certificate requested) (Authenticated sender: hs@denx.de) by phobos.denx.de (Postfix) with ESMTPSA id 0769E85467; Thu, 29 Dec 2022 08:01:31 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=denx.de; s=phobos-20191101; t=1672297292; bh=cC1NSt16jxByUMY3V1Rf1hmd+b6hSIhiChDL9vZ8WRc=; h=Reply-To:Subject:To:Cc:References:From:Date:In-Reply-To:From; b=RG4KdxPDso5xqARDjsrt7q4GekLYkQoNFyrtj4V9xc9x1Xf4zMhz3+Xa921e4ssmG BDtJ2z/CJYWGTs3iL28hwYjM0Ao8/DptV9BndCSY764SMrYoREutCGKBRrKXAqQN2K Otw7yDBKpZLHM3Eyd0gGcBUYsvKJw1TxJrch1Uu9u5JLCnAY8xRqmPDEUb4sR/eo0d Gp+J+e1fEXgLp6Mx6A/VCx2Kk7D/Z2wfz31l0zPxzKDNKqJrRwVatphrb5jrKmd66x awJca7avw1nbNpZ4wLh6PkNXSMyUdag64EUWAc3FxBi7NjJH6LlOB+lIIRaWTukxtk Entl5qqGDK9DQ== Subject: Re: [PATCH u-boot] powerpc/mpc85xx: socrates: Re-enable building u-boot-socrates.bin To: =?UTF-8?Q?Pali_Roh=c3=a1r?= , Tom Rini Cc: u-boot@lists.denx.de References: <20221228181839.22003-1-pali@kernel.org> From: Heiko Schocher Message-ID: Date: Thu, 29 Dec 2022 08:01:28 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.8.1 MIME-Version: 1.0 In-Reply-To: <20221228181839.22003-1-pali@kernel.org> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 8bit 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: , Reply-To: hs@denx.de Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" X-Virus-Scanned: clamav-milter 0.103.6 at phobos.denx.de X-Virus-Status: Clean Hello Pali, On 28.12.22 19:18, Pali Rohár wrote: > U-Boot build system builds final U-Boot binary for socrates board in custom > file u-boot-socrates.bin (instead of standard u-boot.bin). Output target > file u-boot-socrates.bin is generated by binman as defined in board binman > config file arch/powerpc/dts/socrates-u-boot.dtsi. > > But binman was disabled in commit 5af42eafd7e1 ("Makefile: Reduce usage of > custom mpc85xx u-boot.bin target") for all mpc85xx boards which do not use > standard powerpc binman config file arch/powerpc/dts/u-boot.dtsi and boards > which do not require binman at all. > > The only such mpc85xx board is socrates. So since that commit, U-Boot does > not final binary for socrates board anymore. > > Fix this issue by re-enabling binman for socrates board. And build process > starts again producing u-boot-socrates.bin binary. > > Note that build process for this socrates board always produce u-boot.bin > binary which is broken and not usable for socrates board. Long term > solution should be to disable building broken binary u-boot.bin and then > renaming u-boot-socrates.bin to u-boot.bin, or switching to use common > powerpc binman config file arch/powerpc/dts/socrates-u-boot.dtsi (if it is > possible). > > Fixes: 5af42eafd7e1 ("Makefile: Reduce usage of custom mpc85xx u-boot.bin target") > Signed-off-by: Pali Rohár > --- > Heiko Schocher: Could you test if u-boot is still working on this board? I will check ASAP ... last U-Boot version I have tried on this board is: * d637294e26 - (tag: v2022.01) Prepare v2022.01 And looking into my yocto build directory, there is an u-boot-socrates.bin... I try to find time to rebase to newest version, and look into, thanks! bye, Heiko > Tom Rini: Cannot be this issue handled by CI? For example that CI check > build process produce required output binaries? > --- > arch/powerpc/cpu/mpc85xx/Kconfig | 1 + > 1 file changed, 1 insertion(+) > > diff --git a/arch/powerpc/cpu/mpc85xx/Kconfig b/arch/powerpc/cpu/mpc85xx/Kconfig > index 24d3f1f20c25..4c765efab7a5 100644 > --- a/arch/powerpc/cpu/mpc85xx/Kconfig > +++ b/arch/powerpc/cpu/mpc85xx/Kconfig > @@ -72,6 +72,7 @@ choice > config TARGET_SOCRATES > bool "Support socrates" > select ARCH_MPC8544 > + select BINMAN > > config TARGET_P3041DS > bool "Support P3041DS" > -- DENX Software Engineering GmbH, Managing Director: Erika Unter HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany Phone: +49-8142-66989-52 Fax: +49-8142-66989-80 Email: hs@denx.de