
On Mon, Feb 06, 2017 at 10:06:40AM +0100, Patrick Delaunay wrote:
I have a request to support GPT over MTD to be able to have dynamic MTD informations without U-Boot environment(CONFIG_ENV_IS_NOWHERE is a other requirement of my project).
The idea is to use the GPT header to save partitioning information directly in flash device (NOR or NAND), then the MTD variables are rebuild from these GPT partitions and can be used by DISTRO to search bootable binary.
I make a first prototyping for this request but I want ask you if this feature is acceptable for U-Boot and if this patches, after some update and cleanups, would be merged in U-Boot mainline. Do you see already some blocking points ?
- added code is under a new CONFIG : CONFIG_EFI_PARTITION_MTD
- for implementation details, see doc/README.gpt.mtd
TODO:
- full support for modified command today I limit the support for the command used by DISTRO macro:
- gpt write
- part list
- DISTRO macro update for automatic boot on GPT bootable partition found in MTD devices
This also adds a ton of warnings in odd places, please fix that before removing the RFC tag (and tag the whole series RFC next time too please), thanks!