From patchwork Wed May 4 21:15:31 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Andre Przywara X-Patchwork-Id: 618678 X-Patchwork-Delegate: hdegoede@redhat.com Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from theia.denx.de (theia.denx.de [85.214.87.163]) by ozlabs.org (Postfix) with ESMTP id 3r0W6b5PKhz9t4h for ; Thu, 5 May 2016 07:15:51 +1000 (AEST) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 06C54A787F; Wed, 4 May 2016 23:15:43 +0200 (CEST) Received: from theia.denx.de ([127.0.0.1]) by localhost (theia.denx.de [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id f8LgNOXNJjT1; Wed, 4 May 2016 23:15:42 +0200 (CEST) Received: from theia.denx.de (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 58BC8A781C; Wed, 4 May 2016 23:15:28 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 41453A75F3 for ; Wed, 4 May 2016 23:15:20 +0200 (CEST) Received: from theia.denx.de ([127.0.0.1]) by localhost (theia.denx.de [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id zP3QUEMz1hXE for ; Wed, 4 May 2016 23:15:20 +0200 (CEST) X-policyd-weight: NOT_IN_SBL_XBL_SPAMHAUS=-1.5 NOT_IN_SPAMCOP=-1.5 NOT_IN_BL_NJABL=-1.5 (only DNSBL check requested) Received: from foss.arm.com (foss.arm.com [217.140.101.70]) by theia.denx.de (Postfix) with ESMTP id E98DDA75F1 for ; Wed, 4 May 2016 23:15:17 +0200 (CEST) Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.72.51.249]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id EED2F474; Wed, 4 May 2016 14:15:23 -0700 (PDT) Received: from e104803-lin.lan (unknown [10.1.203.153]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 3032E3F246; Wed, 4 May 2016 14:15:16 -0700 (PDT) From: Andre Przywara To: Hans de Goede , Ian Campbell Date: Wed, 4 May 2016 22:15:31 +0100 Message-Id: <1462396534-32390-4-git-send-email-andre.przywara@arm.com> X-Mailer: git-send-email 2.7.3 In-Reply-To: <1462396534-32390-1-git-send-email-andre.przywara@arm.com> References: <1462396534-32390-1-git-send-email-andre.przywara@arm.com> Cc: Andre Przywara , u-boot@lists.denx.de Subject: [U-Boot] [PATCH 3/6] arm64: sunxi: reserve space for boot0 header X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.15 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" The Allwinner provided boot0 boot loader requires a header before the U-Boot binary to both check its validity and to find other blobs to load. There is a tool called boot0img which fills the header appropriately. Reserve some space at the beginning of the binary to later hold the header if needed. Please note that the header is jumped over already by U-Boot anyway, so filling the header is optional and can be skipped if for instance boot0 is not used. Signed-off-by: Andre Przywara --- arch/arm/cpu/armv8/start.S | 3 +++ 1 file changed, 3 insertions(+) diff --git a/arch/arm/cpu/armv8/start.S b/arch/arm/cpu/armv8/start.S index deb44a8..b4c4867 100644 --- a/arch/arm/cpu/armv8/start.S +++ b/arch/arm/cpu/armv8/start.S @@ -21,6 +21,9 @@ _start: b reset +#ifdef CONFIG_ARCH_SUNXI + .space 0x5fc /* can be filled with a boot0 header if needed */ +#endif .align 3 .globl _TEXT_BASE