diff options
author | Stefan Brüns | 2016-08-11 22:52:03 +0200 |
---|---|---|
committer | Simon Glass | 2016-09-18 21:04:38 -0600 |
commit | 2945eb73dd988cbd9775395128935256deb9a96e (patch) | |
tree | 8c24b28cc1c81ae14fdf8cd3ff8c5c4ca914bb37 | |
parent | 9a6535e05f17acf03e891266a650cb6029124743 (diff) |
sandbox: document support of block device emulation
Signed-off-by: Stefan Brüns <stefan.bruens@rwth-aachen.de>
Acked-by: Simon Glass <sjg@chromium.org>
Changed 'Sandbox' to 'sandbox' in subject:
Signed-off-by: Simon Glass <sjg@chromium.org>
-rw-r--r-- | board/sandbox/README.sandbox | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/board/sandbox/README.sandbox b/board/sandbox/README.sandbox index ed820d338e5..02d8ab3d09d 100644 --- a/board/sandbox/README.sandbox +++ b/board/sandbox/README.sandbox @@ -320,6 +320,25 @@ CONFIG_SPI_IDLE_VAL The idle value on the SPI bus +Block Device Emulation +---------------------- + +U-Boot can use raw disk images for block device emulation. To e.g. list +the contents of the root directory on the second partion of the image +"disk.raw", you can use the following commands: + +=>host bind 0 ./disk.raw +=>ls host 0:2 + +A disk image can be created using the following commands: + +$> truncate -s 1200M ./disk.raw +$> echo -e "label: gpt\n,64M,U\n,,L" | /usr/sbin/sfdisk ./disk.raw +$> lodev=`sudo losetup -P -f --show ./disk.raw` +$> sudo mkfs.vfat -n EFI -v ${lodev}p1 +$> sudo mkfs.ext4 -L ROOT -v ${lodev}p2 + + Writing Sandbox Drivers ----------------------- |