From patchwork Fri Aug 5 20:09:40 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Pali_Roh=C3=A1r?= X-Patchwork-Id: 1664187 X-Patchwork-Delegate: marek.behun@nic.cz Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: bilbo.ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20201202 header.b=JE3cmxub; dkim-atps=neutral Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=lists.denx.de (client-ip=85.214.62.61; helo=phobos.denx.de; envelope-from=u-boot-bounces@lists.denx.de; receiver=) Received: from phobos.denx.de (phobos.denx.de [85.214.62.61]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by bilbo.ozlabs.org (Postfix) with ESMTPS id 4LzxY90X75z9s1l for ; Sat, 6 Aug 2022 06:10:36 +1000 (AEST) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id F3483848B4; Fri, 5 Aug 2022 22:10:30 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=kernel.org 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=kernel.org header.i=@kernel.org header.b="JE3cmxub"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 67CAB848CA; Fri, 5 Aug 2022 22:10:29 +0200 (CEST) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on phobos.denx.de X-Spam-Level: X-Spam-Status: No, score=-2.7 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_NONE, SPF_PASS autolearn=ham autolearn_force=no version=3.4.2 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id 25300848B4 for ; Fri, 5 Aug 2022 22:10:27 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=kernel.org Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=pali@kernel.org Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id CBB6461A14; Fri, 5 Aug 2022 20:10:25 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 18796C433D7; Fri, 5 Aug 2022 20:10:25 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1659730225; bh=WfTl+U7Etfd8IxBss6LYYdP62b8qU1cbFBMehKCyABY=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=JE3cmxubb8fzsiuF0g2Ji53KNFLnqy15GYklFJAt9H/ls/v4FD3RrblngCk0+VDN/ Z+HWqbC/+34JoA2Ik0cBjS9i1m5bWDrMchR5UH46lIB56kAAtZWdhyLPPtFtp4YaSd 84hIPn9wukCsxEas8+2yW5Stdo6EZPJK8e0SG8RrzuBTQS3idVOujao5J0668AmTQv 8NGiXtxqeS4R87CyZ5xIRtdFlcnhYdpzmwMqAuZcVPQ9sKcNAMytIXf6dj5/JffR7K Vm7kT/fIc+t1k0gYVhEIBKJKqq/xmx//UWtr4megPfTHiGCczCu8+sgkTMfHewr+4A zu/G5pHEI5vtw== Received: by pali.im (Postfix) id 59F6C941; Fri, 5 Aug 2022 22:10:22 +0200 (CEST) From: =?utf-8?q?Pali_Roh=C3=A1r?= To: Jaehoon Chung , Peng Fan , =?utf-8?q?Marek_Beh=C3=BAn?= Cc: Sinan Akman , u-boot@lists.denx.de Subject: [PATCH v3 2/3] powerpc: mpc85xx: Fix loading U-Boot proper from SD card in SPL Date: Fri, 5 Aug 2022 22:09:40 +0200 Message-Id: <20220805200941.22101-2-pali@kernel.org> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20220805200941.22101-1-pali@kernel.org> References: <20220511183332.1362-1-pali@kernel.org> <20220805200941.22101-1-pali@kernel.org> MIME-Version: 1.0 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.6 at phobos.denx.de X-Virus-Status: Clean Change 8-byte alignment of SPL binary to just 4-byte alignment as objcopy trims trailing zero bytes when converting ELF file to RAW binary. This is same fix for SPL linker script as was done fix for U-Boot linker script in commit e8c0e0064c8a ("powerpc: mpc85xx: Fix CONFIG_OF_SEPARATE support"). It is required for the patch "mmc: fsl_esdhc_spl: Add support for builds without CONFIG_SYS_MMC_U_BOOT_OFFS" which triggered this issue in SPL. Signed-off-by: Pali Rohár --- arch/powerpc/cpu/mpc85xx/u-boot-spl.lds | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/powerpc/cpu/mpc85xx/u-boot-spl.lds b/arch/powerpc/cpu/mpc85xx/u-boot-spl.lds index e88153745238..89df4b5f6f07 100644 --- a/arch/powerpc/cpu/mpc85xx/u-boot-spl.lds +++ b/arch/powerpc/cpu/mpc85xx/u-boot-spl.lds @@ -58,7 +58,7 @@ SECTIONS __ex_table : { *(__ex_table) } __stop___ex_table = .; - . = ALIGN(8); + . = ALIGN(4); __init_begin = .; __init_end = .; _end = .;