diff options
author | Tom Rini <trini@konsulko.com> | 2016-09-20 09:34:53 -0400 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2016-09-20 09:34:53 -0400 |
commit | a2ed3f452dd1cf4982fe46d5111d200909786686 (patch) | |
tree | a66b5a2f3b6491df7ba9345178502959fb19c84f /board/sandbox/README.sandbox | |
parent | 60c629b836fb6b6ae79e4e0663977056d75de198 (diff) | |
parent | 8f224b3734d042884a8981a14db64c48e87b87a2 (diff) | |
download | u-boot-imx-a2ed3f452dd1cf4982fe46d5111d200909786686.zip u-boot-imx-a2ed3f452dd1cf4982fe46d5111d200909786686.tar.gz u-boot-imx-a2ed3f452dd1cf4982fe46d5111d200909786686.tar.bz2 |
Merge git://git.denx.de/u-boot-dm
Diffstat (limited to 'board/sandbox/README.sandbox')
-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 ed820d3..02d8ab3 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 ----------------------- |