From: Patrick DELAUNAY Date: Thu, 11 May 2017 09:19:16 +0000 Subject: [U-Boot] [PATCH v6 00/18] GPT over MTD In-Reply-To: <20170511081934.gaj464hdiosrdg37@flea.home> References: <1494489128-24806-1-git-send-email-patrick.delaunay@st.com> <20170511081934.gaj464hdiosrdg37@flea.home> Message-ID: <95419694c23c40b7922df4ff090fcbea@SFHDAG6NODE3.st.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Hi Maxime, > From: Maxime Ripard [mailto:maxime.ripard at free-electrons.com] > 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