[U-Boot] [PATCH v2 51/80] dm: usb: sandbox: Add an emulator for USB flash devices

Simon Glass sjg at chromium.org
Tue Apr 7 21:10:08 CEST 2015


On 25 March 2015 at 12:22, Simon Glass <sjg at chromium.org> wrote:
> This emulator supports USB enumeration and allows a local file to be provided
> as the contents of the emulated flash stick. U-Boot can then use the file as
> it would a normal device, with all access passing through the usb_stor layer
> and the USB stack.
>
> Signed-off-by: Simon Glass <sjg at chromium.org>
> ---
>
> Changes in v2: None
>
>  drivers/usb/emul/Makefile        |   1 +
>  drivers/usb/emul/sandbox_flash.c | 423 +++++++++++++++++++++++++++++++++++++++
>  include/dm/uclass-id.h           |   1 +
>  3 files changed, 425 insertions(+)
>  create mode 100644 drivers/usb/emul/sandbox_flash.c

Applied to u-boot-dm/next.


More information about the U-Boot mailing list