sandbox: block driver using host file/device as backing store
authorHenrik Nordström <henrik@henriknordstrom.net>
Sun, 10 Nov 2013 17:26:56 +0000 (10:26 -0700)
committerSimon Glass <sjg@chromium.org>
Thu, 9 Jan 2014 00:24:03 +0000 (17:24 -0700)
commitf4d8de48f5a2aa1885daa0d425b8c0568a2ccb69
treed86aea3653bfff137f2a94bea66d5fbddcb59853
parent60d18d3fe9d1a5db663711063cd0d5c915af377a
sandbox: block driver using host file/device as backing store

Provide a way to use any host file or device as a block device in U-Boot.
This can be used to provide filesystem access within U-Boot to an ext2
image file on the host, for example.

The support is plumbed into the filesystem and partition interfaces.

We don't want to print a message in the driver every time we find a missing
device. Pass the information back to the caller where a message can be printed
if desired.

Signed-off-by: Henrik Nordström <henrik@henriknordstrom.net>
Signed-off-by: Simon Glass <sjg@chromium.org>
- Removed change to part.c get_device_and_partition()

Signed-off-by: Simon Glass <sjg@chromium.org>
Reviewed-by: Simon Glass <sjg@chromium.org>
common/cmd_sandbox.c
disk/part.c
drivers/block/Makefile
drivers/block/sandbox.c [new file with mode: 0644]
include/config_fallbacks.h
include/configs/sandbox.h
include/part.h
include/sandboxblockdev.h [new file with mode: 0644]