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
..
2022-12-22 10:31:48 -05:00
2022-01-19 18:11:34 +01:00
2022-06-23 12:58:18 -04:00
2022-01-19 18:11:34 +01:00
2021-09-25 09:46:15 -06:00
2016-10-19 09:01:53 +02:00
2023-03-02 17:45:58 -05:00
2023-07-20 14:10:57 -06:00
2022-06-23 12:58:18 -04:00
2022-04-14 15:39:15 -04:00
2018-09-23 21:55:30 +02:00
2023-07-20 14:10:57 -06:00