mirror of
https://github.com/AsahiLinux/u-boot
synced 2024-11-28 15:41:40 +00:00
cd04c95926
U-Boot is composing u-boot.bin from u-boot-nodtb.bin with appended dts/dt.dtb. It means U-Boot doesn't have DTB inside. When REMAKE_ELF is enabled make will also create u-boot.elf which is recreated from u-boot.bin. Below is build output for mini configuration how ELF is recreated. cat arch/arm/dts/versal-net-mini.dtb > dts/dt.dtb cat u-boot-nodtb.bin dts/dt.dtb > u-boot-dtb.bin cp dts/dt.dtb u-boot.dtb cp u-boot-dtb.bin u-boot.bin aarch64-linux-gnu-objcopy -I binary -B aarch64 -O elf64-littleaarch64 u-boot.bin u-boot-elf.o aarch64-linux-gnu-ld.bfd u-boot-elf.o -o u-boot.elf -EL -T u-boot-elf.lds --defsym="_start"=0xBBF00000 -Ttext=0xBBF00000 It is useful to have u-boot.elf present because Xilinx XSDB debugger can load ELF file and user doesn't need to specify loading address for u-boot.bin. Signed-off-by: Michal Simek <michal.simek@amd.com> Link: https://lore.kernel.org/r/ca550c5c4bf908e757a49a83fdfab0e7100de45e.1674121617.git.michal.simek@amd.com
75 lines
2.2 KiB
Text
75 lines
2.2 KiB
Text
CONFIG_ARM=y
|
|
CONFIG_SYS_CONFIG_NAME="xilinx_versal_net_mini"
|
|
CONFIG_SYS_ICACHE_OFF=y
|
|
# CONFIG_ARM64_CRC32 is not set
|
|
CONFIG_COUNTER_FREQUENCY=100000000
|
|
# CONFIG_ARM64_SUPPORT_AARCH32 is not set
|
|
CONFIG_ARCH_VERSAL_NET=y
|
|
CONFIG_TEXT_BASE=0xBBF10000
|
|
CONFIG_SYS_MALLOC_LEN=0x20000
|
|
CONFIG_SYS_MALLOC_F_LEN=0x4000
|
|
CONFIG_NR_DRAM_BANKS=3
|
|
CONFIG_ENV_SIZE=0x80
|
|
CONFIG_DEFAULT_DEVICE_TREE="versal-net-mini"
|
|
CONFIG_SYS_PROMPT="Versal NET> "
|
|
CONFIG_SYS_MEM_RSVD_FOR_MMU=y
|
|
# CONFIG_PSCI_RESET is not set
|
|
CONFIG_SYS_LOAD_ADDR=0xBBF00000
|
|
CONFIG_SYS_MEMTEST_START=0x00000000
|
|
CONFIG_SYS_MEMTEST_END=0x00001000
|
|
CONFIG_HAS_CUSTOM_SYS_INIT_SP_ADDR=y
|
|
CONFIG_CUSTOM_SYS_INIT_SP_ADDR=0xBBF10000
|
|
# CONFIG_EXPERT is not set
|
|
CONFIG_REMAKE_ELF=y
|
|
# CONFIG_LEGACY_IMAGE_FORMAT is not set
|
|
# CONFIG_ARCH_FIXUP_FDT_MEMORY is not set
|
|
# CONFIG_AUTOBOOT is not set
|
|
CONFIG_SYS_CONSOLE_INFO_QUIET=y
|
|
# CONFIG_DISPLAY_CPUINFO is not set
|
|
CONFIG_BOARD_EARLY_INIT_R=y
|
|
# CONFIG_BOARD_LATE_INIT is not set
|
|
# CONFIG_CMDLINE_EDITING is not set
|
|
# CONFIG_AUTO_COMPLETE is not set
|
|
# CONFIG_SYS_LONGHELP is not set
|
|
# CONFIG_CMD_CONSOLE is not set
|
|
# CONFIG_CMD_BOOTD is not set
|
|
# CONFIG_CMD_BOOTM is not set
|
|
# CONFIG_CMD_BOOTI is not set
|
|
# CONFIG_CMD_ELF is not set
|
|
# CONFIG_CMD_FDT is not set
|
|
# CONFIG_CMD_GO is not set
|
|
# CONFIG_CMD_RUN is not set
|
|
# CONFIG_CMD_IMI is not set
|
|
# CONFIG_CMD_XIMG is not set
|
|
# CONFIG_CMD_EXPORTENV is not set
|
|
# CONFIG_CMD_IMPORTENV is not set
|
|
# CONFIG_CMD_EDITENV is not set
|
|
# CONFIG_CMD_SAVEENV is not set
|
|
# CONFIG_CMD_ENV_EXISTS is not set
|
|
# CONFIG_CMD_CRC32 is not set
|
|
CONFIG_CMD_MEMINFO=y
|
|
CONFIG_CMD_MX_CYCLIC=y
|
|
CONFIG_CMD_MEMTEST=y
|
|
CONFIG_SYS_ALT_MEMTEST=y
|
|
# CONFIG_CMD_LOADB is not set
|
|
# CONFIG_CMD_LOADS is not set
|
|
# CONFIG_CMD_ECHO is not set
|
|
# CONFIG_CMD_ITEST is not set
|
|
# CONFIG_CMD_SOURCE is not set
|
|
# CONFIG_CMD_SETEXPR is not set
|
|
CONFIG_CMD_CACHE=y
|
|
# CONFIG_CMD_SLEEP is not set
|
|
CONFIG_OF_EMBED=y
|
|
CONFIG_SYS_RELOC_GD_ENV_ADDR=y
|
|
# CONFIG_NET is not set
|
|
# CONFIG_DM_WARN is not set
|
|
# CONFIG_DM_DEVICE_REMOVE is not set
|
|
# CONFIG_GPIO is not set
|
|
# CONFIG_I2C is not set
|
|
# CONFIG_INPUT is not set
|
|
# CONFIG_MMC is not set
|
|
# CONFIG_POWER is not set
|
|
CONFIG_ARM_DCC=y
|
|
CONFIG_PL01X_SERIAL=y
|
|
# CONFIG_GZIP is not set
|
|
# CONFIG_LMB is not set
|