diff options
author | Alison Chaiken <alison@peloton-tech.com> | 2017-09-09 23:47:12 -0700 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2017-09-14 21:32:57 -0400 |
commit | bf6d76b84ae13b463c0dca556118047e2d046f33 (patch) | |
tree | d5430256e83c440f81567773e7ee18897716fea7 /board | |
parent | 2f9455c8499345dcfa7553b4c1fd34e619be3ece (diff) | |
download | u-boot-bf6d76b84ae13b463c0dca556118047e2d046f33.tar.gz |
GPT: create block device for sandbox testing
Provide a Python function that creates a small block device for the
purpose of testing the cmd/gpt.c or cmd/part.c functions in the u-boot
sandbox.
Signed-off-by: Alison Chaiken <alison@peloton-tech.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'board')
-rw-r--r-- | board/sandbox/README.sandbox | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/board/sandbox/README.sandbox b/board/sandbox/README.sandbox index 2e2c819384..9bc13e142b 100644 --- a/board/sandbox/README.sandbox +++ b/board/sandbox/README.sandbox @@ -337,6 +337,11 @@ $> lodev=`sudo losetup -P -f --show ./disk.raw` $> sudo mkfs.vfat -n EFI -v ${lodev}p1 $> sudo mkfs.ext4 -L ROOT -v ${lodev}p2 +or utilize the device described in test/py/make_test_disk.py: + + #!/usr/bin/python + import make_test_disk + make_test_disk.makeDisk() Writing Sandbox Drivers ----------------------- |