[U-Boot] [PATCH v3 11/21] sandbox: Disable standalone/API support
Simon Glass
sjg at chromium.org
Tue Oct 4 02:54:06 CEST 2011
Hi Mike,
On Mon, Oct 3, 2011 at 5:40 PM, Mike Frysinger <vapier at gentoo.org> wrote:
> On Monday, October 03, 2011 20:13:03 Simon Glass wrote:
>> On Mon, Oct 3, 2011 at 12:37 PM, Mike Frysinger wrote:
>> > On Monday, September 26, 2011 20:10:45 Simon Glass wrote:
>> >> This is not useful on the sandbox architecture since we can simply link
>> >> all our code with U-Boot. Also, loading native code doesn't make a lot
>> >> of sense.
>> >
>> > the standalone code would be useful tests i think ... after all, you're
>> > given an exported API from u-boot which are high level functions like
>> > I/O.
>> >
>> > but getting them to work in the sandbox environment probably will be
>> > tricky to say the least ... perhaps add a note in the README.sandbox ?
>>
>> Yes I will add a note. But it's hard to see why it wouldn't be better
>> just to link against U-Boot. Or are you thinking of lashing a file
>> system stress tester to U-Boot somehow?
>
> i would like to see automatic testing of the exported API in the same way that
> standalone applications work. so u-boot runs, loads an arbitrary blob into
> its external memory, and then jumps into it.
>
> if we have tun/tap networking, this should be easy to get arbitrary files into
> its memory space ... after that, it's a "simple" matter of jumping into the
> middle of its code :).
> -mike
>
OK I see. I suppose another way would be to call the API functions
directly, since you will miss arch-specific bugs this way. But it
sounds interesting.
Regards,
Simon
More information about the U-Boot
mailing list