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 CB4D4C54EAA for ; Mon, 30 Jan 2023 17:23:29 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 0B74085955; Mon, 30 Jan 2023 18:23:28 +0100 (CET) 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="U5ALiHnh"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 77451858E4; Mon, 30 Jan 2023 18:23:25 +0100 (CET) Received: from mail-qt1-x82f.google.com (mail-qt1-x82f.google.com [IPv6:2607:f8b0:4864:20::82f]) (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 4E70B858D5 for ; Mon, 30 Jan 2023 18:23:22 +0100 (CET) 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-qt1-x82f.google.com with SMTP id e8so10767519qts.1 for ; Mon, 30 Jan 2023 09:23:22 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=konsulko.com; s=google; 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=Hna7QqDJB9cLftdONrATpqssYCNZcmFvgvAKSoqoWF4=; b=U5ALiHnhuRxc7gRCPWqGdvm7Rv1hKCqGgdXl9r8ELXhDrcnbwlMV3h9DEpB9wI2WGi cHpZlkywCjnNBwatBR/tKCnb98rCHl9WPJo87g0NvW4QwBDx9Uua+vQ53mb/QK2ljgT7 5UCQdR8fRPwYLBMvI18dFk2Fe1V4+SMnYzxdc= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; 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=Hna7QqDJB9cLftdONrATpqssYCNZcmFvgvAKSoqoWF4=; b=cRv/ZIqSpCFbAhWg0RGJVceOR0OHxc4iiSs9kqAxptQFA7rMssURK1+g4/eRpRB4Pg R0Fy50RQxvv2zHDxyyq9eImlF8WYD28zm8fuJN5hd5ivOnU+n5O7ONmIhSEcIVHC6+NB 8G+hpNSrWgn/dxbgkijpI+iBy2h8oIw3IitN6p02u1z1RUWOFbiN6QA7xOZzeYdxKr0J i0p/aCDdzwseDWxXp+TaMH5SHjatr+7sHCTRuLRcS98BU6+l5s3/fEkJsXMFp5Fys5ht f8HNhexZr0lPpMmBLMvGWnz9tsO9IDheyMG4IO75VjRcuW/2aueGgFKJS9MIi2RlE+Sv npUQ== X-Gm-Message-State: AO0yUKVbV0G1lChjZDQ9itq0YfJgpTBXlNvpaSP88xapr9TDNOPoVMnb +lkQUU5bAlN+KpTItKQ/qEwa6UMELzlmpEQ6lM8= X-Google-Smtp-Source: AK7set/Fcwlvagt2UuepfIjZOSSvedK4PTsB+eLiV+kw7ERn3reWLBkyETyraG0rY8AKPfbNdeNqXQ== X-Received: by 2002:a05:622a:120c:b0:3b8:436b:f250 with SMTP id y12-20020a05622a120c00b003b8436bf250mr14065821qtx.41.1675099401064; Mon, 30 Jan 2023 09:23:21 -0800 (PST) Received: from bill-the-cat (2603-6081-7b00-6400-31da-0362-f50e-b4ac.res6.spectrum.com. [2603:6081:7b00:6400:31da:362:f50e:b4ac]) by smtp.gmail.com with ESMTPSA id i6-20020a05620a27c600b007049f19c736sm8403251qkp.7.2023.01.30.09.23.20 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 30 Jan 2023 09:23:20 -0800 (PST) Date: Mon, 30 Jan 2023 12:23:18 -0500 From: Tom Rini To: Christophe Leroy Cc: Jagan Teki , u-boot@lists.denx.de, FRANJOU Stephane Subject: Re: [PATCH 2/7] board: MCR3000: Modernise the settings to properly work on lastest u-boot version Message-ID: References: MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="ED3Y7kOvGa4K24k4" Content-Disposition: inline In-Reply-To: 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.6 at phobos.denx.de X-Virus-Status: Clean --ED3Y7kOvGa4K24k4 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Mon, Jan 30, 2023 at 03:34:01PM +0100, Christophe Leroy wrote: > Both U-boot and Linux kernel have grown over the last releases > and don't fit anymore in the 2M EPROM of the board. >=20 > So, rework the setup to allow storing the Linux kernel image > on the UBIFS NAND Flash. >=20 > Also add support to FIT images as this is what the Linux kernel > look like nowadays. >=20 > Also increase CONFIG_SYS_BOOTMAPSZ to 32Mbytes and define > CONFIG_SYS_BOOTM_LEN with the same value, otherwise it defaults > to 8M which is not sufficient anymore with nowadays Linux kernels. >=20 > Signed-off-by: Christophe Leroy > Reviewed-by: FRANJOU Stephane > --- > configs/MCR3000_defconfig | 8 ++++++-- > include/configs/MCR3000.h | 42 ++++++++++++++++++--------------------- > 2 files changed, 25 insertions(+), 25 deletions(-) >=20 > diff --git a/configs/MCR3000_defconfig b/configs/MCR3000_defconfig > index 6c41d7c88d1..2e9d8c24329 100644 > --- a/configs/MCR3000_defconfig > +++ b/configs/MCR3000_defconfig > @@ -20,6 +20,7 @@ CONFIG_SYS_SCCR=3D0x00C20000 > CONFIG_SYS_SCCR_MASK=3D0x60000000 > CONFIG_SYS_DER=3D0x2002000F > CONFIG_SYS_MONITOR_LEN=3D327680 > +CONFIG_FIT=3Dy > CONFIG_OF_BOARD_SETUP=3Dy > CONFIG_SYS_MONITOR_BASE=3D0x04000000 > CONFIG_BOOTDELAY=3D5 > @@ -35,11 +36,12 @@ CONFIG_HUSH_PARSER=3Dy > CONFIG_SYS_PBSIZE=3D278 > # CONFIG_CMD_BDI is not set > # CONFIG_CMD_CONSOLE is not set > -CONFIG_SYS_BOOTM_LEN=3D0x800000 > +CONFIG_SYS_BOOTM_LEN=3D0x2000000 > # CONFIG_CMD_IMI is not set > CONFIG_CMD_ASKENV=3Dy > # CONFIG_CMD_LOADB is not set > # CONFIG_CMD_LOADS is not set > +CONFIG_CMD_MTD=3Dy > CONFIG_CMD_NAND=3Dy > # CONFIG_CMD_ECHO is not set > # CONFIG_CMD_ITEST is not set > @@ -50,6 +52,8 @@ CONFIG_CMD_MII=3Dy > CONFIG_MII_INIT=3Dy > CONFIG_CMD_PING=3Dy > # CONFIG_CMD_SLEEP is not set > +CONFIG_CMD_MTDPARTS=3Dy > +CONFIG_CMD_UBI=3Dy > CONFIG_OF_CONTROL=3Dy > CONFIG_ENV_OVERWRITE=3Dy > CONFIG_ENV_IS_IN_FLASH=3Dy > @@ -80,6 +84,7 @@ CONFIG_SYS_BR7_PRELIM=3D0x1C000001 > CONFIG_SYS_OR7_PRELIM=3D0xFFFF810A > # CONFIG_MMC is not set > CONFIG_MTD=3Dy > +CONFIG_DM_MTD=3Dy > CONFIG_MTD_NOR_FLASH=3Dy > CONFIG_FLASH_CFI_DRIVER=3Dy > CONFIG_SYS_FLASH_CFI=3Dy > @@ -89,5 +94,4 @@ CONFIG_MPC8XX_FEC=3Dy > # CONFIG_PCI is not set > CONFIG_DM_SERIAL=3Dy > CONFIG_WDT=3Dy > -CONFIG_SHA256=3Dy > CONFIG_LZMA=3Dy > diff --git a/include/configs/MCR3000.h b/include/configs/MCR3000.h > index b0809332bb5..62c3404415c 100644 > --- a/include/configs/MCR3000.h > +++ b/include/configs/MCR3000.h > @@ -12,45 +12,40 @@ > #define CONFIG_EXTRA_ENV_SETTINGS \ > "sdram_type=3DSDRAM\0" \ > "flash_type=3DAM29LV160DB\0" \ > - "loadaddr=3D0x400000\0" \ > - "filename=3DuImage.lzma\0" \ > - "nfsroot=3D/opt/ofs\0" \ > + "loadaddr=3D0x1200000\0" \ > + "filename=3Dmcr3000.itb\0" \ > "dhcp_ip=3Dip=3D:::::eth0:dhcp\0" \ > "console_args=3Dconsole=3DttyCPM0,115200N8\0" \ > + "loadkernel=3Dubi part nand0;ubifsmount ubi0;" \ > + "ubifsload ${loadaddr} /boot/${filename};" \ > + "ubifsumount; ubi detach\0" \ > + "bootcmd=3Drun flashboot\0" \ > "flashboot=3Dsetenv bootargs " \ > "${console_args} " \ > "ip=3D${ipaddr}:${serverip}:${gatewayip}:${netmask}:" \ > "mcr3k:eth0:off;" \ > "${ofl_args}; " \ > - "bootm 0x04060000 - 0x04050000\0" \ > + "run loadkernel; " \ > + "bootm ${loadaddr}\0" \ > "tftpboot=3Dsetenv bootargs " \ > "${console_args} " \ > "ip=3D${ipaddr}:${serverip}:${gatewayip}:${netmask}:" \ > "mcr3k:eth0:off " \ > "${ofl_args}; " \ > "tftp ${loadaddr} ${filename};" \ > - "tftp 0xf00000 mcr3000.dtb;" \ > - "bootm ${loadaddr} - 0xf00000\0" \ > - "netboot=3Ddhcp ${loadaddr} ${filename};" \ > - "tftp 0xf00000 mcr3000.dtb;" \ > - "setenv bootargs " \ > - "root=3D/dev/nfs rw " \ > - "${console_args} " \ > - "${dhcp_ip};" \ > - "bootm ${loadaddr} - 0xf00000\0" \ > - "nfsboot=3Dsetenv bootargs " \ > - "root=3D/dev/nfs rw nfsroot=3D${serverip}:${nfsroot} " \ > - "${console_args} " \ > - "ip=3D${ipaddr}:${serverip}:${gatewayip}:${netmask}:" \ > - "mcr3k:eth0:off;" \ > - "bootm 0x04060000 - 0x04050000\0" \ > + "bootm ${loadaddr}\0" \ > "dhcpboot=3Ddhcp ${loadaddr} ${filename};" \ > - "tftp 0xf00000 mcr3000.dtb;" \ > "setenv bootargs " \ > "${console_args} " \ > "${dhcp_ip} " \ > "${ofl_args}; " \ > - "bootm ${loadaddr} - 0xf00000\0" > + "bootm ${loadaddr}\0" \ > + "update=3Decho 'Updating ubi image'; " \ > + "if tftp 0x2000 $ubifile; then " \ > + "nand erase.chip; " \ > + "nand write 0x2000 0x00 $filesize; " \ > + "fi;\0 " > + I would like to see this move instead to using the plain text environment as can be see in commits such as 5c3f6a320678 ("dragonboard410c: Migrate to using CONFIG_EXTRA_ENV_TEXT"). --=20 Tom --ED3Y7kOvGa4K24k4 Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQGzBAABCgAdFiEEGjx/cOCPqxcHgJu/FHw5/5Y0tywFAmPX/QYACgkQFHw5/5Y0 tywEnAv8DS/vZ5INgAhGAT+gHtBNTCKCeoV/nJb1cVEMY2CV6wT8tEgvsJpwQz7u W0edo9f9rHUuuz8wUR1kx5xqW2G6KWg70kjUmheM1s743RZjK3IzQhnvp3Uas5Xk Ioysc4R7CXNwXFfzjkynn/jxFxMn1UjJWIAV1CllZtW1mjpjx8Il/lgBlTHxiaoU 1hm1JVy1yalo8+oypBQ4LV2gSNG3jlU1MGxbjegn1DNtURpf/KL/hnJMXR06xWVo vh/bFBIdBfxVhaZaOhtYi7UghRJMBDibZo+xA77dfTF/S+d6JHjwcNepFEJZkrSk TFnrxRzefyNQbkZptWEq7XhU3lifUgCs6YrvJoaxTEnCrH7TjAnqlD5bAI6v0e3a 7ZCwSJKE0/VXalG1o73jDoWEC7Le41v1yd0J7B9MfSXrl2ZeLcDWl9+qjSsGxfKc U58d4F2Hsh4WRSMm6XZsmMF+bDi3EmvAGlFqmMg0ObvxgtWb1ogbnfmGjNZ0Vbw7 INCXAnAe =YDTH -----END PGP SIGNATURE----- --ED3Y7kOvGa4K24k4--