From mboxrd@z Thu Jan 1 00:00:00 1970 From: Tom Rini Date: Fri, 26 May 2017 08:38:45 -0400 Subject: [U-Boot] [PATCH 0/3] add support for GPT partition name manipulation In-Reply-To: <1495333675-14854-1-git-send-email-alison@peloton-tech.com> References: <1495333675-14854-1-git-send-email-alison@peloton-tech.com> Message-ID: <20170526123845.GI10782@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 Sat, May 20, 2017 at 07:27:52PM -0700, alison at peloton-tech.com wrote: > From: Alison Chaiken > > One way for userspace and the bootloader to exchange information about > dynamic image selection is via the storage device partition table, as > described at > > https://source.android.com/devices/tech/ota/ab_updates > > The scheme described there relies on setting partitions' "boot" flag. > When no partition on a device is bootable since the kernel and U-Boot > are stored elsewhere, the name field in the GPT partition table offers > another logical place to store information. These patches allow users > to easily modify GPT partition names via bootscripts that can select > different images based on a boot-failure counter, or when userspace > installs a software update. > > These patches have been tested on a TI DRA7xx-based SOM with U-Boot > 2015.07. The storage device is an eMMC. > > Alison Chaiken (3): > GPT: add accessor function for disk GUID > GPT: read partition table from device into a data structure > rename GPT partitions to detect boot failure > > cmd/gpt.c | 339 +++++++++++++++++++++++++++++++++++++++++++++++++++++++- > disk/part_efi.c | 31 ++++++ > include/part.h | 24 ++++ > 3 files changed, 392 insertions(+), 2 deletions(-) Interesting. Adding Lukasz for comments as well. I was thinking perhaps the final patch in the series might want to be guarded with some Kconfig option as it's rather specific to this update mechanism and probably causes a noticeable size increase due to the strings. Thanks! -- Tom -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 819 bytes Desc: Digital signature URL: