From 564cf25d5b1b90ae790e2b7619292935f40b13e6 Mon Sep 17 00:00:00 2001 From: Alison Chaiken Date: Sun, 4 Jun 2017 15:11:21 -0700 Subject: [PATCH] cmd gpt: test in sandbox Make minor changes to README.gpt and sandbox_defconfig to support testing of the gpt command's functionality in the sandbox. Signed-off-by: Alison Chaiken --- doc/README.gpt | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/doc/README.gpt b/doc/README.gpt index 3fcd83557f..c0acc8ade5 100644 --- a/doc/README.gpt +++ b/doc/README.gpt @@ -210,6 +210,16 @@ U-BOOT> gpt verify mmc 0 $partitions U-BOOT> if test $? = 0; then echo "GPT OK"; else echo "GPT ERR"; fi +The GPT functionality may be tested with the 'sandbox' board by +creating a disk image as described under 'Block Device Emulation' in +board/sandbox/README.sandbox: + +=>host bind 0 ./disk.raw +=> gpt read host 0 +[ . . . ] +=> gpt flip host 0 +[ . . . ] + Partition type GUID: ==================== -- 2.25.1