From: Tom Rini Date: Mon, 27 Nov 2017 13:11:07 -0500 Subject: [U-Boot] [PATCHv3] env: enable accessing the environment in an EXT4 partition In-Reply-To: <0a7fe539-ab02-6b7a-96dd-9cc87b64a27f@linaro.org> References: <1511804735-16238-1-git-send-email-jorge.ramirez-ortiz@linaro.org> <20171127174913.GJ3587@bill-the-cat> <0305feb5-00c8-aac3-0d50-a4cf6b9ad274@linaro.org> <0a7fe539-ab02-6b7a-96dd-9cc87b64a27f@linaro.org> Message-ID: <20171127181107.GK3587@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 Mon, Nov 27, 2017 at 07:06:02PM +0100, Jorge Ramirez wrote: > On 11/27/2017 06:51 PM, Jorge Ramirez wrote: > >On 11/27/2017 06:49 PM, Tom Rini wrote: > >>On Mon, Nov 27, 2017 at 06:45:35PM +0100, Jorge Ramirez-Ortiz wrote: > >>>the following commit enables accessing the environment in an ext4 > >>>partition. In order to do that, some definitions need to be added to > >>>include/configs/board_x.h file. > >>> > >>>For example to store the environment in a file named "/uboot.env" in > >>>MMC > >>>"0", where partition "1" contains the EXT4 filesystem, you should > >>>define: > >>> > >>> EXT4_ENV_DEVICE_AND_PART "0:1" > >>> EXT4_ENV_INTERFACE "mmc" > >>> EXT4_ENV_FILE "/uboot.env" > >>We have examples of these kind of configurations in Kconfig today, > >>please add them as well so the feature can be fully used, thanks! > >> > >oops, yeah, sorry about that. ok doing it now > > just checking but you realize that I will have to modify env/ext4.c to use > these new CONFIG_ just like we do for FAT? > for EXT4 we were using include/configs/.h instead as described in the commit > (so the feature was fully functional, just slightly different to FAT when > defining the variables). > > ok? Yes, we need to move them to CONFIG_xxx and have them in Kconfig. And we should rename them to CONFIG_ENV_EXT4_xxx while at it. I think I had to do this when migrating FAT env support and left EXT4 out as there were no in-tree users at the time so it fell off my TODO list. Thanks! -- Tom -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 819 bytes Desc: not available URL: