mirror of
https://source.denx.de/u-boot/u-boot.git
synced 2026-05-05 20:56:12 +02:00
Merge branch '2023-10-06-spl-prepare-for-universal-payload'
To quote the author: This series tidies up SPL a little and adds some core ofnode functions needed to support Universal Payload. It also includes a few minor fix-ups for sandbox. For SPL the changes include CONFIG naming, removing various #ifdefs and tidying up the FIT code. One notable piece of the ofnode improvements is support for flattening a livetree. This should be useful in future as we move FDT fixups to use the ofnode API.
This commit is contained in:
commit
83aa0ed1e9
71
Kconfig
71
Kconfig
@ -277,10 +277,17 @@ config SYS_MALLOC_F_LEN
|
||||
default 0x10000 if ARCH_IMX8 || ARCH_IMX8M
|
||||
default 0x2000
|
||||
help
|
||||
Before relocation, memory is very limited on many platforms. Still,
|
||||
we can provide a small malloc() pool if needed. Driver model in
|
||||
particular needs this to operate, so that it can allocate the
|
||||
initial serial device and any others that are needed.
|
||||
Size of the malloc() pool for use before relocation. If
|
||||
this is defined, then a very simple malloc() implementation
|
||||
will become available before relocation. The address is just
|
||||
below the global data, and the stack is moved down to make
|
||||
space.
|
||||
|
||||
This feature allocates regions with increasing addresses
|
||||
within the region. calloc() is supported, but realloc()
|
||||
is not available. free() is supported but does nothing.
|
||||
The memory will be freed (or in fact just forgotten) when
|
||||
U-Boot relocates itself.
|
||||
|
||||
config SYS_MALLOC_LEN
|
||||
hex "Define memory for Dynamic allocation"
|
||||
@ -295,32 +302,49 @@ config SYS_MALLOC_LEN
|
||||
This defines memory to be allocated for Dynamic allocation
|
||||
TODO: Use for other architectures
|
||||
|
||||
config SPL_SYS_MALLOC_F_LEN
|
||||
hex "Size of malloc() pool in SPL"
|
||||
depends on SYS_MALLOC_F && SPL
|
||||
default 0x0 if !SPL_FRAMEWORK
|
||||
default 0x2800 if RCAR_GEN3
|
||||
default 0x2000 if IMX8MQ
|
||||
default SYS_MALLOC_F_LEN
|
||||
config SPL_SYS_MALLOC_F
|
||||
bool "Enable malloc() pool in SPL"
|
||||
depends on SPL_FRAMEWORK && SYS_MALLOC_F && SPL
|
||||
default y
|
||||
help
|
||||
In SPL memory is very limited on many platforms. Still,
|
||||
we can provide a small malloc() pool if needed. Driver model in
|
||||
particular needs this to operate, so that it can allocate the
|
||||
initial serial device and any others that are needed.
|
||||
|
||||
It is possible to enable CFG_SYS_SPL_MALLOC_START to start a new
|
||||
config SPL_SYS_MALLOC_F_LEN
|
||||
hex "Size of malloc() pool in SPL"
|
||||
depends on SPL_SYS_MALLOC_F
|
||||
default 0x2800 if RCAR_GEN3
|
||||
default 0x2000 if IMX8MQ
|
||||
default SYS_MALLOC_F_LEN
|
||||
help
|
||||
Sets the size of the malloc() pool in SPL. This is used for
|
||||
driver model and other features, which must allocate memory for
|
||||
data structures.
|
||||
|
||||
It is possible to enable CFG_SPL_SYS_MALLOC_START to start a new
|
||||
malloc() region in SDRAM once it is inited.
|
||||
|
||||
config TPL_SYS_MALLOC_F_LEN
|
||||
hex "Size of malloc() pool in TPL"
|
||||
config TPL_SYS_MALLOC_F
|
||||
bool "Enable malloc() pool in SPL"
|
||||
depends on SYS_MALLOC_F && TPL
|
||||
default SPL_SYS_MALLOC_F_LEN
|
||||
default y if SPL_SYS_MALLOC_F
|
||||
help
|
||||
In TPL memory is very limited on many platforms. Still,
|
||||
we can provide a small malloc() pool if needed. Driver model in
|
||||
particular needs this to operate, so that it can allocate the
|
||||
initial serial device and any others that are needed.
|
||||
|
||||
config TPL_SYS_MALLOC_F_LEN
|
||||
hex "Size of malloc() pool in TPL"
|
||||
depends on TPL_SYS_MALLOC_F
|
||||
default SPL_SYS_MALLOC_F_LEN
|
||||
help
|
||||
Sets the size of the malloc() pool in TPL. This is used for
|
||||
driver model and other features, which must allocate memory for
|
||||
data structures.
|
||||
|
||||
config VALGRIND
|
||||
bool "Inform valgrind about memory allocations"
|
||||
depends on !RISCV
|
||||
@ -336,16 +360,25 @@ config VALGRIND
|
||||
it can be handled accurately by Valgrind. If you aren't planning on
|
||||
using valgrind to debug U-Boot, say 'n'.
|
||||
|
||||
config VPL_SYS_MALLOC_F_LEN
|
||||
hex "Size of malloc() pool in VPL before relocation"
|
||||
config VPL_SYS_MALLOC_F
|
||||
bool "Enable malloc() pool in VPL"
|
||||
depends on SYS_MALLOC_F && VPL
|
||||
default SYS_MALLOC_F_LEN
|
||||
default y if SPL_SYS_MALLOC_F
|
||||
help
|
||||
Before relocation, memory is very limited on many platforms. Still,
|
||||
In VPL memory is very limited on many platforms. Still,
|
||||
we can provide a small malloc() pool if needed. Driver model in
|
||||
particular needs this to operate, so that it can allocate the
|
||||
initial serial device and any others that are needed.
|
||||
|
||||
config VPL_SYS_MALLOC_F_LEN
|
||||
hex "Size of malloc() pool in VPL before relocation"
|
||||
depends on VPL_SYS_MALLOC_F
|
||||
default SPL_SYS_MALLOC_F_LEN
|
||||
help
|
||||
Sets the size of the malloc() pool in VPL. This is used for
|
||||
driver model and other features, which must allocate memory for
|
||||
data structures.
|
||||
|
||||
menuconfig EXPERT
|
||||
bool "Configure standard U-Boot features (expert users)"
|
||||
default y
|
||||
|
||||
2
Makefile
2
Makefile
@ -1287,7 +1287,7 @@ binary_size_check: u-boot-nodtb.bin FORCE
|
||||
fi
|
||||
|
||||
ifeq ($(CONFIG_INIT_SP_RELATIVE)$(CONFIG_OF_SEPARATE),yy)
|
||||
ifneq ($(CONFIG_SYS_MALLOC_F_LEN),)
|
||||
ifneq ($(CONFIG_SYS_MALLOC_F),)
|
||||
subtract_sys_malloc_f_len = space=$$(($${space} - $(CONFIG_SYS_MALLOC_F_LEN)))
|
||||
else
|
||||
subtract_sys_malloc_f_len = true
|
||||
|
||||
18
README
18
README
@ -1281,24 +1281,6 @@ Configuration Settings:
|
||||
- CONFIG_SYS_MALLOC_LEN:
|
||||
Size of DRAM reserved for malloc() use.
|
||||
|
||||
- CONFIG_SYS_MALLOC_F_LEN
|
||||
Size of the malloc() pool for use before relocation. If
|
||||
this is defined, then a very simple malloc() implementation
|
||||
will become available before relocation. The address is just
|
||||
below the global data, and the stack is moved down to make
|
||||
space.
|
||||
|
||||
This feature allocates regions with increasing addresses
|
||||
within the region. calloc() is supported, but realloc()
|
||||
is not available. free() is supported but does nothing.
|
||||
The memory will be freed (or in fact just forgotten) when
|
||||
U-Boot relocates itself.
|
||||
|
||||
- CONFIG_SYS_MALLOC_SIMPLE
|
||||
Provides a simple and small malloc() and calloc() for those
|
||||
boards which do not use the full malloc in SPL (which is
|
||||
enabled with CONFIG_SYS_SPL_MALLOC).
|
||||
|
||||
- CFG_SYS_BOOTMAPSZ:
|
||||
Maximum size of memory mapped by the startup code of
|
||||
the Linux kernel; all data that must be processed by
|
||||
|
||||
@ -136,7 +136,7 @@ void ft_cpu_setup(void *blob, struct bd_info *bd)
|
||||
*/
|
||||
off = fdt_add_mem_rsv(blob, CONFIG_TEXT_BASE - UBOOT_HEAD_LEN,
|
||||
CONFIG_SYS_MONITOR_LEN +
|
||||
CONFIG_SYS_SPL_MALLOC_SIZE + UBOOT_HEAD_LEN);
|
||||
CONFIG_SPL_SYS_MALLOC_SIZE + UBOOT_HEAD_LEN);
|
||||
if (off < 0)
|
||||
printf("Failed to reserve memory for SD boot deep sleep: %s\n",
|
||||
fdt_strerror(off));
|
||||
|
||||
@ -30,7 +30,7 @@ to understand the device tree in FIT image should be the one actually used, or
|
||||
leave it absent to favor the stored sectors. It is easier to deploy the FIT
|
||||
image with embedded static device tree to multiple boards.
|
||||
|
||||
Macro CONFIG_SYS_SPL_ARGS_ADDR serves two purposes. One is the pointer to load
|
||||
Macro CONFIG_SPL_PAYLOAD_ARGS_ADDR serves two purposes. One is the pointer to load
|
||||
the stored sectors to. Normally this is the static device tree. The second
|
||||
purpose is the memory location of signature header for secure boot. After the
|
||||
FIT image is loaded into memory, it is validated against the signature header
|
||||
|
||||
@ -57,7 +57,7 @@ void arch_print_bdinfo(void)
|
||||
#ifdef CONFIG_BOARD_TYPES
|
||||
printf("Board Type = %ld\n", gd->board_type);
|
||||
#endif
|
||||
#if CONFIG_VAL(SYS_MALLOC_F_LEN)
|
||||
#if CONFIG_IS_ENABLED(SYS_MALLOC_F)
|
||||
printf("Early malloc usage: %lx / %x\n", gd->malloc_ptr,
|
||||
CONFIG_VAL(SYS_MALLOC_F_LEN));
|
||||
#endif
|
||||
|
||||
@ -42,6 +42,9 @@ config TPL_LDSCRIPT
|
||||
config TPL_STACK
|
||||
default 0xff718000
|
||||
|
||||
config TPL_SYS_MALLOC_F
|
||||
default y
|
||||
|
||||
config TPL_SYS_MALLOC_F_LEN
|
||||
default 0x2000
|
||||
|
||||
|
||||
@ -6,6 +6,9 @@ config SYS_SOC
|
||||
config SYS_MALLOC_F_LEN
|
||||
default 0x2000
|
||||
|
||||
config SPL_SYS_MALLOC_F
|
||||
default y
|
||||
|
||||
config SPL_SYS_MALLOC_F_LEN
|
||||
default 0x2000
|
||||
|
||||
|
||||
@ -30,6 +30,9 @@ config SPL_SIZE_LIMIT_PROVIDE_STACK
|
||||
config SPL_STACK_R_ADDR
|
||||
default 0x00800000 if TARGET_SOCFPGA_GEN5
|
||||
|
||||
config SPL_SYS_MALLOC_F
|
||||
default y if TARGET_SOCFPGA_GEN5
|
||||
|
||||
config SPL_SYS_MALLOC_F_LEN
|
||||
default 0x800 if TARGET_SOCFPGA_GEN5
|
||||
|
||||
|
||||
@ -46,7 +46,7 @@
|
||||
sp, sp, GD_SIZE # reserve space for gd
|
||||
and sp, sp, t0 # force 16 byte alignment
|
||||
move k0, sp # save gd pointer
|
||||
#if CONFIG_VAL(SYS_MALLOC_F_LEN) && \
|
||||
#if CONFIG_IS_ENABLED(SYS_MALLOC_F) && \
|
||||
!CONFIG_IS_ENABLED(INIT_STACK_WITHOUT_MALLOC_F)
|
||||
li t2, CONFIG_VAL(SYS_MALLOC_F_LEN)
|
||||
PTR_SUBU \
|
||||
@ -63,7 +63,7 @@
|
||||
blt t0, t1, 1b
|
||||
nop
|
||||
|
||||
#if CONFIG_VAL(SYS_MALLOC_F_LEN) && \
|
||||
#if CONFIG_IS_ENABLED(SYS_MALLOC_F) && \
|
||||
!CONFIG_IS_ENABLED(INIT_STACK_WITHOUT_MALLOC_F)
|
||||
PTR_S sp, GD_MALLOC_BASE(k0) # gd->malloc_base offset
|
||||
#endif
|
||||
|
||||
@ -37,7 +37,7 @@
|
||||
sp, sp, GD_SIZE # reserve space for gd
|
||||
and sp, sp, t0 # force 16 byte alignment
|
||||
move k0, sp # save gd pointer
|
||||
#if CONFIG_VAL(SYS_MALLOC_F_LEN) && \
|
||||
#if CONFIG_IS_ENABLED(SYS_MALLOC_F) && \
|
||||
!CONFIG_IS_ENABLED(INIT_STACK_WITHOUT_MALLOC_F)
|
||||
li t2, CONFIG_VAL(SYS_MALLOC_F_LEN)
|
||||
PTR_SUBU \
|
||||
@ -54,7 +54,7 @@
|
||||
blt t0, t1, 1b
|
||||
nop
|
||||
|
||||
#if CONFIG_VAL(SYS_MALLOC_F_LEN) && \
|
||||
#if CONFIG_IS_ENABLED(SYS_MALLOC_F) && \
|
||||
!CONFIG_IS_ENABLED(INIT_STACK_WITHOUT_MALLOC_F)
|
||||
PTR_S sp, GD_MALLOC_BASE(k0) # gd->malloc_base offset
|
||||
#endif
|
||||
|
||||
@ -244,7 +244,7 @@ in_flash:
|
||||
cmplw r3, r4
|
||||
bne 1b
|
||||
|
||||
#if CONFIG_VAL(SYS_MALLOC_F_LEN)
|
||||
#if CONFIG_IS_ENABLED(SYS_MALLOC_F)
|
||||
|
||||
#if CONFIG_VAL(SYS_MALLOC_F_LEN) + GENERATED_GBL_DATA_SIZE > CFG_SYS_INIT_RAM_SIZE
|
||||
#error "SYS_MALLOC_F_LEN too large to fit into initial RAM."
|
||||
|
||||
@ -1233,7 +1233,7 @@ _start_cont:
|
||||
lis r3,(CFG_SYS_INIT_RAM_ADDR)@h
|
||||
ori r3,r3,((CFG_SYS_INIT_SP_OFFSET-16)&~0xf)@l /* Align to 16 */
|
||||
|
||||
#if CONFIG_VAL(SYS_MALLOC_F_LEN)
|
||||
#if CONFIG_IS_ENABLED(SYS_MALLOC_F)
|
||||
#if CONFIG_VAL(SYS_MALLOC_F_LEN) + GENERATED_GBL_DATA_SIZE > CFG_SYS_INIT_RAM_SIZE
|
||||
#error "SYS_MALLOC_F_LEN too large to fit into initial RAM."
|
||||
#endif
|
||||
@ -1253,7 +1253,7 @@ _start_cont:
|
||||
cmplw r4,r3
|
||||
bne 1b
|
||||
|
||||
#if CONFIG_VAL(SYS_MALLOC_F_LEN)
|
||||
#if CONFIG_IS_ENABLED(SYS_MALLOC_F)
|
||||
lis r4,SYS_INIT_SP_ADDR@h
|
||||
ori r4,r4,SYS_INIT_SP_ADDR@l
|
||||
|
||||
|
||||
@ -272,17 +272,9 @@ SANDBOX_CMDLINE_OPT_SHORT(program, 'p', 1, "U-Boot program name");
|
||||
static int sandbox_cmdline_cb_memory(struct sandbox_state *state,
|
||||
const char *arg)
|
||||
{
|
||||
int err;
|
||||
|
||||
/* For now assume we always want to write it */
|
||||
state->write_ram_buf = true;
|
||||
state->ram_buf_fname = arg;
|
||||
|
||||
err = os_read_ram_buf(arg);
|
||||
if (err) {
|
||||
printf("Failed to read RAM buffer '%s': %d\n", arg, err);
|
||||
return err;
|
||||
}
|
||||
state->ram_buf_read = true;
|
||||
|
||||
return 0;
|
||||
@ -512,6 +504,17 @@ int sandbox_main(int argc, char *argv[])
|
||||
if (os_parse_args(state, argc, argv))
|
||||
return 1;
|
||||
|
||||
if (state->ram_buf_fname) {
|
||||
ret = os_read_ram_buf(state->ram_buf_fname);
|
||||
if (ret) {
|
||||
printf("Failed to read RAM buffer '%s': %d\n",
|
||||
state->ram_buf_fname, ret);
|
||||
} else {
|
||||
state->ram_buf_read = true;
|
||||
log_debug("Read RAM buffer from '%s'\n", state->ram_buf_fname);
|
||||
}
|
||||
}
|
||||
|
||||
/* Remove old memory file if required */
|
||||
if (state->ram_buf_rm && state->ram_buf_fname) {
|
||||
os_unlink(state->ram_buf_fname);
|
||||
@ -519,9 +522,11 @@ int sandbox_main(int argc, char *argv[])
|
||||
state->ram_buf_fname = NULL;
|
||||
}
|
||||
|
||||
ret = sandbox_read_state(state, state->state_fname);
|
||||
if (ret)
|
||||
goto err;
|
||||
if (state->read_state && state->state_fname) {
|
||||
ret = sandbox_read_state(state, state->state_fname);
|
||||
if (ret)
|
||||
goto err;
|
||||
}
|
||||
|
||||
if (state->handle_signals) {
|
||||
ret = os_setup_signal_handlers();
|
||||
@ -529,7 +534,7 @@ int sandbox_main(int argc, char *argv[])
|
||||
goto err;
|
||||
}
|
||||
|
||||
#if CONFIG_VAL(SYS_MALLOC_F_LEN)
|
||||
#if CONFIG_IS_ENABLED(SYS_MALLOC_F)
|
||||
gd->malloc_base = CFG_MALLOC_F_ADDR;
|
||||
#endif
|
||||
#if CONFIG_IS_ENABLED(LOG)
|
||||
|
||||
@ -513,6 +513,7 @@ int state_uninit(void)
|
||||
printf("Failed to write RAM buffer\n");
|
||||
return err;
|
||||
}
|
||||
log_debug("Wrote RAM to file '%s'\n", state->ram_buf_fname);
|
||||
}
|
||||
|
||||
if (state->write_state) {
|
||||
@ -520,6 +521,7 @@ int state_uninit(void)
|
||||
printf("Failed to write sandbox state\n");
|
||||
return -1;
|
||||
}
|
||||
log_debug("Wrote state to file '%s'\n", state->ram_buf_fname);
|
||||
}
|
||||
|
||||
/* Delete this at the last moment so as not to upset gdb too much */
|
||||
|
||||
@ -1123,8 +1123,8 @@
|
||||
pci@1,0 {
|
||||
compatible = "pci-generic";
|
||||
/* reg 0 is at 0x14, using FDT_PCI_SPACE_MEM32 */
|
||||
reg = <0x02000814 0 0 0 0
|
||||
0x01000810 0 0 0 0>;
|
||||
reg = <0x02000814 0 0 0x80 0
|
||||
0x01000810 0 0 0xc0 0>;
|
||||
sandbox,emul = <&swap_case_emul0_1>;
|
||||
};
|
||||
p2sb-pci@2,0 {
|
||||
@ -1151,7 +1151,7 @@
|
||||
pci@1f,0 {
|
||||
compatible = "pci-generic";
|
||||
/* reg 0 is at 0x10, using FDT_PCI_SPACE_IO */
|
||||
reg = <0x0100f810 0 0 0 0>;
|
||||
reg = <0x0100f810 0 0 0x100 0>;
|
||||
sandbox,emul = <&swap_case_emul0_1f>;
|
||||
};
|
||||
};
|
||||
|
||||
@ -53,7 +53,7 @@ _start:
|
||||
|
||||
mov.l ._gd_init, r13 /* global data */
|
||||
mov.l ._stack_init, r15 /* stack */
|
||||
#if CONFIG_VAL(SYS_MALLOC_F_LEN)
|
||||
#if CONFIG_IS_ENABLED(SYS_MALLOC_F)
|
||||
mov.l ._gd_malloc_base, r14
|
||||
mov.l r15, @r14
|
||||
#endif
|
||||
@ -73,7 +73,7 @@ loop:
|
||||
._bss_start: .long bss_start
|
||||
._bss_end: .long bss_end
|
||||
._gd_init: .long (_start - GENERATED_GBL_DATA_SIZE)
|
||||
#if CONFIG_VAL(SYS_MALLOC_F_LEN)
|
||||
#if CONFIG_IS_ENABLED(SYS_MALLOC_F)
|
||||
._gd_malloc_base: .long (_start - GENERATED_GBL_DATA_SIZE + GD_MALLOC_BASE)
|
||||
#endif
|
||||
._stack_init: .long (_start - GENERATED_GBL_DATA_SIZE - CONFIG_SYS_MALLOC_LEN - 16)
|
||||
|
||||
@ -8,6 +8,7 @@
|
||||
#include <common.h>
|
||||
#include <bootstage.h>
|
||||
#include <cli.h>
|
||||
#include <command.h>
|
||||
#include <cpu_func.h>
|
||||
#include <env.h>
|
||||
#include <errno.h>
|
||||
@ -29,7 +30,6 @@
|
||||
#include "mkimage.h"
|
||||
#endif
|
||||
|
||||
#include <command.h>
|
||||
#include <bootm.h>
|
||||
#include <image.h>
|
||||
|
||||
|
||||
@ -187,7 +187,7 @@ static int bootmeth_vbe_ft_fixup(void *ctx, struct event *event)
|
||||
ret = ofnode_add_subnode(dest_parent, name, &dest);
|
||||
if (ret && ret != -EEXIST)
|
||||
return log_msg_ret("add", ret);
|
||||
ret = ofnode_copy_props(node, dest);
|
||||
ret = ofnode_copy_props(dest, node);
|
||||
if (ret)
|
||||
return log_msg_ret("cp", ret);
|
||||
|
||||
|
||||
@ -94,7 +94,7 @@ static int bootmeth_vbe_simple_ft_fixup(void *ctx, struct event *event)
|
||||
|
||||
/* Copy over the vbe properties for fwupd */
|
||||
log_debug("Fixing up: %s\n", dev->name);
|
||||
ret = ofnode_copy_props(dev_ofnode(dev), subnode);
|
||||
ret = ofnode_copy_props(subnode, dev_ofnode(dev));
|
||||
if (ret)
|
||||
return log_msg_ret("cp", ret);
|
||||
|
||||
|
||||
@ -1012,7 +1012,7 @@ endchoice
|
||||
|
||||
config BLOBLIST_ADDR
|
||||
hex "Address of bloblist"
|
||||
default 0xc000 if SANDBOX
|
||||
default 0xb000 if SANDBOX
|
||||
depends on BLOBLIST_FIXED
|
||||
help
|
||||
Sets the address of the bloblist, set up by the first part of U-Boot
|
||||
|
||||
@ -74,11 +74,7 @@ endif # CONFIG_SPL_BUILD
|
||||
|
||||
obj-$(CONFIG_CROS_EC) += cros_ec.o
|
||||
obj-y += dlmalloc.o
|
||||
ifdef CONFIG_SYS_MALLOC_F
|
||||
ifneq ($(CONFIG_$(SPL_TPL_)SYS_MALLOC_F_LEN),0x0)
|
||||
obj-y += malloc_simple.o
|
||||
endif
|
||||
endif
|
||||
obj-$(CONFIG_$(SPL_TPL_)SYS_MALLOC_F) += malloc_simple.o
|
||||
|
||||
obj-$(CONFIG_CYCLIC) += cyclic.o
|
||||
obj-$(CONFIG_$(SPL_TPL_)EVENT) += event.o
|
||||
|
||||
@ -51,6 +51,7 @@ static struct tag_name {
|
||||
|
||||
/* BLOBLISTT_PROJECT_AREA */
|
||||
{ BLOBLISTT_U_BOOT_SPL_HANDOFF, "SPL hand-off" },
|
||||
{ BLOBLISTT_VBE, "VBE" },
|
||||
{ BLOBLISTT_U_BOOT_VIDEO, "SPL video handoff" },
|
||||
|
||||
/* BLOBLISTT_VENDOR_AREA */
|
||||
@ -476,6 +477,17 @@ int bloblist_init(void)
|
||||
log_debug("Found existing bloblist size %lx at %lx\n", size,
|
||||
addr);
|
||||
}
|
||||
if (ret)
|
||||
return log_msg_ret("ini", ret);
|
||||
gd->flags |= GD_FLG_BLOBLIST_READY;
|
||||
|
||||
return ret;
|
||||
return 0;
|
||||
}
|
||||
|
||||
int bloblist_maybe_init(void)
|
||||
{
|
||||
if (CONFIG_IS_ENABLED(BLOBLIST) && !(gd->flags & GD_FLG_BLOBLIST_READY))
|
||||
return bloblist_init();
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
@ -794,7 +794,7 @@ static int initf_bootstage(void)
|
||||
|
||||
static int initf_dm(void)
|
||||
{
|
||||
#if defined(CONFIG_DM) && CONFIG_VAL(SYS_MALLOC_F_LEN)
|
||||
#if defined(CONFIG_DM) && CONFIG_IS_ENABLED(SYS_MALLOC_F)
|
||||
int ret;
|
||||
|
||||
bootstage_start(BOOTSTAGE_ID_ACCUM_DM_F, "dm_f");
|
||||
@ -841,9 +841,7 @@ static const init_fnc_t init_sequence_f[] = {
|
||||
log_init,
|
||||
initf_bootstage, /* uses its own timer, so does not need DM */
|
||||
event_init,
|
||||
#ifdef CONFIG_BLOBLIST
|
||||
bloblist_init,
|
||||
#endif
|
||||
bloblist_maybe_init,
|
||||
setup_spl_handoff,
|
||||
#if defined(CONFIG_CONSOLE_RECORD_INIT_F)
|
||||
console_record_init,
|
||||
|
||||
@ -191,7 +191,7 @@ static int initr_malloc(void)
|
||||
{
|
||||
ulong start;
|
||||
|
||||
#if CONFIG_VAL(SYS_MALLOC_F_LEN)
|
||||
#if CONFIG_IS_ENABLED(SYS_MALLOC_F)
|
||||
debug("Pre-reloc malloc() used %#lx bytes (%ld KB)\n", gd->malloc_ptr,
|
||||
gd->malloc_ptr / 1024);
|
||||
#endif
|
||||
|
||||
@ -502,6 +502,20 @@ int bootstage_unstash(const void *base, int size)
|
||||
return 0;
|
||||
}
|
||||
|
||||
int _bootstage_stash_default(void)
|
||||
{
|
||||
return bootstage_stash(map_sysmem(CONFIG_BOOTSTAGE_STASH_ADDR, 0),
|
||||
CONFIG_BOOTSTAGE_STASH_SIZE);
|
||||
}
|
||||
|
||||
int _bootstage_unstash_default(void)
|
||||
{
|
||||
const void *stash = map_sysmem(CONFIG_BOOTSTAGE_STASH_ADDR,
|
||||
CONFIG_BOOTSTAGE_STASH_SIZE);
|
||||
|
||||
return bootstage_unstash(stash, CONFIG_BOOTSTAGE_STASH_SIZE);
|
||||
}
|
||||
|
||||
int bootstage_get_size(void)
|
||||
{
|
||||
struct bootstage_data *data = gd->bootstage;
|
||||
|
||||
@ -1291,7 +1291,7 @@ Void_t* mALLOc(bytes) size_t bytes;
|
||||
|
||||
INTERNAL_SIZE_T nb;
|
||||
|
||||
#if CONFIG_VAL(SYS_MALLOC_F_LEN)
|
||||
#if CONFIG_IS_ENABLED(SYS_MALLOC_F)
|
||||
if (!(gd->flags & GD_FLG_FULL_MALLOC_INIT))
|
||||
return malloc_simple(bytes);
|
||||
#endif
|
||||
@ -1572,7 +1572,7 @@ void fREe(mem) Void_t* mem;
|
||||
mchunkptr fwd; /* misc temp for linking */
|
||||
int islr; /* track whether merging with last_remainder */
|
||||
|
||||
#if CONFIG_VAL(SYS_MALLOC_F_LEN)
|
||||
#if CONFIG_IS_ENABLED(SYS_MALLOC_F)
|
||||
/* free() is a no-op - all the memory will be freed on relocation */
|
||||
if (!(gd->flags & GD_FLG_FULL_MALLOC_INIT)) {
|
||||
VALGRIND_FREELIKE_BLOCK(mem, SIZE_SZ);
|
||||
@ -1735,7 +1735,7 @@ Void_t* rEALLOc(oldmem, bytes) Void_t* oldmem; size_t bytes;
|
||||
/* realloc of null is supposed to be same as malloc */
|
||||
if (oldmem == NULL) return mALLOc(bytes);
|
||||
|
||||
#if CONFIG_VAL(SYS_MALLOC_F_LEN)
|
||||
#if CONFIG_IS_ENABLED(SYS_MALLOC_F)
|
||||
if (!(gd->flags & GD_FLG_FULL_MALLOC_INIT)) {
|
||||
/* This is harder to support and should not be needed */
|
||||
panic("pre-reloc realloc() is not supported");
|
||||
@ -1957,7 +1957,7 @@ Void_t* mEMALIGn(alignment, bytes) size_t alignment; size_t bytes;
|
||||
|
||||
if ((long)bytes < 0) return NULL;
|
||||
|
||||
#if CONFIG_VAL(SYS_MALLOC_F_LEN)
|
||||
#if CONFIG_IS_ENABLED(SYS_MALLOC_F)
|
||||
if (!(gd->flags & GD_FLG_FULL_MALLOC_INIT)) {
|
||||
return memalign_simple(alignment, bytes);
|
||||
}
|
||||
@ -2153,7 +2153,7 @@ Void_t* cALLOc(n, elem_size) size_t n; size_t elem_size;
|
||||
return NULL;
|
||||
else
|
||||
{
|
||||
#if CONFIG_VAL(SYS_MALLOC_F_LEN)
|
||||
#if CONFIG_IS_ENABLED(SYS_MALLOC_F)
|
||||
if (!(gd->flags & GD_FLG_FULL_MALLOC_INIT)) {
|
||||
memset(mem, 0, sz);
|
||||
return mem;
|
||||
@ -2455,7 +2455,7 @@ int mALLOPt(param_number, value) int param_number; int value;
|
||||
|
||||
int initf_malloc(void)
|
||||
{
|
||||
#if CONFIG_VAL(SYS_MALLOC_F_LEN)
|
||||
#if CONFIG_IS_ENABLED(SYS_MALLOC_F)
|
||||
assert(gd->malloc_base); /* Set up by crt0.S */
|
||||
gd->malloc_limit = CONFIG_VAL(SYS_MALLOC_F_LEN);
|
||||
gd->malloc_ptr = 0;
|
||||
|
||||
@ -79,7 +79,7 @@ ulong board_init_f_alloc_reserve(ulong top)
|
||||
{
|
||||
/* Reserve early malloc arena */
|
||||
#ifndef CFG_MALLOC_F_ADDR
|
||||
#if CONFIG_VAL(SYS_MALLOC_F_LEN)
|
||||
#if CONFIG_IS_ENABLED(SYS_MALLOC_F)
|
||||
top -= CONFIG_VAL(SYS_MALLOC_F_LEN);
|
||||
#endif
|
||||
#endif
|
||||
@ -159,7 +159,7 @@ void board_init_f_init_reserve(ulong base)
|
||||
* Use gd as it is now properly set for all architectures.
|
||||
*/
|
||||
|
||||
#if CONFIG_VAL(SYS_MALLOC_F_LEN)
|
||||
#if CONFIG_IS_ENABLED(SYS_MALLOC_F)
|
||||
/* go down one 'early malloc arena' */
|
||||
gd->malloc_base = base;
|
||||
#if CONFIG_IS_ENABLED(ZERO_MEM_BEFORE_USE)
|
||||
|
||||
@ -402,21 +402,21 @@ config SPL_SEPARATE_BSS
|
||||
location is used. Normally we put the device tree at the end of BSS
|
||||
but with this option enabled, it goes at _image_binary_end.
|
||||
|
||||
config SYS_SPL_MALLOC
|
||||
config SPL_SYS_MALLOC
|
||||
bool "Enable malloc pool in SPL"
|
||||
depends on SPL_FRAMEWORK
|
||||
|
||||
config HAS_CUSTOM_SPL_MALLOC_START
|
||||
config SPL_HAS_CUSTOM_MALLOC_START
|
||||
bool "For the SPL malloc pool, define a custom starting address"
|
||||
depends on SYS_SPL_MALLOC
|
||||
depends on SPL_SYS_MALLOC
|
||||
|
||||
config CUSTOM_SYS_SPL_MALLOC_ADDR
|
||||
config SPL_CUSTOM_SYS_MALLOC_ADDR
|
||||
hex "SPL malloc addr"
|
||||
depends on HAS_CUSTOM_SPL_MALLOC_START
|
||||
depends on SPL_HAS_CUSTOM_MALLOC_START
|
||||
|
||||
config SYS_SPL_MALLOC_SIZE
|
||||
config SPL_SYS_MALLOC_SIZE
|
||||
hex "Size of the SPL malloc pool"
|
||||
depends on SYS_SPL_MALLOC
|
||||
depends on SPL_SYS_MALLOC
|
||||
default 0x100000
|
||||
|
||||
config SPL_READ_ONLY
|
||||
@ -1063,7 +1063,7 @@ config SPL_OS_BOOT
|
||||
Enable booting directly to an OS from SPL.
|
||||
for more info read doc/README.falcon
|
||||
|
||||
config SYS_SPL_ARGS_ADDR
|
||||
config SPL_PAYLOAD_ARGS_ADDR
|
||||
hex "Address in memory to load 'args' file for Falcon Mode to"
|
||||
depends on SPL_OS_BOOT
|
||||
default 0x88000000 if ARCH_OMAP2PLUS
|
||||
|
||||
@ -59,7 +59,7 @@ config SPL_RELOC_TEXT_BASE
|
||||
config SPL_RELOC_STACK
|
||||
hex "Address of the start of the stack SPL will use after relocation."
|
||||
help
|
||||
If unspecified, this is equal to CFG_SYS_SPL_MALLOC_START. Starting
|
||||
If unspecified, this is equal to CFG_SPL_SYS_MALLOC_START. Starting
|
||||
address of the malloc pool used in SPL. When this option is set the full
|
||||
malloc is used in SPL and it is set up by spl_init() and before that, the
|
||||
simple malloc() can be used if CONFIG_SYS_MALLOC_F is defined.
|
||||
|
||||
226
common/spl/spl.c
226
common/spl/spl.c
@ -256,102 +256,6 @@ void spl_set_header_raw_uboot(struct spl_image_info *spl_image)
|
||||
}
|
||||
#endif
|
||||
|
||||
#if CONFIG_IS_ENABLED(LOAD_FIT_FULL)
|
||||
/* Parse and load full fitImage in SPL */
|
||||
static int spl_load_fit_image(struct spl_image_info *spl_image,
|
||||
const struct legacy_img_hdr *header)
|
||||
{
|
||||
struct bootm_headers images;
|
||||
const char *fit_uname_config = NULL;
|
||||
uintptr_t fdt_hack;
|
||||
const char *uname;
|
||||
ulong fw_data = 0, dt_data = 0, img_data = 0;
|
||||
ulong fw_len = 0, dt_len = 0, img_len = 0;
|
||||
int idx, conf_noffset;
|
||||
int ret;
|
||||
|
||||
#ifdef CONFIG_SPL_FIT_SIGNATURE
|
||||
images.verify = 1;
|
||||
#endif
|
||||
ret = fit_image_load(&images, (ulong)header,
|
||||
NULL, &fit_uname_config,
|
||||
IH_ARCH_DEFAULT, IH_TYPE_STANDALONE, -1,
|
||||
FIT_LOAD_OPTIONAL, &fw_data, &fw_len);
|
||||
if (ret >= 0) {
|
||||
printf("DEPRECATED: 'standalone = ' property.");
|
||||
printf("Please use either 'firmware =' or 'kernel ='\n");
|
||||
} else {
|
||||
ret = fit_image_load(&images, (ulong)header, NULL,
|
||||
&fit_uname_config, IH_ARCH_DEFAULT,
|
||||
IH_TYPE_FIRMWARE, -1, FIT_LOAD_OPTIONAL,
|
||||
&fw_data, &fw_len);
|
||||
}
|
||||
|
||||
if (ret < 0) {
|
||||
ret = fit_image_load(&images, (ulong)header, NULL,
|
||||
&fit_uname_config, IH_ARCH_DEFAULT,
|
||||
IH_TYPE_KERNEL, -1, FIT_LOAD_OPTIONAL,
|
||||
&fw_data, &fw_len);
|
||||
}
|
||||
|
||||
if (ret < 0)
|
||||
return ret;
|
||||
|
||||
spl_image->size = fw_len;
|
||||
spl_image->entry_point = fw_data;
|
||||
spl_image->load_addr = fw_data;
|
||||
if (fit_image_get_os(header, ret, &spl_image->os))
|
||||
spl_image->os = IH_OS_INVALID;
|
||||
spl_image->name = genimg_get_os_name(spl_image->os);
|
||||
|
||||
debug(SPL_TPL_PROMPT "payload image: %32s load addr: 0x%lx size: %d\n",
|
||||
spl_image->name, spl_image->load_addr, spl_image->size);
|
||||
|
||||
#ifdef CONFIG_SPL_FIT_SIGNATURE
|
||||
images.verify = 1;
|
||||
#endif
|
||||
ret = fit_image_load(&images, (ulong)header, NULL, &fit_uname_config,
|
||||
IH_ARCH_DEFAULT, IH_TYPE_FLATDT, -1,
|
||||
FIT_LOAD_OPTIONAL, &dt_data, &dt_len);
|
||||
if (ret >= 0) {
|
||||
spl_image->fdt_addr = (void *)dt_data;
|
||||
|
||||
if (spl_image->os == IH_OS_U_BOOT) {
|
||||
/* HACK: U-Boot expects FDT at a specific address */
|
||||
fdt_hack = spl_image->load_addr + spl_image->size;
|
||||
fdt_hack = (fdt_hack + 3) & ~3;
|
||||
debug("Relocating FDT to %p\n", spl_image->fdt_addr);
|
||||
memcpy((void *)fdt_hack, spl_image->fdt_addr, dt_len);
|
||||
}
|
||||
}
|
||||
|
||||
conf_noffset = fit_conf_get_node((const void *)header,
|
||||
fit_uname_config);
|
||||
if (conf_noffset < 0)
|
||||
return 0;
|
||||
|
||||
for (idx = 0;
|
||||
uname = fdt_stringlist_get((const void *)header, conf_noffset,
|
||||
FIT_LOADABLE_PROP, idx,
|
||||
NULL), uname;
|
||||
idx++)
|
||||
{
|
||||
#ifdef CONFIG_SPL_FIT_SIGNATURE
|
||||
images.verify = 1;
|
||||
#endif
|
||||
ret = fit_image_load(&images, (ulong)header,
|
||||
&uname, &fit_uname_config,
|
||||
IH_ARCH_DEFAULT, IH_TYPE_LOADABLE, -1,
|
||||
FIT_LOAD_OPTIONAL_NON_ZERO,
|
||||
&img_data, &img_len);
|
||||
if (ret < 0)
|
||||
return ret;
|
||||
}
|
||||
|
||||
return 0;
|
||||
}
|
||||
#endif
|
||||
|
||||
__weak int spl_parse_board_header(struct spl_image_info *spl_image,
|
||||
const struct spl_boot_device *bootdev,
|
||||
const void *image_header, size_t size)
|
||||
@ -371,12 +275,14 @@ int spl_parse_image_header(struct spl_image_info *spl_image,
|
||||
const struct spl_boot_device *bootdev,
|
||||
const struct legacy_img_hdr *header)
|
||||
{
|
||||
#if CONFIG_IS_ENABLED(LOAD_FIT_FULL)
|
||||
int ret = spl_load_fit_image(spl_image, header);
|
||||
int ret;
|
||||
|
||||
if (!ret)
|
||||
return ret;
|
||||
#endif
|
||||
if (CONFIG_IS_ENABLED(LOAD_FIT_FULL)) {
|
||||
ret = spl_load_fit_image(spl_image, header);
|
||||
|
||||
if (!ret)
|
||||
return ret;
|
||||
}
|
||||
if (image_get_magic(header) == IH_MAGIC) {
|
||||
int ret;
|
||||
|
||||
@ -523,7 +429,7 @@ static int spl_common_init(bool setup_malloc)
|
||||
{
|
||||
int ret;
|
||||
|
||||
#if CONFIG_VAL(SYS_MALLOC_F_LEN)
|
||||
#if CONFIG_IS_ENABLED(SYS_MALLOC_F)
|
||||
if (setup_malloc) {
|
||||
#ifdef CFG_MALLOC_F_ADDR
|
||||
gd->malloc_base = CFG_MALLOC_F_ADDR;
|
||||
@ -538,17 +444,11 @@ static int spl_common_init(bool setup_malloc)
|
||||
ret);
|
||||
return ret;
|
||||
}
|
||||
#ifdef CONFIG_BOOTSTAGE_STASH
|
||||
if (!u_boot_first_phase()) {
|
||||
const void *stash = map_sysmem(CONFIG_BOOTSTAGE_STASH_ADDR,
|
||||
CONFIG_BOOTSTAGE_STASH_SIZE);
|
||||
|
||||
ret = bootstage_unstash(stash, CONFIG_BOOTSTAGE_STASH_SIZE);
|
||||
ret = bootstage_unstash_default();
|
||||
if (ret)
|
||||
debug("%s: Failed to unstash bootstage: ret=%d\n",
|
||||
__func__, ret);
|
||||
log_debug("Failed to unstash bootstage: ret=%d\n", ret);
|
||||
}
|
||||
#endif /* CONFIG_BOOTSTAGE_STASH */
|
||||
bootstage_mark_name(get_bootstage_id(true),
|
||||
spl_phase_name(spl_phase()));
|
||||
#if CONFIG_IS_ENABLED(LOG)
|
||||
@ -744,27 +644,21 @@ void board_init_r(gd_t *dummy1, ulong dummy2)
|
||||
BOOT_DEVICE_NONE,
|
||||
};
|
||||
struct spl_image_info spl_image;
|
||||
int ret;
|
||||
int ret, os;
|
||||
|
||||
debug(">>" SPL_TPL_PROMPT "board_init_r()\n");
|
||||
|
||||
spl_set_bd();
|
||||
|
||||
#if defined(CONFIG_SYS_SPL_MALLOC)
|
||||
mem_malloc_init(SYS_SPL_MALLOC_START, CONFIG_SYS_SPL_MALLOC_SIZE);
|
||||
gd->flags |= GD_FLG_FULL_MALLOC_INIT;
|
||||
#endif
|
||||
if (IS_ENABLED(CONFIG_SPL_SYS_MALLOC)) {
|
||||
mem_malloc_init(SPL_SYS_MALLOC_START, SPL_SYS_MALLOC_SIZE);
|
||||
gd->flags |= GD_FLG_FULL_MALLOC_INIT;
|
||||
}
|
||||
if (!(gd->flags & GD_FLG_SPL_INIT)) {
|
||||
if (spl_init())
|
||||
hang();
|
||||
}
|
||||
#if !defined(CONFIG_PPC) && !defined(CONFIG_ARCH_MX6)
|
||||
/*
|
||||
* timer_init() does not exist on PPC systems. The timer is initialized
|
||||
* and enabled (decrementer) in interrupt_init() here.
|
||||
*/
|
||||
timer_init();
|
||||
#endif
|
||||
if (CONFIG_IS_ENABLED(BLOBLIST)) {
|
||||
ret = bloblist_init();
|
||||
if (ret) {
|
||||
@ -784,13 +678,11 @@ void board_init_r(gd_t *dummy1, ulong dummy2)
|
||||
}
|
||||
}
|
||||
|
||||
#if CONFIG_IS_ENABLED(BOARD_INIT)
|
||||
spl_board_init();
|
||||
#endif
|
||||
if (CONFIG_IS_ENABLED(BOARD_INIT))
|
||||
spl_board_init();
|
||||
|
||||
#if defined(CONFIG_SPL_WATCHDOG) && CONFIG_IS_ENABLED(WDT)
|
||||
initr_watchdog();
|
||||
#endif
|
||||
if (IS_ENABLED(CONFIG_SPL_WATCHDOG) && CONFIG_IS_ENABLED(WDT))
|
||||
initr_watchdog();
|
||||
|
||||
if (IS_ENABLED(CONFIG_SPL_OS_BOOT) || CONFIG_IS_ENABLED(HANDOFF) ||
|
||||
IS_ENABLED(CONFIG_SPL_ATF))
|
||||
@ -814,9 +706,8 @@ void board_init_r(gd_t *dummy1, ulong dummy2)
|
||||
}
|
||||
|
||||
memset(&spl_image, '\0', sizeof(spl_image));
|
||||
#ifdef CONFIG_SYS_SPL_ARGS_ADDR
|
||||
spl_image.arg = (void *)CONFIG_SYS_SPL_ARGS_ADDR;
|
||||
#endif
|
||||
if (IS_ENABLED(CONFIG_SPL_OS_BOOT))
|
||||
spl_image.arg = (void *)SPL_PAYLOAD_ARGS_ADDR;
|
||||
spl_image.boot_device = BOOT_DEVICE_NONE;
|
||||
board_boot_order(spl_boot_list);
|
||||
|
||||
@ -833,66 +724,39 @@ void board_init_r(gd_t *dummy1, ulong dummy2)
|
||||
}
|
||||
|
||||
spl_perform_fixups(&spl_image);
|
||||
if (CONFIG_IS_ENABLED(HANDOFF)) {
|
||||
ret = write_spl_handoff();
|
||||
if (ret)
|
||||
printf(SPL_TPL_PROMPT
|
||||
"SPL hand-off write failed (err=%d)\n", ret);
|
||||
}
|
||||
if (CONFIG_IS_ENABLED(BLOBLIST)) {
|
||||
ret = bloblist_finish();
|
||||
if (ret)
|
||||
printf("Warning: Failed to finish bloblist (ret=%d)\n",
|
||||
ret);
|
||||
}
|
||||
|
||||
switch (spl_image.os) {
|
||||
case IH_OS_U_BOOT:
|
||||
os = spl_image.os;
|
||||
if (os == IH_OS_U_BOOT) {
|
||||
debug("Jumping to %s...\n", spl_phase_name(spl_next_phase()));
|
||||
break;
|
||||
#if CONFIG_IS_ENABLED(ATF)
|
||||
case IH_OS_ARM_TRUSTED_FIRMWARE:
|
||||
} else if (CONFIG_IS_ENABLED(ATF) && os == IH_OS_ARM_TRUSTED_FIRMWARE) {
|
||||
debug("Jumping to U-Boot via ARM Trusted Firmware\n");
|
||||
spl_fixup_fdt(spl_image.fdt_addr);
|
||||
spl_fixup_fdt(spl_image_fdt_addr(&spl_image));
|
||||
spl_invoke_atf(&spl_image);
|
||||
break;
|
||||
#endif
|
||||
#if CONFIG_IS_ENABLED(OPTEE_IMAGE)
|
||||
case IH_OS_TEE:
|
||||
} else if (CONFIG_IS_ENABLED(OPTEE_IMAGE) && os == IH_OS_TEE) {
|
||||
debug("Jumping to U-Boot via OP-TEE\n");
|
||||
spl_board_prepare_for_optee(spl_image.fdt_addr);
|
||||
spl_board_prepare_for_optee(spl_image_fdt_addr(&spl_image));
|
||||
jump_to_image_optee(&spl_image);
|
||||
break;
|
||||
#endif
|
||||
#if CONFIG_IS_ENABLED(OPENSBI)
|
||||
case IH_OS_OPENSBI:
|
||||
} else if (CONFIG_IS_ENABLED(OPENSBI) && os == IH_OS_OPENSBI) {
|
||||
debug("Jumping to U-Boot via RISC-V OpenSBI\n");
|
||||
spl_invoke_opensbi(&spl_image);
|
||||
break;
|
||||
#endif
|
||||
#if CONFIG_IS_ENABLED(OS_BOOT)
|
||||
case IH_OS_LINUX:
|
||||
} else if (CONFIG_IS_ENABLED(OS_BOOT) && os == IH_OS_LINUX) {
|
||||
debug("Jumping to Linux\n");
|
||||
#if defined(CONFIG_SYS_SPL_ARGS_ADDR)
|
||||
spl_fixup_fdt((void *)CONFIG_SYS_SPL_ARGS_ADDR);
|
||||
#endif
|
||||
if (IS_ENABLED(CONFIG_SPL_OS_BOOT))
|
||||
spl_fixup_fdt((void *)SPL_PAYLOAD_ARGS_ADDR);
|
||||
spl_board_prepare_for_linux();
|
||||
jump_to_image_linux(&spl_image);
|
||||
#endif
|
||||
default:
|
||||
} else {
|
||||
debug("Unsupported OS image.. Jumping nevertheless..\n");
|
||||
}
|
||||
#if CONFIG_VAL(SYS_MALLOC_F_LEN) && !defined(CONFIG_SYS_SPL_MALLOC_SIZE)
|
||||
debug("SPL malloc() used 0x%lx bytes (%ld KB)\n", gd->malloc_ptr,
|
||||
gd->malloc_ptr / 1024);
|
||||
#endif
|
||||
if (CONFIG_IS_ENABLED(SYS_MALLOC_F) &&
|
||||
!IS_ENABLED(CONFIG_SPL_SYS_MALLOC_SIZE))
|
||||
debug("SPL malloc() used 0x%lx bytes (%ld KB)\n",
|
||||
gd_malloc_ptr(), gd_malloc_ptr() / 1024);
|
||||
|
||||
bootstage_mark_name(get_bootstage_id(false), "end phase");
|
||||
#ifdef CONFIG_BOOTSTAGE_STASH
|
||||
ret = bootstage_stash((void *)CONFIG_BOOTSTAGE_STASH_ADDR,
|
||||
CONFIG_BOOTSTAGE_STASH_SIZE);
|
||||
ret = bootstage_stash_default();
|
||||
if (ret)
|
||||
debug("Failed to stash bootstage: err=%d\n", ret);
|
||||
#endif
|
||||
|
||||
if (IS_ENABLED(CONFIG_SPL_VIDEO_REMOVE)) {
|
||||
struct udevice *dev;
|
||||
@ -906,6 +770,18 @@ void board_init_r(gd_t *dummy1, ulong dummy2)
|
||||
dev->name, rc);
|
||||
}
|
||||
}
|
||||
if (CONFIG_IS_ENABLED(HANDOFF)) {
|
||||
ret = write_spl_handoff();
|
||||
if (ret)
|
||||
printf(SPL_TPL_PROMPT
|
||||
"SPL hand-off write failed (err=%d)\n", ret);
|
||||
}
|
||||
if (CONFIG_IS_ENABLED(BLOBLIST)) {
|
||||
ret = bloblist_finish();
|
||||
if (ret)
|
||||
printf("Warning: Failed to finish bloblist (ret=%d)\n",
|
||||
ret);
|
||||
}
|
||||
|
||||
spl_board_prepare_for_boot();
|
||||
jump_to_image_no_args(&spl_image);
|
||||
@ -983,7 +859,7 @@ ulong spl_relocate_stack_gd(void)
|
||||
if (CONFIG_IS_ENABLED(SYS_REPORT_STACK_F_USAGE))
|
||||
spl_relocate_stack_check();
|
||||
|
||||
#if defined(CONFIG_SPL_SYS_MALLOC_SIMPLE) && CONFIG_VAL(SYS_MALLOC_F_LEN)
|
||||
#if defined(CONFIG_SPL_SYS_MALLOC_SIMPLE) && CONFIG_IS_ENABLED(SYS_MALLOC_F)
|
||||
if (CONFIG_SPL_STACK_R_MALLOC_SIMPLE_LEN) {
|
||||
debug("SPL malloc() before relocation used 0x%lx bytes (%ld KB)\n",
|
||||
gd->malloc_ptr, gd->malloc_ptr / 1024);
|
||||
|
||||
@ -97,7 +97,7 @@ int spl_load_image_ext_os(struct spl_image_info *spl_image,
|
||||
puts("spl: ext4fs_open failed\n");
|
||||
goto defaults;
|
||||
}
|
||||
err = ext4fs_read((void *)CONFIG_SYS_SPL_ARGS_ADDR, 0, filelen, &actlen);
|
||||
err = ext4fs_read((void *)CONFIG_SPL_PAYLOAD_ARGS_ADDR, 0, filelen, &actlen);
|
||||
if (err < 0) {
|
||||
printf("spl: error reading image %s, err - %d, falling back to default\n",
|
||||
file, err);
|
||||
@ -127,7 +127,7 @@ defaults:
|
||||
if (err < 0)
|
||||
puts("spl: ext4fs_open failed\n");
|
||||
|
||||
err = ext4fs_read((void *)CONFIG_SYS_SPL_ARGS_ADDR, 0, filelen, &actlen);
|
||||
err = ext4fs_read((void *)CONFIG_SPL_PAYLOAD_ARGS_ADDR, 0, filelen, &actlen);
|
||||
if (err < 0) {
|
||||
#ifdef CONFIG_SPL_LIBCOMMON_SUPPORT
|
||||
printf("%s: error reading image %s, err - %d\n",
|
||||
|
||||
@ -128,7 +128,7 @@ int spl_load_image_fat_os(struct spl_image_info *spl_image,
|
||||
#if defined(CONFIG_SPL_ENV_SUPPORT) && defined(CONFIG_SPL_OS_BOOT)
|
||||
file = env_get("falcon_args_file");
|
||||
if (file) {
|
||||
err = file_fat_read(file, (void *)CONFIG_SYS_SPL_ARGS_ADDR, 0);
|
||||
err = file_fat_read(file, (void *)CONFIG_SPL_PAYLOAD_ARGS_ADDR, 0);
|
||||
if (err <= 0) {
|
||||
printf("spl: error reading image %s, err - %d, falling back to default\n",
|
||||
file, err);
|
||||
@ -153,7 +153,7 @@ defaults:
|
||||
#endif
|
||||
|
||||
err = file_fat_read(CONFIG_SPL_FS_LOAD_ARGS_NAME,
|
||||
(void *)CONFIG_SYS_SPL_ARGS_ADDR, 0);
|
||||
(void *)CONFIG_SPL_PAYLOAD_ARGS_ADDR, 0);
|
||||
if (err <= 0) {
|
||||
#ifdef CONFIG_SPL_LIBCOMMON_SUPPORT
|
||||
printf("%s: error reading image %s, err - %d\n",
|
||||
|
||||
@ -44,7 +44,7 @@ static int find_node_from_desc(const void *fit, int node, const char *str)
|
||||
for (child = fdt_first_subnode(fit, node); child >= 0;
|
||||
child = fdt_next_subnode(fit, child)) {
|
||||
int len;
|
||||
const char *desc = fdt_getprop(fit, child, "description", &len);
|
||||
const char *desc = fdt_getprop(fit, child, FIT_DESC_PROP, &len);
|
||||
|
||||
if (!desc)
|
||||
continue;
|
||||
@ -208,7 +208,7 @@ static int get_aligned_image_size(struct spl_load_info *info, int data_size,
|
||||
}
|
||||
|
||||
/**
|
||||
* spl_load_fit_image(): load the image described in a certain FIT node
|
||||
* load_simple_fit(): load the image described in a certain FIT node
|
||||
* @info: points to information about the device to load data from
|
||||
* @sector: the start sector of the FIT image on the device
|
||||
* @ctx: points to the FIT context structure
|
||||
@ -221,9 +221,9 @@ static int get_aligned_image_size(struct spl_load_info *info, int data_size,
|
||||
*
|
||||
* Return: 0 on success or a negative error number.
|
||||
*/
|
||||
static int spl_load_fit_image(struct spl_load_info *info, ulong sector,
|
||||
const struct spl_fit_info *ctx, int node,
|
||||
struct spl_image_info *image_info)
|
||||
static int load_simple_fit(struct spl_load_info *info, ulong sector,
|
||||
const struct spl_fit_info *ctx, int node,
|
||||
struct spl_image_info *image_info)
|
||||
{
|
||||
int offset;
|
||||
size_t length;
|
||||
@ -386,8 +386,7 @@ static int spl_fit_append_fdt(struct spl_image_info *spl_image,
|
||||
else
|
||||
return node;
|
||||
} else {
|
||||
ret = spl_load_fit_image(info, sector, ctx, node,
|
||||
&image_info);
|
||||
ret = load_simple_fit(info, sector, ctx, node, &image_info);
|
||||
if (ret < 0)
|
||||
return ret;
|
||||
}
|
||||
@ -426,8 +425,8 @@ static int spl_fit_append_fdt(struct spl_image_info *spl_image,
|
||||
__func__);
|
||||
}
|
||||
image_info.load_addr = (ulong)tmpbuffer;
|
||||
ret = spl_load_fit_image(info, sector, ctx,
|
||||
node, &image_info);
|
||||
ret = load_simple_fit(info, sector, ctx, node,
|
||||
&image_info);
|
||||
if (ret < 0)
|
||||
break;
|
||||
|
||||
@ -477,10 +476,11 @@ static int spl_fit_record_loadable(const struct spl_fit_info *ctx, int index,
|
||||
node = spl_fit_get_image_node(ctx, "loadables", index);
|
||||
|
||||
ret = fdt_record_loadable(blob, index, name, image->load_addr,
|
||||
image->size, image->entry_point,
|
||||
fdt_getprop(ctx->fit, node, "type", NULL),
|
||||
fdt_getprop(ctx->fit, node, "os", NULL),
|
||||
fdt_getprop(ctx->fit, node, "arch", NULL));
|
||||
image->size, image->entry_point,
|
||||
fdt_getprop(ctx->fit, node, FIT_TYPE_PROP, NULL),
|
||||
fdt_getprop(ctx->fit, node, FIT_OS_PROP, NULL),
|
||||
fdt_getprop(ctx->fit, node, FIT_ARCH_PROP, NULL));
|
||||
|
||||
return ret;
|
||||
}
|
||||
|
||||
@ -531,7 +531,7 @@ static void *spl_get_fit_load_buffer(size_t size)
|
||||
buf = malloc_cache_aligned(size);
|
||||
if (!buf) {
|
||||
pr_err("Could not get FIT buffer of %lu bytes\n", (ulong)size);
|
||||
pr_err("\tcheck CONFIG_SYS_SPL_MALLOC_SIZE\n");
|
||||
pr_err("\tcheck CONFIG_SPL_SYS_MALLOC_SIZE\n");
|
||||
buf = spl_get_load_buffer(0, size);
|
||||
}
|
||||
return buf;
|
||||
@ -617,7 +617,7 @@ static int spl_fit_load_fpga(struct spl_fit_info *ctx,
|
||||
warn_deprecated("'fpga' property in config node. Use 'loadables'");
|
||||
|
||||
/* Load the image and set up the fpga_image structure */
|
||||
ret = spl_load_fit_image(info, sector, ctx, node, &fpga_image);
|
||||
ret = load_simple_fit(info, sector, ctx, node, &fpga_image);
|
||||
if (ret) {
|
||||
printf("%s: Cannot load the FPGA: %i\n", __func__, ret);
|
||||
return ret;
|
||||
@ -742,7 +742,7 @@ int spl_load_simple_fit(struct spl_image_info *spl_image,
|
||||
}
|
||||
|
||||
/* Load the image and set up the spl_image structure */
|
||||
ret = spl_load_fit_image(info, sector, &ctx, node, spl_image);
|
||||
ret = load_simple_fit(info, sector, &ctx, node, spl_image);
|
||||
if (ret)
|
||||
return ret;
|
||||
|
||||
@ -783,7 +783,7 @@ int spl_load_simple_fit(struct spl_image_info *spl_image,
|
||||
continue;
|
||||
|
||||
image_info.load_addr = 0;
|
||||
ret = spl_load_fit_image(info, sector, &ctx, node, &image_info);
|
||||
ret = load_simple_fit(info, sector, &ctx, node, &image_info);
|
||||
if (ret < 0) {
|
||||
printf("%s: can't load image loadables index %d (ret = %d)\n",
|
||||
__func__, index, ret);
|
||||
@ -828,3 +828,96 @@ int spl_load_simple_fit(struct spl_image_info *spl_image,
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
/* Parse and load full fitImage in SPL */
|
||||
int spl_load_fit_image(struct spl_image_info *spl_image,
|
||||
const struct legacy_img_hdr *header)
|
||||
{
|
||||
struct bootm_headers images;
|
||||
const char *fit_uname_config = NULL;
|
||||
uintptr_t fdt_hack;
|
||||
const char *uname;
|
||||
ulong fw_data = 0, dt_data = 0, img_data = 0;
|
||||
ulong fw_len = 0, dt_len = 0, img_len = 0;
|
||||
int idx, conf_noffset;
|
||||
int ret;
|
||||
|
||||
#ifdef CONFIG_SPL_FIT_SIGNATURE
|
||||
images.verify = 1;
|
||||
#endif
|
||||
ret = fit_image_load(&images, (ulong)header,
|
||||
NULL, &fit_uname_config,
|
||||
IH_ARCH_DEFAULT, IH_TYPE_STANDALONE, -1,
|
||||
FIT_LOAD_OPTIONAL, &fw_data, &fw_len);
|
||||
if (ret >= 0) {
|
||||
printf("DEPRECATED: 'standalone = ' property.");
|
||||
printf("Please use either 'firmware =' or 'kernel ='\n");
|
||||
} else {
|
||||
ret = fit_image_load(&images, (ulong)header, NULL,
|
||||
&fit_uname_config, IH_ARCH_DEFAULT,
|
||||
IH_TYPE_FIRMWARE, -1, FIT_LOAD_OPTIONAL,
|
||||
&fw_data, &fw_len);
|
||||
}
|
||||
|
||||
if (ret < 0) {
|
||||
ret = fit_image_load(&images, (ulong)header, NULL,
|
||||
&fit_uname_config, IH_ARCH_DEFAULT,
|
||||
IH_TYPE_KERNEL, -1, FIT_LOAD_OPTIONAL,
|
||||
&fw_data, &fw_len);
|
||||
}
|
||||
|
||||
if (ret < 0)
|
||||
return ret;
|
||||
|
||||
spl_image->size = fw_len;
|
||||
spl_image->entry_point = fw_data;
|
||||
spl_image->load_addr = fw_data;
|
||||
if (fit_image_get_os(header, ret, &spl_image->os))
|
||||
spl_image->os = IH_OS_INVALID;
|
||||
spl_image->name = genimg_get_os_name(spl_image->os);
|
||||
|
||||
debug(SPL_TPL_PROMPT "payload image: %32s load addr: 0x%lx size: %d\n",
|
||||
spl_image->name, spl_image->load_addr, spl_image->size);
|
||||
|
||||
#ifdef CONFIG_SPL_FIT_SIGNATURE
|
||||
images.verify = 1;
|
||||
#endif
|
||||
ret = fit_image_load(&images, (ulong)header, NULL, &fit_uname_config,
|
||||
IH_ARCH_DEFAULT, IH_TYPE_FLATDT, -1,
|
||||
FIT_LOAD_OPTIONAL, &dt_data, &dt_len);
|
||||
if (ret >= 0) {
|
||||
spl_image->fdt_addr = (void *)dt_data;
|
||||
|
||||
if (spl_image->os == IH_OS_U_BOOT) {
|
||||
/* HACK: U-Boot expects FDT at a specific address */
|
||||
fdt_hack = spl_image->load_addr + spl_image->size;
|
||||
fdt_hack = (fdt_hack + 3) & ~3;
|
||||
debug("Relocating FDT to %p\n", spl_image->fdt_addr);
|
||||
memcpy((void *)fdt_hack, spl_image->fdt_addr, dt_len);
|
||||
}
|
||||
}
|
||||
|
||||
conf_noffset = fit_conf_get_node((const void *)header,
|
||||
fit_uname_config);
|
||||
if (conf_noffset < 0)
|
||||
return 0;
|
||||
|
||||
for (idx = 0;
|
||||
uname = fdt_stringlist_get((const void *)header, conf_noffset,
|
||||
FIT_LOADABLE_PROP, idx,
|
||||
NULL), uname;
|
||||
idx++) {
|
||||
#ifdef CONFIG_SPL_FIT_SIGNATURE
|
||||
images.verify = 1;
|
||||
#endif
|
||||
ret = fit_image_load(&images, (ulong)header,
|
||||
&uname, &fit_uname_config,
|
||||
IH_ARCH_DEFAULT, IH_TYPE_LOADABLE, -1,
|
||||
FIT_LOAD_OPTIONAL_NON_ZERO,
|
||||
&img_data, &img_len);
|
||||
if (ret < 0)
|
||||
return ret;
|
||||
}
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
@ -235,7 +235,7 @@ static int mmc_load_image_raw_os(struct spl_image_info *spl_image,
|
||||
count = blk_dread(mmc_get_blk_desc(mmc),
|
||||
CONFIG_SYS_MMCSD_RAW_MODE_ARGS_SECTOR,
|
||||
CONFIG_SYS_MMCSD_RAW_MODE_ARGS_SECTORS,
|
||||
(void *) CONFIG_SYS_SPL_ARGS_ADDR);
|
||||
(void *)CONFIG_SPL_PAYLOAD_ARGS_ADDR);
|
||||
if (count != CONFIG_SYS_MMCSD_RAW_MODE_ARGS_SECTORS) {
|
||||
#ifdef CONFIG_SPL_LIBCOMMON_SUPPORT
|
||||
puts("mmc_load_image_raw_os: mmc block read error\n");
|
||||
|
||||
@ -159,11 +159,11 @@ static int spl_nand_load_image(struct spl_image_info *spl_image,
|
||||
CONFIG_CMD_SPL_WRITE_SIZE,
|
||||
(void *)CONFIG_TEXT_BASE);
|
||||
/* copy to destintion */
|
||||
for (dst = (int *)CONFIG_SYS_SPL_ARGS_ADDR,
|
||||
src = (int *)CONFIG_TEXT_BASE;
|
||||
src < (int *)(CONFIG_TEXT_BASE +
|
||||
CONFIG_CMD_SPL_WRITE_SIZE);
|
||||
src++, dst++) {
|
||||
for (dst = (int *)CONFIG_SPL_PAYLOAD_ARGS_ADDR,
|
||||
src = (int *)CONFIG_TEXT_BASE;
|
||||
src < (int *)(CONFIG_TEXT_BASE +
|
||||
CONFIG_CMD_SPL_WRITE_SIZE);
|
||||
src++, dst++) {
|
||||
writel(readl(src), dst);
|
||||
}
|
||||
|
||||
|
||||
@ -54,8 +54,8 @@ static int spl_nor_load_image(struct spl_image_info *spl_image,
|
||||
CONFIG_SYS_OS_BASE,
|
||||
(void *)header);
|
||||
|
||||
#if defined CONFIG_SYS_SPL_ARGS_ADDR && defined CONFIG_CMD_SPL_NOR_OFS
|
||||
memcpy((void *)CONFIG_SYS_SPL_ARGS_ADDR,
|
||||
#if defined CONFIG_SPL_PAYLOAD_ARGS_ADDR && defined CONFIG_CMD_SPL_NOR_OFS
|
||||
memcpy((void *)CONFIG_SPL_PAYLOAD_ARGS_ADDR,
|
||||
(void *)CONFIG_CMD_SPL_NOR_OFS,
|
||||
CONFIG_CMD_SPL_WRITE_SIZE);
|
||||
#endif
|
||||
@ -74,8 +74,8 @@ static int spl_nor_load_image(struct spl_image_info *spl_image,
|
||||
(void *)(CONFIG_SYS_OS_BASE +
|
||||
sizeof(struct legacy_img_hdr)),
|
||||
spl_image->size);
|
||||
#ifdef CONFIG_SYS_SPL_ARGS_ADDR
|
||||
spl_image->arg = (void *)CONFIG_SYS_SPL_ARGS_ADDR;
|
||||
#ifdef CONFIG_SPL_PAYLOAD_ARGS_ADDR
|
||||
spl_image->arg = (void *)CONFIG_SPL_PAYLOAD_ARGS_ADDR;
|
||||
#endif
|
||||
|
||||
return 0;
|
||||
|
||||
@ -47,7 +47,7 @@ static int spi_load_image_os(struct spl_image_info *spl_image,
|
||||
/* Read device tree. */
|
||||
spi_flash_read(flash, CFG_SYS_SPI_ARGS_OFFS,
|
||||
CFG_SYS_SPI_ARGS_SIZE,
|
||||
(void *)CONFIG_SYS_SPL_ARGS_ADDR);
|
||||
(void *)CONFIG_SPL_PAYLOAD_ARGS_ADDR);
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
@ -50,7 +50,7 @@ int spl_ubi_load_image(struct spl_image_info *spl_image,
|
||||
volumes[0].vol_id = CONFIG_SPL_UBI_LOAD_KERNEL_ID;
|
||||
volumes[0].load_addr = (void *)CONFIG_SYS_LOAD_ADDR;
|
||||
volumes[1].vol_id = CONFIG_SPL_UBI_LOAD_ARGS_ID;
|
||||
volumes[1].load_addr = (void *)CONFIG_SYS_SPL_ARGS_ADDR;
|
||||
volumes[1].load_addr = (void *)CONFIG_SPL_PAYLOAD_ARGS_ADDR;
|
||||
|
||||
ret = ubispl_load_volumes(&info, volumes, 2);
|
||||
if (!ret) {
|
||||
|
||||
@ -14,7 +14,7 @@ static int spl_xip(struct spl_image_info *spl_image,
|
||||
{
|
||||
#if CONFIG_IS_ENABLED(OS_BOOT)
|
||||
if (!spl_start_uboot()) {
|
||||
spl_image->arg = (void *)CONFIG_SYS_SPL_ARGS_ADDR;
|
||||
spl_image->arg = (void *)CONFIG_SPL_PAYLOAD_ARGS_ADDR;
|
||||
spl_image->name = "Linux";
|
||||
spl_image->os = IH_OS_LINUX;
|
||||
spl_image->load_addr = CONFIG_SYS_LOAD_ADDR;
|
||||
|
||||
@ -18,8 +18,8 @@ CONFIG_DISTRO_DEFAULTS=y
|
||||
CONFIG_OF_BOARD_SETUP=y
|
||||
CONFIG_BOOTCOMMAND="run findfdt; run usbboot;run mmcboot;setenv mmcdev 1; setenv bootpart 1:2; run mmcboot;run nandboot;"
|
||||
CONFIG_SYS_CONSOLE_INFO_QUIET=y
|
||||
CONFIG_SYS_SPL_MALLOC=y
|
||||
CONFIG_SYS_SPL_MALLOC_SIZE=0x800000
|
||||
CONFIG_SPL_SYS_MALLOC=y
|
||||
CONFIG_SPL_SYS_MALLOC_SIZE=0x800000
|
||||
CONFIG_SPL_FS_EXT4=y
|
||||
CONFIG_SPL_I2C=y
|
||||
CONFIG_SPL_MTD_SUPPORT=y
|
||||
|
||||
@ -23,8 +23,8 @@ CONFIG_AUTOBOOT_STOP_STR=" "
|
||||
CONFIG_BOOTCOMMAND="run findfdt; run init_console; run finduuid; run distro_bootcmd"
|
||||
CONFIG_SYS_CONSOLE_INFO_QUIET=y
|
||||
CONFIG_ARCH_MISC_INIT=y
|
||||
CONFIG_SYS_SPL_MALLOC=y
|
||||
CONFIG_SYS_SPL_MALLOC_SIZE=0x800000
|
||||
CONFIG_SPL_SYS_MALLOC=y
|
||||
CONFIG_SPL_SYS_MALLOC_SIZE=0x800000
|
||||
CONFIG_SPL_MUSB_NEW=y
|
||||
# CONFIG_SPL_NAND_SUPPORT is not set
|
||||
CONFIG_SPL_NET=y
|
||||
|
||||
@ -20,8 +20,8 @@ CONFIG_BOOTCOMMAND="run findfdt; run init_console; run finduuid; run distro_boot
|
||||
CONFIG_LOGLEVEL=3
|
||||
CONFIG_SYS_CONSOLE_INFO_QUIET=y
|
||||
CONFIG_ARCH_MISC_INIT=y
|
||||
CONFIG_SYS_SPL_MALLOC=y
|
||||
CONFIG_SYS_SPL_MALLOC_SIZE=0x800000
|
||||
CONFIG_SPL_SYS_MALLOC=y
|
||||
CONFIG_SPL_SYS_MALLOC_SIZE=0x800000
|
||||
CONFIG_SPL_FIT_IMAGE_TINY=y
|
||||
CONFIG_SPL_ETH=y
|
||||
# CONFIG_SPL_FS_EXT4 is not set
|
||||
|
||||
@ -23,8 +23,8 @@ CONFIG_BOOTCOMMAND="run findfdt; run init_console; run finduuid; run distro_boot
|
||||
CONFIG_LOGLEVEL=3
|
||||
CONFIG_SYS_CONSOLE_INFO_QUIET=y
|
||||
CONFIG_ARCH_MISC_INIT=y
|
||||
CONFIG_SYS_SPL_MALLOC=y
|
||||
CONFIG_SYS_SPL_MALLOC_SIZE=0x800000
|
||||
CONFIG_SPL_SYS_MALLOC=y
|
||||
CONFIG_SPL_SYS_MALLOC_SIZE=0x800000
|
||||
CONFIG_SPL_FIT_IMAGE_TINY=y
|
||||
# CONFIG_SPL_FS_EXT4 is not set
|
||||
CONFIG_SPL_FS_LOAD_PAYLOAD_NAME="u-boot.img"
|
||||
|
||||
@ -31,8 +31,8 @@ CONFIG_AUTOBOOT_STOP_STR=" "
|
||||
CONFIG_SYS_CONSOLE_INFO_QUIET=y
|
||||
CONFIG_ARCH_MISC_INIT=y
|
||||
# CONFIG_SPL_RAW_IMAGE_SUPPORT is not set
|
||||
CONFIG_SYS_SPL_MALLOC=y
|
||||
CONFIG_SYS_SPL_MALLOC_SIZE=0x800000
|
||||
CONFIG_SPL_SYS_MALLOC=y
|
||||
CONFIG_SPL_SYS_MALLOC_SIZE=0x800000
|
||||
# CONFIG_SYS_MMCSD_RAW_MODE_U_BOOT_USE_SECTOR is not set
|
||||
CONFIG_SPL_ENV_SUPPORT=y
|
||||
CONFIG_SPL_ETH=y
|
||||
|
||||
@ -21,8 +21,8 @@ CONFIG_LOGLEVEL=3
|
||||
CONFIG_SYS_CONSOLE_INFO_QUIET=y
|
||||
CONFIG_ARCH_MISC_INIT=y
|
||||
CONFIG_SPL_MAX_SIZE=0xb0b0
|
||||
CONFIG_SYS_SPL_MALLOC=y
|
||||
CONFIG_SYS_SPL_MALLOC_SIZE=0x800000
|
||||
CONFIG_SPL_SYS_MALLOC=y
|
||||
CONFIG_SPL_SYS_MALLOC_SIZE=0x800000
|
||||
CONFIG_SPL_FIT_IMAGE_TINY=y
|
||||
# CONFIG_SPL_ENV_SUPPORT is not set
|
||||
# CONFIG_SPL_FS_EXT4 is not set
|
||||
|
||||
@ -24,8 +24,8 @@ CONFIG_LOGLEVEL=3
|
||||
CONFIG_SYS_CONSOLE_INFO_QUIET=y
|
||||
CONFIG_ARCH_MISC_INIT=y
|
||||
CONFIG_SPL_MAX_SIZE=0x9ab0
|
||||
CONFIG_SYS_SPL_MALLOC=y
|
||||
CONFIG_SYS_SPL_MALLOC_SIZE=0x800000
|
||||
CONFIG_SPL_SYS_MALLOC=y
|
||||
CONFIG_SPL_SYS_MALLOC_SIZE=0x800000
|
||||
CONFIG_SPL_FIT_IMAGE_TINY=y
|
||||
# CONFIG_SPL_ENV_SUPPORT is not set
|
||||
# CONFIG_SPL_FS_EXT4 is not set
|
||||
|
||||
@ -20,8 +20,8 @@ CONFIG_OF_BOARD_SETUP=y
|
||||
CONFIG_FDT_FIXUP_PARTITIONS=y
|
||||
CONFIG_BOOTCOMMAND="run findfdt;run mmcboot;run nandboot;run netboot;"
|
||||
CONFIG_SYS_CONSOLE_INFO_QUIET=y
|
||||
CONFIG_SYS_SPL_MALLOC=y
|
||||
CONFIG_SYS_SPL_MALLOC_SIZE=0x800000
|
||||
CONFIG_SPL_SYS_MALLOC=y
|
||||
CONFIG_SPL_SYS_MALLOC_SIZE=0x800000
|
||||
CONFIG_SPL_FS_EXT4=y
|
||||
CONFIG_SPL_I2C=y
|
||||
CONFIG_SPL_MTD_SUPPORT=y
|
||||
|
||||
@ -24,8 +24,8 @@ CONFIG_AUTOBOOT_PROMPT="Press SPACE to abort autoboot in %d seconds\n"
|
||||
CONFIG_AUTOBOOT_STOP_STR=" "
|
||||
CONFIG_BOOTCOMMAND="run eval_boot_device;part uuid mmc ${mmc_boot}:${root_fs_partition} root_fs_partuuid;setenv bootargs console=${console} vt.global_cursor_default=0 root=PARTUUID=${root_fs_partuuid} rootfstype=ext4 rootwait rootdelay=1;fatload mmc ${mmc_boot} ${fdtaddr} ${fdtfile};fatload mmc ${mmc_boot} ${loadaddr} ${bootfile};bootz ${loadaddr} - ${fdtaddr}"
|
||||
CONFIG_BOARD_LATE_INIT=y
|
||||
CONFIG_SYS_SPL_MALLOC=y
|
||||
CONFIG_SYS_SPL_MALLOC_SIZE=0x800000
|
||||
CONFIG_SPL_SYS_MALLOC=y
|
||||
CONFIG_SPL_SYS_MALLOC_SIZE=0x800000
|
||||
# CONFIG_SYS_MMCSD_RAW_MODE_U_BOOT_USE_SECTOR is not set
|
||||
CONFIG_SPL_I2C=y
|
||||
# CONFIG_SPL_NAND_SUPPORT is not set
|
||||
|
||||
@ -32,8 +32,8 @@ CONFIG_BOOTCOMMAND="if mmc dev 1; mmc rescan; then run emmc_setup; else echo ERR
|
||||
CONFIG_DEFAULT_FDT_FILE="am335x-shc"
|
||||
CONFIG_SYS_CONSOLE_INFO_QUIET=y
|
||||
CONFIG_SPL_SYS_MALLOC_SIMPLE=y
|
||||
CONFIG_SYS_SPL_MALLOC=y
|
||||
CONFIG_SYS_SPL_MALLOC_SIZE=0x800000
|
||||
CONFIG_SPL_SYS_MALLOC=y
|
||||
CONFIG_SPL_SYS_MALLOC_SIZE=0x800000
|
||||
CONFIG_SPL_FS_EXT4=y
|
||||
CONFIG_SPL_I2C=y
|
||||
# CONFIG_SPL_NAND_SUPPORT is not set
|
||||
|
||||
@ -30,8 +30,8 @@ CONFIG_BOOTCOMMAND="if mmc dev 0; mmc rescan; then run sd_setup; else echo ERROR
|
||||
CONFIG_DEFAULT_FDT_FILE="am335x-shc"
|
||||
CONFIG_SYS_CONSOLE_INFO_QUIET=y
|
||||
CONFIG_SPL_SYS_MALLOC_SIMPLE=y
|
||||
CONFIG_SYS_SPL_MALLOC=y
|
||||
CONFIG_SYS_SPL_MALLOC_SIZE=0x800000
|
||||
CONFIG_SPL_SYS_MALLOC=y
|
||||
CONFIG_SPL_SYS_MALLOC_SIZE=0x800000
|
||||
CONFIG_SPL_FS_EXT4=y
|
||||
CONFIG_SPL_I2C=y
|
||||
# CONFIG_SPL_NAND_SUPPORT is not set
|
||||
|
||||
@ -33,8 +33,8 @@ CONFIG_BOOTCOMMAND="run fusecmd; if run netboot; then echo Booting from network;
|
||||
CONFIG_DEFAULT_FDT_FILE="am335x-shc"
|
||||
CONFIG_SYS_CONSOLE_INFO_QUIET=y
|
||||
CONFIG_SPL_SYS_MALLOC_SIMPLE=y
|
||||
CONFIG_SYS_SPL_MALLOC=y
|
||||
CONFIG_SYS_SPL_MALLOC_SIZE=0x800000
|
||||
CONFIG_SPL_SYS_MALLOC=y
|
||||
CONFIG_SPL_SYS_MALLOC_SIZE=0x800000
|
||||
CONFIG_SPL_ENV_SUPPORT=y
|
||||
CONFIG_SPL_FS_EXT4=y
|
||||
CONFIG_SPL_I2C=y
|
||||
|
||||
@ -33,8 +33,8 @@ CONFIG_BOOTCOMMAND="if mmc dev 0; mmc rescan; then run sd_setup; else echo ERROR
|
||||
CONFIG_DEFAULT_FDT_FILE="am335x-shc"
|
||||
CONFIG_SYS_CONSOLE_INFO_QUIET=y
|
||||
CONFIG_SPL_SYS_MALLOC_SIMPLE=y
|
||||
CONFIG_SYS_SPL_MALLOC=y
|
||||
CONFIG_SYS_SPL_MALLOC_SIZE=0x800000
|
||||
CONFIG_SPL_SYS_MALLOC=y
|
||||
CONFIG_SPL_SYS_MALLOC_SIZE=0x800000
|
||||
CONFIG_SPL_FS_EXT4=y
|
||||
CONFIG_SPL_I2C=y
|
||||
# CONFIG_SPL_NAND_SUPPORT is not set
|
||||
|
||||
@ -23,8 +23,8 @@ CONFIG_AUTOBOOT_PROMPT="Press SPACE to abort autoboot in %d seconds\n"
|
||||
CONFIG_AUTOBOOT_DELAY_STR="d"
|
||||
CONFIG_AUTOBOOT_STOP_STR=" "
|
||||
CONFIG_SYS_CONSOLE_INFO_QUIET=y
|
||||
CONFIG_SYS_SPL_MALLOC=y
|
||||
CONFIG_SYS_SPL_MALLOC_SIZE=0x800000
|
||||
CONFIG_SPL_SYS_MALLOC=y
|
||||
CONFIG_SPL_SYS_MALLOC_SIZE=0x800000
|
||||
CONFIG_SPL_ENV_SUPPORT=y
|
||||
CONFIG_SPL_FS_EXT4=y
|
||||
CONFIG_SPL_I2C=y
|
||||
|
||||
@ -21,8 +21,8 @@ CONFIG_BOOTDELAY=10
|
||||
CONFIG_BOOTCOMMAND="mmc dev ${mmcdev}; if mmc rescan; then echo SD/MMC found on device $mmcdev; if run loadbootenv; then run importbootenv; fi; echo Checking if uenvcmd is set ...; if test -n $uenvcmd; then echo Running uenvcmd ...; run uenvcmd; fi; echo Running default loadimage ...; setenv bootfile zImage; if run loadimage; then run loadfdt; run mmcboot; fi; else run nandboot; fi"
|
||||
CONFIG_SPL_MAX_SIZE=0xec00
|
||||
CONFIG_SPL_SYS_MALLOC_SIMPLE=y
|
||||
CONFIG_SYS_SPL_MALLOC=y
|
||||
CONFIG_SYS_SPL_MALLOC_SIZE=0x800000
|
||||
CONFIG_SPL_SYS_MALLOC=y
|
||||
CONFIG_SPL_SYS_MALLOC_SIZE=0x800000
|
||||
# CONFIG_SYS_MMCSD_RAW_MODE_U_BOOT_USE_SECTOR is not set
|
||||
# CONFIG_SPL_FS_EXT4 is not set
|
||||
# CONFIG_SPL_I2C is not set
|
||||
@ -32,7 +32,7 @@ CONFIG_SPL_NAND_ECC=y
|
||||
CONFIG_SPL_NAND_SIMPLE=y
|
||||
CONFIG_SPL_NAND_BASE=y
|
||||
CONFIG_SPL_OS_BOOT=y
|
||||
CONFIG_SYS_SPL_ARGS_ADDR=0x84000000
|
||||
CONFIG_SPL_PAYLOAD_ARGS_ADDR=0x84000000
|
||||
CONFIG_SYS_NAND_SPL_KERNEL_OFFS=0x2a0000
|
||||
CONFIG_SPL_FALCON_BOOT_MMCSD=y
|
||||
CONFIG_SYS_MMCSD_RAW_MODE_KERNEL_SECTOR=0x1700
|
||||
|
||||
@ -18,8 +18,8 @@ CONFIG_BOOTCOMMAND="run findfdt; run finduuid; run distro_bootcmd"
|
||||
CONFIG_SYS_CONSOLE_INFO_QUIET=y
|
||||
# CONFIG_MISC_INIT_R is not set
|
||||
CONFIG_SPL_MAX_SIZE=0x439e0
|
||||
CONFIG_SYS_SPL_MALLOC=y
|
||||
CONFIG_SYS_SPL_MALLOC_SIZE=0x800000
|
||||
CONFIG_SPL_SYS_MALLOC=y
|
||||
CONFIG_SPL_SYS_MALLOC_SIZE=0x800000
|
||||
CONFIG_SPL_ETH=y
|
||||
CONFIG_SPL_FS_LOAD_PAYLOAD_NAME="u-boot.img"
|
||||
CONFIG_SPL_MTD_SUPPORT=y
|
||||
|
||||
@ -18,8 +18,8 @@ CONFIG_BOOTCOMMAND="run findfdt; run finduuid; run distro_bootcmd"
|
||||
CONFIG_SYS_CONSOLE_INFO_QUIET=y
|
||||
# CONFIG_MISC_INIT_R is not set
|
||||
CONFIG_SPL_MAX_SIZE=0x439e0
|
||||
CONFIG_SYS_SPL_MALLOC=y
|
||||
CONFIG_SYS_SPL_MALLOC_SIZE=0x800000
|
||||
CONFIG_SPL_SYS_MALLOC=y
|
||||
CONFIG_SPL_SYS_MALLOC_SIZE=0x800000
|
||||
CONFIG_SPL_FS_LOAD_PAYLOAD_NAME="u-boot.img"
|
||||
CONFIG_SPL_MTD_SUPPORT=y
|
||||
CONFIG_SPL_NAND_DRIVERS=y
|
||||
|
||||
@ -17,8 +17,8 @@ CONFIG_BOOTCOMMAND="run findfdt; run finduuid; run distro_bootcmd"
|
||||
CONFIG_SYS_CONSOLE_INFO_QUIET=y
|
||||
# CONFIG_MISC_INIT_R is not set
|
||||
CONFIG_SPL_MAX_SIZE=0x37690
|
||||
CONFIG_SYS_SPL_MALLOC=y
|
||||
CONFIG_SYS_SPL_MALLOC_SIZE=0x800000
|
||||
CONFIG_SPL_SYS_MALLOC=y
|
||||
CONFIG_SPL_SYS_MALLOC_SIZE=0x800000
|
||||
CONFIG_SPL_FS_LOAD_PAYLOAD_NAME="u-boot.img"
|
||||
CONFIG_SPL_MTD_SUPPORT=y
|
||||
CONFIG_SPL_NAND_DRIVERS=y
|
||||
|
||||
@ -24,8 +24,8 @@ CONFIG_BOOTCOMMAND="run findfdt; run finduuid; run distro_bootcmd"
|
||||
CONFIG_SYS_CONSOLE_INFO_QUIET=y
|
||||
# CONFIG_MISC_INIT_R is not set
|
||||
CONFIG_SPL_MAX_SIZE=0x36100
|
||||
CONFIG_SYS_SPL_MALLOC=y
|
||||
CONFIG_SYS_SPL_MALLOC_SIZE=0x800000
|
||||
CONFIG_SPL_SYS_MALLOC=y
|
||||
CONFIG_SPL_SYS_MALLOC_SIZE=0x800000
|
||||
CONFIG_SPL_ETH=y
|
||||
CONFIG_SPL_FS_LOAD_PAYLOAD_NAME="u-boot.img"
|
||||
CONFIG_SPL_MTD_SUPPORT=y
|
||||
|
||||
@ -30,8 +30,8 @@ CONFIG_AVB_VERIFY=y
|
||||
CONFIG_ANDROID_AB=y
|
||||
CONFIG_SPL_MAX_SIZE=0x7bc00
|
||||
CONFIG_SPL_SYS_MALLOC_SIMPLE=y
|
||||
CONFIG_SYS_SPL_MALLOC=y
|
||||
CONFIG_SYS_SPL_MALLOC_SIZE=0x800000
|
||||
CONFIG_SPL_SYS_MALLOC=y
|
||||
CONFIG_SPL_SYS_MALLOC_SIZE=0x800000
|
||||
CONFIG_SPL_DMA=y
|
||||
CONFIG_SPL_FS_LOAD_PAYLOAD_NAME="u-boot.img"
|
||||
# CONFIG_SPL_NAND_SUPPORT is not set
|
||||
|
||||
@ -33,8 +33,8 @@ CONFIG_AVB_VERIFY=y
|
||||
CONFIG_ANDROID_AB=y
|
||||
CONFIG_SPL_MAX_SIZE=0x7a8b0
|
||||
CONFIG_SPL_SYS_MALLOC_SIMPLE=y
|
||||
CONFIG_SYS_SPL_MALLOC=y
|
||||
CONFIG_SYS_SPL_MALLOC_SIZE=0x800000
|
||||
CONFIG_SPL_SYS_MALLOC=y
|
||||
CONFIG_SPL_SYS_MALLOC_SIZE=0x800000
|
||||
CONFIG_SPL_DMA=y
|
||||
CONFIG_SPL_FS_LOAD_PAYLOAD_NAME="u-boot.img"
|
||||
# CONFIG_SPL_NAND_SUPPORT is not set
|
||||
|
||||
@ -35,8 +35,8 @@ CONFIG_AVB_VERIFY=y
|
||||
CONFIG_ANDROID_AB=y
|
||||
CONFIG_SPL_MAX_SIZE=0x74eb0
|
||||
CONFIG_SPL_SYS_MALLOC_SIMPLE=y
|
||||
CONFIG_SYS_SPL_MALLOC=y
|
||||
CONFIG_SYS_SPL_MALLOC_SIZE=0x800000
|
||||
CONFIG_SPL_SYS_MALLOC=y
|
||||
CONFIG_SPL_SYS_MALLOC_SIZE=0x800000
|
||||
CONFIG_SPL_DMA=y
|
||||
CONFIG_SPL_FS_LOAD_PAYLOAD_NAME="u-boot.img"
|
||||
# CONFIG_SPL_NAND_SUPPORT is not set
|
||||
|
||||
@ -36,9 +36,9 @@ CONFIG_SPL_SYS_REPORT_STACK_F_USAGE=y
|
||||
CONFIG_SPL_SYS_MALLOC_SIMPLE=y
|
||||
CONFIG_SPL_STACK_R=y
|
||||
CONFIG_SPL_SEPARATE_BSS=y
|
||||
CONFIG_SYS_SPL_MALLOC=y
|
||||
CONFIG_HAS_CUSTOM_SPL_MALLOC_START=y
|
||||
CONFIG_CUSTOM_SYS_SPL_MALLOC_ADDR=0x84000000
|
||||
CONFIG_SPL_SYS_MALLOC=y
|
||||
CONFIG_SPL_HAS_CUSTOM_MALLOC_START=y
|
||||
CONFIG_SPL_CUSTOM_SYS_MALLOC_ADDR=0x84000000
|
||||
CONFIG_SPL_EARLY_BSS=y
|
||||
CONFIG_SYS_MMCSD_RAW_MODE_U_BOOT_USE_SECTOR=y
|
||||
CONFIG_SYS_MMCSD_RAW_MODE_U_BOOT_SECTOR=0x400
|
||||
|
||||
@ -43,10 +43,10 @@ CONFIG_SPL_SYS_REPORT_STACK_F_USAGE=y
|
||||
CONFIG_SPL_SYS_MALLOC_SIMPLE=y
|
||||
CONFIG_SPL_STACK_R=y
|
||||
CONFIG_SPL_SEPARATE_BSS=y
|
||||
CONFIG_SYS_SPL_MALLOC=y
|
||||
CONFIG_HAS_CUSTOM_SPL_MALLOC_START=y
|
||||
CONFIG_CUSTOM_SYS_SPL_MALLOC_ADDR=0x84000000
|
||||
CONFIG_SYS_SPL_MALLOC_SIZE=0x1000000
|
||||
CONFIG_SPL_SYS_MALLOC=y
|
||||
CONFIG_SPL_HAS_CUSTOM_MALLOC_START=y
|
||||
CONFIG_SPL_CUSTOM_SYS_MALLOC_ADDR=0x84000000
|
||||
CONFIG_SPL_SYS_MALLOC_SIZE=0x1000000
|
||||
CONFIG_SPL_EARLY_BSS=y
|
||||
CONFIG_SYS_MMCSD_RAW_MODE_U_BOOT_USE_SECTOR=y
|
||||
CONFIG_SYS_MMCSD_RAW_MODE_U_BOOT_SECTOR=0x400
|
||||
|
||||
@ -41,8 +41,8 @@ CONFIG_SPL_BSS_MAX_SIZE=0x80000
|
||||
CONFIG_SPL_BOARD_INIT=y
|
||||
CONFIG_SPL_SYS_MALLOC_SIMPLE=y
|
||||
CONFIG_SPL_STACK_R=y
|
||||
CONFIG_SYS_SPL_MALLOC=y
|
||||
CONFIG_SYS_SPL_MALLOC_SIZE=0x800000
|
||||
CONFIG_SPL_SYS_MALLOC=y
|
||||
CONFIG_SPL_SYS_MALLOC_SIZE=0x800000
|
||||
CONFIG_SYS_MMCSD_RAW_MODE_U_BOOT_USE_SECTOR=y
|
||||
CONFIG_SYS_MMCSD_RAW_MODE_U_BOOT_SECTOR=0x1400
|
||||
CONFIG_SPL_DMA=y
|
||||
|
||||
@ -44,10 +44,10 @@ CONFIG_SPL_BOARD_INIT=y
|
||||
CONFIG_SPL_SYS_MALLOC_SIMPLE=y
|
||||
CONFIG_SPL_STACK_R=y
|
||||
CONFIG_SPL_SEPARATE_BSS=y
|
||||
CONFIG_SYS_SPL_MALLOC=y
|
||||
CONFIG_HAS_CUSTOM_SPL_MALLOC_START=y
|
||||
CONFIG_CUSTOM_SYS_SPL_MALLOC_ADDR=0x84000000
|
||||
CONFIG_SYS_SPL_MALLOC_SIZE=0x1000000
|
||||
CONFIG_SPL_SYS_MALLOC=y
|
||||
CONFIG_SPL_HAS_CUSTOM_MALLOC_START=y
|
||||
CONFIG_SPL_CUSTOM_SYS_MALLOC_ADDR=0x84000000
|
||||
CONFIG_SPL_SYS_MALLOC_SIZE=0x1000000
|
||||
CONFIG_SPL_EARLY_BSS=y
|
||||
CONFIG_SYS_MMCSD_RAW_MODE_U_BOOT_USE_SECTOR=y
|
||||
CONFIG_SYS_MMCSD_RAW_MODE_U_BOOT_SECTOR=0x400
|
||||
|
||||
@ -43,8 +43,8 @@ CONFIG_SPL_BSS_START_ADDR=0x80a00000
|
||||
CONFIG_SPL_BSS_MAX_SIZE=0x80000
|
||||
CONFIG_SPL_SYS_MALLOC_SIMPLE=y
|
||||
CONFIG_SPL_STACK_R=y
|
||||
CONFIG_SYS_SPL_MALLOC=y
|
||||
CONFIG_SYS_SPL_MALLOC_SIZE=0x800000
|
||||
CONFIG_SPL_SYS_MALLOC=y
|
||||
CONFIG_SPL_SYS_MALLOC_SIZE=0x800000
|
||||
CONFIG_SYS_MMCSD_RAW_MODE_U_BOOT_USE_SECTOR=y
|
||||
CONFIG_SYS_MMCSD_RAW_MODE_U_BOOT_SECTOR=0x1400
|
||||
CONFIG_SPL_DMA=y
|
||||
|
||||
@ -40,10 +40,10 @@ CONFIG_SPL_BSS_MAX_SIZE=0xc00
|
||||
CONFIG_SPL_SYS_REPORT_STACK_F_USAGE=y
|
||||
CONFIG_SPL_STACK_R=y
|
||||
CONFIG_SPL_SEPARATE_BSS=y
|
||||
CONFIG_SYS_SPL_MALLOC=y
|
||||
CONFIG_HAS_CUSTOM_SPL_MALLOC_START=y
|
||||
CONFIG_CUSTOM_SYS_SPL_MALLOC_ADDR=0x84000000
|
||||
CONFIG_SYS_SPL_MALLOC_SIZE=0x1000000
|
||||
CONFIG_SPL_SYS_MALLOC=y
|
||||
CONFIG_SPL_HAS_CUSTOM_MALLOC_START=y
|
||||
CONFIG_SPL_CUSTOM_SYS_MALLOC_ADDR=0x84000000
|
||||
CONFIG_SPL_SYS_MALLOC_SIZE=0x1000000
|
||||
CONFIG_SPL_EARLY_BSS=y
|
||||
CONFIG_SYS_MMCSD_RAW_MODE_U_BOOT_USE_SECTOR=y
|
||||
CONFIG_SYS_MMCSD_RAW_MODE_U_BOOT_SECTOR=0x400
|
||||
|
||||
@ -37,10 +37,10 @@ CONFIG_SPL_BSS_MAX_SIZE=0xc00
|
||||
CONFIG_SPL_SYS_REPORT_STACK_F_USAGE=y
|
||||
CONFIG_SPL_STACK_R=y
|
||||
CONFIG_SPL_SEPARATE_BSS=y
|
||||
CONFIG_SYS_SPL_MALLOC=y
|
||||
CONFIG_HAS_CUSTOM_SPL_MALLOC_START=y
|
||||
CONFIG_CUSTOM_SYS_SPL_MALLOC_ADDR=0x84000000
|
||||
CONFIG_SYS_SPL_MALLOC_SIZE=0x1000000
|
||||
CONFIG_SPL_SYS_MALLOC=y
|
||||
CONFIG_SPL_HAS_CUSTOM_MALLOC_START=y
|
||||
CONFIG_SPL_CUSTOM_SYS_MALLOC_ADDR=0x84000000
|
||||
CONFIG_SPL_SYS_MALLOC_SIZE=0x1000000
|
||||
CONFIG_SPL_EARLY_BSS=y
|
||||
CONFIG_SPL_DMA=y
|
||||
CONFIG_SPL_ENV_SUPPORT=y
|
||||
|
||||
@ -36,10 +36,10 @@ CONFIG_SPL_BSS_MAX_SIZE=0xc00
|
||||
CONFIG_SPL_SYS_REPORT_STACK_F_USAGE=y
|
||||
CONFIG_SPL_STACK_R=y
|
||||
CONFIG_SPL_SEPARATE_BSS=y
|
||||
CONFIG_SYS_SPL_MALLOC=y
|
||||
CONFIG_HAS_CUSTOM_SPL_MALLOC_START=y
|
||||
CONFIG_CUSTOM_SYS_SPL_MALLOC_ADDR=0x84000000
|
||||
CONFIG_SYS_SPL_MALLOC_SIZE=0x1000000
|
||||
CONFIG_SPL_SYS_MALLOC=y
|
||||
CONFIG_SPL_HAS_CUSTOM_MALLOC_START=y
|
||||
CONFIG_SPL_CUSTOM_SYS_MALLOC_ADDR=0x84000000
|
||||
CONFIG_SPL_SYS_MALLOC_SIZE=0x1000000
|
||||
CONFIG_SPL_EARLY_BSS=y
|
||||
CONFIG_SPL_DMA=y
|
||||
CONFIG_SPL_ENV_SUPPORT=y
|
||||
|
||||
@ -43,8 +43,8 @@ CONFIG_SPL_BSS_START_ADDR=0x80a00000
|
||||
CONFIG_SPL_BSS_MAX_SIZE=0x80000
|
||||
CONFIG_SPL_SYS_MALLOC_SIMPLE=y
|
||||
CONFIG_SPL_STACK_R=y
|
||||
CONFIG_SYS_SPL_MALLOC=y
|
||||
CONFIG_SYS_SPL_MALLOC_SIZE=0x800000
|
||||
CONFIG_SPL_SYS_MALLOC=y
|
||||
CONFIG_SPL_SYS_MALLOC_SIZE=0x800000
|
||||
CONFIG_SYS_MMCSD_RAW_MODE_U_BOOT_USE_SECTOR=y
|
||||
CONFIG_SYS_MMCSD_RAW_MODE_U_BOOT_SECTOR=0x1400
|
||||
CONFIG_SPL_DMA=y
|
||||
|
||||
@ -36,10 +36,10 @@ CONFIG_SPL_BSS_START_ADDR=0x41c7effc
|
||||
CONFIG_SPL_BSS_MAX_SIZE=0xc00
|
||||
CONFIG_SPL_STACK_R=y
|
||||
CONFIG_SPL_SEPARATE_BSS=y
|
||||
CONFIG_SYS_SPL_MALLOC=y
|
||||
CONFIG_HAS_CUSTOM_SPL_MALLOC_START=y
|
||||
CONFIG_CUSTOM_SYS_SPL_MALLOC_ADDR=0x84000000
|
||||
CONFIG_SYS_SPL_MALLOC_SIZE=0x1000000
|
||||
CONFIG_SPL_SYS_MALLOC=y
|
||||
CONFIG_SPL_HAS_CUSTOM_MALLOC_START=y
|
||||
CONFIG_SPL_CUSTOM_SYS_MALLOC_ADDR=0x84000000
|
||||
CONFIG_SPL_SYS_MALLOC_SIZE=0x1000000
|
||||
CONFIG_SPL_EARLY_BSS=y
|
||||
CONFIG_SYS_MMCSD_RAW_MODE_U_BOOT_USE_SECTOR=y
|
||||
CONFIG_SYS_MMCSD_RAW_MODE_U_BOOT_SECTOR=0x400
|
||||
|
||||
@ -28,10 +28,10 @@ CONFIG_ARCH_MISC_INIT=y
|
||||
CONFIG_SPL_FOOTPRINT_LIMIT=y
|
||||
CONFIG_SPL_MAX_FOOTPRINT=0x8000
|
||||
# CONFIG_SPL_SHARES_INIT_SP_ADDR is not set
|
||||
CONFIG_SYS_SPL_MALLOC=y
|
||||
CONFIG_HAS_CUSTOM_SPL_MALLOC_START=y
|
||||
CONFIG_CUSTOM_SYS_SPL_MALLOC_ADDR=0x80090000
|
||||
CONFIG_SYS_SPL_MALLOC_SIZE=0x10000
|
||||
CONFIG_SPL_SYS_MALLOC=y
|
||||
CONFIG_SPL_HAS_CUSTOM_MALLOC_START=y
|
||||
CONFIG_SPL_CUSTOM_SYS_MALLOC_ADDR=0x80090000
|
||||
CONFIG_SPL_SYS_MALLOC_SIZE=0x10000
|
||||
CONFIG_SYS_PROMPT="Apalis TK1 # "
|
||||
CONFIG_SYS_MAXARGS=32
|
||||
CONFIG_SYS_CBSIZE=1024
|
||||
|
||||
@ -39,7 +39,7 @@ CONFIG_SYS_CONSOLE_OVERWRITE_ROUTINE=y
|
||||
CONFIG_DISPLAY_BOARDINFO_LATE=y
|
||||
CONFIG_BOARD_EARLY_INIT_F=y
|
||||
CONFIG_MISC_INIT_R=y
|
||||
CONFIG_SYS_SPL_MALLOC=y
|
||||
CONFIG_SPL_SYS_MALLOC=y
|
||||
CONFIG_SPL_DMA=y
|
||||
CONFIG_SPL_I2C=y
|
||||
CONFIG_SYS_PROMPT="Apalis iMX6 # "
|
||||
|
||||
@ -23,10 +23,10 @@ CONFIG_ARCH_MISC_INIT=y
|
||||
CONFIG_SPL_FOOTPRINT_LIMIT=y
|
||||
CONFIG_SPL_MAX_FOOTPRINT=0x8000
|
||||
# CONFIG_SPL_SHARES_INIT_SP_ADDR is not set
|
||||
CONFIG_SYS_SPL_MALLOC=y
|
||||
CONFIG_HAS_CUSTOM_SPL_MALLOC_START=y
|
||||
CONFIG_CUSTOM_SYS_SPL_MALLOC_ADDR=0x80090000
|
||||
CONFIG_SYS_SPL_MALLOC_SIZE=0x10000
|
||||
CONFIG_SPL_SYS_MALLOC=y
|
||||
CONFIG_SPL_HAS_CUSTOM_MALLOC_START=y
|
||||
CONFIG_SPL_CUSTOM_SYS_MALLOC_ADDR=0x80090000
|
||||
CONFIG_SPL_SYS_MALLOC_SIZE=0x10000
|
||||
CONFIG_SYS_PROMPT="Apalis T30 # "
|
||||
CONFIG_SYS_MAXARGS=32
|
||||
CONFIG_SYS_CBSIZE=1024
|
||||
|
||||
@ -44,10 +44,10 @@ CONFIG_SPL_BSS_MAX_SIZE=0x600
|
||||
# CONFIG_SPL_LEGACY_IMAGE_FORMAT is not set
|
||||
CONFIG_SPL_SYS_MALLOC_SIMPLE=y
|
||||
# CONFIG_SPL_SHARES_INIT_SP_ADDR is not set
|
||||
CONFIG_SYS_SPL_MALLOC=y
|
||||
CONFIG_HAS_CUSTOM_SPL_MALLOC_START=y
|
||||
CONFIG_CUSTOM_SYS_SPL_MALLOC_ADDR=0x20ba0000
|
||||
CONFIG_SYS_SPL_MALLOC_SIZE=0x460000
|
||||
CONFIG_SPL_SYS_MALLOC=y
|
||||
CONFIG_SPL_HAS_CUSTOM_MALLOC_START=y
|
||||
CONFIG_SPL_CUSTOM_SYS_MALLOC_ADDR=0x20ba0000
|
||||
CONFIG_SPL_SYS_MALLOC_SIZE=0x460000
|
||||
CONFIG_SPL_NAND_SUPPORT=y
|
||||
CONFIG_SPL_NAND_RAW_ONLY=y
|
||||
CONFIG_SPL_NAND_DRIVERS=y
|
||||
|
||||
@ -21,10 +21,10 @@ CONFIG_SYS_STDIO_DEREGISTER=y
|
||||
CONFIG_SPL_FOOTPRINT_LIMIT=y
|
||||
CONFIG_SPL_MAX_FOOTPRINT=0x8000
|
||||
# CONFIG_SPL_SHARES_INIT_SP_ADDR is not set
|
||||
CONFIG_SYS_SPL_MALLOC=y
|
||||
CONFIG_HAS_CUSTOM_SPL_MALLOC_START=y
|
||||
CONFIG_CUSTOM_SYS_SPL_MALLOC_ADDR=0x80090000
|
||||
CONFIG_SYS_SPL_MALLOC_SIZE=0x10000
|
||||
CONFIG_SPL_SYS_MALLOC=y
|
||||
CONFIG_SPL_HAS_CUSTOM_MALLOC_START=y
|
||||
CONFIG_SPL_CUSTOM_SYS_MALLOC_ADDR=0x80090000
|
||||
CONFIG_SPL_SYS_MALLOC_SIZE=0x10000
|
||||
CONFIG_SYS_PROMPT="Tegra30 (Beaver) # "
|
||||
CONFIG_SYS_MAXARGS=64
|
||||
CONFIG_SYS_PBSIZE=2084
|
||||
|
||||
@ -33,8 +33,8 @@ CONFIG_SPL_BSS_START_ADDR=0x100000
|
||||
CONFIG_SPL_BSS_MAX_SIZE=0x100000
|
||||
# CONFIG_SPL_SHARES_INIT_SP_ADDR is not set
|
||||
CONFIG_SPL_STACK_R=y
|
||||
CONFIG_SYS_SPL_MALLOC=y
|
||||
CONFIG_SYS_SPL_MALLOC_SIZE=0x2000000
|
||||
CONFIG_SPL_SYS_MALLOC=y
|
||||
CONFIG_SPL_SYS_MALLOC_SIZE=0x2000000
|
||||
CONFIG_HUSH_PARSER=y
|
||||
CONFIG_SYS_PROMPT="antminer> "
|
||||
CONFIG_SYS_MAXARGS=32
|
||||
|
||||
@ -37,8 +37,8 @@ CONFIG_SYS_CONSOLE_INFO_QUIET=y
|
||||
# CONFIG_DISPLAY_BOARDINFO is not set
|
||||
CONFIG_ARCH_MISC_INIT=y
|
||||
CONFIG_SPL_SYS_MALLOC_SIMPLE=y
|
||||
CONFIG_SYS_SPL_MALLOC=y
|
||||
CONFIG_SYS_SPL_MALLOC_SIZE=0x500000
|
||||
CONFIG_SPL_SYS_MALLOC=y
|
||||
CONFIG_SPL_SYS_MALLOC_SIZE=0x500000
|
||||
CONFIG_SPL_I2C=y
|
||||
# CONFIG_SPL_NAND_SUPPORT is not set
|
||||
CONFIG_SPL_POWER=y
|
||||
|
||||
@ -32,7 +32,7 @@ CONFIG_USE_BOOTCOMMAND=y
|
||||
CONFIG_BOOTCOMMAND="run b_default"
|
||||
CONFIG_BOARD_EARLY_INIT_F=y
|
||||
CONFIG_SPL_BOARD_INIT=y
|
||||
CONFIG_SYS_SPL_MALLOC=y
|
||||
CONFIG_SPL_SYS_MALLOC=y
|
||||
# CONFIG_SYS_MMCSD_RAW_MODE_U_BOOT_USE_SECTOR is not set
|
||||
CONFIG_SPL_I2C=y
|
||||
CONFIG_SPL_DM_SPI_FLASH=y
|
||||
|
||||
@ -38,8 +38,8 @@ CONFIG_BOARD_TYPES=y
|
||||
CONFIG_ARCH_MISC_INIT=y
|
||||
# CONFIG_SPL_RAW_IMAGE_SUPPORT is not set
|
||||
CONFIG_SPL_SYS_MALLOC_SIMPLE=y
|
||||
CONFIG_SYS_SPL_MALLOC=y
|
||||
CONFIG_SYS_SPL_MALLOC_SIZE=0x500000
|
||||
CONFIG_SPL_SYS_MALLOC=y
|
||||
CONFIG_SPL_SYS_MALLOC_SIZE=0x500000
|
||||
# CONFIG_SYS_MMCSD_RAW_MODE_U_BOOT_USE_SECTOR is not set
|
||||
CONFIG_SPL_I2C=y
|
||||
# CONFIG_SPL_NAND_SUPPORT is not set
|
||||
|
||||
@ -34,8 +34,8 @@ CONFIG_SYS_CONSOLE_INFO_QUIET=y
|
||||
# CONFIG_DISPLAY_BOARDINFO is not set
|
||||
CONFIG_ARCH_MISC_INIT=y
|
||||
CONFIG_SPL_SYS_MALLOC_SIMPLE=y
|
||||
CONFIG_SYS_SPL_MALLOC=y
|
||||
CONFIG_SYS_SPL_MALLOC_SIZE=0x500000
|
||||
CONFIG_SPL_SYS_MALLOC=y
|
||||
CONFIG_SPL_SYS_MALLOC_SIZE=0x500000
|
||||
CONFIG_SPL_I2C=y
|
||||
# CONFIG_SPL_NAND_SUPPORT is not set
|
||||
CONFIG_SPL_POWER=y
|
||||
|
||||
@ -20,10 +20,10 @@ CONFIG_SYS_STDIO_DEREGISTER=y
|
||||
CONFIG_SPL_FOOTPRINT_LIMIT=y
|
||||
CONFIG_SPL_MAX_FOOTPRINT=0x8000
|
||||
# CONFIG_SPL_SHARES_INIT_SP_ADDR is not set
|
||||
CONFIG_SYS_SPL_MALLOC=y
|
||||
CONFIG_HAS_CUSTOM_SPL_MALLOC_START=y
|
||||
CONFIG_CUSTOM_SYS_SPL_MALLOC_ADDR=0x80090000
|
||||
CONFIG_SYS_SPL_MALLOC_SIZE=0x10000
|
||||
CONFIG_SPL_SYS_MALLOC=y
|
||||
CONFIG_SPL_HAS_CUSTOM_MALLOC_START=y
|
||||
CONFIG_SPL_CUSTOM_SYS_MALLOC_ADDR=0x80090000
|
||||
CONFIG_SPL_SYS_MALLOC_SIZE=0x10000
|
||||
CONFIG_SYS_PROMPT="Tegra30 (Cardhu) # "
|
||||
CONFIG_SYS_MAXARGS=64
|
||||
CONFIG_SYS_PBSIZE=2084
|
||||
|
||||
@ -24,10 +24,10 @@ CONFIG_SYS_STDIO_DEREGISTER=y
|
||||
CONFIG_SPL_FOOTPRINT_LIMIT=y
|
||||
CONFIG_SPL_MAX_FOOTPRINT=0x8000
|
||||
# CONFIG_SPL_SHARES_INIT_SP_ADDR is not set
|
||||
CONFIG_SYS_SPL_MALLOC=y
|
||||
CONFIG_HAS_CUSTOM_SPL_MALLOC_START=y
|
||||
CONFIG_CUSTOM_SYS_SPL_MALLOC_ADDR=0x80090000
|
||||
CONFIG_SYS_SPL_MALLOC_SIZE=0x10000
|
||||
CONFIG_SPL_SYS_MALLOC=y
|
||||
CONFIG_SPL_HAS_CUSTOM_MALLOC_START=y
|
||||
CONFIG_SPL_CUSTOM_SYS_MALLOC_ADDR=0x80090000
|
||||
CONFIG_SPL_SYS_MALLOC_SIZE=0x10000
|
||||
CONFIG_SYS_PROMPT="Tegra124 (TK1-SOM) # "
|
||||
CONFIG_SYS_MAXARGS=64
|
||||
CONFIG_SYS_PBSIZE=2086
|
||||
|
||||
@ -36,10 +36,10 @@ CONFIG_SPL_BSS_MAX_SIZE=0x1000
|
||||
# CONFIG_SPL_BINMAN_UBOOT_SYMBOLS is not set
|
||||
CONFIG_SPL_BOARD_INIT=y
|
||||
# CONFIG_SPL_SHARES_INIT_SP_ADDR is not set
|
||||
CONFIG_SYS_SPL_MALLOC=y
|
||||
CONFIG_HAS_CUSTOM_SPL_MALLOC_START=y
|
||||
CONFIG_CUSTOM_SYS_SPL_MALLOC_ADDR=0x120000
|
||||
CONFIG_SYS_SPL_MALLOC_SIZE=0x3000
|
||||
CONFIG_SPL_SYS_MALLOC=y
|
||||
CONFIG_SPL_HAS_CUSTOM_MALLOC_START=y
|
||||
CONFIG_SPL_CUSTOM_SYS_MALLOC_ADDR=0x120000
|
||||
CONFIG_SPL_SYS_MALLOC_SIZE=0x3000
|
||||
CONFIG_SYS_MMCSD_RAW_MODE_U_BOOT_USE_SECTOR=y
|
||||
CONFIG_SYS_MMCSD_RAW_MODE_U_BOOT_SECTOR=0x800
|
||||
CONFIG_SYS_MMCSD_FS_BOOT_PARTITION=0
|
||||
|
||||
@ -24,8 +24,8 @@ CONFIG_BOOTCOMMAND="run mmcboot; run nandboot; run netboot"
|
||||
CONFIG_DEFAULT_FDT_FILE="am335x-chiliboard.dtb"
|
||||
CONFIG_SYS_CONSOLE_INFO_QUIET=y
|
||||
CONFIG_ARCH_MISC_INIT=y
|
||||
CONFIG_SYS_SPL_MALLOC=y
|
||||
CONFIG_SYS_SPL_MALLOC_SIZE=0x800000
|
||||
CONFIG_SPL_SYS_MALLOC=y
|
||||
CONFIG_SPL_SYS_MALLOC_SIZE=0x800000
|
||||
CONFIG_SPL_I2C=y
|
||||
CONFIG_SPL_NAND_DRIVERS=y
|
||||
CONFIG_SPL_NAND_ECC=y
|
||||
|
||||
@ -31,7 +31,7 @@ CONFIG_SPL_MAX_SIZE=0xe000
|
||||
CONFIG_SPL_HAS_BSS_LINKER_SECTION=y
|
||||
CONFIG_SPL_BSS_MAX_SIZE=0x100000
|
||||
CONFIG_SPL_BOARD_INIT=y
|
||||
CONFIG_SYS_SPL_MALLOC=y
|
||||
CONFIG_SPL_SYS_MALLOC=y
|
||||
CONFIG_SYS_MMCSD_RAW_MODE_U_BOOT_SECTOR=0x80
|
||||
CONFIG_SPL_I2C=y
|
||||
CONFIG_SPL_SPI_LOAD=y
|
||||
|
||||
@ -33,7 +33,7 @@ CONFIG_BOOTCOMMAND="run findfdt; run distro_bootcmd; run legacy_bootcmd"
|
||||
CONFIG_USE_PREBOOT=y
|
||||
CONFIG_PREBOOT="usb start;sf probe"
|
||||
CONFIG_MISC_INIT_R=y
|
||||
CONFIG_SYS_SPL_MALLOC=y
|
||||
CONFIG_SPL_SYS_MALLOC=y
|
||||
CONFIG_SYS_MMCSD_RAW_MODE_U_BOOT_SECTOR=0x80
|
||||
CONFIG_SPL_I2C=y
|
||||
CONFIG_SPL_SPI_LOAD=y
|
||||
|
||||
@ -32,8 +32,8 @@ CONFIG_SYS_CONSOLE_INFO_QUIET=y
|
||||
# CONFIG_DISPLAY_BOARDINFO is not set
|
||||
# CONFIG_MISC_INIT_R is not set
|
||||
CONFIG_SPL_MAX_SIZE=0x37690
|
||||
CONFIG_SYS_SPL_MALLOC=y
|
||||
CONFIG_SYS_SPL_MALLOC_SIZE=0x800000
|
||||
CONFIG_SPL_SYS_MALLOC=y
|
||||
CONFIG_SPL_SYS_MALLOC_SIZE=0x800000
|
||||
CONFIG_SYS_MMCSD_RAW_MODE_U_BOOT_SECTOR=0x480
|
||||
CONFIG_SPL_FS_EXT4=y
|
||||
CONFIG_SPL_I2C=y
|
||||
|
||||
@ -38,7 +38,7 @@ CONFIG_SYS_CONSOLE_OVERWRITE_ROUTINE=y
|
||||
CONFIG_DISPLAY_BOARDINFO_LATE=y
|
||||
CONFIG_BOARD_EARLY_INIT_F=y
|
||||
CONFIG_MISC_INIT_R=y
|
||||
CONFIG_SYS_SPL_MALLOC=y
|
||||
CONFIG_SPL_SYS_MALLOC=y
|
||||
CONFIG_SPL_DMA=y
|
||||
CONFIG_SPL_I2C=y
|
||||
CONFIG_SYS_PROMPT="Colibri iMX6 # "
|
||||
|
||||
@ -21,10 +21,10 @@ CONFIG_ARCH_MISC_INIT=y
|
||||
CONFIG_SPL_FOOTPRINT_LIMIT=y
|
||||
CONFIG_SPL_MAX_FOOTPRINT=0x8000
|
||||
# CONFIG_SPL_SHARES_INIT_SP_ADDR is not set
|
||||
CONFIG_SYS_SPL_MALLOC=y
|
||||
CONFIG_HAS_CUSTOM_SPL_MALLOC_START=y
|
||||
CONFIG_CUSTOM_SYS_SPL_MALLOC_ADDR=0x90000
|
||||
CONFIG_SYS_SPL_MALLOC_SIZE=0x10000
|
||||
CONFIG_SPL_SYS_MALLOC=y
|
||||
CONFIG_SPL_HAS_CUSTOM_MALLOC_START=y
|
||||
CONFIG_SPL_CUSTOM_SYS_MALLOC_ADDR=0x90000
|
||||
CONFIG_SPL_SYS_MALLOC_SIZE=0x10000
|
||||
CONFIG_SYS_PROMPT="Colibri T20 # "
|
||||
CONFIG_SYS_MAXARGS=32
|
||||
CONFIG_SYS_CBSIZE=1024
|
||||
|
||||
@ -22,10 +22,10 @@ CONFIG_ARCH_MISC_INIT=y
|
||||
CONFIG_SPL_FOOTPRINT_LIMIT=y
|
||||
CONFIG_SPL_MAX_FOOTPRINT=0x8000
|
||||
# CONFIG_SPL_SHARES_INIT_SP_ADDR is not set
|
||||
CONFIG_SYS_SPL_MALLOC=y
|
||||
CONFIG_HAS_CUSTOM_SPL_MALLOC_START=y
|
||||
CONFIG_CUSTOM_SYS_SPL_MALLOC_ADDR=0x80090000
|
||||
CONFIG_SYS_SPL_MALLOC_SIZE=0x10000
|
||||
CONFIG_SPL_SYS_MALLOC=y
|
||||
CONFIG_SPL_HAS_CUSTOM_MALLOC_START=y
|
||||
CONFIG_SPL_CUSTOM_SYS_MALLOC_ADDR=0x80090000
|
||||
CONFIG_SPL_SYS_MALLOC_SIZE=0x10000
|
||||
CONFIG_SYS_PROMPT="Colibri T30 # "
|
||||
CONFIG_SYS_MAXARGS=32
|
||||
CONFIG_SYS_CBSIZE=1024
|
||||
|
||||
@ -45,10 +45,10 @@ CONFIG_SPL_FOOTPRINT_LIMIT=y
|
||||
CONFIG_SPL_MAX_FOOTPRINT=0x8000
|
||||
CONFIG_SPL_SYS_MALLOC_SIMPLE=y
|
||||
# CONFIG_SPL_SHARES_INIT_SP_ADDR is not set
|
||||
CONFIG_SYS_SPL_MALLOC=y
|
||||
CONFIG_HAS_CUSTOM_SPL_MALLOC_START=y
|
||||
CONFIG_CUSTOM_SYS_SPL_MALLOC_ADDR=0xc0f70000
|
||||
CONFIG_SYS_SPL_MALLOC_SIZE=0x110000
|
||||
CONFIG_SPL_SYS_MALLOC=y
|
||||
CONFIG_SPL_HAS_CUSTOM_MALLOC_START=y
|
||||
CONFIG_SPL_CUSTOM_SYS_MALLOC_ADDR=0xc0f70000
|
||||
CONFIG_SPL_SYS_MALLOC_SIZE=0x110000
|
||||
# CONFIG_SYS_MMCSD_RAW_MODE_U_BOOT_USE_SECTOR is not set
|
||||
CONFIG_SPL_DM_SPI_FLASH=y
|
||||
CONFIG_SPL_SPI_LOAD=y
|
||||
|
||||
@ -41,10 +41,10 @@ CONFIG_SPL_FOOTPRINT_LIMIT=y
|
||||
CONFIG_SPL_MAX_FOOTPRINT=0x8000
|
||||
CONFIG_SPL_SYS_MALLOC_SIMPLE=y
|
||||
# CONFIG_SPL_SHARES_INIT_SP_ADDR is not set
|
||||
CONFIG_SYS_SPL_MALLOC=y
|
||||
CONFIG_HAS_CUSTOM_SPL_MALLOC_START=y
|
||||
CONFIG_CUSTOM_SYS_SPL_MALLOC_ADDR=0xc0f70000
|
||||
CONFIG_SYS_SPL_MALLOC_SIZE=0x110000
|
||||
CONFIG_SPL_SYS_MALLOC=y
|
||||
CONFIG_SPL_HAS_CUSTOM_MALLOC_START=y
|
||||
CONFIG_SPL_CUSTOM_SYS_MALLOC_ADDR=0xc0f70000
|
||||
CONFIG_SPL_SYS_MALLOC_SIZE=0x110000
|
||||
# CONFIG_SYS_MMCSD_RAW_MODE_U_BOOT_USE_SECTOR is not set
|
||||
CONFIG_SPL_NAND_SUPPORT=y
|
||||
CONFIG_SPL_NAND_DRIVERS=y
|
||||
|
||||
@ -20,10 +20,10 @@ CONFIG_SYS_STDIO_DEREGISTER=y
|
||||
CONFIG_SPL_FOOTPRINT_LIMIT=y
|
||||
CONFIG_SPL_MAX_FOOTPRINT=0x8000
|
||||
# CONFIG_SPL_SHARES_INIT_SP_ADDR is not set
|
||||
CONFIG_SYS_SPL_MALLOC=y
|
||||
CONFIG_HAS_CUSTOM_SPL_MALLOC_START=y
|
||||
CONFIG_CUSTOM_SYS_SPL_MALLOC_ADDR=0x80090000
|
||||
CONFIG_SYS_SPL_MALLOC_SIZE=0x10000
|
||||
CONFIG_SPL_SYS_MALLOC=y
|
||||
CONFIG_SPL_HAS_CUSTOM_MALLOC_START=y
|
||||
CONFIG_SPL_CUSTOM_SYS_MALLOC_ADDR=0x80090000
|
||||
CONFIG_SPL_SYS_MALLOC_SIZE=0x10000
|
||||
CONFIG_SYS_PROMPT="Tegra114 (Dalmore) # "
|
||||
CONFIG_SYS_MAXARGS=64
|
||||
CONFIG_SYS_PBSIZE=2086
|
||||
|
||||
@ -46,10 +46,10 @@ CONFIG_SPL_BSS_MAX_SIZE=0x1000
|
||||
CONFIG_SPL_BOARD_INIT=y
|
||||
CONFIG_SPL_SYS_MALLOC_SIMPLE=y
|
||||
# CONFIG_SPL_SHARES_INIT_SP_ADDR is not set
|
||||
CONFIG_SYS_SPL_MALLOC=y
|
||||
CONFIG_HAS_CUSTOM_SPL_MALLOC_START=y
|
||||
CONFIG_CUSTOM_SYS_SPL_MALLOC_ADDR=0x120000
|
||||
CONFIG_SYS_SPL_MALLOC_SIZE=0x3000
|
||||
CONFIG_SPL_SYS_MALLOC=y
|
||||
CONFIG_SPL_HAS_CUSTOM_MALLOC_START=y
|
||||
CONFIG_SPL_CUSTOM_SYS_MALLOC_ADDR=0x120000
|
||||
CONFIG_SPL_SYS_MALLOC_SIZE=0x3000
|
||||
CONFIG_SYS_MMCSD_RAW_MODE_U_BOOT_USE_SECTOR=y
|
||||
CONFIG_SYS_MMCSD_RAW_MODE_U_BOOT_SECTOR=0x800
|
||||
CONFIG_SPL_POWER_DOMAIN=y
|
||||
|
||||
@ -19,16 +19,16 @@ CONFIG_SYS_CONSOLE_INFO_QUIET=y
|
||||
CONFIG_SPL_MAX_SIZE=0xec00
|
||||
CONFIG_SPL_BSS_START_ADDR=0x80000500
|
||||
CONFIG_SPL_SYS_MALLOC_SIMPLE=y
|
||||
CONFIG_SYS_SPL_MALLOC=y
|
||||
CONFIG_HAS_CUSTOM_SPL_MALLOC_START=y
|
||||
CONFIG_CUSTOM_SYS_SPL_MALLOC_ADDR=0x80208000
|
||||
CONFIG_SPL_SYS_MALLOC=y
|
||||
CONFIG_SPL_HAS_CUSTOM_MALLOC_START=y
|
||||
CONFIG_SPL_CUSTOM_SYS_MALLOC_ADDR=0x80208000
|
||||
# CONFIG_SPL_FS_EXT4 is not set
|
||||
CONFIG_SPL_NAND_DRIVERS=y
|
||||
CONFIG_SPL_NAND_ECC=y
|
||||
CONFIG_SPL_NAND_SIMPLE=y
|
||||
CONFIG_SPL_NAND_BASE=y
|
||||
CONFIG_SPL_OS_BOOT=y
|
||||
CONFIG_SYS_SPL_ARGS_ADDR=0x80000100
|
||||
CONFIG_SPL_PAYLOAD_ARGS_ADDR=0x80000100
|
||||
CONFIG_SYS_NAND_SPL_KERNEL_OFFS=0x280000
|
||||
CONFIG_SPL_FALCON_BOOT_MMCSD=y
|
||||
CONFIG_SYS_MMCSD_RAW_MODE_KERNEL_SECTOR=0x500
|
||||
|
||||
@ -38,7 +38,7 @@ CONFIG_SPL_FIT=y
|
||||
CONFIG_DISTRO_DEFAULTS=y
|
||||
CONFIG_BOOTDELAY=3
|
||||
CONFIG_SYS_CONSOLE_OVERWRITE_ROUTINE=y
|
||||
CONFIG_SYS_SPL_MALLOC=y
|
||||
CONFIG_SPL_SYS_MALLOC=y
|
||||
CONFIG_SPL_SPI_LOAD=y
|
||||
CONFIG_SYS_SPI_U_BOOT_OFFS=0x11400
|
||||
CONFIG_SPL_WATCHDOG=y
|
||||
|
||||
@ -38,14 +38,14 @@ CONFIG_USE_BOOTCOMMAND=y
|
||||
CONFIG_BOOTCOMMAND="if run check_em_pad; then run recovery;else if test ${BOOT_FROM} = FACTORY; then run factory_nfs;else run boot_mmc;fi;fi"
|
||||
CONFIG_MISC_INIT_R=y
|
||||
CONFIG_SPL_BOOTCOUNT_LIMIT=y
|
||||
CONFIG_SYS_SPL_MALLOC=y
|
||||
CONFIG_SPL_SYS_MALLOC=y
|
||||
# CONFIG_SYS_MMCSD_RAW_MODE_U_BOOT_USE_SECTOR is not set
|
||||
CONFIG_SPL_DMA=y
|
||||
CONFIG_SPL_ENV_SUPPORT=y
|
||||
CONFIG_SPL_SAVEENV=y
|
||||
CONFIG_SPL_I2C=y
|
||||
CONFIG_SPL_OS_BOOT=y
|
||||
CONFIG_SYS_SPL_ARGS_ADDR=0x18000000
|
||||
CONFIG_SPL_PAYLOAD_ARGS_ADDR=0x18000000
|
||||
CONFIG_SPL_FALCON_BOOT_MMCSD=y
|
||||
CONFIG_SYS_MMCSD_RAW_MODE_KERNEL_SECTOR=0x100
|
||||
CONFIG_SYS_MMCSD_RAW_MODE_ARGS_SECTOR=0x3F00
|
||||
|
||||
@ -35,12 +35,12 @@ CONFIG_OF_BOARD_SETUP=y
|
||||
CONFIG_USE_BOOTCOMMAND=y
|
||||
CONFIG_BOOTCOMMAND="echo SDP Display5 recovery"
|
||||
CONFIG_MISC_INIT_R=y
|
||||
CONFIG_SYS_SPL_MALLOC=y
|
||||
CONFIG_SPL_SYS_MALLOC=y
|
||||
# CONFIG_SYS_MMCSD_RAW_MODE_U_BOOT_USE_SECTOR is not set
|
||||
CONFIG_SPL_DMA=y
|
||||
CONFIG_SPL_I2C=y
|
||||
CONFIG_SPL_OS_BOOT=y
|
||||
CONFIG_SYS_SPL_ARGS_ADDR=0x18000000
|
||||
CONFIG_SPL_PAYLOAD_ARGS_ADDR=0x18000000
|
||||
CONFIG_SPL_FALCON_BOOT_MMCSD=y
|
||||
CONFIG_SYS_MMCSD_RAW_MODE_KERNEL_SECTOR=0x100
|
||||
CONFIG_SYS_MMCSD_RAW_MODE_ARGS_SECTOR=0x3F00
|
||||
|
||||
Some files were not shown because too many files have changed in this diff Show More
Loading…
x
Reference in New Issue
Block a user