Hi Maxime, > From: Maxime Ripard [mailto:[email protected]] > Sent: jeudi 11 mai 2017 10:20 > > Hi, > > On Thu, May 11, 2017 at 09:51:50AM +0200, 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). > > What would happen if you have a bad block in the middle of the primary or > secondary GPT headers (or both)? > > Maxime >
All Bad block are skipped.... => primary GPT header is located at the beginning of first good block => backup GPT header is located at the end the of last good block And gpt create will failed if the erase block command (for primary or backup GPT) produce a new bad block. I try to explain this behavior in the added file doc/README.gpt.mtd with the patch [PATCH v6 07/18] disk: part: add support of GPT partitioning over MTD regards Patrick _______________________________________________ U-Boot mailing list [email protected] https://lists.denx.de/listinfo/u-boot

