[U-Boot] [PATCH v2] sandbox: block driver using host file/device as backing store

Simon Glass sjg at chromium.org
Wed Jul 31 13:29:12 CEST 2013


Hi Henrik,

On Sun, Jun 16, 2013 at 7:39 PM, Henrik Nordström <
henrik at henriknordstrom.net> wrote:

> sön 2013-06-16 klockan 07:50 -0700 skrev Simon Glass:
>
> > Did you send a new version? I might have missed it.
>
> Not yet. Work got in a bit of a panic mode and then been ill for a
> while. Not forgotten.
>

FYI I think there the blksz field needs to be set also, in
drivers/block/sandbox.c. I am using:

...
blk_dev->priv = host_dev;
blk_dev->log2blksz = 9;
blk_dev->blksz = 1 << blk_dev->log2blksz;
blk_dev->lba = os_lseek(host_dev->fd, 0, OS_SEEK_END) / blk_dev->blksz;
...

Regards,
Simon


More information about the U-Boot mailing list