mirror of
https://github.com/LuckfoxTECH/luckfox-pico.git
synced 2026-01-19 17:59:18 +01:00
update:add luckfox-pico Ultra support
This commit is contained in:
committed by
luckfox-eng33
parent
1e160dee55
commit
d3153ac97e
@@ -32,6 +32,7 @@ DECLARE_GLOBAL_DATA_PTR;
|
||||
#include <u-boot/sha1.h>
|
||||
#include <u-boot/sha256.h>
|
||||
|
||||
#define FDT_DEFAULT_LOAD_ADDR 0x00c00000
|
||||
#define __round_mask(x, y) ((__typeof__(x))((y)-1))
|
||||
#define round_up(x, y) ((((x)-1) | __round_mask(x, y))+1)
|
||||
|
||||
@@ -2140,7 +2141,13 @@ int fit_image_load_index(bootm_headers_t *images, ulong addr,
|
||||
ret = fit_image_select(fit, noffset, images->verify);
|
||||
if (ret) {
|
||||
bootstage_error(bootstage_id + BOOTSTAGE_SUB_HASH);
|
||||
return ret;
|
||||
/* Use the memory fdt directly */
|
||||
printf(" Use the memory fdt directly\n");
|
||||
*datap = FDT_DEFAULT_LOAD_ADDR;
|
||||
fit_image_get_data_size(fit, noffset, (int *)&size);
|
||||
*lenp = (ulong)size;
|
||||
return noffset;
|
||||
//return ret;
|
||||
}
|
||||
|
||||
bootstage_mark(bootstage_id + BOOTSTAGE_SUB_CHECK_ARCH);
|
||||
@@ -2260,8 +2267,10 @@ int fit_image_load_index(bootm_headers_t *images, ulong addr,
|
||||
return -EXDEV;
|
||||
}
|
||||
|
||||
//printf(" Loading %s from 0x%08lx to 0x%08lx\n",
|
||||
// prop_name, data, load);
|
||||
printf(" Loading %s from 0x%08lx to 0x%08lx\n",
|
||||
prop_name, data, load);
|
||||
prop_name, image_start, load);
|
||||
|
||||
dst = map_sysmem(load, len);
|
||||
memmove(dst, buf, len);
|
||||
|
||||
Reference in New Issue
Block a user