From: Tom Rini Date: Fri, 22 Feb 2019 13:40:01 -0500 Subject: [U-Boot] [PATCH v2 2/3] env: Don't check CONFIG_ENV_OFFSET_REDUND for SPL build In-Reply-To: <20190222175254.28195-2-martyn.welch@collabora.com> References: <20190222175254.28195-1-martyn.welch@collabora.com> <20190222175254.28195-2-martyn.welch@collabora.com> Message-ID: <20190222184001.GA12379@bill-the-cat> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de On Fri, Feb 22, 2019 at 05:52:53PM +0000, Martyn Welch wrote: > When booting using an SPL on am335x, if we want to support booting with > the boot ROM loader via USB (which uses RNDIS, making bootp and tftp > calls) we need to enable gadget eth in the SPL to load the main U-Boot > image. To enable CONFIG_SPL_ETH_SUPPORT, we must enable > CONFIG_SPL_ENV_SUPPORT as the environment is used by the eth support, but > we don't actually need to have environment variables saved in the SPL > environment. We do however have environment variables saved in the main > U-Boot image and enable CONFIG_ENV_OFFSET_REDUND (we are storing in raw > NAND). In such instances, even with the build config enabling both > CONFIG_CMD_SAVEENV and CONFIG_CMD_NAND, these options aren't set when > building the SPL, but CONFIG_ENV_OFFSET_REDUND still is. > > Don't check this configuration option for SPL builds to enable the above > configuration. > > Signed-off-by: Martyn Welch > Reviewed-by: Tom Rini -- Tom -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 819 bytes Desc: not available URL: