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 8E2E1EB64D7 for ; Fri, 30 Jun 2023 15:44:33 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id EC04486824; Fri, 30 Jun 2023 17:44:30 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=konsulko.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (1024-bit key; unprotected) header.d=konsulko.com header.i=@konsulko.com header.b="ctk4Ryj7"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 787FF86822; Fri, 30 Jun 2023 17:44:29 +0200 (CEST) Received: from mail-yw1-x112a.google.com (mail-yw1-x112a.google.com [IPv6:2607:f8b0:4864:20::112a]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id CB69986824 for ; Fri, 30 Jun 2023 17:44:26 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=konsulko.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=trini@konsulko.com Received: by mail-yw1-x112a.google.com with SMTP id 00721157ae682-5774098f16eso10480017b3.0 for ; Fri, 30 Jun 2023 08:44:26 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=konsulko.com; s=google; t=1688139865; x=1690731865; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:from:to:cc:subject:date:message-id:reply-to; bh=tZCHwfHd0obch6gWRfZmYF4rh7x0cJEtTwAeua1L+z8=; b=ctk4Ryj7TsP6ZfYCy7jI10kZTCLv/9SSiaeKxfJ5iO6o2InbRGnU1Ny6hK2SbLO9xk 1COmcMdnCM0PjYsE63/3qnslRXXLeqQFiwUtYpcyQ6lPArPUH2F+UZTyvDCUw3sTu1Bw 5o8HzfSEnSWTqmhnN3eHhpkqKqaQMeFYEWoM0= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1688139865; x=1690731865; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=tZCHwfHd0obch6gWRfZmYF4rh7x0cJEtTwAeua1L+z8=; b=HCisuCSfZqfOLtKLMMFp8IWuOQW33HzukAhiv8o5xGxZOztp6D9VPhq+P71lP2QHg5 X026+TrIBLeVCObDbdva5LBEtrsJ//2DD+UXDfZPGF+spnzYxbPcy015aQPcAfCU21ob jWUXrsPQX/q25GiWYRrCgDGeG900RZI4CQkU92MtPgShQEFuov8k0/5lTcr8dlpRzRHI TY5aRfSw5M9jb5pnItK+NUv7Hn2QcugUnrxYCSESkIuMpVwJjRYKkBh/+I9TaraRZu7N 3qZTcfQaKmKSR7ppEfPMpMkreV43w14F042xL3krghjUdEYdM6sTZoX2dZ0DeSB/kJPf Lo1w== X-Gm-Message-State: ABy/qLa+RPxfuD6yKNdvwhwpi3mXKw9tuzBKzQIJYNRiO2ZGNx0y7C8X ijJ8nVTjs1lYW5mhTN/QgDiDDw== X-Google-Smtp-Source: APBJJlFyNlFFL8dDm7V61Ok/lCjjJ9jyQlNQNvKlC5td9i0d6bITjYV6jjPRkn0ReooDYjtevVTEXA== X-Received: by 2002:a0d:ca55:0:b0:56f:fba4:9b85 with SMTP id m82-20020a0dca55000000b0056ffba49b85mr2746404ywd.7.1688139865578; Fri, 30 Jun 2023 08:44:25 -0700 (PDT) Received: from bill-the-cat (2603-6081-7b00-6400-8f3c-e954-a9b1-f559.res6.spectrum.com. [2603:6081:7b00:6400:8f3c:e954:a9b1:f559]) by smtp.gmail.com with ESMTPSA id h189-20020a0ddec6000000b00576e67820f3sm2177352ywe.66.2023.06.30.08.44.24 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 30 Jun 2023 08:44:25 -0700 (PDT) Date: Fri, 30 Jun 2023 11:44:23 -0400 From: Tom Rini To: Fabio Estevam Cc: marex@denx.de, u-boot@lists.denx.de, francesco.dolcini@toradex.com, Fabio Estevam Subject: Re: [PATCH] spl: spl_legacy: Fix spl_end address Message-ID: <20230630154423.GM3931582@bill-the-cat> References: <20230630142311.435336-1-festevam@gmail.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="Mg8+4p0nbzv0c9ko" Content-Disposition: inline In-Reply-To: <20230630142311.435336-1-festevam@gmail.com> X-Clacks-Overhead: GNU Terry Pratchett 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.8 at phobos.denx.de X-Virus-Status: Clean --Mg8+4p0nbzv0c9ko Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Fri, Jun 30, 2023 at 11:23:11AM -0300, Fabio Estevam wrote: > From: Fabio Estevam >=20 > Currently, spl_end points to the __bss_end address, which > is an external RAM address instead of the end of the SPL text > section in the internal RAM. >=20 > This causes boot failures on imx6-colibri, for example: >=20 > ``` > Trying to boot from MMC1 > SPL: Image overlaps SPL > resetting ... > ``` > Fix this problem by assigning spl_end to the _image_binary_end, as this > symbol properly represents the end of the SPL text section. >=20 > From u-boot-spl.map: >=20 > .end > *(.__end) > 0x00000000009121a4 _image_binary_end =3D . >=20 > Fixes: 77aed22b48ab ("spl: spl_legacy: Add extra address checks") > Reported-by: Francesco Dolcini > Signed-off-by: Fabio Estevam On mx6cuboxi, Tested-by: Tom Rini --=20 Tom --Mg8+4p0nbzv0c9ko Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQGzBAABCgAdFiEEGjx/cOCPqxcHgJu/FHw5/5Y0tywFAmSe+FAACgkQFHw5/5Y0 tyyUawwArduBXSC8ox8cFfbpAYFRE+rZmEzDRPQ42TlpkxSA8b5/H8prj3ZE5yW7 I6zSiKMRIn8nFmply0LjSnSnZ2wxROeepgmObKA/jD8dHRwlCRNb+8/Ccx3jRSeb JB9yfK4Kia9datDF24T9TbIJ5n82ASBhq05hjyvGF3ugQVezOKcu1ssqBbqn02q5 9Z6La0JrVCS1F/HE2U1sklcJW51Oj8K7QS189dUqpeNuz7PiVu51h11z2XZOLsb8 yzTiQemiF/FGFdIXWBDOCA2GdhKiz837Gg4laBsGD/mTrXNB77Jjc/gBP6nMlY9j U1rJnUUmpeq8Flt1aPgSdxFhOGb4eXzmh6eTOfCEv0WLIhxGzI8pZewrAk5FfxUd qY5IWxrMnL5Z1oXm6SdCm4QbDkRJIB+uYHtIVzCOl+I/fT8+aP8UQ/T2XDDN9+bE VE9zLX54G0stsrku2w/y2DAGjY34qwkv2mAWOmX+7Z0LZNMjYJmOMjhfNc1ubZ9U KrGttQu3 =zJAJ -----END PGP SIGNATURE----- --Mg8+4p0nbzv0c9ko--