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 X-Spam-Level: X-Spam-Status: No, score=-15.8 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER, INCLUDES_PATCH,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id A9345C6377D for ; Thu, 22 Jul 2021 08:52:31 +0000 (UTC) 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 mail.kernel.org (Postfix) with ESMTPS id 255EB6135D for ; Thu, 22 Jul 2021 08:52:31 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 255EB6135D Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=denx.de Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 2810F82BFA; Thu, 22 Jul 2021 10:52:29 +0200 (CEST) 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=1626943949; bh=uFAw4B0oMXWp7kccc1mX2zuezbWYwn8esDM/yr0n0kE=; h=Subject:To:Cc:References:From:Date:In-Reply-To:List-Id: List-Unsubscribe:List-Archive:List-Post:List-Help:List-Subscribe: From; b=tnnl0EUGRvrvr/o6I5he0fPENo0upXjoUjWnNbAfKoxD0vA0hqmHmuJbYS1tpweyH 1hGm6SXmYRNcOGn3PrpH8CzTN633rxq9nF9Ea9FNWnzHRkYteLtEFxdP5bfhQAn0Zj XKXxhO223mKMWNFLXJXisXMFKujKVA+UNxNj0G/nPVGKWFVZOy8VoRfa/i+6RzIyhM 20v58WPB/YEaJtBSpZ5TRVsniIELjj1X7VibzTkwqMwi7J0Aj3e4tevJFjKOIzq1Mh 3iHxz4cf0g6zI1Oc0BCmYg7aAEXsdKJTe/VUC7BB1VjxwQ1Wyckc5bN4HdIwDFhIH4 68491gpRzVqZg== Received: by phobos.denx.de (Postfix, from userid 109) id 149CF82991; Thu, 22 Jul 2021 10:52:27 +0200 (CEST) Received: from mout-u-205.mailbox.org (mout-u-205.mailbox.org [IPv6:2001:67c:2050:1::465:205]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id 6182B82991 for ; Thu, 22 Jul 2021 10:52:24 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=none (p=none dis=none) header.from=denx.de Authentication-Results: phobos.denx.de; spf=fail smtp.mailfrom=sr@denx.de Received: from smtp2.mailbox.org (smtp2.mailbox.org [IPv6:2001:67c:2050:105:465:1:2:0]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-384) server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by mout-u-205.mailbox.org (Postfix) with ESMTPS id 4GVmRX1JQ2zQkGR; Thu, 22 Jul 2021 10:52:24 +0200 (CEST) Received: from smtp2.mailbox.org ([80.241.60.241]) by gerste.heinlein-support.de (gerste.heinlein-support.de [91.198.250.173]) (amavisd-new, port 10030) with ESMTP id PZruPihBmkId; Thu, 22 Jul 2021 10:52:20 +0200 (CEST) Subject: Re: [PATCH u-boot-mvebu v2 36/41] arm: mvebu: Remove legacy U-Boot header from kwbimage v1 files To: =?UTF-8?Q?Marek_Beh=c3=ban?= , u-boot@lists.denx.de, Chris Packham , Baruch Siach , Dirk Eibach , Chris Packham Cc: Dennis Gilmore , Mario Six , Jon Nettleton , =?UTF-8?Q?Pali_Roh=c3=a1r?= References: <20210719122104.29698-1-marek.behun@nic.cz> <20210719122104.29698-37-marek.behun@nic.cz> From: Stefan Roese Message-ID: <90e30fa3-39c9-bc1f-49de-6c99b75d9965@denx.de> Date: Thu, 22 Jul 2021 10:52:19 +0200 MIME-Version: 1.0 In-Reply-To: <20210719122104.29698-37-marek.behun@nic.cz> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: de-DE Content-Transfer-Encoding: 8bit X-Rspamd-Queue-Id: 21FB4185B X-Rspamd-UID: 41a49a X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.34 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 19.07.21 14:20, Marek Behún wrote: > From: Pali Rohár > > The SPL code now already parses kwbimage v1 headers where all necessary > information about how to load and execute main U-Boot is present. The > legacy 64-byte U-Boot header is not used anymore. > > Remove this 64-byte header by putting u-boot.bin binary (instead of > u-boot.img) into kwbimage v1 and let SPL code or BootROM to load U-Boot > directly at its execution address. > > Signed-off-by: Pali Rohár > Reviewed-by: Marek Behún > Reviewed-by: Chris Packham Reviewed-by: Stefan Roese Thanks, Stefan > --- > Makefile | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) > > diff --git a/Makefile b/Makefile > index a5a9aef175..6b521573e6 100644 > --- a/Makefile > +++ b/Makefile > @@ -1405,7 +1405,7 @@ MKIMAGEFLAGS_u-boot.kwb = -n $(KWD_CONFIG_FILE) \ > -T kwbimage -a $(CONFIG_SYS_TEXT_BASE) -e $(CONFIG_SYS_TEXT_BASE) > > MKIMAGEFLAGS_u-boot-spl.kwb = -n $(KWD_CONFIG_FILE) \ > - -T kwbimage -a $(shell printf "0x%x" $$(($(CONFIG_SYS_TEXT_BASE)-64))) -e $(CONFIG_SYS_TEXT_BASE) \ > + -T kwbimage -a $(CONFIG_SYS_TEXT_BASE) -e $(CONFIG_SYS_TEXT_BASE) \ > $(if $(KEYDIR),-k $(KEYDIR)) > > MKIMAGEFLAGS_u-boot.pbl = -n $(srctree)/$(CONFIG_SYS_FSL_PBL_RCW:"%"=%) \ > @@ -1448,7 +1448,7 @@ u-boot.itb: u-boot-nodtb.bin \ > $(BOARD_SIZE_CHECK) > endif > > -u-boot-spl.kwb: u-boot.img spl/u-boot-spl.bin FORCE > +u-boot-spl.kwb: u-boot.bin spl/u-boot-spl.bin FORCE > $(call if_changed,mkimage) > > u-boot.sha1: u-boot.bin > Viele Grüße, Stefan -- DENX Software Engineering GmbH, Managing Director: Wolfgang Denk HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany Phone: (+49)-8142-66989-51 Fax: (+49)-8142-66989-80 Email: sr@denx.de