]> git.ipfire.org Git - people/ms/u-boot.git/commitdiff
cmd gpt: test in sandbox
authorAlison Chaiken <alison@peloton-tech.com>
Sun, 4 Jun 2017 22:11:21 +0000 (15:11 -0700)
committerSimon Glass <sjg@chromium.org>
Tue, 11 Jul 2017 16:08:19 +0000 (10:08 -0600)
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 <alison@peloton-tech.com>
doc/README.gpt

index 3fcd83557f99bee1ec60d62646b9bc3c99c49951..c0acc8ade5c72afdc0e0ec6936be8b94b093ff69 100644 (file)
@@ -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:
 ====================