
On Wed, Mar 15, 2017 at 03:11:31PM +0100, Patrick Delaunay wrote:
I have a request to support GPT over MTD to have the MTD informations without U-Boot environment(CONFIG_ENV_IS_NOWHERE is a other requirement of my project to manage several board configuration with the same defconfig; boot from NAND or NOR or SDCARD).
The current idea is to use the GPT header format to save the partitioning information directly in flash device (NOR or NAND), then the U-Boot MTD variables are rebuild from these GPT partitions and can be used by DISTRO command to search bootable binary.
This information are directly used by BootRom to locate and load the first bootstage.
The added code is under a new CONFIG : CONFIG_EFI_PARTITION_MTD and in the new file "disk/part_efi_mtd.c"
For implementation details, see doc/README.gpt.mtd
TODO: full support for modified command (if needed) today I limit the support for the command expected used by DISTRO macro: + gpt write + part list
... what I said just now to v3 applies here really, sorry for the confusion.