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

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,

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,

Hi, Tiger
On 6/10/2014 7:01 PM, TigerLiu@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@lists.denx.de http://lists.denx.de/mailman/listinfo/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@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-di...
Once you have created it, U-Boot should be able to access it.
Regards, Simon

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,
participants (3)
-
Josh Wu
-
Simon Glass
-
TigerLiu@via-alliance.com