blob: 5c0caebcbf0eaaf2773a8d4ac75bb010ab5d7ecf [file] [log] [blame]
Bin Meng25a74562019-07-18 00:34:33 -07001.. SPDX-License-Identifier: GPL-2.0+ */
2.. Copyright (c) 2014 The Chromium OS Authors.
3.. sectionauthor:: Simon Glass <sjg@chromium.org>
4
5Sandbox
6=======
Simon Glassb4a905e2011-10-10 08:22:14 +00007
8Native Execution of U-Boot
Bin Meng25a74562019-07-18 00:34:33 -07009--------------------------
Simon Glassb4a905e2011-10-10 08:22:14 +000010
11The 'sandbox' architecture is designed to allow U-Boot to run under Linux on
12almost any hardware. To achieve this it builds U-Boot (so far as possible)
13as a normal C application with a main() and normal C libraries.
14
15All of U-Boot's architecture-specific code therefore cannot be built as part
16of the sandbox U-Boot. The purpose of running U-Boot under Linux is to test
17all the generic code, not specific to any one architecture. The idea is to
18create unit tests which we can run to test this upper level code.
19
20CONFIG_SANDBOX is defined when building a native board.
21
Simon Glassdac64e02014-09-23 13:05:59 -060022The board name is 'sandbox' but the vendor name is unset, so there is a
23single board in board/sandbox.
Simon Glassb4a905e2011-10-10 08:22:14 +000024
25CONFIG_SANDBOX_BIG_ENDIAN should be defined when running on big-endian
26machines.
27
Mario Six61efece2018-02-12 08:05:57 +010028There are two versions of the sandbox: One using 32-bit-wide integers, and one
29using 64-bit-wide integers. The 32-bit version can be build and run on either
3032 or 64-bit hosts by either selecting or deselecting CONFIG_SANDBOX_32BIT; by
31default, the sandbox it built for a 32-bit host. The sandbox using 64-bit-wide
32integers can only be built on 64-bit hosts.
Bin Mengf34b4de2017-08-01 16:33:34 -070033
Simon Glassb4a905e2011-10-10 08:22:14 +000034Note that standalone/API support is not available at present.
35
Simon Glassb4a905e2011-10-10 08:22:14 +000036
Simon Glass53552c92014-03-22 17:12:59 -060037Basic Operation
38---------------
39
Bin Meng25a74562019-07-18 00:34:33 -070040To run sandbox U-Boot use something like::
Simon Glass53552c92014-03-22 17:12:59 -060041
Jagannadha Sutradharudu Teki287314f2014-08-31 21:19:43 +053042 make sandbox_defconfig all
Simon Glass53552c92014-03-22 17:12:59 -060043 ./u-boot
44
Bin Meng25a74562019-07-18 00:34:33 -070045Note: If you get errors about 'sdl-config: Command not found' you may need to
46install libsdl1.2-dev or similar to get SDL support. Alternatively you can
47build sandbox without SDL (i.e. no display/keyboard support) by removing
48the CONFIG_SANDBOX_SDL line in include/configs/sandbox.h or using::
Simon Glass53552c92014-03-22 17:12:59 -060049
Bin Meng25a74562019-07-18 00:34:33 -070050 make sandbox_defconfig all NO_SDL=1
51 ./u-boot
Simon Glass53552c92014-03-22 17:12:59 -060052
Simon Glass53552c92014-03-22 17:12:59 -060053U-Boot will start on your computer, showing a sandbox emulation of the serial
Bin Meng25a74562019-07-18 00:34:33 -070054console::
Simon Glass53552c92014-03-22 17:12:59 -060055
Bin Meng25a74562019-07-18 00:34:33 -070056 U-Boot 2014.04 (Mar 20 2014 - 19:06:00)
Simon Glass53552c92014-03-22 17:12:59 -060057
Bin Meng25a74562019-07-18 00:34:33 -070058 DRAM: 128 MiB
59 Using default environment
Simon Glass53552c92014-03-22 17:12:59 -060060
Bin Meng25a74562019-07-18 00:34:33 -070061 In: serial
62 Out: lcd
63 Err: lcd
64 =>
Simon Glass53552c92014-03-22 17:12:59 -060065
66You can issue commands as your would normally. If the command you want is
67not supported you can add it to include/configs/sandbox.h.
68
69To exit, type 'reset' or press Ctrl-C.
70
71
72Console / LCD support
73---------------------
74
75Assuming that CONFIG_SANDBOX_SDL is defined when building, you can run the
Bin Meng25a74562019-07-18 00:34:33 -070076sandbox with LCD and keyboard emulation, using something like::
Simon Glass53552c92014-03-22 17:12:59 -060077
78 ./u-boot -d u-boot.dtb -l
79
80This will start U-Boot with a window showing the contents of the LCD. If
81that window has the focus then you will be able to type commands as you
82would on the console. You can adjust the display settings in the device
83tree file - see arch/sandbox/dts/sandbox.dts.
84
85
86Command-line Options
87--------------------
88
89Various options are available, mostly for test purposes. Use -h to see
90available options. Some of these are described below.
91
92The terminal is normally in what is called 'raw-with-sigs' mode. This means
93that you can use arrow keys for command editing and history, but if you
94press Ctrl-C, U-Boot will exit instead of handling this as a keypress.
95
96Other options are 'raw' (so Ctrl-C is handled within U-Boot) and 'cooked'
97(where the terminal is in cooked mode and cursor keys will not work, Ctrl-C
98will exit).
99
100As mentioned above, -l causes the LCD emulation window to be shown.
101
102A device tree binary file can be provided with -d. If you edit the source
103(it is stored at arch/sandbox/dts/sandbox.dts) you must rebuild U-Boot to
104recreate the binary file.
105
106To execute commands directly, use the -c option. You can specify a single
107command, or multiple commands separated by a semicolon, as is normal in
Trevor Woerner1991bc82018-04-30 19:13:05 -0400108U-Boot. Be careful with quoting as the shell will normally process and
109swallow quotes. When -c is used, U-Boot exits after the command is complete,
Simon Glass53552c92014-03-22 17:12:59 -0600110but you can force it to go to interactive mode instead with -i.
111
112
113Memory Emulation
114----------------
115
116Memory emulation is supported, with the size set by CONFIG_SYS_SDRAM_SIZE.
117The -m option can be used to read memory from a file on start-up and write
118it when shutting down. This allows preserving of memory contents across
119test runs. You can tell U-Boot to remove the memory file after it is read
120(on start-up) with the --rm_memory option.
121
122To access U-Boot's emulated memory within the code, use map_sysmem(). This
123function is used throughout U-Boot to ensure that emulated memory is used
124rather than the U-Boot application memory. This provides memory starting
125at 0 and extending to the size of the emulation.
126
127
128Storing State
129-------------
130
131With sandbox you can write drivers which emulate the operation of drivers on
132real devices. Some of these drivers may want to record state which is
133preserved across U-Boot runs. This is particularly useful for testing. For
134example, the contents of a SPI flash chip should not disappear just because
135U-Boot exits.
136
137State is stored in a device tree file in a simple format which is driver-
138specific. You then use the -s option to specify the state file. Use -r to
139make U-Boot read the state on start-up (otherwise it starts empty) and -w
140to write it on exit (otherwise the stored state is left unchanged and any
141changes U-Boot made will be lost). You can also use -n to tell U-Boot to
142ignore any problems with missing state. This is useful when first running
143since the state file will be empty.
144
145The device tree file has one node for each driver - the driver can store
146whatever properties it likes in there. See 'Writing Sandbox Drivers' below
147for more details on how to get drivers to read and write their state.
148
149
150Running and Booting
151-------------------
152
153Since there is no machine architecture, sandbox U-Boot cannot actually boot
154a kernel, but it does support the bootm command. Filesystems, memory
155commands, hashing, FIT images, verified boot and many other features are
156supported.
157
158When 'bootm' runs a kernel, sandbox will exit, as U-Boot does on a real
159machine. Of course in this case, no kernel is run.
160
161It is also possible to tell U-Boot that it has jumped from a temporary
162previous U-Boot binary, with the -j option. That binary is automatically
163removed by the U-Boot that gets the -j option. This allows you to write
164tests which emulate the action of chain-loading U-Boot, typically used in
165a situation where a second 'updatable' U-Boot is stored on your board. It
166is very risky to overwrite or upgrade the only U-Boot on a board, since a
167power or other failure will brick the board and require return to the
168manufacturer in the case of a consumer device.
169
170
171Supported Drivers
172-----------------
173
174U-Boot sandbox supports these emulations:
175
176- Block devices
177- Chrome OS EC
178- GPIO
179- Host filesystem (access files on the host from within U-Boot)
Joe Hershberger6ab76992015-03-22 17:09:13 -0500180- I2C
Simon Glass53552c92014-03-22 17:12:59 -0600181- Keyboard (Chrome OS)
182- LCD
Joe Hershberger6ab76992015-03-22 17:09:13 -0500183- Network
Simon Glass53552c92014-03-22 17:12:59 -0600184- Serial (for console only)
185- Sound (incomplete - see sandbox_sdl_sound_init() for details)
186- SPI
187- SPI flash
188- TPM (Trusted Platform Module)
189
Trevor Woerner1991bc82018-04-30 19:13:05 -0400190A wide range of commands are implemented. Filesystems which use a block
Simon Glass53552c92014-03-22 17:12:59 -0600191device are supported.
192
Simon Glass0f7dc592016-05-14 18:49:27 -0600193Also sandbox supports driver model (CONFIG_DM) and associated commands.
Simon Glass53552c92014-03-22 17:12:59 -0600194
Simon Glassb4a905e2011-10-10 08:22:14 +0000195
Simon Glass80654872018-09-18 18:43:28 -0600196Sandbox Variants
197----------------
198
199There are unfortunately quite a few variants at present:
200
Bin Meng25a74562019-07-18 00:34:33 -0700201sandbox:
202 should be used for most tests
203sandbox64:
204 special build that forces a 64-bit host
205sandbox_flattree:
206 builds with dev_read\_...() functions defined as inline.
207 We need this build so that we can test those inline functions, and we
208 cannot build with both the inline functions and the non-inline functions
209 since they are named the same.
210sandbox_noblk:
211 builds without CONFIG_BLK, which means the legacy block
212 drivers are used. We cannot use both the legacy and driver-model block
213 drivers since they implement the same functions
214sandbox_spl:
215 builds sandbox with SPL support, so you can run spl/u-boot-spl
216 and it will start up and then load ./u-boot. It is also possible to
217 run ./u-boot directly.
Simon Glass80654872018-09-18 18:43:28 -0600218
219Of these sandbox_noblk can be removed once CONFIG_BLK is used everwhere, and
220sandbox_spl can probably be removed since it is a superset of sandbox.
221
222Most of the config options should be identical between these variants.
223
224
Joe Hershberger586cbd12015-03-22 17:09:21 -0500225Linux RAW Networking Bridge
226---------------------------
227
228The sandbox_eth_raw driver bridges traffic between the bottom of the network
229stack and the RAW sockets API in Linux. This allows much of the U-Boot network
230functionality to be tested in sandbox against real network traffic.
231
232For Ethernet network adapters, the bridge utilizes the RAW AF_PACKET API. This
233is needed to get access to the lowest level of the network stack in Linux. This
234means that all of the Ethernet frame is included. This allows the U-Boot network
235stack to be fully used. In other words, nothing about the Linux network stack is
236involved in forming the packets that end up on the wire. To receive the
237responses to packets sent from U-Boot the network interface has to be set to
238promiscuous mode so that the network card won't filter out packets not destined
239for its configured (on Linux) MAC address.
240
241The RAW sockets Ethernet API requires elevated privileges in Linux. You can
Bin Meng25a74562019-07-18 00:34:33 -0700242either run as root, or you can add the capability needed like so::
Joe Hershberger586cbd12015-03-22 17:09:21 -0500243
Bin Meng25a74562019-07-18 00:34:33 -0700244 sudo /sbin/setcap "CAP_NET_RAW+ep" /path/to/u-boot
Joe Hershberger586cbd12015-03-22 17:09:21 -0500245
246The default device tree for sandbox includes an entry for eth0 on the sandbox
247host machine whose alias is "eth1". The following are a few examples of network
248operations being tested on the eth0 interface.
249
Bin Meng25a74562019-07-18 00:34:33 -0700250.. code-block:: none
Joe Hershberger586cbd12015-03-22 17:09:21 -0500251
Bin Meng25a74562019-07-18 00:34:33 -0700252 sudo /path/to/u-boot -D
Joe Hershberger586cbd12015-03-22 17:09:21 -0500253
Bin Meng25a74562019-07-18 00:34:33 -0700254 DHCP
255 ....
Joe Hershberger586cbd12015-03-22 17:09:21 -0500256
Bin Meng25a74562019-07-18 00:34:33 -0700257 setenv autoload no
258 setenv ethrotate no
259 setenv ethact eth1
260 dhcp
Joe Hershberger586cbd12015-03-22 17:09:21 -0500261
Bin Meng25a74562019-07-18 00:34:33 -0700262 PING
263 ....
Joe Hershberger586cbd12015-03-22 17:09:21 -0500264
Bin Meng25a74562019-07-18 00:34:33 -0700265 setenv autoload no
266 setenv ethrotate no
267 setenv ethact eth1
268 dhcp
269 ping $gatewayip
Joe Hershberger586cbd12015-03-22 17:09:21 -0500270
Bin Meng25a74562019-07-18 00:34:33 -0700271 TFTP
272 ....
273
274 setenv autoload no
275 setenv ethrotate no
276 setenv ethact eth1
277 dhcp
278 setenv serverip WWW.XXX.YYY.ZZZ
279 tftpboot u-boot.bin
Joe Hershberger586cbd12015-03-22 17:09:21 -0500280
Trevor Woerner1991bc82018-04-30 19:13:05 -0400281The bridge also supports (to a lesser extent) the localhost interface, 'lo'.
Joe Hershbergera8921922015-03-22 17:09:23 -0500282
283The 'lo' interface cannot use the RAW AF_PACKET API because the lo interface
284doesn't support Ethernet-level traffic. It is a higher-level interface that is
285expected only to be used at the AF_INET level of the API. As such, the most raw
286we can get on that interface is the RAW AF_INET API on UDP. This allows us to
287set the IP_HDRINCL option to include everything except the Ethernet header in
288the packets we send and receive.
289
290Because only UDP is supported, ICMP traffic will not work, so expect that ping
291commands will time out.
292
293The default device tree for sandbox includes an entry for lo on the sandbox
294host machine whose alias is "eth5". The following is an example of a network
295operation being tested on the lo interface.
296
Bin Meng25a74562019-07-18 00:34:33 -0700297.. code-block:: none
Joe Hershbergera8921922015-03-22 17:09:23 -0500298
Bin Meng25a74562019-07-18 00:34:33 -0700299 TFTP
300 ....
Joe Hershbergera8921922015-03-22 17:09:23 -0500301
Bin Meng25a74562019-07-18 00:34:33 -0700302 setenv ethrotate no
303 setenv ethact eth5
304 tftpboot u-boot.bin
305
Joe Hershberger586cbd12015-03-22 17:09:21 -0500306
Mike Frysingerb375ad92013-12-03 16:43:27 -0700307SPI Emulation
308-------------
309
310Sandbox supports SPI and SPI flash emulation.
311
Bin Meng25a74562019-07-18 00:34:33 -0700312This is controlled by the spi_sf argument, the format of which is::
Mike Frysingerb375ad92013-12-03 16:43:27 -0700313
314 bus:cs:device:file
315
316 bus - SPI bus number
317 cs - SPI chip select number
318 device - SPI device emulation name
319 file - File on disk containing the data
320
Bin Meng25a74562019-07-18 00:34:33 -0700321For example::
Mike Frysingerb375ad92013-12-03 16:43:27 -0700322
Bin Meng25a74562019-07-18 00:34:33 -0700323 dd if=/dev/zero of=spi.bin bs=1M count=4
324 ./u-boot --spi_sf 0:0:M25P16:spi.bin
Mike Frysingerb375ad92013-12-03 16:43:27 -0700325
Bin Meng25a74562019-07-18 00:34:33 -0700326With this setup you can issue SPI flash commands as normal::
Mike Frysingerb375ad92013-12-03 16:43:27 -0700327
Bin Meng25a74562019-07-18 00:34:33 -0700328 =>sf probe
329 SF: Detected M25P16 with page size 64 KiB, total 2 MiB
330 =>sf read 0 0 10000
331 SF: 65536 bytes @ 0x0 Read: OK
Mike Frysingerb375ad92013-12-03 16:43:27 -0700332
333Since this is a full SPI emulation (rather than just flash), you can
Bin Meng25a74562019-07-18 00:34:33 -0700334also use low-level SPI commands::
Mike Frysingerb375ad92013-12-03 16:43:27 -0700335
Bin Meng25a74562019-07-18 00:34:33 -0700336 =>sspi 0:0 32 9f
337 FF202015
Mike Frysingerb375ad92013-12-03 16:43:27 -0700338
339This is issuing a READ_ID command and getting back 20 (ST Micro) part
3400x2015 (the M25P16).
341
342Drivers are connected to a particular bus/cs using sandbox's state
343structure (see the 'spi' member). A set of operations must be provided
344for each driver.
345
346
347Configuration settings for the curious are:
348
Bin Meng25a74562019-07-18 00:34:33 -0700349CONFIG_SANDBOX_SPI_MAX_BUS:
350 The maximum number of SPI buses supported by the driver (default 1).
Mike Frysingerb375ad92013-12-03 16:43:27 -0700351
Bin Meng25a74562019-07-18 00:34:33 -0700352CONFIG_SANDBOX_SPI_MAX_CS:
353 The maximum number of chip selects supported by the driver (default 10).
Mike Frysingerb375ad92013-12-03 16:43:27 -0700354
Bin Meng25a74562019-07-18 00:34:33 -0700355CONFIG_SPI_IDLE_VAL:
356 The idle value on the SPI bus
Mike Frysingerb375ad92013-12-03 16:43:27 -0700357
Simon Glass53552c92014-03-22 17:12:59 -0600358
Stefan Brünsbe456312016-08-11 22:52:03 +0200359Block Device Emulation
360----------------------
361
362U-Boot can use raw disk images for block device emulation. To e.g. list
363the contents of the root directory on the second partion of the image
Bin Meng25a74562019-07-18 00:34:33 -0700364"disk.raw", you can use the following commands::
Stefan Brünsbe456312016-08-11 22:52:03 +0200365
Bin Meng25a74562019-07-18 00:34:33 -0700366 =>host bind 0 ./disk.raw
367 =>ls host 0:2
Stefan Brünsbe456312016-08-11 22:52:03 +0200368
Bin Meng25a74562019-07-18 00:34:33 -0700369A disk image can be created using the following commands::
Stefan Brünsbe456312016-08-11 22:52:03 +0200370
Bin Meng25a74562019-07-18 00:34:33 -0700371 $> truncate -s 1200M ./disk.raw
372 $> echo -e "label: gpt\n,64M,U\n,,L" | /usr/sbin/sgdisk ./disk.raw
373 $> lodev=`sudo losetup -P -f --show ./disk.raw`
374 $> sudo mkfs.vfat -n EFI -v ${lodev}p1
375 $> sudo mkfs.ext4 -L ROOT -v ${lodev}p2
Stefan Brünsbe456312016-08-11 22:52:03 +0200376
Bin Meng25a74562019-07-18 00:34:33 -0700377or utilize the device described in test/py/make_test_disk.py::
Alison Chaikenbccb8b62017-09-09 23:47:12 -0700378
379 #!/usr/bin/python
380 import make_test_disk
381 make_test_disk.makeDisk()
Stefan Brünsbe456312016-08-11 22:52:03 +0200382
Simon Glass53552c92014-03-22 17:12:59 -0600383Writing Sandbox Drivers
384-----------------------
385
386Generally you should put your driver in a file containing the word 'sandbox'
387and put it in the same directory as other drivers of its type. You can then
388implement the same hooks as the other drivers.
389
390To access U-Boot's emulated memory, use map_sysmem() as mentioned above.
Mike Frysingerb375ad92013-12-03 16:43:27 -0700391
Simon Glass53552c92014-03-22 17:12:59 -0600392If your driver needs to store configuration or state (such as SPI flash
393contents or emulated chip registers), you can use the device tree as
394described above. Define handlers for this with the SANDBOX_STATE_IO macro.
395See arch/sandbox/include/asm/state.h for documentation. In short you provide
396a node name, compatible string and functions to read and write the state.
397Since writing the state can expand the device tree, you may need to use
398state_setprop() which does this automatically and avoids running out of
399space. See existing code for examples.
400
401
Simon Glass752707a2019-04-08 13:20:41 -0600402Debugging the init sequence
403---------------------------
404
Bin Meng25a74562019-07-18 00:34:33 -0700405If you get a failure in the initcall sequence, like this::
Simon Glass752707a2019-04-08 13:20:41 -0600406
407 initcall sequence 0000560775957c80 failed at call 0000000000048134 (err=-96)
408
Bin Meng25a74562019-07-18 00:34:33 -0700409Then you use can use grep to see which init call failed, e.g.::
Simon Glass752707a2019-04-08 13:20:41 -0600410
411 $ grep 0000000000048134 u-boot.map
412 stdio_add_devices
413
Bin Meng25a74562019-07-18 00:34:33 -0700414Of course another option is to run it with a debugger such as gdb::
Simon Glass752707a2019-04-08 13:20:41 -0600415
416 $ gdb u-boot
417 ...
418 (gdb) br initcall.h:41
419 Breakpoint 1 at 0x4db9d: initcall.h:41. (2 locations)
420
421Note that two locations are reported, since this function is used in both
422board_init_f() and board_init_r().
423
Bin Meng25a74562019-07-18 00:34:33 -0700424.. code-block:: none
425
Simon Glass752707a2019-04-08 13:20:41 -0600426 (gdb) r
427 Starting program: /tmp/b/sandbox/u-boot
428 [Thread debugging using libthread_db enabled]
429 Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
430
431 U-Boot 2018.09-00264-ge0c2ba9814-dirty (Sep 22 2018 - 12:21:46 -0600)
432
433 DRAM: 128 MiB
434 MMC:
435
436 Breakpoint 1, initcall_run_list (init_sequence=0x5555559619e0 <init_sequence_f>)
437 at /scratch/sglass/cosarm/src/third_party/u-boot/files/include/initcall.h:41
438 41 printf("initcall sequence %p failed at call %p (err=%d)\n",
439 (gdb) print *init_fnc_ptr
440 $1 = (const init_fnc_t) 0x55555559c114 <stdio_add_devices>
441 (gdb)
442
443
444This approach can be used on normal boards as well as sandbox.
445
446
Simon Glass73585b92019-05-18 11:59:47 -0600447SDL_CONFIG
448----------
449
450If sdl-config is on a different path from the default, set the SDL_CONFIG
451environment variable to the correct pathname before building U-Boot.
452
453
Simon Glass6c28e722019-05-18 11:59:50 -0600454Using valgrind / memcheck
455-------------------------
456
Bin Meng25a74562019-07-18 00:34:33 -0700457It is possible to run U-Boot under valgrind to check memory allocations::
Simon Glass6c28e722019-05-18 11:59:50 -0600458
459 valgrind u-boot
460
461If you are running sandbox SPL or TPL, then valgrind will not by default
462notice when U-Boot jumps from TPL to SPL, or from SPL to U-Boot proper. To
Bin Meng25a74562019-07-18 00:34:33 -0700463fix this, use::
Simon Glass6c28e722019-05-18 11:59:50 -0600464
465 valgrind --trace-children=yes u-boot
466
467
Simon Glass53552c92014-03-22 17:12:59 -0600468Testing
469-------
470
471U-Boot sandbox can be used to run various tests, mostly in the test/
472directory. These include:
473
Bin Meng25a74562019-07-18 00:34:33 -0700474command_ut:
475 Unit tests for command parsing and handling
476compression:
477 Unit tests for U-Boot's compression algorithms, useful for
478 security checking. It supports gzip, bzip2, lzma and lzo.
479driver model:
480 Run this pytest::
481
482 ./test/py/test.py --bd sandbox --build -k ut_dm -v
483
484image:
485 Unit tests for images:
486 test/image/test-imagetools.sh - multi-file images
487 test/image/test-fit.py - FIT images
488tracing:
489 test/trace/test-trace.sh tests the tracing system (see README.trace)
490verified boot:
491 See test/vboot/vboot_test.sh for this
Simon Glass53552c92014-03-22 17:12:59 -0600492
493If you change or enhance any of the above subsystems, you shold write or
494expand a test and include it with your patch series submission. Test
495coverage in U-Boot is limited, as we need to work to improve it.
496
497Note that many of these tests are implemented as commands which you can
498run natively on your board if desired (and enabled).
499
Simon Glass16ee0cd2018-11-15 18:43:59 -0700500To run all tests use "make check".
501
502
503Memory Map
504----------
505
506Sandbox has its own emulated memory starting at 0. Here are some of the things
507that are mapped into that memory:
508
Bin Meng25a74562019-07-18 00:34:33 -0700509======= ======================== ===============================
510Addr Config Usage
511======= ======================== ===============================
Simon Glass16ee0cd2018-11-15 18:43:59 -0700512 0 CONFIG_SYS_FDT_LOAD_ADDR Device tree
513 e000 CONFIG_BLOBLIST_ADDR Blob list
514 10000 CONFIG_MALLOC_F_ADDR Early memory allocation
Simon Glasse6c3c2b2019-04-08 13:20:44 -0600515 f0000 CONFIG_PRE_CON_BUF_ADDR Pre-console buffer
516 100000 CONFIG_TRACE_EARLY_ADDR Early trace buffer (if enabled)
Bin Meng25a74562019-07-18 00:34:33 -0700517======= ======================== ===============================