From: Alison Chaiken Date: Sun, 25 Jun 2017 23:43:21 +0000 (-0700) Subject: cmd gpt: test in sandbox X-Git-Tag: baikal/mips/sdk5.9~4159 X-Git-Url: https://git.baikalelectronics.ru/sdk/?a=commitdiff_plain;h=e434a1708c00a3898b07714c8b62a17d1ecbdbb3;p=uboot.git 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. Changes since v6: none. Signed-off-by: Alison Chaiken --- diff --git a/doc/README.gpt b/doc/README.gpt index 0a3286f636..543bf872d0 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 +[ . . . ] + 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: