blob: 04692b34fa7a517095db12fc5e76eff92e113a3c [file] [log] [blame]
Simon Glassb4a905e2011-10-10 08:22:14 +00001/*
2 * Copyright (c) 2011 The Chromium OS Authors.
3 *
4 * See file CREDITS for list of people who contributed to this
5 * project.
6 *
7 * This program is free software; you can redistribute it and/or
8 * modify it under the terms of the GNU General Public License as
9 * published by the Free Software Foundation; either version 2 of
10 * the License, or (at your option) any later version.
11 *
12 * This program is distributed in the hope that it will be useful,
13 * but WITHOUT ANY WARRANTY; without even the implied warranty of
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 * GNU General Public License for more details.
16 *
17 * You should have received a copy of the GNU General Public License
18 * along with this program; if not, write to the Free Software
19 * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
20 * MA 02111-1307 USA
21 */
22
23Native Execution of U-Boot
24==========================
25
26The 'sandbox' architecture is designed to allow U-Boot to run under Linux on
27almost any hardware. To achieve this it builds U-Boot (so far as possible)
28as a normal C application with a main() and normal C libraries.
29
30All of U-Boot's architecture-specific code therefore cannot be built as part
31of the sandbox U-Boot. The purpose of running U-Boot under Linux is to test
32all the generic code, not specific to any one architecture. The idea is to
33create unit tests which we can run to test this upper level code.
34
35CONFIG_SANDBOX is defined when building a native board.
36
37The chosen vendor and board names are also 'sandbox', so there is a single
38board in board/sandbox/sandbox.
39
40CONFIG_SANDBOX_BIG_ENDIAN should be defined when running on big-endian
41machines.
42
43Note that standalone/API support is not available at present.
44
45The serial driver is a very simple implementation which reads and writes to
46the console. It does not set the terminal into raw mode, so cursor keys and
47history will not work yet.
48
49
50Tests
51-----
52
53So far we have no tests, but when we do these will be documented here.