diff mbox

[U-Boot,v7,5/9] cmd gpt: test in sandbox

Message ID 1498434205-21115-6-git-send-email-alison@peloton-tech.com
State Accepted
Commit 564cf25d5b1b90ae790e2b7619292935f40b13e6
Delegated to: Tom Rini
Headers show

Commit Message

Alison Chaiken June 25, 2017, 11:43 p.m. UTC
From: Alison Chaiken <alison@peloton-tech.com>

Make minor changes to README.gpt and sandbox_defconfig to support
testing of the gpt command's functionality in the sandbox.

Changes since v6: none.

Signed-off-by: Alison Chaiken <alison@peloton-tech.com>
---
 doc/README.gpt | 10 ++++++++++
 1 file changed, 10 insertions(+)

Comments

Tom Rini Aug. 7, 2017, 1:54 p.m. UTC | #1
On Sun, Jun 25, 2017 at 04:43:21PM -0700, Alison Chaiken wrote:

> From: Alison Chaiken <alison@peloton-tech.com>
> 
> Make minor changes to README.gpt and sandbox_defconfig to support
> testing of the gpt command's functionality in the sandbox.
> 
> Changes since v6: none.
> 
> Signed-off-by: Alison Chaiken <alison@peloton-tech.com>

Applied to u-boot/master, thanks!
diff mbox

Patch

diff --git a/doc/README.gpt b/doc/README.gpt
index 589295b..0a3286f 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:
 ====================