[U-Boot] [U-boot] sandbox test script question

Simon Glass sjg at chromium.org
Wed Jun 11 05:58:16 CEST 2014


Hi Tiger,

On 10 June 2014 23:36, Josh Wu <josh.wu at atmel.com> wrote:
> Hi, Tiger
>
>
> On 6/10/2014 7:01 PM, TigerLiu at via-alliance.com wrote:
>>
>> Hi, Simon:
>> Is there any doc described how to use 'sb load host / sb ls host' etc
>> cmds?
>
> so far seems no doc yet.
> If you want to access the host file system, you need apply a patch:
> http://patchwork.ozlabs.org/patch/358406/ (fix the typo)
>
> then you can access the host file system by use: 'sb load hostfs 0 200000
> /home/xxx'

Patches welcome! You could add a section to the sandbox README
describing how to use the block device.

>
>
>> I tried to run:
>> sb info
>>
>> it displayed:
>> 0 Not bound to a backing file
>> ......
>
> if you want to access a file as a block device.
> you need use 'sb bind 0 test.img' to bind a file as a host 0 interface.

Thanks Josh. This image could be created using a loopback device in
linux with a filesystem on it. Maybe something like this:

http://www.walkernews.net/2007/07/01/create-linux-loopback-file-system-on-disk-file/

Once you have created it, U-Boot should be able to access it.

Regards,
Simon


More information about the U-Boot mailing list