All of lore.kernel.org
 help / color / mirror / Atom feed
* [U-Boot] [U-boot] sandbox test script question
@ 2014-06-10  3:27 TigerLiu at via-alliance.com
  2014-06-10 11:01 ` TigerLiu at via-alliance.com
  0 siblings, 1 reply; 5+ messages in thread
From: TigerLiu at via-alliance.com @ 2014-06-10  3:27 UTC (permalink / raw)
  To: u-boot

Hi, Simon:

I tried to run test/image scripts:

          test/image/test-imagetools.sh - multi-file images

          test/image/test-fit.py        - FIT images

 

1.       test-imagetools.sh

need to copy u-boot/tools directory to sandbox dir manually, otherwise
it would fail.

2.       test-fit.py

it failed.

Error msgs:

IOError : [Errno 2] No such file or directory:
'/tmp/tmpfLQZPq/kernel-out.bin'

 

And, run 'ls /tmp/tmpfLQZPq'

It had test-kernel.bin, not kernel-out.bin

 

Best wishes,

 

^ permalink raw reply	[flat|nested] 5+ messages in thread

* [U-Boot] [U-boot] sandbox test script question
  2014-06-10  3:27 [U-Boot] [U-boot] sandbox test script question TigerLiu at via-alliance.com
@ 2014-06-10 11:01 ` TigerLiu at via-alliance.com
  2014-06-11  3:36   ` Josh Wu
  0 siblings, 1 reply; 5+ messages in thread
From: TigerLiu at via-alliance.com @ 2014-06-10 11:01 UTC (permalink / raw)
  To: u-boot

Hi, Simon:
Is there any doc described how to use 'sb load host / sb ls host' etc
cmds?
I tried to run:
sb info

it displayed:
0 Not bound to a backing file
......

Best wishes,

^ permalink raw reply	[flat|nested] 5+ messages in thread

* [U-Boot] [U-boot] sandbox test script question
  2014-06-10 11:01 ` TigerLiu at via-alliance.com
@ 2014-06-11  3:36   ` Josh Wu
  2014-06-11  3:58     ` Simon Glass
  2014-06-11  6:23     ` TigerLiu at via-alliance.com
  0 siblings, 2 replies; 5+ messages in thread
From: Josh Wu @ 2014-06-11  3:36 UTC (permalink / raw)
  To: u-boot

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'

> 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.

Hope it helps.
Best Regards,
Josh Wu

>
> Best wishes,
> _______________________________________________
> U-Boot mailing list
> U-Boot at lists.denx.de
> http://lists.denx.de/mailman/listinfo/u-boot

^ permalink raw reply	[flat|nested] 5+ messages in thread

* [U-Boot] [U-boot] sandbox test script question
  2014-06-11  3:36   ` Josh Wu
@ 2014-06-11  3:58     ` Simon Glass
  2014-06-11  6:23     ` TigerLiu at via-alliance.com
  1 sibling, 0 replies; 5+ messages in thread
From: Simon Glass @ 2014-06-11  3:58 UTC (permalink / raw)
  To: u-boot

Hi Tiger,

On 10 June 2014 23:36, Josh Wu <josh.wu@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

^ permalink raw reply	[flat|nested] 5+ messages in thread

* [U-Boot] [U-boot] sandbox test script question
  2014-06-11  3:36   ` Josh Wu
  2014-06-11  3:58     ` Simon Glass
@ 2014-06-11  6:23     ` TigerLiu at via-alliance.com
  1 sibling, 0 replies; 5+ messages in thread
From: TigerLiu at via-alliance.com @ 2014-06-11  6:23 UTC (permalink / raw)
  To: u-boot

Hi, Josh:
Thanks a lot!
Follwing these steps, I could load itb to memory:
1. sb bind 0 /lionfs
2. ext4load host 0 100000 testkernel.itb

Best wishes,

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2014-06-11  6:23 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-06-10  3:27 [U-Boot] [U-boot] sandbox test script question TigerLiu at via-alliance.com
2014-06-10 11:01 ` TigerLiu at via-alliance.com
2014-06-11  3:36   ` Josh Wu
2014-06-11  3:58     ` Simon Glass
2014-06-11  6:23     ` TigerLiu at via-alliance.com

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.