aboutsummaryrefslogtreecommitdiff
path: root/arch
diff options
context:
space:
mode:
authorMike J. Chen <mjchen@google.com>2011-09-06 09:05:50 -0700
committerMike J. Chen <mjchen@google.com>2012-03-03 17:05:51 -0800
commit6caae255a8add5021387f81363c222f09c915fc2 (patch)
treef3f875254821285dd3fa316ad9fc74ebbce1728a /arch
parentbb1625b3dc0a5f8301b05e7ecede8c6aa8b338df (diff)
downloaduboot-6caae255a8add5021387f81363c222f09c915fc2.tar.gz
FASTBOOT: Implementation of device info partition
Used to store device specific info like mac addresses. The values are set using 'fastboot oem setinfo <name>=<value>'. They are committed to flash using 'fastboot oem saveinfo'. Once saved, the partition cannot be overwritten or erased. Change-Id: I1269b3ebe0f46838d91892ee03c857fbbb3ea6cd Signed-off-by: Mike J. Chen <mjchen@google.com>
Diffstat (limited to 'arch')
-rw-r--r--arch/arm/cpu/armv7/omap-common/fastboot.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/arch/arm/cpu/armv7/omap-common/fastboot.c b/arch/arm/cpu/armv7/omap-common/fastboot.c
index d7a4c5477..35b0d96cf 100644
--- a/arch/arm/cpu/armv7/omap-common/fastboot.c
+++ b/arch/arm/cpu/armv7/omap-common/fastboot.c
@@ -309,6 +309,8 @@ static void import_efi_partition(struct efi_entry *entry)
if (!strcmp(e.name,"environment"))
e.flags |= FASTBOOT_PTENTRY_FLAGS_WRITE_ENV;
+ if (!strcmp(e.name,"device_info"))
+ e.flags |= FASTBOOT_PTENTRY_FLAGS_DEVICE_INFO;
fbt_add_ptn(&e);
if (e.length > 0x100000)