u-boot/arch/sandbox/cpu
Sean Anderson 53d8bf8f9c test: spl: Add a test for the NET load method
Add a test for loading U-Boot over TFTP. As with other sandbox net
routines, we need to initialize our packets manually since things like
net_set_ether and net_set_udp_header always use "our" addresses. We use
BOOTP instead of DHCP, since DHCP has a tag/length-based format which is
harder to parse. Our TFTP implementation doesn't define as many constants
as I'd like, so I create some here. Note that the TFTP block size is
one-based, but offsets are zero-based.

In order to avoid address errors, we need to set up/define some additional
address information settings. dram_init_banksize would be a good candidate
for settig up bi_dram, but it gets called too late in board_init_r.

Signed-off-by: Sean Anderson <seanga2@gmail.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
2023-10-17 20:50:52 -04:00
..
cache.c sandbox: implement invalidate_icache_all() 2020-12-22 20:39:25 -07:00
cpu.c sandbox: Add a dummy dcache_status() function 2023-06-21 16:54:25 -04:00
eth-raw-os.c sandbox: eth-raw: fix building with musl library 2022-01-25 14:02:38 -07:00
Makefile sandbox: fix build failure with musl and SDL 2022-02-09 12:26:12 -07:00
os.c sandbox: Add a way to access persistent test files 2023-08-25 17:55:19 -04:00
sdl.c sandbox: Fix quiting when the LCD window is closed 2023-07-14 12:54:50 -04:00
spl.c test: spl: Add a test for the NET load method 2023-10-17 20:50:52 -04:00
start.c sandbox: Support -T in spl 2023-10-17 20:50:52 -04:00
state.c sandbox: Only read the state if we have a state file 2023-10-06 14:38:13 -04:00
u-boot-spl.lds test: spl: Add functions to create images 2023-10-17 20:50:52 -04:00
u-boot.lds linker_lists: Rename sections to remove . prefix 2022-06-23 12:58:18 -04:00