1
0
mirror of https://xff.cz/git/u-boot/ synced 2025-10-26 16:13:55 +01:00
Files
u-boot-megous/include
Sean Anderson 11f834614e spl: Convert nand to spl_load
This converts the nand load method to use spl_load. nand_page_size may not
be valid until after nand_spl_load_image is called (see e.g. fsl_ifc_spl),
so we set bl_len in spl_nand_read. Since spl_load reads the header for us,
we can remove that argument from spl_nand_load_element.

There are two possible regressions which could result from this commit.
First, we ask for a negative address from spl_get_load_buffer. That is,
instead of

	header = spl_get_load_buffer(0, sizeof(*header));

we do

	header = spl_get_load_buffer(-sizeof(*header), sizeof(*header));

this could cause a problem if spl_get_load_buffer does not return valid
memory for negative offsets. Second, we now set bl_len for legacy images.
This can cause memory up to a bl_len - 1 before the image load address to
be written, which might not have been the case before. If this turns out to
be a problem, we can add an option for a bounce buffer.

We can't load FITs with external data with SPL_LOAD_FIT_FULL, so disable the
test in that case. No boards enable SPL_NAND_SUPPORT and SPL_LOAD_FIT_FULL, so
this is not a regression.

Signed-off-by: Sean Anderson <seanga2@gmail.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
2023-11-16 13:49:14 -05:00
..
2023-11-13 10:55:38 +01:00
2023-10-24 15:55:16 +08:00
2023-10-02 10:55:44 -04:00
2023-08-25 13:54:33 -04:00
2023-08-08 10:22:03 -04:00
2023-10-27 13:15:57 +03:00
2023-07-17 15:38:11 -04:00
2023-08-19 04:12:53 +02:00
2023-10-27 13:14:47 +03:00
2023-10-23 17:07:06 +03:00
2023-05-02 14:23:34 -04:00
2023-05-15 10:00:30 +02:00
2023-11-07 14:50:51 -05:00
2023-10-31 09:08:51 +01:00
2023-04-27 13:51:06 -04:00
2023-10-27 13:15:57 +03:00
2023-08-19 04:12:53 +02:00
2023-10-11 15:43:55 -04:00
2023-03-02 17:45:58 -05:00
2023-11-16 12:43:49 -05:00
2023-11-05 16:11:38 -05:00
2023-09-11 16:27:49 -04:00
2023-10-15 12:23:48 +02:00
2023-11-16 13:49:14 -05:00
2023-10-09 15:24:31 -04:00
2023-10-27 13:14:47 +03:00
2023-09-04 10:51:58 -04:00