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 3C01CC433EF for ; Wed, 18 May 2022 10:51:29 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 3C9628427D; Wed, 18 May 2022 12:51: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=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="Qb+X7D0p"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 83F6183DEB; Wed, 18 May 2022 12:51:24 +0200 (CEST) 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 C22448427D for ; Wed, 18 May 2022 12:51:20 +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 D48D46183D; Wed, 18 May 2022 10:51:18 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 21D01C385A5; Wed, 18 May 2022 10:51:18 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1652871078; bh=n/dhaDHVHl1CuJ7PtBSoBRkunqsORkvbLxG6yKLno9M=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=Qb+X7D0pX7GXj4AB2J8gEUhGW7tXGGtLQDwFERvPlTTzNZe3hsSHlRfnwVpfjmb/d Oo4HVQvmQiVHhx3BZtaKdhuuyxHEeaWLkRYJg1V7bSWiVqM6GkED2W3CHpy34Z3ZVw OuL6BT/9PuMMFpk15nIWF+UCELSukmT74B0/WoHuW0bWyYkgX/k2QkqfzOTS+wfMFd L5OJUWiqAVMYe/zbAeNrITzo9XW3dhGfkpDtZ79W6usKzv8eGGZchdny27LQlsKRjE B9BNIud61q9cH3At8HFewfIekbkqtPASl48onuJnZNrvnZDGGVZhD5Th6Y85IBmIwc 12+R/LIR0YEHw== Received: by pali.im (Postfix) id 06E3E5E6; Wed, 18 May 2022 12:51:14 +0200 (CEST) Date: Wed, 18 May 2022 12:51:14 +0200 From: Pali =?utf-8?B?Um9ow6Fy?= To: "Priyanka Jain (OSS)" Cc: Qiang Zhao , Shengzhou Liu , Alexander Graf , Bin Meng , Wolfgang Denk , Sinan Akman , "u-boot@lists.denx.de" Subject: Re: [PATCH 7/8] powerpc: mpc85xx: Set TEXT_BASE addresses to real base values Message-ID: <20220518105114.geqzrmgetdb5mdxt@pali> References: <20220405131237.405-1-pali@kernel.org> <20220405131237.405-8-pali@kernel.org> <20220425123116.x5wsq3qiveks3y3h@pali> <20220511185924.4eufzpdmntbcbccn@pali> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20220511185924.4eufzpdmntbcbccn@pali> User-Agent: NeoMutt/20180716 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.5 at phobos.denx.de X-Virus-Status: Clean On Wednesday 11 May 2022 20:59:24 Pali Rohár wrote: > On Monday 25 April 2022 14:31:16 Pali Rohár wrote: > > On Monday 25 April 2022 04:27:51 Priyanka Jain (OSS) wrote: > > > >-----Original Message----- > > > >From: U-Boot On Behalf Of Pali Rohár > > > >Sent: Tuesday, April 5, 2022 6:43 PM > > > >To: Priyanka Jain ; Qiang Zhao ; > > > >Shengzhou Liu ; Alexander Graf ; > > > >Bin Meng ; Wolfgang Denk ; Sinan > > > >Akman > > > >Cc: u-boot@lists.denx.de > > > >Subject: [PATCH 7/8] powerpc: mpc85xx: Set TEXT_BASE addresses to real base > > > >values > > > > > > > >Currently CONFIG_SPL_TEXT_BASE and CONFIG_SYS_TEXT_BASE addresses are > > > >manually increased by 0x1000 due to .bootpg section. This section has size of > > > >0x1000 bytes and is manually put by linker script before .text section (and > > > >therefore before base address) when CONFIG_SYS_MPC85XX_NO_RESETVEC is > > > >set. Due to this fact lot of other config options are manually increased by > > > >0x1000 value to make correct layout. Note that entry point is not on > > > >CONFIG_SPL_TEXT_BASE (image+0x1000) but it is really on address > > > >CONFIG_SPL_TEXT_BASE-0x1000 (means at the start of the image). > > > > > > > >Cleanup handling of .bootpg section when > > > >CONFIG_SYS_MPC85XX_NO_RESETVEC is set. Put .bootpg code directly into .text > > > >section and move text base address to the start of .bootpg code. And finally > > > >remove +0x1000 value from lot of config options. With this removal custom > > > >PHDRS is not used anymore, so remove it too. > > > > > > > >After this change entry point would be at CONFIG_SPL_TEXT_BASE and not at > > > >address -0x1000 anymore. > > > > > > > >Tested on P2020 board with SPL and proper U-Boot. > > > > > > > >Signed-off-by: Pali Rohár > > > >--- > > > > > > Kindly rebase to top of tree. There has been changed related configs. > > > I am picking patches till 6/8. So just send next version of 7/8 and 8/8 > > > > Done! I rebased 7/8 on top of master and sent V2 to ML. 8/8 in current > > version still cleanly applied on 7/8, so I did not resent it. If there > > is some issue, please let me know. > > PING? Priyanka: PING