
When lwIP compiled with debug info enabled U-Boot size overlaps with SPL. Make more room for it. binman: Node '/binman/rom/u-boot-spl-with-ucode-ptr': Offset 0xfffd8000 (4294803456) overlaps with previous entry '/binman/rom/u-boot-dtb' ending at 0xfffd8a40 (4294806080)
ImagePos Offset Size Name <none> 00000000 00100000 rom <none> fff00000 000e0a58 u-boot → 0xfffe0a58 <none> 00000000 000dff10 u-boot-nodtb <none> 000dff10 00000b48 u-boot-dtb <none> fffdb000 00016020 u-boot-spl-with-ucode-ptr CONFIG_X86_OFFSET_SPL
In general compilation issue can be solved with changing CONFIG_X86_OFFSET_SPL to 0xfffe1000 from default 0xfffd8000 and all the code fits to 1MB rom image. But with modified CONFIG_X86_OFFSET_SPL qemu process does not boot. That is under investigation now.
Signed-off-by: Maxim Uvarov maxim.uvarov@linaro.org --- configs/qemu-x86_64_defconfig | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/configs/qemu-x86_64_defconfig b/configs/qemu-x86_64_defconfig index 2ff49fbd6a..88eeb6622a 100644 --- a/configs/qemu-x86_64_defconfig +++ b/configs/qemu-x86_64_defconfig @@ -6,18 +6,19 @@ CONFIG_ENV_SIZE=0x40000 CONFIG_MAX_CPUS=2 CONFIG_SPL_DM_SPI=y CONFIG_DEFAULT_DEVICE_TREE="qemu-x86_i440fx" -CONFIG_SPL_TEXT_BASE=0xfffd8000 +CONFIG_SPL_TEXT_BASE=0xfffdb000 CONFIG_SPL_SYS_MALLOC_F_LEN=0x2000 CONFIG_DEBUG_UART_BASE=0x3f8 CONFIG_DEBUG_UART_CLOCK=1843200 CONFIG_X86_RUN_64BIT=y CONFIG_TARGET_QEMU_X86_64=y CONFIG_DEBUG_UART=y +CONFIG_UBOOT_ROMSIZE_KB_4096=y # CONFIG_HAVE_MICROCODE is not set CONFIG_SMP=y CONFIG_GENERATE_PIRQ_TABLE=y CONFIG_GENERATE_MP_TABLE=y -CONFIG_X86_OFFSET_U_BOOT=0xfff00000 +CONFIG_X86_OFFSET_U_BOOT=0xffc00000 CONFIG_SYS_MONITOR_BASE=0x01110000 CONFIG_FIT=y CONFIG_SPL_LOAD_FIT=y