<feed xmlns='http://www.w3.org/2005/Atom'>
<title>u-boot.git/arch/sandbox/cpu, branch v2014.01</title>
<subtitle>Unnamed repository; edit this file 'description' to name the repository.</subtitle>
<id>http://cgit.235523.xyz/u-boot.git/atom/arch/sandbox/cpu?h=v2014.01</id>
<link rel='self' href='http://cgit.235523.xyz/u-boot.git/atom/arch/sandbox/cpu?h=v2014.01'/>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/u-boot.git/'/>
<updated>2014-01-09T00:25:08Z</updated>
<entry>
<title>sandbox: Add facility to save/restore sandbox state</title>
<updated>2014-01-09T00:25:08Z</updated>
<author>
<name>Simon Glass</name>
<email>sjg@chromium.org</email>
</author>
<published>2013-11-10T17:27:04Z</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/u-boot.git/commit/?id=1209e2727c60d052ce875aa39bb8b9ba2edbfbdf'/>
<id>urn:sha1:1209e2727c60d052ce875aa39bb8b9ba2edbfbdf</id>
<content type='text'>
It is often useful to be able to save out the state from a sandbox test
run, for analysis or to restore it later to continue a test. Add generic
infrastructure for doing this using a device tree binary file. This is
a flexible tagged file format which is already supported by U-Boot, and
it supports hierarchy if needed.

Signed-off-by: Simon Glass &lt;sjg@chromium.org&gt;
Signed-off-by: Simon Glass &lt;sjg@chromium.org&gt;
Reviewed-by: Hung-ying Tyan &lt;tyanh@chromium.org&gt;
</content>
</entry>
<entry>
<title>sandbox: Allow reading/writing of RAM buffer</title>
<updated>2014-01-09T00:25:03Z</updated>
<author>
<name>Simon Glass</name>
<email>sjg@chromium.org</email>
</author>
<published>2013-11-10T17:27:03Z</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/u-boot.git/commit/?id=5c2859cdc30287b3593d9df88f48c31eecb0bbed'/>
<id>urn:sha1:5c2859cdc30287b3593d9df88f48c31eecb0bbed</id>
<content type='text'>
It is useful to be able to save and restore the RAM contents of sandbox
U-Boot either for setting up tests, for later analysys, or for chaining
together multiple tests which need to keep the same memory contents.

Add a function to provide a memory file for U-Boot. This is read on
start-up and written when shutting down. If the file does not exist
on start-up, it will be created when shutting down.

Signed-off-by: Simon Glass &lt;sjg@chromium.org&gt;
Signed-off-by: Simon Glass &lt;sjg@chromium.org&gt;
</content>
</entry>
<entry>
<title>sandbox: Add -i option to enter interactive mode</title>
<updated>2014-01-09T00:24:53Z</updated>
<author>
<name>Simon Glass</name>
<email>sjg@chromium.org</email>
</author>
<published>2013-11-10T17:27:02Z</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/u-boot.git/commit/?id=c5a62d4a7b4a971a1fb17d595f7c1e98a936a974'/>
<id>urn:sha1:c5a62d4a7b4a971a1fb17d595f7c1e98a936a974</id>
<content type='text'>
Normally when U-Boot starts with a command (-c option) it quits when the
command completes. Normally this is what is requires, since the test is
likely complete.

Provide an option to jump into the console instead, so that debugging or
other tasks may be performed before quitting.

Signed-off-by: Simon Glass &lt;sjg@chromium.org&gt;
Signed-off-by: Simon Glass &lt;sjg@chromium.org&gt;
</content>
</entry>
<entry>
<title>sandbox: Allow the console to work earlier</title>
<updated>2014-01-09T00:24:50Z</updated>
<author>
<name>Simon Glass</name>
<email>sjg@chromium.org</email>
</author>
<published>2013-11-10T17:27:01Z</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/u-boot.git/commit/?id=91b136c7989e763b01632ca3de6fca8ead0b847b'/>
<id>urn:sha1:91b136c7989e763b01632ca3de6fca8ead0b847b</id>
<content type='text'>
With sandbox, errors and problems may be reported before console_init_f()
is executed. For example, an argument may not parse correctly or U-Boot may
panic(). At present this output is swallowed so there is no indication what
is going wrong.

Adjust the console to deal with a very early sandbox setup, by detecting that
there is no global_data yet, and calling os functions in that case.

Signed-off-by: Simon Glass &lt;sjg@chromium.org&gt;
Signed-off-by: Simon Glass &lt;sjg@chromium.org&gt;
</content>
</entry>
<entry>
<title>sandbox: Implement the bootm command for sandbox</title>
<updated>2014-01-09T00:24:42Z</updated>
<author>
<name>Simon Glass</name>
<email>sjg@chromium.org</email>
</author>
<published>2013-11-10T17:27:00Z</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/u-boot.git/commit/?id=88bd0e9d15d2f7e8c040931b06497878f9ed0550'/>
<id>urn:sha1:88bd0e9d15d2f7e8c040931b06497878f9ed0550</id>
<content type='text'>
When sandbox does a 'bootm' to run a kernel we cannot actually execute it.
So just exit sandbox, which is essentially what U-Boot does on other archs.
Also, allow sandbox to use bootm on any kernel, so that it can be used
to test booting of kernels from any architecture.

Signed-off-by: Simon Glass &lt;sjg@chromium.org&gt;
Signed-off-by: Simon Glass &lt;sjg@chromium.org&gt;
</content>
</entry>
<entry>
<title>sandbox: Allow return from board_init_f()</title>
<updated>2014-01-09T00:24:38Z</updated>
<author>
<name>Simon Glass</name>
<email>sjg@chromium.org</email>
</author>
<published>2013-11-10T17:26:59Z</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/u-boot.git/commit/?id=808434cdbd70b6633c99fe2974af7d25316cc593'/>
<id>urn:sha1:808434cdbd70b6633c99fe2974af7d25316cc593</id>
<content type='text'>
The execution flow becomes easier if we can return from board_init_f()
as ARM does. We can control things from start.c instead of having to
call back into that file from other places.

Signed-off-by: Simon Glass &lt;sjg@chromium.org&gt;
Signed-off-by: Simon Glass &lt;sjg@chromium.org&gt;
</content>
</entry>
<entry>
<title>sandbox: Correct help message &lt;arg&gt; garbling</title>
<updated>2014-01-09T00:24:23Z</updated>
<author>
<name>Simon Glass</name>
<email>sjg@chromium.org</email>
</author>
<published>2013-11-10T17:26:58Z</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/u-boot.git/commit/?id=6ebcab8de7c38ca0b2cc5215c5b3e7ccf5f9d0d7'/>
<id>urn:sha1:6ebcab8de7c38ca0b2cc5215c5b3e7ccf5f9d0d7</id>
<content type='text'>
The &lt;arg&gt; is displayed for options with no argument, and omitted for those
with an argument. Swap this around.

Signed-off-by: Simon Glass &lt;sjg@chromium.org&gt;
Signed-off-by: Simon Glass &lt;sjg@chromium.org&gt;
</content>
</entry>
<entry>
<title>sandbox: Improve/augment memory allocation functions</title>
<updated>2014-01-09T00:24:19Z</updated>
<author>
<name>Simon Glass</name>
<email>sjg@chromium.org</email>
</author>
<published>2013-11-10T17:26:57Z</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/u-boot.git/commit/?id=77595c6d9e2c1af9c3b143f496c4c47d0e95a458'/>
<id>urn:sha1:77595c6d9e2c1af9c3b143f496c4c47d0e95a458</id>
<content type='text'>
Implement realloc() and free() for sandbox, by adding a header to each
block which contains the block size.

Signed-off-by: Simon Glass &lt;sjg@chromium.org&gt;
Signed-off-by: Simon Glass &lt;sjg@chromium.org&gt;
Reviewed-by: Che-Liang Chiou &lt;clchiou@chromium.org&gt;
Reviewed-by: Hung-ying Tyan &lt;tyanh@chromium.org&gt;
</content>
</entry>
<entry>
<title>sandbox: Rename sb_cmdline_option to sandbox_cmdline_option</title>
<updated>2013-12-09T19:22:02Z</updated>
<author>
<name>Simon Glass</name>
<email>sjg@chromium.org</email>
</author>
<published>2013-12-03T23:43:23Z</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/u-boot.git/commit/?id=7b3efc66996b6686ad393b706c323990afa31930'/>
<id>urn:sha1:7b3efc66996b6686ad393b706c323990afa31930</id>
<content type='text'>
The new name is longer but more clearly related to sandbox.

This is in a separate patch within the same series since some comments on the
SPI series rely on it.

Signed-off-by: Simon Glass &lt;sjg@chromium.org&gt;
Reviewed-by: Hung-ying Tyan &lt;tyanh@chromium.org&gt;
</content>
</entry>
<entry>
<title>sandbox: Use system headers first for sandbox's os.c</title>
<updated>2013-11-21T23:54:26Z</updated>
<author>
<name>Simon Glass</name>
<email>sjg@chromium.org</email>
</author>
<published>2013-11-10T17:26:48Z</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/u-boot.git/commit/?id=cbe5cdfcd31633edce4ee78ebc008b922de571e3'/>
<id>urn:sha1:cbe5cdfcd31633edce4ee78ebc008b922de571e3</id>
<content type='text'>
This file must be compiled with system headers, even if U-Boot has headers
of the same name. The existing solution for this is good enough for libfdt,
but fails when we have headers like stdint.h in U-Boot.

Use -idirafter instead of -I, and remove the -nostdinc and other things
that we don't want for this file. The best way to do this is to keep a
copy of the original flags, rather than trying to filter them later.

Signed-off-by: Simon Glass &lt;sjg@chromium.org&gt;
</content>
</entry>
</feed>
