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 mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id AD412C433F5 for ; Fri, 19 Nov 2021 18:12:54 +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 02FC661B42 for ; Fri, 19 Nov 2021 18:12:53 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org 02FC661B42 Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=konsulko.com Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=lists.denx.de Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 4F777830C3; Fri, 19 Nov 2021 19:12:52 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=none (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="DxFuAj/2"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 045C5830F6; Fri, 19 Nov 2021 19:12:51 +0100 (CET) Received: from mail-qt1-x832.google.com (mail-qt1-x832.google.com [IPv6:2607:f8b0:4864:20::832]) (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 D6CEC82F45 for ; Fri, 19 Nov 2021 19:12:46 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=none (p=none dis=none) header.from=konsulko.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=trini@konsulko.com Received: by mail-qt1-x832.google.com with SMTP id n15so10359653qta.0 for ; Fri, 19 Nov 2021 10:12:46 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=konsulko.com; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=DjJipKaa/rSNjvSuER3IP8DDOQZduHjEILZclayiyiM=; b=DxFuAj/2JJhG1wysGT5EC5YFEJqEFLSn4SRga6rs2FifDRON6hRChgJkLasuz2qZxD OmCs7VReSCCRMw1WQZvPlC4JMPKeJBjtPjfGp8emt6pLL/5bpWNTx7lXB9UrrVY5Wm5r 4adG4/r4Zl5fKJVyEthOPq4YQCK9Fq+e5oL0Y= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=DjJipKaa/rSNjvSuER3IP8DDOQZduHjEILZclayiyiM=; b=Vn/vipGxq6PusAFAgFWSen1IAh8WzLYgJtv82QomYbQcbOAHVDdJsSoLmViuwxGZ3R pCtpjCgNIgeUU4ZbhVQGjnFBMqcVQn+Ei9KdiPUrjg+oTd1p7VzIVXVIksV571dLTLtl Xwb1TbtxcP03jNpIRzpSdgWRxBLoDMjj5+m87g1GBMDrPSEbsq2LO8Sx88LUq1wF/fgg s97IBjvyz5B90XWYrqHsjWj67PEZqf5TtGnd58B1IyYgPDL5AyIyYrJkrNBTUgdvud6c OPzO0Vtx8SvAKWbc04CSbjpqVCIpYlDOETUgkg0XU6ob4LQZlGv/i3zQPMc7hROS4ayN eOxA== X-Gm-Message-State: AOAM530ox4jDinIh0NC7Mj67YILUcher4d+5QDyEupFEJ2xeyZ/OdSFs WBv552p9dG4rTiWGL0taIEInOg== X-Google-Smtp-Source: ABdhPJwaKf/w/j22D4b/J9sZDv1rSGC5rM4lIbR4GmwywUPldst4Ot9OF7krb5rtCPJfHqXf/RWLxA== X-Received: by 2002:a05:622a:153:: with SMTP id v19mr8265995qtw.144.1637345565677; Fri, 19 Nov 2021 10:12:45 -0800 (PST) Received: from bill-the-cat (2603-6081-7b01-cbda-298c-b356-0e05-d708.res6.spectrum.com. [2603:6081:7b01:cbda:298c:b356:e05:d708]) by smtp.gmail.com with ESMTPSA id m20sm291929qtx.39.2021.11.19.10.12.44 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 19 Nov 2021 10:12:44 -0800 (PST) Date: Fri, 19 Nov 2021 13:12:43 -0500 From: Tom Rini To: Linus Walleij Cc: u-boot@lists.denx.de, Stephan Gerhold Subject: Re: [PATCH] board: stemmy: Increase boot image to 16 MB Message-ID: <20211119181243.GI24579@bill-the-cat> References: <20211119143321.2497377-1-linus.walleij@linaro.org> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="nbpXQHe8gn9lDJHm" Content-Disposition: inline In-Reply-To: <20211119143321.2497377-1-linus.walleij@linaro.org> X-Clacks-Overhead: GNU Terry Pratchett X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.37 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 --nbpXQHe8gn9lDJHm Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Fri, Nov 19, 2021 at 03:33:21PM +0100, Linus Walleij wrote: > When using a recent kernel with a bunch of compiled-in > stuff the kernel image easily becomes bigger than 8 MB > yielding this error: >=20 > Loading Kernel Image > Image too large: increase CONFIG_SYS_BOOTM_LEN > Must RESET board to recover >=20 > Fix this by bumping to SZ_16MB. >=20 > Cc: Stephan Gerhold > Signed-off-by: Linus Walleij > --- > include/configs/stemmy.h | 1 + > 1 file changed, 1 insertion(+) >=20 > diff --git a/include/configs/stemmy.h b/include/configs/stemmy.h > index ed79b1203901..f4700a45daf5 100644 > --- a/include/configs/stemmy.h > +++ b/include/configs/stemmy.h > @@ -14,6 +14,7 @@ > * bootloader. New images are loaded at the same address for compatibili= ty. > */ > #define CONFIG_SYS_INIT_SP_ADDR CONFIG_SYS_TEXT_BASE > +#define CONFIG_SYS_BOOTM_LEN SZ_16M > =20 > /* FIXME: This should be loaded from device tree... */ > #define CONFIG_SYS_L2_PL310 So, the default for CONFIG_SYS_BOOTM_LEN is clearly too small and should be addressed broadly. And, ugh, I don't see a maximum size for the kernel itself in https://www.kernel.org/doc/Documentation/arm64/booting.rst but SZ_64M is the common "we hope this is always large enough" value used, so can we push stemmy there as well? Thanks. --=20 Tom --nbpXQHe8gn9lDJHm Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQGzBAABCgAdFiEEGjx/cOCPqxcHgJu/FHw5/5Y0tywFAmGX6RgACgkQFHw5/5Y0 tyx0sgv/Qbym2FV6AVXjMe1o/4Luh1J1HyGl5cH1OC6snMFvLbp+xjUmhtq8rJL7 h9bSocLlNuGZCoThaaxqt80HCMTgrfRum8Rdfq7Tj96SqUsEmChjrAsnqHiouSPD xF0F1/icDAOSf7WJTFSbs+PWstync35P7K+2xBAAZrQ9Zxi7Aosfx5Tdnar4qZpK zKhGCKXfkXmMFDWn2XC7yUsk/vCiax7WaAbC3xa2vr0GmI3gZ09KThXcl81Z0WO1 90PpJpN3Rw3pyg6IQ7HRCfNLM1jcVjHC8DRAQ8Ao6KbTeqtIq5ix+HOzT431tNU3 /E3jtf8S5EfNqOJs+dAyjhFPg8qP4+U0Ng/cikm+g8tAeVV8G7rbwX4TuWaBoO4p HtMp5/mzvOmx7DW2y6F22Qv7Q8T4aPjkBy2jnigkeBlqsVS2I1WIho57ytA7b8L5 tJqeKo5icvvBP/+JW/48dlqWFI/tkEIDyxpZRFj4qjnlkpErWgQTkEzkq7PDUfCu Tu4vnB9z =CTD/ -----END PGP SIGNATURE----- --nbpXQHe8gn9lDJHm--