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>
Showing
- common/cmd_sandbox.c 64 additions, 0 deletionscommon/cmd_sandbox.c
- disk/part.c 6 additions, 0 deletionsdisk/part.c
- drivers/block/Makefile 1 addition, 0 deletionsdrivers/block/Makefile
- drivers/block/sandbox.c 124 additions, 0 deletionsdrivers/block/sandbox.c
- include/config_fallbacks.h 2 additions, 1 deletioninclude/config_fallbacks.h
- include/configs/sandbox.h 3 additions, 0 deletionsinclude/configs/sandbox.h
- include/part.h 5 additions, 0 deletionsinclude/part.h
- include/sandboxblockdev.h 18 additions, 0 deletionsinclude/sandboxblockdev.h
Loading
Please register or sign in to comment