vbe: Implement the full firmware flow
Subsystems (37)
v2 cover vbe: Implement the full firmware flow
This series provides an implementation of VBE from TPL through to U-Boot proper, using VBE to load the relevant firmware stages. It buils a single image.bin file containing all the phases:
TPL - initial phase, loads VPL using binman symbols VPL - main firmware phase, loads SPL using VBE parameters SPL - loads U-Boot proper using VBE parameters U-Boot - final firmware phase, where OS booting is processed
This series does not include the OS-booting phase. That will be the subject of a future series.
The implementation is entirely handled by sandbox. It should be possible to enable this on a real board without much effort, but that is also the subject of a future series.
Changes in v2:
- Move the gitlab change into an RFC patch
- Split the docker change into a separate patch.
- Rebase to master
- Drop the '*** ERROR: ' text as it is already clear that it is unexpected
- Fix exceds typo
- Refactor based on a change to the earlier patch in spl.c
- Rebase to master
- Expand docs a little to clarify that manual tests are otherwise normal
- Add new patch to rename block functions
- Add new patch to rename block_dev to desc in disc-uclass.c
- Add a note as to why we have almost-duplicated code in two places
- Rebase to master
- Disable TPL_BLK by default
- Update the comment style
- Attach the phase to the image node instead of the configuration node
- Update the documentation too
- Attach the phase to the image node instead of the configuration node
- Attach the phase to the image node instead of the configuration node
- Add signature checking / hashing to make the image more realistic
- Add new patch to allow signature verification
- Drop patch 'rsa: Avoid warning in padding_pss_verify()'
Simon Glass (45):
WIP: gitlab: Install pyelftools
docker: Install pyelftools for builds
Rename CONFIG_SYS_TEXT_BASE to CONFIG_TEXT_BASE
disk: Drop debug messages in part_efi
spl: Use binman suffix allow symbols of any SPL etype
spl: Refactor controls for console output
spl: Add a separate silence option for SPL
binman: Allow obtaining a symbol value
binman: Split out looking up a symbol into a function
binman: Handle writing ELF symbols in the Entry class
binman: Support writing symbols into ELF files
test: Report skippped tests
test: Update tests to use the skip feature
test: Support tests which can only be run manually
bootstd: Add a way to set up a bootflow
disk: Rename block functions
disk: Rename block_dev to desc
dm: blk: Add udevice functions
usb: Update the test to cover reading and writing
bloblist: Drop debugging
dm: blk: mmc: Tidy up some Makefile rules for SPL
dm: mmc: Allow sandbox emulator to build without writes
sandbox: Drop message about writing sandbox state
image: Move comment for fit_conf_find_compat()
sandbox: Generalise SPL booting
sandbox: Add a way to specify the sandbox executable
image: Add the concept of a phase to FIT
image: Allow loading a FIT image for a particular phase
image: Correct strncpy() warning with image_set_name()
vbe: Rename vbe_fixup to vbe_request
vbe: Use a warning for a failed requests
spl: Allow multiple loaders of the same time
sandbox: Support obtaining the next phase from an image
vbe: Support selecting operations by SPL phase
vbe: Support reading the next SPL phase via VBE
vbe: Move OS implementation into a separate file
vbe: Drop the U-Boot prefix from the version
vbe: Add Kconfig options for VPL
vbe: Add info about the VBE device to the fwupd node
sandbox: Add an image for VPL
vpl: Allow signature verification
vbe: Use a manual test
vbe: Record which phases loaded using VBE
vbe: Add a command to show the VBE state
vbe: Add a test for the VBE flow into U-Boot proper
.gitlab-ci.yml | 2 +
Kconfig | 2 +-
Makefile | 26 +-
arch/arc/cpu/u-boot.lds | 2 +-
arch/arm/Kconfig | 2 +-
arch/arm/cpu/arm1176/start.S | 2 +-
arch/arm/cpu/arm926ejs/mxs/Makefile | 4 +-
arch/arm/cpu/armv7/ls102xa/fdt.c | 6 +-
.../armv8/linux-kernel-image-header-vars.h | 2 +-
arch/arm/cpu/armv8/start.S | 2 +-
.../dts/fsl-ls1028a-kontron-sl28-u-boot.dtsi | 2 +-
arch/arm/dts/imx8mm-u-boot.dtsi | 2 +-
arch/arm/dts/imx8mn-beacon-kit-u-boot.dtsi | 2 +-
.../dts/imx8mn-bsh-smm-s2-u-boot-common.dtsi | 2 +-
arch/arm/dts/imx8mn-ddr4-evk-u-boot.dtsi | 2 +-
arch/arm/dts/imx8mn-evk-u-boot.dtsi | 2 +-
.../dts/imx8mn-var-som-symphony-u-boot.dtsi | 2 +-
arch/arm/dts/imx8mn-venice-u-boot.dtsi | 2 +-
arch/arm/dts/imx8mp-u-boot.dtsi | 2 +-
arch/arm/dts/imx8mq-cm-u-boot.dtsi | 2 +-
arch/arm/dts/imx8mq-u-boot.dtsi | 2 +-
arch/arm/dts/rockchip-optee.dtsi | 2 +-
arch/arm/dts/sunxi-u-boot.dtsi | 2 +-
arch/arm/dts/tegra-u-boot.dtsi | 2 +-
arch/arm/include/asm/arch-mxs/sys_proto.h | 2 +-
arch/arm/include/asm/arch-sunxi/boot0.h | 2 +-
arch/arm/lib/crt0.S | 2 +-
arch/arm/lib/relocate_64.S | 2 +-
arch/arm/mach-apple/Kconfig | 4 +-
arch/arm/mach-aspeed/Kconfig | 2 +-
arch/arm/mach-at91/arm920t/lowlevel_init.S | 4 +-
arch/arm/mach-at91/arm926ejs/lowlevel_init.S | 2 +-
arch/arm/mach-exynos/spl_boot.c | 10 +-
arch/arm/mach-imx/Makefile | 10 +-
arch/arm/mach-imx/imx8/cpu.c | 4 +-
arch/arm/mach-imx/mx7/Kconfig | 2 +-
arch/arm/mach-imx/spl.c | 2 +-
arch/arm/mach-ipq40xx/Kconfig | 2 +-
arch/arm/mach-k3/config_secure.mk | 2 +-
arch/arm/mach-k3/sysfw-loader.c | 2 +-
arch/arm/mach-keystone/config.mk | 2 +-
arch/arm/mach-nexell/include/mach/boot0.h | 6 +-
arch/arm/mach-npcm/Kconfig | 2 +-
arch/arm/mach-octeontx/cpu.c | 2 +-
arch/arm/mach-octeontx2/cpu.c | 2 +-
arch/arm/mach-omap2/config_secure.mk | 4 +-
arch/arm/mach-owl/Kconfig | 2 +-
arch/arm/mach-rockchip/Kconfig | 2 +-
arch/arm/mach-socfpga/Kconfig | 2 +-
arch/arm/mach-stm32mp/Kconfig.13x | 2 +-
arch/arm/mach-stm32mp/Kconfig.15x | 2 +-
arch/arm/mach-sunxi/board.c | 2 +-
arch/arm/mach-sunxi/spl_spi_sunxi.c | 2 +-
arch/arm/mach-zynqmp/mkimage_fit_atf.sh | 2 +-
arch/m68k/cpu/mcf52x2/start.S | 12 +-
arch/m68k/cpu/mcf530x/start.S | 4 +-
arch/m68k/cpu/mcf5445x/start.S | 16 +-
arch/microblaze/cpu/relocate.c | 6 +-
arch/microblaze/cpu/start.S | 8 +-
arch/mips/mach-jz47xx/jz4780/jz4780.c | 4 +-
arch/mips/mach-mscc/lowlevel_init.S | 2 +-
arch/mips/mach-mtmips/Kconfig | 2 +-
arch/powerpc/cpu/mpc85xx/cpu_init_early.c | 4 +-
arch/powerpc/cpu/mpc85xx/u-boot.lds | 2 +-
arch/powerpc/dts/kmcent2-u-boot.dtsi | 4 +-
arch/powerpc/dts/u-boot.dtsi | 4 +-
arch/riscv/dts/binman.dtsi | 2 +-
arch/sandbox/cpu/spl.c | 84 +++-
arch/sandbox/cpu/start.c | 30 ++
arch/sandbox/cpu/state.c | 2 +-
arch/sandbox/dts/sandbox.dts | 7 +
arch/sandbox/dts/sandbox_vpl.dtsi | 84 ++++
arch/sandbox/dts/test.dts | 72 +++-
arch/sandbox/include/asm/spl.h | 4 +
arch/sandbox/include/asm/state.h | 3 +-
arch/sh/cpu/u-boot.lds | 2 +-
arch/x86/Kconfig | 4 +-
arch/x86/cpu/apollolake/spl.c | 2 +-
arch/x86/cpu/quark/quark.c | 2 +-
arch/x86/cpu/start.S | 6 +-
arch/x86/cpu/u-boot-64.lds | 4 +-
arch/x86/cpu/u-boot.lds | 2 +-
arch/x86/lib/relocate.c | 6 +-
arch/x86/lib/spl.c | 6 +-
board/BuS/eb_cpu5282/eb_cpu5282.c | 2 +-
board/advantech/som-db5800-som-6867/Kconfig | 2 +-
board/armltd/vexpress64/Kconfig | 4 +-
board/beacon/beacon-rzg2m/beacon-rzg2m.c | 2 +-
board/broadcom/bcmstb/bcmstb.c | 4 +-
board/cobra5272/README | 8 +-
board/congatec/cgtqmx8/cgtqmx8.c | 2 +-
.../congatec/conga-qeval20-qa3-e3845/Kconfig | 2 +-
board/coreboot/coreboot/Kconfig | 2 +-
board/cssi/MCR3000/Kconfig | 2 +-
board/davinci/da8xxevm/README.da850 | 2 +-
board/dfi/dfi-bt700/Kconfig | 2 +-
board/efi/efi-x86_payload/Kconfig | 2 +-
board/emulation/qemu-arm/Kconfig | 2 +-
board/emulation/qemu-riscv/Kconfig | 2 +-
board/emulation/qemu-x86/Kconfig | 2 +-
.../freescale/imx8qm_mek/uboot-container.cfg | 2 +-
.../freescale/imx8qxp_mek/uboot-container.cfg | 2 +-
board/freescale/ls1021atsn/ls1021atsn.c | 2 +-
board/freescale/ls1021atwr/ls1021atwr.c | 2 +-
board/freescale/ls1028a/Kconfig | 4 +-
board/google/chromebook_coral/Kconfig | 2 +-
board/google/chromebook_link/Kconfig | 2 +-
board/google/chromebook_samus/Kconfig | 2 +-
board/google/chromebox_panther/Kconfig | 2 +-
board/hoperun/hihope-rzg2/hihope-rzg2.c | 2 +-
board/hpe/gxp/Kconfig | 2 +-
board/imgtec/boston/Kconfig | 2 +-
board/imgtec/ci20/Kconfig | 2 +-
board/imgtec/malta/Kconfig | 2 +-
board/imgtec/xilfpga/Kconfig | 2 +-
board/intel/bayleybay/Kconfig | 2 +-
board/intel/cherryhill/Kconfig | 2 +-
board/intel/cougarcanyon2/Kconfig | 2 +-
board/intel/crownbay/Kconfig | 2 +-
board/intel/edison/Kconfig | 2 +-
board/intel/galileo/Kconfig | 2 +-
board/intel/minnowmax/Kconfig | 2 +-
board/intel/slimbootloader/Kconfig | 2 +-
board/keymile/common/common.c | 4 +-
board/kontron/sl28/Kconfig | 2 +-
board/microchip/mpfs_icicle/Kconfig | 2 +-
board/microchip/pic32mzda/Kconfig | 2 +-
board/nokia/rx51/lowlevel_init.S | 6 +-
board/openpiton/riscv64/Kconfig | 2 +-
board/qca/ap121/Kconfig | 2 +-
board/qca/ap143/Kconfig | 2 +-
board/qca/ap152/Kconfig | 2 +-
board/qualcomm/dragonboard820c/head.S | 2 +-
board/renesas/falcon/falcon.c | 2 +-
board/siemens/capricorn/uboot-container.cfg | 2 +-
board/sifive/unleashed/Kconfig | 2 +-
board/sifive/unmatched/Kconfig | 2 +-
board/silinux/ek874/ek874.c | 2 +-
board/sipeed/maix/Kconfig | 2 +-
board/socrates/socrates.c | 2 +-
board/synopsys/axs10x/headerize-axs.py | 2 +-
board/synopsys/hsdk/headerize-hsdk.py | 2 +-
board/ti/ks2_evm/board.c | 2 +-
board/tplink/wdr4300/Kconfig | 2 +-
board/tq/tqma6/Kconfig | 2 +-
boot/Kconfig | 146 ++++++-
boot/Makefile | 4 +-
boot/bootdev-uclass.c | 5 +-
boot/bootflow.c | 9 +
boot/bootmeth-uclass.c | 5 +-
boot/image-fit.c | 126 +++---
boot/image.c | 18 +
boot/{vbe_fixup.c => vbe_request.c} | 8 +-
boot/vbe_simple.c | 142 ++-----
boot/vbe_simple.h | 71 ++++
boot/vbe_simple_fw.c | 206 ++++++++++
boot/vbe_simple_os.c | 104 +++++
cmd/sf.c | 2 +-
cmd/vbe.c | 31 +-
common/Kconfig | 29 ++
common/autoboot.c | 8 +-
common/bloblist.c | 1 -
common/board_f.c | 10 +-
common/board_r.c | 2 +-
common/spl/Kconfig.vpl | 30 ++
common/spl/spl.c | 82 ++--
common/spl/spl_atf.c | 2 +-
common/spl/spl_nand.c | 6 +-
common/spl/spl_optee.S | 2 +-
configs/M5208EVBE_defconfig | 2 +-
configs/M5235EVB_Flash32_defconfig | 2 +-
configs/M5235EVB_defconfig | 2 +-
configs/M5249EVB_defconfig | 2 +-
configs/M5253DEMO_defconfig | 2 +-
configs/M5272C3_defconfig | 2 +-
configs/M5275EVB_defconfig | 2 +-
configs/M5282EVB_defconfig | 2 +-
configs/M53017EVB_defconfig | 2 +-
configs/M5329AFEE_defconfig | 2 +-
configs/M5329BFEE_defconfig | 2 +-
configs/M5373EVB_defconfig | 2 +-
configs/MCR3000_defconfig | 2 +-
configs/MPC837XERDB_defconfig | 2 +-
configs/MPC8548CDS_36BIT_defconfig | 2 +-
configs/MPC8548CDS_defconfig | 2 +-
configs/MPC8548CDS_legacy_defconfig | 2 +-
configs/P1010RDB-PA_36BIT_NAND_defconfig | 2 +-
configs/P1010RDB-PA_36BIT_NOR_defconfig | 2 +-
configs/P1010RDB-PA_36BIT_SDCARD_defconfig | 2 +-
configs/P1010RDB-PA_36BIT_SPIFLASH_defconfig | 2 +-
configs/P1010RDB-PA_NAND_defconfig | 2 +-
configs/P1010RDB-PA_NOR_defconfig | 2 +-
configs/P1010RDB-PA_SDCARD_defconfig | 2 +-
configs/P1010RDB-PA_SPIFLASH_defconfig | 2 +-
configs/P1010RDB-PB_36BIT_NAND_defconfig | 2 +-
configs/P1010RDB-PB_36BIT_NOR_defconfig | 2 +-
configs/P1010RDB-PB_36BIT_SDCARD_defconfig | 2 +-
configs/P1010RDB-PB_36BIT_SPIFLASH_defconfig | 2 +-
configs/P1010RDB-PB_NAND_defconfig | 2 +-
configs/P1010RDB-PB_NOR_defconfig | 2 +-
configs/P1010RDB-PB_SDCARD_defconfig | 2 +-
configs/P1010RDB-PB_SPIFLASH_defconfig | 2 +-
configs/P1020RDB-PC_36BIT_NAND_defconfig | 2 +-
configs/P1020RDB-PC_36BIT_SDCARD_defconfig | 2 +-
configs/P1020RDB-PC_36BIT_SPIFLASH_defconfig | 2 +-
configs/P1020RDB-PC_36BIT_defconfig | 2 +-
configs/P1020RDB-PC_NAND_defconfig | 2 +-
configs/P1020RDB-PC_SDCARD_defconfig | 2 +-
configs/P1020RDB-PC_SPIFLASH_defconfig | 2 +-
configs/P1020RDB-PC_defconfig | 2 +-
configs/P1020RDB-PD_NAND_defconfig | 2 +-
configs/P1020RDB-PD_SDCARD_defconfig | 2 +-
configs/P1020RDB-PD_SPIFLASH_defconfig | 2 +-
configs/P1020RDB-PD_defconfig | 2 +-
configs/P2020RDB-PC_36BIT_NAND_defconfig | 2 +-
configs/P2020RDB-PC_36BIT_SDCARD_defconfig | 2 +-
configs/P2020RDB-PC_36BIT_SPIFLASH_defconfig | 2 +-
configs/P2020RDB-PC_36BIT_defconfig | 2 +-
configs/P2020RDB-PC_NAND_defconfig | 2 +-
configs/P2020RDB-PC_SDCARD_defconfig | 2 +-
configs/P2020RDB-PC_SPIFLASH_defconfig | 2 +-
configs/P2020RDB-PC_defconfig | 2 +-
configs/P2041RDB_NAND_defconfig | 2 +-
configs/P2041RDB_SDCARD_defconfig | 2 +-
configs/P2041RDB_SPIFLASH_defconfig | 2 +-
configs/P2041RDB_defconfig | 2 +-
configs/SBx81LIFKW_defconfig | 2 +-
configs/SBx81LIFXCAT_defconfig | 2 +-
configs/T1024RDB_NAND_defconfig | 2 +-
configs/T1024RDB_SDCARD_defconfig | 2 +-
configs/T1024RDB_SPIFLASH_defconfig | 2 +-
configs/T1024RDB_defconfig | 2 +-
configs/T1042D4RDB_NAND_defconfig | 2 +-
configs/T1042D4RDB_SDCARD_defconfig | 2 +-
configs/T1042D4RDB_SPIFLASH_defconfig | 2 +-
configs/T1042D4RDB_defconfig | 2 +-
configs/T2080QDS_NAND_defconfig | 2 +-
configs/T2080QDS_SDCARD_defconfig | 2 +-
configs/T2080QDS_SECURE_BOOT_defconfig | 2 +-
configs/T2080QDS_SPIFLASH_defconfig | 2 +-
configs/T2080QDS_SRIO_PCIE_BOOT_defconfig | 2 +-
configs/T2080QDS_defconfig | 2 +-
configs/T2080RDB_NAND_defconfig | 2 +-
configs/T2080RDB_SDCARD_defconfig | 2 +-
configs/T2080RDB_SPIFLASH_defconfig | 2 +-
configs/T2080RDB_defconfig | 2 +-
configs/T2080RDB_revD_NAND_defconfig | 2 +-
configs/T2080RDB_revD_SDCARD_defconfig | 2 +-
configs/T2080RDB_revD_SPIFLASH_defconfig | 2 +-
configs/T2080RDB_revD_defconfig | 2 +-
configs/T4240RDB_SDCARD_defconfig | 2 +-
configs/T4240RDB_defconfig | 2 +-
configs/a3y17lte_defconfig | 2 +-
configs/a5y17lte_defconfig | 2 +-
configs/a7y17lte_defconfig | 2 +-
configs/ae350_rv32_defconfig | 2 +-
configs/ae350_rv32_spl_defconfig | 2 +-
configs/ae350_rv32_spl_xip_defconfig | 2 +-
configs/ae350_rv32_xip_defconfig | 2 +-
configs/ae350_rv64_defconfig | 2 +-
configs/ae350_rv64_spl_defconfig | 2 +-
configs/ae350_rv64_spl_xip_defconfig | 2 +-
configs/ae350_rv64_xip_defconfig | 2 +-
configs/alt_defconfig | 2 +-
configs/am3517_evm_defconfig | 2 +-
configs/am43xx_evm_qspiboot_defconfig | 2 +-
configs/amcore_defconfig | 2 +-
configs/ap121_defconfig | 2 +-
configs/ap143_defconfig | 2 +-
configs/ap152_defconfig | 2 +-
configs/apalis-imx8_defconfig | 2 +-
configs/apalis-tk1_defconfig | 2 +-
configs/apalis_imx6_defconfig | 2 +-
configs/apalis_t30_defconfig | 2 +-
configs/aristainetos2c_defconfig | 2 +-
configs/aristainetos2ccslb_defconfig | 2 +-
configs/arndale_defconfig | 2 +-
configs/astro_mcf5373l_defconfig | 2 +-
configs/at91sam9260ek_dataflash_cs0_defconfig | 2 +-
configs/at91sam9260ek_dataflash_cs1_defconfig | 2 +-
configs/at91sam9260ek_nandflash_defconfig | 2 +-
configs/at91sam9261ek_dataflash_cs0_defconfig | 2 +-
configs/at91sam9261ek_dataflash_cs3_defconfig | 2 +-
configs/at91sam9261ek_nandflash_defconfig | 2 +-
configs/at91sam9263ek_dataflash_cs0_defconfig | 2 +-
configs/at91sam9263ek_dataflash_defconfig | 2 +-
configs/at91sam9263ek_nandflash_defconfig | 2 +-
configs/at91sam9263ek_norflash_boot_defconfig | 2 +-
configs/at91sam9263ek_norflash_defconfig | 2 +-
configs/at91sam9g10ek_dataflash_cs0_defconfig | 2 +-
configs/at91sam9g10ek_dataflash_cs3_defconfig | 2 +-
configs/at91sam9g10ek_nandflash_defconfig | 2 +-
configs/at91sam9g20ek_2mmc_defconfig | 2 +-
.../at91sam9g20ek_2mmc_nandflash_defconfig | 2 +-
configs/at91sam9g20ek_dataflash_cs0_defconfig | 2 +-
configs/at91sam9g20ek_dataflash_cs1_defconfig | 2 +-
configs/at91sam9g20ek_nandflash_defconfig | 2 +-
configs/at91sam9m10g45ek_mmc_defconfig | 2 +-
configs/at91sam9m10g45ek_nandflash_defconfig | 2 +-
configs/at91sam9n12ek_mmc_defconfig | 2 +-
configs/at91sam9n12ek_nandflash_defconfig | 2 +-
configs/at91sam9n12ek_spiflash_defconfig | 2 +-
configs/at91sam9rlek_dataflash_defconfig | 2 +-
configs/at91sam9rlek_mmc_defconfig | 2 +-
configs/at91sam9rlek_nandflash_defconfig | 2 +-
configs/at91sam9x5ek_dataflash_defconfig | 2 +-
configs/at91sam9x5ek_mmc_defconfig | 2 +-
configs/at91sam9x5ek_nandflash_defconfig | 2 +-
configs/at91sam9x5ek_spiflash_defconfig | 2 +-
configs/at91sam9xeek_dataflash_cs0_defconfig | 2 +-
configs/at91sam9xeek_dataflash_cs1_defconfig | 2 +-
configs/at91sam9xeek_nandflash_defconfig | 2 +-
...edev_cc_v1_0_ultrazedev_som_v1_0_defconfig | 2 +-
configs/axm_defconfig | 2 +-
configs/axs101_defconfig | 2 +-
configs/axs103_defconfig | 2 +-
configs/bananapi-m5_defconfig | 2 +-
configs/bayleybay_defconfig | 2 +-
configs/bcm7260_defconfig | 2 +-
configs/bcm7445_defconfig | 2 +-
configs/bcm947622_defconfig | 2 +-
configs/bcm963158_ram_defconfig | 2 +-
configs/bcm96753ref_ram_defconfig | 2 +-
configs/bcm968360bg_ram_defconfig | 2 +-
configs/bcm968380gerg_ram_defconfig | 2 +-
configs/bcm968580xref_ram_defconfig | 2 +-
configs/bcm_ns3_defconfig | 2 +-
configs/beaver_defconfig | 2 +-
configs/beelink-gsking-x_defconfig | 2 +-
configs/beelink-gtking_defconfig | 2 +-
configs/beelink-gtkingpro_defconfig | 2 +-
configs/bitmain_antminer_s9_defconfig | 2 +-
configs/bk4r1_defconfig | 2 +-
configs/blanche_defconfig | 2 +-
configs/boston32r2_defconfig | 2 +-
configs/boston32r2el_defconfig | 2 +-
configs/boston32r6_defconfig | 2 +-
configs/boston32r6el_defconfig | 2 +-
configs/boston64r2_defconfig | 2 +-
configs/boston64r2el_defconfig | 2 +-
configs/boston64r6_defconfig | 2 +-
configs/boston64r6el_defconfig | 2 +-
configs/brppt2_defconfig | 2 +-
configs/cardhu_defconfig | 2 +-
configs/cei-tk1-som_defconfig | 2 +-
configs/cgtqmx8_defconfig | 2 +-
configs/cherryhill_defconfig | 2 +-
configs/chromebit_mickey_defconfig | 2 +-
configs/chromebook_bob_defconfig | 2 +-
configs/chromebook_coral_defconfig | 2 +-
configs/chromebook_jerry_defconfig | 2 +-
configs/chromebook_kevin_defconfig | 2 +-
configs/chromebook_link_defconfig | 2 +-
configs/chromebook_minnie_defconfig | 2 +-
configs/chromebook_samus_defconfig | 2 +-
configs/chromebook_samus_tpl_defconfig | 2 +-
configs/chromebook_speedy_defconfig | 2 +-
configs/chromebox_panther_defconfig | 2 +-
configs/ci20_mmc_defconfig | 2 +-
configs/clearfog_defconfig | 2 +-
configs/clearfog_gt_8k_defconfig | 2 +-
configs/cm_fx6_defconfig | 2 +-
configs/cobra5272_defconfig | 2 +-
configs/colibri-imx6ull-emmc_defconfig | 2 +-
configs/colibri-imx6ull_defconfig | 2 +-
configs/colibri-imx8x_defconfig | 2 +-
configs/colibri_imx6_defconfig | 2 +-
configs/colibri_t20_defconfig | 2 +-
configs/colibri_t30_defconfig | 2 +-
configs/colibri_vf_defconfig | 2 +-
configs/comtrend_ar5315u_ram_defconfig | 2 +-
configs/comtrend_ar5387un_ram_defconfig | 2 +-
configs/comtrend_ct5361_ram_defconfig | 2 +-
configs/comtrend_vr3032u_ram_defconfig | 2 +-
configs/comtrend_wap5813n_ram_defconfig | 2 +-
...-qeval20-qa3-e3845-internal-uart_defconfig | 2 +-
configs/conga-qeval20-qa3-e3845_defconfig | 2 +-
configs/controlcenterdc_defconfig | 2 +-
configs/coreboot64_defconfig | 2 +-
configs/coreboot_defconfig | 2 +-
configs/corstone1000_defconfig | 2 +-
configs/cortina_presidio-asic-base_defconfig | 2 +-
configs/cortina_presidio-asic-emmc_defconfig | 2 +-
configs/cortina_presidio-asic-pnand_defconfig | 2 +-
configs/corvus_defconfig | 2 +-
configs/cougarcanyon2_defconfig | 2 +-
configs/crownbay_defconfig | 2 +-
configs/crs305-1g-4s-bit_defconfig | 2 +-
configs/crs305-1g-4s_defconfig | 2 +-
configs/crs326-24g-2s-bit_defconfig | 2 +-
configs/crs326-24g-2s_defconfig | 2 +-
configs/crs328-4c-20s-4s-bit_defconfig | 2 +-
configs/crs328-4c-20s-4s_defconfig | 2 +-
configs/d2net_v2_defconfig | 2 +-
configs/da850evm_defconfig | 2 +-
configs/da850evm_direct_nor_defconfig | 2 +-
configs/da850evm_nand_defconfig | 2 +-
configs/dalmore_defconfig | 2 +-
configs/db-88f6720_defconfig | 2 +-
configs/db-88f6820-amc_defconfig | 2 +-
configs/db-88f6820-gp_defconfig | 2 +-
configs/db-mv784mp-gp_defconfig | 2 +-
configs/db-xc3-24g4xg_defconfig | 2 +-
configs/deneb_defconfig | 2 +-
configs/devkit3250_defconfig | 2 +-
configs/devkit8000_defconfig | 2 +-
configs/dfi-bt700-q7x-151_defconfig | 2 +-
configs/dh_imx6_defconfig | 2 +-
configs/display5_defconfig | 2 +-
configs/display5_factory_defconfig | 2 +-
configs/dns325_defconfig | 2 +-
configs/dockstar_defconfig | 2 +-
configs/draco_defconfig | 2 +-
configs/dragonboard410c_defconfig | 2 +-
configs/dragonboard820c_defconfig | 2 +-
configs/dreamplug_defconfig | 2 +-
configs/ds109_defconfig | 2 +-
configs/ds414_defconfig | 2 +-
configs/durian_defconfig | 2 +-
configs/eDPU_defconfig | 2 +-
configs/ea-lpc3250devkitv2_defconfig | 2 +-
configs/eb_cpu5282_defconfig | 2 +-
configs/eb_cpu5282_internal_defconfig | 2 +-
configs/edison_defconfig | 2 +-
configs/elgin-rv1108_defconfig | 2 +-
configs/emsdp_defconfig | 2 +-
configs/espresso7420_defconfig | 2 +-
configs/etamin_defconfig | 2 +-
configs/ethernut5_defconfig | 2 +-
configs/ev-imx280-nano-x-mb_defconfig | 2 +-
configs/evb-ast2500_defconfig | 2 +-
configs/evb-ast2600_defconfig | 2 +-
configs/evb-px30_defconfig | 2 +-
configs/evb-px5_defconfig | 2 +-
configs/evb-rk3036_defconfig | 2 +-
configs/evb-rk3128_defconfig | 2 +-
configs/evb-rk3229_defconfig | 2 +-
configs/evb-rk3288_defconfig | 2 +-
configs/evb-rk3308_defconfig | 2 +-
configs/evb-rk3328_defconfig | 2 +-
configs/evb-rk3399_defconfig | 2 +-
configs/evb-rk3568_defconfig | 2 +-
configs/evb-rv1108_defconfig | 2 +-
configs/ficus-rk3399_defconfig | 2 +-
configs/firefly-px30_defconfig | 2 +-
configs/firefly-rk3288_defconfig | 2 +-
configs/firefly-rk3399_defconfig | 2 +-
configs/galileo_defconfig | 2 +-
.../gardena-smart-gateway-at91sam_defconfig | 2 +-
configs/gazerbeam_defconfig | 2 +-
configs/ge_b1x5v2_defconfig | 2 +-
configs/ge_bx50v3_defconfig | 2 +-
configs/geekbox_defconfig | 2 +-
configs/giedi_defconfig | 2 +-
configs/goflexhome_defconfig | 2 +-
configs/gose_defconfig | 2 +-
configs/grpeach_defconfig | 2 +-
configs/gurnard_defconfig | 2 +-
configs/guruplug_defconfig | 2 +-
configs/gwventana_emmc_defconfig | 2 +-
configs/gwventana_gw5904_defconfig | 2 +-
configs/gwventana_nand_defconfig | 2 +-
configs/harmony_defconfig | 2 +-
configs/helios4_defconfig | 2 +-
configs/highbank_defconfig | 2 +-
configs/hihope_rzg2_defconfig | 2 +-
configs/hikey960_defconfig | 2 +-
configs/hikey_defconfig | 2 +-
configs/hsdk_4xd_defconfig | 2 +-
configs/hsdk_defconfig | 2 +-
configs/huawei_hg556a_ram_defconfig | 2 +-
configs/ib62x0_defconfig | 2 +-
configs/iconnect_defconfig | 2 +-
configs/imx28_xea_defconfig | 2 +-
configs/imx28_xea_sb_defconfig | 2 +-
configs/imx6dl_icore_nand_defconfig | 2 +-
configs/imx6dl_mamoj_defconfig | 2 +-
configs/imx6q_bosch_acc_defconfig | 2 +-
configs/imx6q_icore_nand_defconfig | 2 +-
configs/imx6q_logic_defconfig | 2 +-
configs/imx6qdl_icore_mipi_defconfig | 2 +-
configs/imx6qdl_icore_mmc_defconfig | 2 +-
configs/imx6qdl_icore_nand_defconfig | 2 +-
configs/imx6qdl_icore_rqs_defconfig | 2 +-
configs/imx6ul_geam_mmc_defconfig | 2 +-
configs/imx6ul_geam_nand_defconfig | 2 +-
configs/imx6ul_isiot_emmc_defconfig | 2 +-
configs/imx6ul_isiot_nand_defconfig | 2 +-
configs/imx6ulz_smm_m2_defconfig | 2 +-
configs/imx8mm-cl-iot-gate-optee_defconfig | 2 +-
configs/imx8mm-cl-iot-gate_defconfig | 2 +-
configs/imx8mm-icore-mx8mm-ctouch2_defconfig | 2 +-
configs/imx8mm-icore-mx8mm-edimm2.2_defconfig | 2 +-
configs/imx8mm-mx8menlo_defconfig | 2 +-
configs/imx8mm_beacon_defconfig | 2 +-
configs/imx8mm_data_modul_edm_sbc_defconfig | 2 +-
configs/imx8mm_evk_defconfig | 2 +-
configs/imx8mm_evk_fspi_defconfig | 2 +-
configs/imx8mm_venice_defconfig | 2 +-
configs/imx8mn_beacon_2g_defconfig | 2 +-
configs/imx8mn_beacon_defconfig | 2 +-
configs/imx8mn_bsh_smm_s2_defconfig | 2 +-
configs/imx8mn_bsh_smm_s2pro_defconfig | 2 +-
configs/imx8mn_ddr4_evk_defconfig | 2 +-
configs/imx8mn_evk_defconfig | 2 +-
configs/imx8mn_var_som_defconfig | 2 +-
configs/imx8mn_venice_defconfig | 2 +-
configs/imx8mp_dhcom_pdk2_defconfig | 2 +-
configs/imx8mp_evk_defconfig | 2 +-
configs/imx8mp_rsb3720a1_4G_defconfig | 2 +-
configs/imx8mp_rsb3720a1_6G_defconfig | 2 +-
configs/imx8mp_venice_defconfig | 2 +-
configs/imx8mq_cm_defconfig | 2 +-
configs/imx8mq_evk_defconfig | 2 +-
configs/imx8mq_phanbell_defconfig | 2 +-
configs/imx8qm_mek_defconfig | 2 +-
configs/imx8qm_rom7720_a1_4G_defconfig | 2 +-
configs/imx8qxp_mek_defconfig | 2 +-
configs/imx8ulp_evk_defconfig | 2 +-
configs/imx93_11x11_evk_defconfig | 2 +-
configs/imxrt1020-evk_defconfig | 2 +-
configs/imxrt1050-evk_defconfig | 2 +-
configs/imxrt1170-evk_defconfig | 2 +-
configs/inetspace_v2_defconfig | 2 +-
configs/integratorap_cm720t_defconfig | 2 +-
configs/integratorap_cm920t_defconfig | 2 +-
configs/integratorap_cm926ejs_defconfig | 2 +-
configs/integratorap_cm946es_defconfig | 2 +-
configs/integratorcp_cm1136_defconfig | 2 +-
configs/integratorcp_cm920t_defconfig | 2 +-
configs/integratorcp_cm926ejs_defconfig | 2 +-
configs/integratorcp_cm946es_defconfig | 2 +-
configs/iot_devkit_defconfig | 2 +-
configs/jethub_j100_defconfig | 2 +-
configs/jethub_j80_defconfig | 2 +-
configs/jetson-tk1_defconfig | 2 +-
configs/k2e_evm_defconfig | 2 +-
configs/k2e_hs_evm_defconfig | 2 +-
configs/k2g_evm_defconfig | 2 +-
configs/k2g_hs_evm_defconfig | 2 +-
configs/k2hk_evm_defconfig | 2 +-
configs/k2hk_hs_evm_defconfig | 2 +-
configs/k2l_evm_defconfig | 2 +-
configs/k2l_hs_evm_defconfig | 2 +-
configs/khadas-edge-captain-rk3399_defconfig | 2 +-
configs/khadas-edge-rk3399_defconfig | 2 +-
configs/khadas-edge-v-rk3399_defconfig | 2 +-
configs/khadas-vim2_defconfig | 2 +-
configs/khadas-vim3_android_ab_defconfig | 2 +-
configs/khadas-vim3_android_defconfig | 2 +-
configs/khadas-vim3_defconfig | 2 +-
configs/khadas-vim3l_android_ab_defconfig | 2 +-
configs/khadas-vim3l_android_defconfig | 2 +-
configs/khadas-vim3l_defconfig | 2 +-
configs/khadas-vim_defconfig | 2 +-
configs/kmcent2_defconfig | 2 +-
configs/kmcoge5ne_defconfig | 2 +-
configs/kmeter1_defconfig | 2 +-
configs/kmopti2_defconfig | 2 +-
configs/kmsupx5_defconfig | 2 +-
configs/kmtepr2_defconfig | 2 +-
configs/koelsch_defconfig | 2 +-
configs/kontron-sl-mx6ul_defconfig | 2 +-
configs/kontron-sl-mx8mm_defconfig | 2 +-
configs/kontron_pitx_imx8m_defconfig | 2 +-
configs/kp_imx53_defconfig | 2 +-
configs/kp_imx6q_tpc_defconfig | 2 +-
configs/kylin-rk3036_defconfig | 2 +-
configs/lager_defconfig | 2 +-
configs/leez-rk3399_defconfig | 2 +-
configs/legoev3_defconfig | 2 +-
configs/librem5_defconfig | 2 +-
configs/libretech-ac_defconfig | 2 +-
configs/libretech-cc_defconfig | 2 +-
configs/libretech-cc_v2_defconfig | 2 +-
configs/libretech-s905d-pc_defconfig | 2 +-
configs/libretech-s912-pc_defconfig | 2 +-
configs/lion-rk3368_defconfig | 2 +-
configs/liteboard_defconfig | 2 +-
configs/ls1012a2g5rdb_qspi_defconfig | 2 +-
configs/ls1012a2g5rdb_tfa_defconfig | 2 +-
configs/ls1012afrdm_qspi_defconfig | 2 +-
configs/ls1012afrdm_tfa_defconfig | 2 +-
.../ls1012afrwy_qspi_SECURE_BOOT_defconfig | 2 +-
configs/ls1012afrwy_qspi_defconfig | 2 +-
configs/ls1012afrwy_tfa_SECURE_BOOT_defconfig | 2 +-
configs/ls1012afrwy_tfa_defconfig | 2 +-
configs/ls1012aqds_qspi_defconfig | 2 +-
configs/ls1012aqds_tfa_SECURE_BOOT_defconfig | 2 +-
configs/ls1012aqds_tfa_defconfig | 2 +-
configs/ls1012ardb_qspi_SECURE_BOOT_defconfig | 2 +-
configs/ls1012ardb_qspi_defconfig | 2 +-
configs/ls1012ardb_tfa_SECURE_BOOT_defconfig | 2 +-
configs/ls1012ardb_tfa_defconfig | 2 +-
configs/ls1021aiot_qspi_defconfig | 2 +-
configs/ls1021aiot_sdcard_defconfig | 2 +-
configs/ls1021aqds_ddr4_nor_defconfig | 2 +-
configs/ls1021aqds_ddr4_nor_lpuart_defconfig | 2 +-
configs/ls1021aqds_nand_defconfig | 2 +-
configs/ls1021aqds_nor_SECURE_BOOT_defconfig | 2 +-
configs/ls1021aqds_nor_defconfig | 2 +-
configs/ls1021aqds_nor_lpuart_defconfig | 2 +-
configs/ls1021aqds_qspi_defconfig | 2 +-
configs/ls1021aqds_sdcard_ifc_defconfig | 2 +-
configs/ls1021aqds_sdcard_qspi_defconfig | 2 +-
configs/ls1021atsn_qspi_defconfig | 2 +-
configs/ls1021atsn_sdcard_defconfig | 2 +-
configs/ls1021atwr_nor_SECURE_BOOT_defconfig | 2 +-
configs/ls1021atwr_nor_defconfig | 2 +-
configs/ls1021atwr_nor_lpuart_defconfig | 2 +-
configs/ls1021atwr_qspi_defconfig | 2 +-
...s1021atwr_sdcard_ifc_SECURE_BOOT_defconfig | 2 +-
configs/ls1021atwr_sdcard_ifc_defconfig | 2 +-
configs/ls1021atwr_sdcard_qspi_defconfig | 2 +-
configs/ls1043aqds_defconfig | 2 +-
configs/ls1043aqds_lpuart_defconfig | 2 +-
configs/ls1043aqds_nand_defconfig | 2 +-
configs/ls1043aqds_nor_ddr3_defconfig | 2 +-
configs/ls1043aqds_qspi_defconfig | 2 +-
configs/ls1043aqds_sdcard_ifc_defconfig | 2 +-
configs/ls1043aqds_sdcard_qspi_defconfig | 2 +-
configs/ls1043aqds_tfa_SECURE_BOOT_defconfig | 2 +-
configs/ls1043aqds_tfa_defconfig | 2 +-
configs/ls1043ardb_SECURE_BOOT_defconfig | 2 +-
configs/ls1043ardb_defconfig | 2 +-
configs/ls1043ardb_nand_SECURE_BOOT_defconfig | 2 +-
configs/ls1043ardb_nand_defconfig | 2 +-
.../ls1043ardb_sdcard_SECURE_BOOT_defconfig | 2 +-
configs/ls1043ardb_sdcard_defconfig | 2 +-
configs/ls1043ardb_tfa_SECURE_BOOT_defconfig | 2 +-
configs/ls1043ardb_tfa_defconfig | 2 +-
configs/ls1046afrwy_tfa_SECURE_BOOT_defconfig | 2 +-
configs/ls1046afrwy_tfa_defconfig | 2 +-
configs/ls1046aqds_SECURE_BOOT_defconfig | 2 +-
configs/ls1046aqds_defconfig | 2 +-
configs/ls1046aqds_lpuart_defconfig | 2 +-
configs/ls1046aqds_nand_defconfig | 2 +-
configs/ls1046aqds_qspi_defconfig | 2 +-
configs/ls1046aqds_sdcard_ifc_defconfig | 2 +-
configs/ls1046aqds_sdcard_qspi_defconfig | 2 +-
configs/ls1046aqds_tfa_SECURE_BOOT_defconfig | 2 +-
configs/ls1046aqds_tfa_defconfig | 2 +-
configs/ls1046ardb_emmc_defconfig | 2 +-
configs/ls1046ardb_qspi_SECURE_BOOT_defconfig | 2 +-
configs/ls1046ardb_qspi_defconfig | 2 +-
configs/ls1046ardb_qspi_spl_defconfig | 2 +-
.../ls1046ardb_sdcard_SECURE_BOOT_defconfig | 2 +-
configs/ls1046ardb_sdcard_defconfig | 2 +-
configs/ls1046ardb_tfa_SECURE_BOOT_defconfig | 2 +-
configs/ls1046ardb_tfa_defconfig | 2 +-
configs/ls1088aqds_defconfig | 2 +-
configs/ls1088aqds_qspi_SECURE_BOOT_defconfig | 2 +-
configs/ls1088aqds_qspi_defconfig | 2 +-
configs/ls1088aqds_sdcard_ifc_defconfig | 2 +-
configs/ls1088aqds_sdcard_qspi_defconfig | 2 +-
configs/ls1088aqds_tfa_defconfig | 2 +-
configs/ls1088ardb_qspi_SECURE_BOOT_defconfig | 2 +-
configs/ls1088ardb_qspi_defconfig | 2 +-
...1088ardb_sdcard_qspi_SECURE_BOOT_defconfig | 2 +-
configs/ls1088ardb_sdcard_qspi_defconfig | 2 +-
configs/ls1088ardb_tfa_SECURE_BOOT_defconfig | 2 +-
configs/ls1088ardb_tfa_defconfig | 2 +-
configs/ls2080aqds_SECURE_BOOT_defconfig | 2 +-
configs/ls2080aqds_defconfig | 2 +-
configs/ls2080aqds_nand_defconfig | 2 +-
configs/ls2080aqds_qspi_defconfig | 2 +-
configs/ls2080aqds_sdcard_defconfig | 2 +-
configs/ls2080ardb_SECURE_BOOT_defconfig | 2 +-
configs/ls2080ardb_defconfig | 2 +-
configs/ls2080ardb_nand_defconfig | 2 +-
configs/ls2081ardb_defconfig | 2 +-
configs/ls2088aqds_tfa_defconfig | 2 +-
configs/ls2088ardb_qspi_SECURE_BOOT_defconfig | 2 +-
configs/ls2088ardb_qspi_defconfig | 2 +-
configs/ls2088ardb_tfa_SECURE_BOOT_defconfig | 2 +-
configs/ls2088ardb_tfa_defconfig | 2 +-
configs/lschlv2_defconfig | 2 +-
configs/lsxhl_defconfig | 2 +-
configs/lx2160aqds_tfa_SECURE_BOOT_defconfig | 2 +-
configs/lx2160aqds_tfa_defconfig | 2 +-
configs/lx2160ardb_tfa_SECURE_BOOT_defconfig | 2 +-
configs/lx2160ardb_tfa_defconfig | 2 +-
configs/lx2160ardb_tfa_stmm_defconfig | 2 +-
configs/lx2162aqds_tfa_SECURE_BOOT_defconfig | 2 +-
configs/lx2162aqds_tfa_defconfig | 2 +-
.../lx2162aqds_tfa_verified_boot_defconfig | 2 +-
configs/m53menlo_defconfig | 2 +-
configs/malta64_defconfig | 2 +-
configs/malta64el_defconfig | 2 +-
configs/malta_defconfig | 2 +-
configs/maltael_defconfig | 2 +-
configs/marsboard_defconfig | 2 +-
configs/maxbcm_defconfig | 2 +-
configs/mccmon6_nor_defconfig | 2 +-
configs/mccmon6_sd_defconfig | 2 +-
configs/medcom-wide_defconfig | 2 +-
configs/meesc_dataflash_defconfig | 2 +-
configs/meesc_defconfig | 2 +-
configs/microblaze-generic_defconfig | 2 +-
configs/minnowmax_defconfig | 2 +-
configs/miqi-rk3288_defconfig | 2 +-
configs/mk808_defconfig | 2 +-
configs/mscc_jr2_defconfig | 2 +-
configs/mscc_luton_defconfig | 2 +-
configs/mscc_ocelot_defconfig | 2 +-
configs/mscc_serval_defconfig | 2 +-
configs/mscc_servalt_defconfig | 2 +-
configs/mt7622_rfb_defconfig | 2 +-
configs/mt7623a_unielec_u7623_02_defconfig | 2 +-
configs/mt7623n_bpir2_defconfig | 2 +-
configs/mt7629_rfb_defconfig | 2 +-
configs/mt7981_emmc_rfb_defconfig | 2 +-
configs/mt7981_rfb_defconfig | 2 +-
configs/mt7981_sd_rfb_defconfig | 2 +-
configs/mt7986_rfb_defconfig | 2 +-
configs/mt7986a_bpir3_emmc_defconfig | 2 +-
configs/mt7986a_bpir3_sd_defconfig | 2 +-
configs/mt8183_pumpkin_defconfig | 2 +-
configs/mt8512_bm1_emmc_defconfig | 2 +-
configs/mt8516_pumpkin_defconfig | 2 +-
configs/mt8518_ap1_emmc_defconfig | 2 +-
configs/mvebu_crb_cn9130_defconfig | 2 +-
configs/mvebu_db-88f3720_defconfig | 2 +-
configs/mvebu_db_armada8k_defconfig | 2 +-
configs/mvebu_db_cn9130_defconfig | 2 +-
configs/mvebu_espressobin-88f3720_defconfig | 2 +-
configs/mvebu_mcbin-88f8040_defconfig | 2 +-
configs/mvebu_puzzle-m801-88f8040_defconfig | 2 +-
configs/mx23_olinuxino_defconfig | 2 +-
configs/mx23evk_defconfig | 2 +-
configs/mx28evk_defconfig | 2 +-
configs/mx51evk_defconfig | 2 +-
configs/mx53cx9020_defconfig | 2 +-
configs/mx53loco_defconfig | 2 +-
configs/mx53ppd_defconfig | 2 +-
configs/mx6cuboxi_defconfig | 2 +-
configs/mx6memcal_defconfig | 2 +-
configs/mx6qsabrelite_defconfig | 2 +-
configs/mx6sabreauto_defconfig | 2 +-
configs/mx6sabresd_defconfig | 2 +-
configs/mx6slevk_defconfig | 2 +-
configs/mx6slevk_spinor_defconfig | 2 +-
configs/mx6slevk_spl_defconfig | 2 +-
configs/mx6sllevk_defconfig | 2 +-
configs/mx6sllevk_plugin_defconfig | 2 +-
configs/mx6sxsabreauto_defconfig | 2 +-
configs/mx6sxsabresd_defconfig | 2 +-
configs/mx6ul_14x14_evk_defconfig | 2 +-
configs/mx6ul_9x9_evk_defconfig | 2 +-
configs/mx6ull_14x14_evk_defconfig | 2 +-
configs/mx6ull_14x14_evk_plugin_defconfig | 2 +-
configs/mx6ulz_14x14_evk_defconfig | 2 +-
configs/mx7ulp_com_defconfig | 2 +-
configs/mx7ulp_evk_defconfig | 2 +-
configs/mx7ulp_evk_plugin_defconfig | 2 +-
configs/myir_mys_6ulx_defconfig | 2 +-
configs/nanopc-t4-rk3399_defconfig | 2 +-
configs/nanopi-k2_defconfig | 2 +-
configs/nanopi-m4-2gb-rk3399_defconfig | 2 +-
configs/nanopi-m4-rk3399_defconfig | 2 +-
configs/nanopi-m4b-rk3399_defconfig | 2 +-
configs/nanopi-neo4-rk3399_defconfig | 2 +-
configs/nanopi-r2s-rk3328_defconfig | 2 +-
configs/nanopi-r4s-rk3399_defconfig | 2 +-
configs/nas220_defconfig | 2 +-
configs/net2big_v2_defconfig | 2 +-
configs/netgear_cg3100d_ram_defconfig | 2 +-
configs/netgear_dgnd3700v2_ram_defconfig | 2 +-
configs/netspace_lite_v2_defconfig | 2 +-
configs/netspace_max_v2_defconfig | 2 +-
configs/netspace_mini_v2_defconfig | 2 +-
configs/netspace_v2_defconfig | 2 +-
configs/nitrogen6dl2g_defconfig | 2 +-
configs/nitrogen6dl_defconfig | 2 +-
configs/nitrogen6q2g_defconfig | 2 +-
configs/nitrogen6q_defconfig | 2 +-
configs/nitrogen6s1g_defconfig | 2 +-
configs/nitrogen6s_defconfig | 2 +-
configs/novena_defconfig | 2 +-
configs/nsa310s_defconfig | 2 +-
configs/nsim_700_defconfig | 2 +-
configs/nsim_700be_defconfig | 2 +-
configs/nsim_hs38_defconfig | 2 +-
configs/nsim_hs38be_defconfig | 2 +-
configs/nyan-big_defconfig | 2 +-
configs/o4-imx6ull-nano_defconfig | 2 +-
configs/octeon_ebb7304_defconfig | 2 +-
configs/octeon_nic23_defconfig | 2 +-
configs/octeontx2_95xx_defconfig | 2 +-
configs/octeontx2_96xx_defconfig | 2 +-
configs/octeontx_81xx_defconfig | 2 +-
configs/octeontx_83xx_defconfig | 2 +-
configs/odroid-c2_defconfig | 2 +-
configs/odroid-c4_defconfig | 2 +-
configs/odroid-go2_defconfig | 2 +-
configs/odroid-hc4_defconfig | 2 +-
configs/odroid-n2_defconfig | 2 +-
configs/odroid-xu3_defconfig | 2 +-
configs/odroid_defconfig | 2 +-
configs/omap35_logic_defconfig | 2 +-
configs/omap35_logic_somlv_defconfig | 2 +-
configs/omap3_logic_defconfig | 2 +-
configs/omap3_logic_somlv_defconfig | 2 +-
configs/omapl138_lcdk_defconfig | 2 +-
configs/openpiton_riscv64_defconfig | 2 +-
configs/openpiton_riscv64_spl_defconfig | 2 +-
configs/openrd_base_defconfig | 2 +-
configs/openrd_client_defconfig | 2 +-
configs/openrd_ultimate_defconfig | 2 +-
configs/opos6uldev_defconfig | 2 +-
configs/orangepi-rk3399_defconfig | 2 +-
configs/origen_defconfig | 2 +-
configs/p200_defconfig | 2 +-
configs/p201_defconfig | 2 +-
configs/p212_defconfig | 2 +-
configs/p2371-0000_defconfig | 2 +-
configs/p2371-2180_defconfig | 2 +-
configs/p2571_defconfig | 2 +-
configs/p2771-0000-000_defconfig | 2 +-
configs/p2771-0000-500_defconfig | 2 +-
configs/p3450-0000_defconfig | 2 +-
configs/paz00_defconfig | 2 +-
configs/pcm052_defconfig | 2 +-
configs/pcm058_defconfig | 2 +-
configs/peach-pi_defconfig | 2 +-
configs/peach-pit_defconfig | 2 +-
configs/pg_wcom_expu1_defconfig | 2 +-
configs/pg_wcom_expu1_update_defconfig | 2 +-
configs/pg_wcom_seli8_defconfig | 2 +-
configs/pg_wcom_seli8_update_defconfig | 2 +-
configs/phycore-imx8mm_defconfig | 2 +-
configs/phycore-imx8mp_defconfig | 2 +-
configs/phycore-rk3288_defconfig | 2 +-
configs/phycore_pcl063_defconfig | 2 +-
configs/phycore_pcl063_ull_defconfig | 2 +-
configs/pic32mzdask_defconfig | 2 +-
configs/pico-dwarf-imx6ul_defconfig | 2 +-
configs/pico-hobbit-imx6ul_defconfig | 2 +-
configs/pico-imx6_defconfig | 2 +-
configs/pico-imx6ul_defconfig | 2 +-
configs/pico-imx8mq_defconfig | 2 +-
configs/pico-pi-imx6ul_defconfig | 2 +-
configs/pinebook-pro-rk3399_defconfig | 2 +-
configs/plutux_defconfig | 2 +-
configs/pm9261_defconfig | 2 +-
configs/pm9263_defconfig | 2 +-
configs/pm9g45_defconfig | 2 +-
configs/pogo_e02_defconfig | 2 +-
configs/pogo_v4_defconfig | 2 +-
configs/poleg_evb_defconfig | 2 +-
configs/pomelo_defconfig | 2 +-
configs/poplar_defconfig | 2 +-
configs/popmetal-rk3288_defconfig | 2 +-
configs/porter_defconfig | 2 +-
configs/puma-rk3399_defconfig | 2 +-
configs/px30-core-ctouch2-of10-px30_defconfig | 2 +-
configs/px30-core-ctouch2-px30_defconfig | 2 +-
configs/px30-core-edimm2.2-px30_defconfig | 2 +-
configs/pxm2_defconfig | 2 +-
configs/qemu-ppce500_defconfig | 2 +-
configs/qemu-x86_64_defconfig | 2 +-
configs/qemu-x86_defconfig | 2 +-
configs/r2dplus_defconfig | 2 +-
configs/r8a77970_eagle_defconfig | 2 +-
configs/r8a77980_condor_defconfig | 2 +-
configs/r8a77990_ebisu_defconfig | 2 +-
configs/r8a77995_draak_defconfig | 2 +-
configs/r8a779a0_falcon_defconfig | 2 +-
configs/radxa-zero_defconfig | 2 +-
configs/rastaban_defconfig | 2 +-
configs/rcar3_ulcb_defconfig | 2 +-
configs/riotboard_defconfig | 2 +-
configs/roc-cc-rk3308_defconfig | 2 +-
configs/roc-cc-rk3328_defconfig | 2 +-
configs/roc-pc-mezzanine-rk3399_defconfig | 2 +-
configs/roc-pc-rk3399_defconfig | 2 +-
configs/rock-pi-4-rk3399_defconfig | 2 +-
configs/rock-pi-4c-rk3399_defconfig | 2 +-
configs/rock-pi-e-rk3328_defconfig | 2 +-
configs/rock-pi-n10-rk3399pro_defconfig | 2 +-
configs/rock-pi-n8-rk3288_defconfig | 2 +-
configs/rock2_defconfig | 2 +-
configs/rock64-rk3328_defconfig | 2 +-
configs/rock960-rk3399_defconfig | 2 +-
configs/rock_defconfig | 2 +-
configs/rockpro64-rk3399_defconfig | 2 +-
configs/rpi_0_w_defconfig | 2 +-
configs/rpi_2_defconfig | 2 +-
configs/rpi_3_32b_defconfig | 2 +-
configs/rpi_3_b_plus_defconfig | 2 +-
configs/rpi_3_defconfig | 2 +-
configs/rpi_4_32b_defconfig | 2 +-
configs/rpi_4_defconfig | 2 +-
configs/rpi_arm64_defconfig | 2 +-
configs/rpi_defconfig | 2 +-
configs/rut_defconfig | 2 +-
configs/rzg2_beacon_defconfig | 2 +-
configs/s400_defconfig | 2 +-
configs/s5p4418_nanopi2_defconfig | 2 +-
configs/s5p_goni_defconfig | 2 +-
configs/s5pc210_universal_defconfig | 2 +-
configs/sagem_f@st1704_ram_defconfig | 2 +-
configs/sam9x60_curiosity_mmc_defconfig | 2 +-
configs/sam9x60ek_mmc_defconfig | 2 +-
configs/sam9x60ek_nandflash_defconfig | 2 +-
configs/sam9x60ek_qspiflash_defconfig | 2 +-
configs/sama5d27_giantboard_defconfig | 2 +-
configs/sama5d27_som1_ek_mmc1_defconfig | 2 +-
configs/sama5d27_som1_ek_mmc_defconfig | 2 +-
configs/sama5d27_som1_ek_qspiflash_defconfig | 2 +-
configs/sama5d27_wlsom1_ek_mmc_defconfig | 2 +-
.../sama5d27_wlsom1_ek_qspiflash_defconfig | 2 +-
configs/sama5d2_icp_mmc_defconfig | 2 +-
configs/sama5d2_icp_qspiflash_defconfig | 2 +-
configs/sama5d2_ptc_ek_mmc_defconfig | 2 +-
configs/sama5d2_ptc_ek_nandflash_defconfig | 2 +-
configs/sama5d2_xplained_emmc_defconfig | 2 +-
configs/sama5d2_xplained_mmc_defconfig | 2 +-
configs/sama5d2_xplained_qspiflash_defconfig | 2 +-
configs/sama5d2_xplained_spiflash_defconfig | 2 +-
configs/sama5d36ek_cmp_mmc_defconfig | 2 +-
configs/sama5d36ek_cmp_nandflash_defconfig | 2 +-
configs/sama5d36ek_cmp_spiflash_defconfig | 2 +-
configs/sama5d3_xplained_mmc_defconfig | 2 +-
configs/sama5d3_xplained_nandflash_defconfig | 2 +-
configs/sama5d3xek_mmc_defconfig | 2 +-
configs/sama5d3xek_nandflash_defconfig | 2 +-
configs/sama5d3xek_spiflash_defconfig | 2 +-
configs/sama5d4_xplained_mmc_defconfig | 2 +-
configs/sama5d4_xplained_nandflash_defconfig | 2 +-
configs/sama5d4_xplained_spiflash_defconfig | 2 +-
configs/sama5d4ek_mmc_defconfig | 2 +-
configs/sama5d4ek_nandflash_defconfig | 2 +-
configs/sama5d4ek_spiflash_defconfig | 2 +-
configs/sama7g5ek_mmc1_defconfig | 2 +-
configs/sama7g5ek_mmc_defconfig | 2 +-
configs/sandbox64_defconfig | 2 +-
configs/sandbox_defconfig | 2 +-
configs/sandbox_flattree_defconfig | 2 +-
configs/sandbox_noinst_defconfig | 2 +-
configs/sandbox_spl_defconfig | 2 +-
configs/sandbox_vpl_defconfig | 15 +-
configs/seaboard_defconfig | 2 +-
configs/seeed_npi_imx6ull_defconfig | 2 +-
configs/sei510_defconfig | 2 +-
configs/sei610_defconfig | 2 +-
configs/sfr_nb4-ser_ram_defconfig | 2 +-
configs/sheep-rk3368_defconfig | 2 +-
configs/sheevaplug_defconfig | 2 +-
configs/silinux_ek874_defconfig | 2 +-
configs/silk_defconfig | 2 +-
configs/sipeed_maix_smode_defconfig | 2 +-
configs/smartweb_defconfig | 2 +-
configs/smdk5250_defconfig | 2 +-
configs/smdk5420_defconfig | 2 +-
configs/smdkc100_defconfig | 2 +-
configs/smdkv310_defconfig | 2 +-
configs/sniper_defconfig | 2 +-
configs/snow_defconfig | 2 +-
configs/socfpga_agilex_atf_defconfig | 2 +-
configs/socfpga_agilex_defconfig | 2 +-
configs/socfpga_agilex_vab_defconfig | 2 +-
configs/socfpga_n5x_atf_defconfig | 2 +-
configs/socfpga_n5x_defconfig | 2 +-
configs/socfpga_n5x_vab_defconfig | 2 +-
configs/socfpga_stratix10_atf_defconfig | 2 +-
configs/socfpga_stratix10_defconfig | 2 +-
configs/socrates_defconfig | 2 +-
configs/som-db5800-som-6867_defconfig | 2 +-
configs/somlabs_visionsom_6ull_defconfig | 2 +-
configs/spring_defconfig | 2 +-
configs/stemmy_defconfig | 2 +-
configs/stih410-b2260_defconfig | 2 +-
configs/stm32746g-eval_defconfig | 2 +-
configs/stm32746g-eval_spl_defconfig | 2 +-
configs/stm32f429-discovery_defconfig | 2 +-
configs/stm32f429-evaluation_defconfig | 2 +-
configs/stm32f469-discovery_defconfig | 2 +-
configs/stm32f746-disco_defconfig | 2 +-
configs/stm32f746-disco_spl_defconfig | 2 +-
configs/stm32f769-disco_defconfig | 2 +-
configs/stm32f769-disco_spl_defconfig | 2 +-
configs/stm32h743-disco_defconfig | 2 +-
configs/stm32h743-eval_defconfig | 2 +-
configs/stm32h750-art-pi_defconfig | 2 +-
configs/stmark2_defconfig | 2 +-
configs/stout_defconfig | 2 +-
configs/stv0991_defconfig | 2 +-
configs/synquacer_developerbox_defconfig | 2 +-
configs/syzygy_hub_defconfig | 2 +-
configs/taurus_defconfig | 2 +-
configs/tb100_defconfig | 2 +-
configs/tbs2910_defconfig | 2 +-
configs/tec-ng_defconfig | 2 +-
configs/tec_defconfig | 2 +-
configs/ten64_tfa_defconfig | 2 +-
...able-x86-conga-qa3-e3845-pcie-x4_defconfig | 2 +-
.../theadorable-x86-conga-qa3-e3845_defconfig | 2 +-
configs/theadorable-x86-dfi-bt700_defconfig | 2 +-
configs/theadorable_debug_defconfig | 2 +-
configs/thuban_defconfig | 2 +-
configs/thunderx_88xx_defconfig | 2 +-
configs/tinker-rk3288_defconfig | 2 +-
configs/tinker-s-rk3288_defconfig | 2 +-
configs/tools-only_defconfig | 2 +-
configs/topic_miami_defconfig | 2 +-
configs/topic_miamilite_defconfig | 2 +-
configs/topic_miamiplus_defconfig | 2 +-
configs/total_compute_defconfig | 2 +-
configs/tplink_wdr4300_defconfig | 2 +-
configs/trats2_defconfig | 2 +-
configs/trats_defconfig | 2 +-
configs/trimslice_defconfig | 2 +-
configs/tuge1_defconfig | 2 +-
configs/turris_mox_defconfig | 2 +-
configs/turris_omnia_defconfig | 2 +-
configs/tuxx1_defconfig | 2 +-
configs/u200_defconfig | 2 +-
configs/uDPU_defconfig | 2 +-
configs/udoo_defconfig | 2 +-
configs/udoo_neo_defconfig | 2 +-
configs/uniphier_ld4_sld8_defconfig | 2 +-
configs/uniphier_v7_defconfig | 2 +-
configs/uniphier_v8_defconfig | 2 +-
configs/usb_a9263_dataflash_defconfig | 2 +-
configs/usbarmory_defconfig | 2 +-
configs/variscite_dart6ul_defconfig | 2 +-
configs/venice2_defconfig | 2 +-
configs/ventana_defconfig | 2 +-
configs/verdin-imx8mm_defconfig | 2 +-
configs/verdin-imx8mp_defconfig | 2 +-
configs/vexpress_ca9x4_defconfig | 2 +-
configs/vf610twr_defconfig | 2 +-
configs/vf610twr_nand_defconfig | 2 +-
configs/vinco_defconfig | 2 +-
configs/vining_2000_defconfig | 2 +-
configs/vyasa-rk3288_defconfig | 2 +-
configs/wandboard_defconfig | 2 +-
configs/wetek-core2_defconfig | 2 +-
configs/work_92105_defconfig | 2 +-
configs/x530_defconfig | 2 +-
configs/xenguest_arm64_defconfig | 2 +-
configs/xilinx_versal_mini_defconfig | 2 +-
configs/xilinx_versal_mini_emmc0_defconfig | 2 +-
configs/xilinx_versal_mini_emmc1_defconfig | 2 +-
configs/xilinx_versal_net_mini_defconfig | 2 +-
configs/xilinx_versal_net_virt_defconfig | 2 +-
configs/xilinx_versal_virt_defconfig | 2 +-
configs/xilinx_zynq_virt_defconfig | 2 +-
configs/xilinx_zynqmp_mini_defconfig | 2 +-
configs/xilinx_zynqmp_mini_emmc0_defconfig | 2 +-
configs/xilinx_zynqmp_mini_emmc1_defconfig | 2 +-
configs/xilinx_zynqmp_mini_nand_defconfig | 2 +-
.../xilinx_zynqmp_mini_nand_single_defconfig | 2 +-
configs/xilinx_zynqmp_mini_qspi_defconfig | 2 +-
configs/xilinx_zynqmp_r5_defconfig | 2 +-
configs/xilinx_zynqmp_virt_defconfig | 2 +-
configs/zynq_cse_nand_defconfig | 2 +-
configs/zynq_cse_nor_defconfig | 2 +-
configs/zynq_cse_qspi_defconfig | 2 +-
disk/disk-uclass.c | 62 +--
disk/part_efi.c | 150 ++++---
doc/README.arm-relocation | 10 +-
doc/SPL/README.omap3 | 6 +-
doc/arch/m68k.rst | 2 +-
doc/arch/sandbox.rst | 2 +-
doc/board/coreboot/coreboot.rst | 4 +-
doc/board/google/chromebook_coral.rst | 4 +-
doc/board/google/chromebook_samus.rst | 2 +-
doc/board/intel/minnowmax.rst | 2 +-
doc/board/intel/slimbootloader.rst | 4 +-
doc/board/nxp/mx6ul_14x14_evk.rst | 4 +-
doc/board/sipeed/maix.rst | 4 +-
doc/chromium/chainload.rst | 8 +-
doc/develop/moveconfig.rst | 4 +-
doc/develop/tests_writing.rst | 27 ++
doc/imx/habv4/csf_examples/mx8m/csf.sh | 2 +-
doc/imx/habv4/guides/mx8m_spl_secure_boot.txt | 4 +-
doc/uImage.FIT/howto.txt | 6 +
doc/uImage.FIT/source_file_format.txt | 3 +
drivers/Makefile | 2 +-
drivers/block/Kconfig | 1 -
drivers/block/Makefile | 2 +-
drivers/block/blk-uclass.c | 51 ++-
drivers/mmc/Makefile | 2 +-
drivers/mmc/sandbox_mmc.c | 10 +-
drivers/scsi/scsi_emul.c | 9 +
drivers/usb/emul/sandbox_flash.c | 35 +-
include/blk.h | 39 +-
include/bloblist.h | 1 +
include/bootflow.h | 12 +
include/bootstage.h | 2 +
include/configs/MCR3000.h | 2 +-
include/configs/MPC837XERDB.h | 10 +-
include/configs/MPC8548CDS.h | 10 +-
include/configs/P2041RDB.h | 6 +-
include/configs/T102xRDB.h | 4 +-
include/configs/T104xRDB.h | 2 +-
include/configs/T208xQDS.h | 4 +-
include/configs/T208xRDB.h | 4 +-
include/configs/T4240RDB.h | 4 +-
include/configs/am3517_evm.h | 2 +-
include/configs/at91sam9260ek.h | 2 +-
include/configs/baltos.h | 2 +-
include/configs/bcmstb.h | 2 +-
include/configs/cobra5272.h | 2 +-
include/configs/corenet_ds.h | 365 ++++++++++++++++++
include/configs/corvus.h | 6 +-
include/configs/devkit3250.h | 6 +-
include/configs/evb_ast2500.h | 2 +-
include/configs/evb_ast2600.h | 2 +-
.../configs/gardena-smart-gateway-at91sam.h | 4 +-
.../configs/gardena-smart-gateway-mt7688.h | 2 +-
include/configs/hikey.h | 2 +-
include/configs/hikey960.h | 2 +-
include/configs/imx6-engicam.h | 2 +-
include/configs/imx6_logic.h | 2 +-
include/configs/kontron-sl-mx6ul.h | 2 +-
include/configs/linkit-smart-7688.h | 2 +-
include/configs/ls1021aqds.h | 4 +-
include/configs/ls1043a_common.h | 6 +-
include/configs/ls1046a_common.h | 4 +-
include/configs/ls1046aqds.h | 2 +-
include/configs/ls1088a_common.h | 2 +-
include/configs/ls2080a_common.h | 2 +-
include/configs/meesc.h | 2 +-
include/configs/microblaze-generic.h | 2 +-
include/configs/mt7620.h | 2 +-
include/configs/mt7622.h | 4 +-
include/configs/mt7628.h | 2 +-
include/configs/mt7981.h | 4 +-
include/configs/mt7986.h | 4 +-
include/configs/mt8512.h | 2 +-
include/configs/mv-common.h | 2 +-
include/configs/octeontx2_common.h | 2 +-
include/configs/octeontx_common.h | 2 +-
include/configs/p1_p2_rdb_pc.h | 18 +-
include/configs/rpi.h | 2 +-
include/configs/siemens-am33x-common.h | 2 +-
include/configs/smartweb.h | 6 +-
include/configs/taurus.h | 6 +-
include/configs/ti_armv7_common.h | 2 +-
include/configs/vocore2.h | 2 +-
include/configs/work_92105.h | 6 +-
include/image.h | 135 ++++++-
include/part.h | 12 +-
include/scsi.h | 10 +
include/scsi_emul.h | 16 +-
include/spl.h | 26 +-
include/test/test.h | 10 +
include/test/ut.h | 4 +-
include/vbe.h | 37 ++
lib/efi/efi_stub.c | 10 +-
lib/efi_loader/efi_disk.c | 6 +-
lib/efi_loader/efi_runtime.c | 8 +-
lib/trace.c | 4 +-
test/boot/Makefile | 1 +
test/boot/bootflow.c | 4 +-
test/boot/bootmeth.c | 13 +-
test/boot/image.c | 36 ++
test/boot/vbe_fixup.c | 19 +-
test/boot/vbe_simple.c | 9 +-
test/cmd_ut.c | 16 +-
test/dm/of_platdata.c | 2 +-
test/dm/ofnode.c | 25 +-
test/dm/test-dm.c | 2 +-
test/dm/usb.c | 30 +-
test/py/conftest.py | 8 +-
test/py/tests/test_event_dump.py | 4 +-
test/py/tests/test_vbe.py | 7 +-
test/py/tests/test_vbe_vpl.py | 38 ++
test/test-main.c | 50 ++-
tools/binman/binman.rst | 4 +-
tools/binman/elf.py | 92 ++++-
tools/binman/entries.rst | 2 +-
tools/binman/entry.py | 16 +-
tools/binman/etype/blob.py | 5 +-
tools/binman/etype/fit.py | 2 +-
tools/binman/etype/section.py | 60 ++-
tools/binman/etype/u_boot_spl.py | 7 +-
tools/binman/etype/u_boot_spl_elf.py | 3 +-
tools/binman/etype/u_boot_spl_nodtb.py | 6 +-
tools/binman/etype/u_boot_tpl.py | 6 +-
tools/binman/etype/u_boot_tpl_elf.py | 3 +-
tools/binman/etype/u_boot_tpl_nodtb.py | 6 +-
tools/binman/etype/u_boot_vpl.py | 6 +-
tools/binman/etype/u_boot_vpl_elf.py | 25 ++
tools/binman/etype/u_boot_vpl_nodtb.py | 6 +-
tools/binman/etype/u_boot_with_ucode_ptr.py | 2 +-
tools/binman/ftest.py | 57 +++
tools/binman/test/256_symbols_elf.dts | 27 ++
tools/docker/Dockerfile | 1 +
1192 files changed, 3650 insertions(+), 1791 deletions(-)
create mode 100644 arch/sandbox/dts/sandbox_vpl.dtsi
rename boot/{vbe_fixup.c => vbe_request.c} (96%)
create mode 100644 boot/vbe_simple.h
create mode 100644 boot/vbe_simple_fw.c
create mode 100644 boot/vbe_simple_os.c
create mode 100644 include/configs/corenet_ds.h
create mode 100644 test/boot/image.c
create mode 100644 test/py/tests/test_vbe_vpl.py
create mode 100644 tools/binman/etype/u_boot_vpl_elf.py
create mode 100644 tools/binman/test/256_symbols_elf.dtsSignature · 1 line
2.38.0.rc1.362.ged0d419d3c-goog
PATCH v2 3/45 Rename CONFIG_SYS_TEXT_BASE to CONFIG_TEXT_BASE
The current name is inconsistent with SPL which uses CONFIG_SPL_TEXT_BASE and this makes it imposible to use CONFIG_VAL().
Rename it to resolve this problem.
---
Changes in v2:
- Rebase to master
Kconfig | 2 +- Makefile | 26 +- arch/arc/cpu/u-boot.lds | 2 +- arch/arm/Kconfig | 2 +- arch/arm/cpu/arm1176/start.S | 2 +- arch/arm/cpu/arm926ejs/mxs/Makefile | 4 +- arch/arm/cpu/armv7/ls102xa/fdt.c | 6 +- .../armv8/linux-kernel-image-header-vars.h | 2 +- arch/arm/cpu/armv8/start.S | 2 +- .../dts/fsl-ls1028a-kontron-sl28-u-boot.dtsi | 2 +- arch/arm/dts/imx8mm-u-boot.dtsi | 2 +- arch/arm/dts/imx8mn-beacon-kit-u-boot.dtsi | 2 +- .../dts/imx8mn-bsh-smm-s2-u-boot-common.dtsi | 2 +- arch/arm/dts/imx8mn-ddr4-evk-u-boot.dtsi | 2 +- arch/arm/dts/imx8mn-evk-u-boot.dtsi | 2 +- .../dts/imx8mn-var-som-symphony-u-boot.dtsi | 2 +- arch/arm/dts/imx8mn-venice-u-boot.dtsi | 2 +- arch/arm/dts/imx8mp-u-boot.dtsi | 2 +- arch/arm/dts/imx8mq-cm-u-boot.dtsi | 2 +- arch/arm/dts/imx8mq-u-boot.dtsi | 2 +- arch/arm/dts/rockchip-optee.dtsi | 2 +- arch/arm/dts/sunxi-u-boot.dtsi | 2 +- arch/arm/dts/tegra-u-boot.dtsi | 2 +- arch/arm/include/asm/arch-mxs/sys_proto.h | 2 +- arch/arm/include/asm/arch-sunxi/boot0.h | 2 +- arch/arm/lib/crt0.S | 2 +- arch/arm/lib/relocate_64.S | 2 +- arch/arm/mach-apple/Kconfig | 4 +- arch/arm/mach-aspeed/Kconfig | 2 +- arch/arm/mach-at91/arm920t/lowlevel_init.S | 4 +- arch/arm/mach-at91/arm926ejs/lowlevel_init.S | 2 +- arch/arm/mach-exynos/spl_boot.c | 10 +- arch/arm/mach-imx/Makefile | 10 +- arch/arm/mach-imx/imx8/cpu.c | 4 +- arch/arm/mach-imx/mx7/Kconfig | 2 +- arch/arm/mach-imx/spl.c | 2 +- arch/arm/mach-ipq40xx/Kconfig | 2 +- arch/arm/mach-k3/config_secure.mk | 2 +- arch/arm/mach-k3/sysfw-loader.c | 2 +- arch/arm/mach-keystone/config.mk | 2 +- arch/arm/mach-nexell/include/mach/boot0.h | 6 +- arch/arm/mach-npcm/Kconfig | 2 +- arch/arm/mach-octeontx/cpu.c | 2 +- arch/arm/mach-octeontx2/cpu.c | 2 +- arch/arm/mach-omap2/config_secure.mk | 4 +- arch/arm/mach-owl/Kconfig | 2 +- arch/arm/mach-rockchip/Kconfig | 2 +- arch/arm/mach-socfpga/Kconfig | 2 +- arch/arm/mach-stm32mp/Kconfig.13x | 2 +- arch/arm/mach-stm32mp/Kconfig.15x | 2 +- arch/arm/mach-sunxi/board.c | 2 +- arch/arm/mach-sunxi/spl_spi_sunxi.c | 2 +- arch/arm/mach-zynqmp/mkimage_fit_atf.sh | 2 +- arch/m68k/cpu/mcf52x2/start.S | 12 +- arch/m68k/cpu/mcf530x/start.S | 4 +- arch/m68k/cpu/mcf5445x/start.S | 16 +- arch/microblaze/cpu/relocate.c | 6 +- arch/microblaze/cpu/start.S | 8 +- arch/mips/mach-jz47xx/jz4780/jz4780.c | 4 +- arch/mips/mach-mscc/lowlevel_init.S | 2 +- arch/mips/mach-mtmips/Kconfig | 2 +- arch/powerpc/cpu/mpc85xx/cpu_init_early.c | 4 +- arch/powerpc/cpu/mpc85xx/u-boot.lds | 2 +- arch/powerpc/dts/kmcent2-u-boot.dtsi | 4 +- arch/powerpc/dts/u-boot.dtsi | 4 +- arch/riscv/dts/binman.dtsi | 2 +- arch/sh/cpu/u-boot.lds | 2 +- arch/x86/Kconfig | 4 +- arch/x86/cpu/apollolake/spl.c | 2 +- arch/x86/cpu/quark/quark.c | 2 +- arch/x86/cpu/start.S | 6 +- arch/x86/cpu/u-boot-64.lds | 4 +- arch/x86/cpu/u-boot.lds | 2 +- arch/x86/lib/relocate.c | 6 +- arch/x86/lib/spl.c | 6 +- board/BuS/eb_cpu5282/eb_cpu5282.c | 2 +- board/advantech/som-db5800-som-6867/Kconfig | 2 +- board/armltd/vexpress64/Kconfig | 4 +- board/beacon/beacon-rzg2m/beacon-rzg2m.c | 2 +- board/broadcom/bcmstb/bcmstb.c | 4 +- board/cobra5272/README | 8 +- board/congatec/cgtqmx8/cgtqmx8.c | 2 +- .../congatec/conga-qeval20-qa3-e3845/Kconfig | 2 +- board/coreboot/coreboot/Kconfig | 2 +- board/cssi/MCR3000/Kconfig | 2 +- board/davinci/da8xxevm/README.da850 | 2 +- board/dfi/dfi-bt700/Kconfig | 2 +- board/efi/efi-x86_payload/Kconfig | 2 +- board/emulation/qemu-arm/Kconfig | 2 +- board/emulation/qemu-riscv/Kconfig | 2 +- board/emulation/qemu-x86/Kconfig | 2 +- .../freescale/imx8qm_mek/uboot-container.cfg | 2 +- .../freescale/imx8qxp_mek/uboot-container.cfg | 2 +- board/freescale/ls1021atsn/ls1021atsn.c | 2 +- board/freescale/ls1021atwr/ls1021atwr.c | 2 +- board/freescale/ls1028a/Kconfig | 4 +- board/google/chromebook_coral/Kconfig | 2 +- board/google/chromebook_link/Kconfig | 2 +- board/google/chromebook_samus/Kconfig | 2 +- board/google/chromebox_panther/Kconfig | 2 +- board/hoperun/hihope-rzg2/hihope-rzg2.c | 2 +- board/hpe/gxp/Kconfig | 2 +- board/imgtec/boston/Kconfig | 2 +- board/imgtec/ci20/Kconfig | 2 +- board/imgtec/malta/Kconfig | 2 +- board/imgtec/xilfpga/Kconfig | 2 +- board/intel/bayleybay/Kconfig | 2 +- board/intel/cherryhill/Kconfig | 2 +- board/intel/cougarcanyon2/Kconfig | 2 +- board/intel/crownbay/Kconfig | 2 +- board/intel/edison/Kconfig | 2 +- board/intel/galileo/Kconfig | 2 +- board/intel/minnowmax/Kconfig | 2 +- board/intel/slimbootloader/Kconfig | 2 +- board/keymile/common/common.c | 4 +- board/kontron/sl28/Kconfig | 2 +- board/microchip/mpfs_icicle/Kconfig | 2 +- board/microchip/pic32mzda/Kconfig | 2 +- board/nokia/rx51/lowlevel_init.S | 6 +- board/openpiton/riscv64/Kconfig | 2 +- board/qca/ap121/Kconfig | 2 +- board/qca/ap143/Kconfig | 2 +- board/qca/ap152/Kconfig | 2 +- board/qualcomm/dragonboard820c/head.S | 2 +- board/renesas/falcon/falcon.c | 2 +- board/siemens/capricorn/uboot-container.cfg | 2 +- board/sifive/unleashed/Kconfig | 2 +- board/sifive/unmatched/Kconfig | 2 +- board/silinux/ek874/ek874.c | 2 +- board/sipeed/maix/Kconfig | 2 +- board/socrates/socrates.c | 2 +- board/synopsys/axs10x/headerize-axs.py | 2 +- board/synopsys/hsdk/headerize-hsdk.py | 2 +- board/ti/ks2_evm/board.c | 2 +- board/tplink/wdr4300/Kconfig | 2 +- board/tq/tqma6/Kconfig | 2 +- boot/Kconfig | 10 +- cmd/sf.c | 2 +- common/autoboot.c | 8 +- common/board_f.c | 10 +- common/board_r.c | 2 +- common/spl/spl.c | 8 +- common/spl/spl_atf.c | 2 +- common/spl/spl_nand.c | 6 +- common/spl/spl_optee.S | 2 +- configs/M5208EVBE_defconfig | 2 +- configs/M5235EVB_Flash32_defconfig | 2 +- configs/M5235EVB_defconfig | 2 +- configs/M5249EVB_defconfig | 2 +- configs/M5253DEMO_defconfig | 2 +- configs/M5272C3_defconfig | 2 +- configs/M5275EVB_defconfig | 2 +- configs/M5282EVB_defconfig | 2 +- configs/M53017EVB_defconfig | 2 +- configs/M5329AFEE_defconfig | 2 +- configs/M5329BFEE_defconfig | 2 +- configs/M5373EVB_defconfig | 2 +- configs/MCR3000_defconfig | 2 +- configs/MPC837XERDB_defconfig | 2 +- configs/MPC8548CDS_36BIT_defconfig | 2 +- configs/MPC8548CDS_defconfig | 2 +- configs/MPC8548CDS_legacy_defconfig | 2 +- configs/P1010RDB-PA_36BIT_NAND_defconfig | 2 +- configs/P1010RDB-PA_36BIT_NOR_defconfig | 2 +- configs/P1010RDB-PA_36BIT_SDCARD_defconfig | 2 +- configs/P1010RDB-PA_36BIT_SPIFLASH_defconfig | 2 +- configs/P1010RDB-PA_NAND_defconfig | 2 +- configs/P1010RDB-PA_NOR_defconfig | 2 +- configs/P1010RDB-PA_SDCARD_defconfig | 2 +- configs/P1010RDB-PA_SPIFLASH_defconfig | 2 +- configs/P1010RDB-PB_36BIT_NAND_defconfig | 2 +- configs/P1010RDB-PB_36BIT_NOR_defconfig | 2 +- configs/P1010RDB-PB_36BIT_SDCARD_defconfig | 2 +- configs/P1010RDB-PB_36BIT_SPIFLASH_defconfig | 2 +- configs/P1010RDB-PB_NAND_defconfig | 2 +- configs/P1010RDB-PB_NOR_defconfig | 2 +- configs/P1010RDB-PB_SDCARD_defconfig | 2 +- configs/P1010RDB-PB_SPIFLASH_defconfig | 2 +- configs/P1020RDB-PC_36BIT_NAND_defconfig | 2 +- configs/P1020RDB-PC_36BIT_SDCARD_defconfig | 2 +- configs/P1020RDB-PC_36BIT_SPIFLASH_defconfig | 2 +- configs/P1020RDB-PC_36BIT_defconfig | 2 +- configs/P1020RDB-PC_NAND_defconfig | 2 +- configs/P1020RDB-PC_SDCARD_defconfig | 2 +- configs/P1020RDB-PC_SPIFLASH_defconfig | 2 +- configs/P1020RDB-PC_defconfig | 2 +- configs/P1020RDB-PD_NAND_defconfig | 2 +- configs/P1020RDB-PD_SDCARD_defconfig | 2 +- configs/P1020RDB-PD_SPIFLASH_defconfig | 2 +- configs/P1020RDB-PD_defconfig | 2 +- configs/P2020RDB-PC_36BIT_NAND_defconfig | 2 +- configs/P2020RDB-PC_36BIT_SDCARD_defconfig | 2 +- configs/P2020RDB-PC_36BIT_SPIFLASH_defconfig | 2 +- configs/P2020RDB-PC_36BIT_defconfig | 2 +- configs/P2020RDB-PC_NAND_defconfig | 2 +- configs/P2020RDB-PC_SDCARD_defconfig | 2 +- configs/P2020RDB-PC_SPIFLASH_defconfig | 2 +- configs/P2020RDB-PC_defconfig | 2 +- configs/P2041RDB_NAND_defconfig | 2 +- configs/P2041RDB_SDCARD_defconfig | 2 +- configs/P2041RDB_SPIFLASH_defconfig | 2 +- configs/P2041RDB_defconfig | 2 +- configs/SBx81LIFKW_defconfig | 2 +- configs/SBx81LIFXCAT_defconfig | 2 +- configs/T1024RDB_NAND_defconfig | 2 +- configs/T1024RDB_SDCARD_defconfig | 2 +- configs/T1024RDB_SPIFLASH_defconfig | 2 +- configs/T1024RDB_defconfig | 2 +- configs/T1042D4RDB_NAND_defconfig | 2 +- configs/T1042D4RDB_SDCARD_defconfig | 2 +- configs/T1042D4RDB_SPIFLASH_defconfig | 2 +- configs/T1042D4RDB_defconfig | 2 +- configs/T2080QDS_NAND_defconfig | 2 +- configs/T2080QDS_SDCARD_defconfig | 2 +- configs/T2080QDS_SECURE_BOOT_defconfig | 2 +- configs/T2080QDS_SPIFLASH_defconfig | 2 +- configs/T2080QDS_SRIO_PCIE_BOOT_defconfig | 2 +- configs/T2080QDS_defconfig | 2 +- configs/T2080RDB_NAND_defconfig | 2 +- configs/T2080RDB_SDCARD_defconfig | 2 +- configs/T2080RDB_SPIFLASH_defconfig | 2 +- configs/T2080RDB_defconfig | 2 +- configs/T2080RDB_revD_NAND_defconfig | 2 +- configs/T2080RDB_revD_SDCARD_defconfig | 2 +- configs/T2080RDB_revD_SPIFLASH_defconfig | 2 +- configs/T2080RDB_revD_defconfig | 2 +- configs/T4240RDB_SDCARD_defconfig | 2 +- configs/T4240RDB_defconfig | 2 +- configs/a3y17lte_defconfig | 2 +- configs/a5y17lte_defconfig | 2 +- configs/a7y17lte_defconfig | 2 +- configs/ae350_rv32_defconfig | 2 +- configs/ae350_rv32_spl_defconfig | 2 +- configs/ae350_rv32_spl_xip_defconfig | 2 +- configs/ae350_rv32_xip_defconfig | 2 +- configs/ae350_rv64_defconfig | 2 +- configs/ae350_rv64_spl_defconfig | 2 +- configs/ae350_rv64_spl_xip_defconfig | 2 +- configs/ae350_rv64_xip_defconfig | 2 +- configs/alt_defconfig | 2 +- configs/am3517_evm_defconfig | 2 +- configs/am43xx_evm_qspiboot_defconfig | 2 +- configs/amcore_defconfig | 2 +- configs/ap121_defconfig | 2 +- configs/ap143_defconfig | 2 +- configs/ap152_defconfig | 2 +- configs/apalis-imx8_defconfig | 2 +- configs/apalis-tk1_defconfig | 2 +- configs/apalis_imx6_defconfig | 2 +- configs/apalis_t30_defconfig | 2 +- configs/aristainetos2c_defconfig | 2 +- configs/aristainetos2ccslb_defconfig | 2 +- configs/arndale_defconfig | 2 +- configs/astro_mcf5373l_defconfig | 2 +- configs/at91sam9260ek_dataflash_cs0_defconfig | 2 +- configs/at91sam9260ek_dataflash_cs1_defconfig | 2 +- configs/at91sam9260ek_nandflash_defconfig | 2 +- configs/at91sam9261ek_dataflash_cs0_defconfig | 2 +- configs/at91sam9261ek_dataflash_cs3_defconfig | 2 +- configs/at91sam9261ek_nandflash_defconfig | 2 +- configs/at91sam9263ek_dataflash_cs0_defconfig | 2 +- configs/at91sam9263ek_dataflash_defconfig | 2 +- configs/at91sam9263ek_nandflash_defconfig | 2 +- configs/at91sam9263ek_norflash_boot_defconfig | 2 +- configs/at91sam9263ek_norflash_defconfig | 2 +- configs/at91sam9g10ek_dataflash_cs0_defconfig | 2 +- configs/at91sam9g10ek_dataflash_cs3_defconfig | 2 +- configs/at91sam9g10ek_nandflash_defconfig | 2 +- configs/at91sam9g20ek_2mmc_defconfig | 2 +- .../at91sam9g20ek_2mmc_nandflash_defconfig | 2 +- configs/at91sam9g20ek_dataflash_cs0_defconfig | 2 +- configs/at91sam9g20ek_dataflash_cs1_defconfig | 2 +- configs/at91sam9g20ek_nandflash_defconfig | 2 +- configs/at91sam9m10g45ek_mmc_defconfig | 2 +- configs/at91sam9m10g45ek_nandflash_defconfig | 2 +- configs/at91sam9n12ek_mmc_defconfig | 2 +- configs/at91sam9n12ek_nandflash_defconfig | 2 +- configs/at91sam9n12ek_spiflash_defconfig | 2 +- configs/at91sam9rlek_dataflash_defconfig | 2 +- configs/at91sam9rlek_mmc_defconfig | 2 +- configs/at91sam9rlek_nandflash_defconfig | 2 +- configs/at91sam9x5ek_dataflash_defconfig | 2 +- configs/at91sam9x5ek_mmc_defconfig | 2 +- configs/at91sam9x5ek_nandflash_defconfig | 2 +- configs/at91sam9x5ek_spiflash_defconfig | 2 +- configs/at91sam9xeek_dataflash_cs0_defconfig | 2 +- configs/at91sam9xeek_dataflash_cs1_defconfig | 2 +- configs/at91sam9xeek_nandflash_defconfig | 2 +- ...edev_cc_v1_0_ultrazedev_som_v1_0_defconfig | 2 +- configs/axm_defconfig | 2 +- configs/axs101_defconfig | 2 +- configs/axs103_defconfig | 2 +- configs/bananapi-m5_defconfig | 2 +- configs/bayleybay_defconfig | 2 +- configs/bcm7260_defconfig | 2 +- configs/bcm7445_defconfig | 2 +- configs/bcm947622_defconfig | 2 +- configs/bcm963158_ram_defconfig | 2 +- configs/bcm96753ref_ram_defconfig | 2 +- configs/bcm968360bg_ram_defconfig | 2 +- configs/bcm968380gerg_ram_defconfig | 2 +- configs/bcm968580xref_ram_defconfig | 2 +- configs/bcm_ns3_defconfig | 2 +- configs/beaver_defconfig | 2 +- configs/beelink-gsking-x_defconfig | 2 +- configs/beelink-gtking_defconfig | 2 +- configs/beelink-gtkingpro_defconfig | 2 +- configs/bitmain_antminer_s9_defconfig | 2 +- configs/bk4r1_defconfig | 2 +- configs/blanche_defconfig | 2 +- configs/boston32r2_defconfig | 2 +- configs/boston32r2el_defconfig | 2 +- configs/boston32r6_defconfig | 2 +- configs/boston32r6el_defconfig | 2 +- configs/boston64r2_defconfig | 2 +- configs/boston64r2el_defconfig | 2 +- configs/boston64r6_defconfig | 2 +- configs/boston64r6el_defconfig | 2 +- configs/brppt2_defconfig | 2 +- configs/cardhu_defconfig | 2 +- configs/cei-tk1-som_defconfig | 2 +- configs/cgtqmx8_defconfig | 2 +- configs/cherryhill_defconfig | 2 +- configs/chromebit_mickey_defconfig | 2 +- configs/chromebook_bob_defconfig | 2 +- configs/chromebook_coral_defconfig | 2 +- configs/chromebook_jerry_defconfig | 2 +- configs/chromebook_kevin_defconfig | 2 +- configs/chromebook_link_defconfig | 2 +- configs/chromebook_minnie_defconfig | 2 +- configs/chromebook_samus_defconfig | 2 +- configs/chromebook_samus_tpl_defconfig | 2 +- configs/chromebook_speedy_defconfig | 2 +- configs/chromebox_panther_defconfig | 2 +- configs/ci20_mmc_defconfig | 2 +- configs/clearfog_defconfig | 2 +- configs/clearfog_gt_8k_defconfig | 2 +- configs/cm_fx6_defconfig | 2 +- configs/cobra5272_defconfig | 2 +- configs/colibri-imx6ull-emmc_defconfig | 2 +- configs/colibri-imx6ull_defconfig | 2 +- configs/colibri-imx8x_defconfig | 2 +- configs/colibri_imx6_defconfig | 2 +- configs/colibri_t20_defconfig | 2 +- configs/colibri_t30_defconfig | 2 +- configs/colibri_vf_defconfig | 2 +- configs/comtrend_ar5315u_ram_defconfig | 2 +- configs/comtrend_ar5387un_ram_defconfig | 2 +- configs/comtrend_ct5361_ram_defconfig | 2 +- configs/comtrend_vr3032u_ram_defconfig | 2 +- configs/comtrend_wap5813n_ram_defconfig | 2 +- ...-qeval20-qa3-e3845-internal-uart_defconfig | 2 +- configs/conga-qeval20-qa3-e3845_defconfig | 2 +- configs/controlcenterdc_defconfig | 2 +- configs/coreboot64_defconfig | 2 +- configs/coreboot_defconfig | 2 +- configs/corstone1000_defconfig | 2 +- configs/cortina_presidio-asic-base_defconfig | 2 +- configs/cortina_presidio-asic-emmc_defconfig | 2 +- configs/cortina_presidio-asic-pnand_defconfig | 2 +- configs/corvus_defconfig | 2 +- configs/cougarcanyon2_defconfig | 2 +- configs/crownbay_defconfig | 2 +- configs/crs305-1g-4s-bit_defconfig | 2 +- configs/crs305-1g-4s_defconfig | 2 +- configs/crs326-24g-2s-bit_defconfig | 2 +- configs/crs326-24g-2s_defconfig | 2 +- configs/crs328-4c-20s-4s-bit_defconfig | 2 +- configs/crs328-4c-20s-4s_defconfig | 2 +- configs/d2net_v2_defconfig | 2 +- configs/da850evm_defconfig | 2 +- configs/da850evm_direct_nor_defconfig | 2 +- configs/da850evm_nand_defconfig | 2 +- configs/dalmore_defconfig | 2 +- configs/db-88f6720_defconfig | 2 +- configs/db-88f6820-amc_defconfig | 2 +- configs/db-88f6820-gp_defconfig | 2 +- configs/db-mv784mp-gp_defconfig | 2 +- configs/db-xc3-24g4xg_defconfig | 2 +- configs/deneb_defconfig | 2 +- configs/devkit3250_defconfig | 2 +- configs/devkit8000_defconfig | 2 +- configs/dfi-bt700-q7x-151_defconfig | 2 +- configs/dh_imx6_defconfig | 2 +- configs/display5_defconfig | 2 +- configs/display5_factory_defconfig | 2 +- configs/dns325_defconfig | 2 +- configs/dockstar_defconfig | 2 +- configs/draco_defconfig | 2 +- configs/dragonboard410c_defconfig | 2 +- configs/dragonboard820c_defconfig | 2 +- configs/dreamplug_defconfig | 2 +- configs/ds109_defconfig | 2 +- configs/ds414_defconfig | 2 +- configs/durian_defconfig | 2 +- configs/eDPU_defconfig | 2 +- configs/ea-lpc3250devkitv2_defconfig | 2 +- configs/eb_cpu5282_defconfig | 2 +- configs/eb_cpu5282_internal_defconfig | 2 +- configs/edison_defconfig | 2 +- configs/elgin-rv1108_defconfig | 2 +- configs/emsdp_defconfig | 2 +- configs/espresso7420_defconfig | 2 +- configs/etamin_defconfig | 2 +- configs/ethernut5_defconfig | 2 +- configs/ev-imx280-nano-x-mb_defconfig | 2 +- configs/evb-ast2500_defconfig | 2 +- configs/evb-ast2600_defconfig | 2 +- configs/evb-px30_defconfig | 2 +- configs/evb-px5_defconfig | 2 +- configs/evb-rk3036_defconfig | 2 +- configs/evb-rk3128_defconfig | 2 +- configs/evb-rk3229_defconfig | 2 +- configs/evb-rk3288_defconfig | 2 +- configs/evb-rk3308_defconfig | 2 +- configs/evb-rk3328_defconfig | 2 +- configs/evb-rk3399_defconfig | 2 +- configs/evb-rk3568_defconfig | 2 +- configs/evb-rv1108_defconfig | 2 +- configs/ficus-rk3399_defconfig | 2 +- configs/firefly-px30_defconfig | 2 +- configs/firefly-rk3288_defconfig | 2 +- configs/firefly-rk3399_defconfig | 2 +- configs/galileo_defconfig | 2 +- .../gardena-smart-gateway-at91sam_defconfig | 2 +- configs/gazerbeam_defconfig | 2 +- configs/ge_b1x5v2_defconfig | 2 +- configs/ge_bx50v3_defconfig | 2 +- configs/geekbox_defconfig | 2 +- configs/giedi_defconfig | 2 +- configs/goflexhome_defconfig | 2 +- configs/gose_defconfig | 2 +- configs/grpeach_defconfig | 2 +- configs/gurnard_defconfig | 2 +- configs/guruplug_defconfig | 2 +- configs/gwventana_emmc_defconfig | 2 +- configs/gwventana_gw5904_defconfig | 2 +- configs/gwventana_nand_defconfig | 2 +- configs/harmony_defconfig | 2 +- configs/helios4_defconfig | 2 +- configs/highbank_defconfig | 2 +- configs/hihope_rzg2_defconfig | 2 +- configs/hikey960_defconfig | 2 +- configs/hikey_defconfig | 2 +- configs/hsdk_4xd_defconfig | 2 +- configs/hsdk_defconfig | 2 +- configs/huawei_hg556a_ram_defconfig | 2 +- configs/ib62x0_defconfig | 2 +- configs/iconnect_defconfig | 2 +- configs/imx28_xea_defconfig | 2 +- configs/imx28_xea_sb_defconfig | 2 +- configs/imx6dl_icore_nand_defconfig | 2 +- configs/imx6dl_mamoj_defconfig | 2 +- configs/imx6q_bosch_acc_defconfig | 2 +- configs/imx6q_icore_nand_defconfig | 2 +- configs/imx6q_logic_defconfig | 2 +- configs/imx6qdl_icore_mipi_defconfig | 2 +- configs/imx6qdl_icore_mmc_defconfig | 2 +- configs/imx6qdl_icore_nand_defconfig | 2 +- configs/imx6qdl_icore_rqs_defconfig | 2 +- configs/imx6ul_geam_mmc_defconfig | 2 +- configs/imx6ul_geam_nand_defconfig | 2 +- configs/imx6ul_isiot_emmc_defconfig | 2 +- configs/imx6ul_isiot_nand_defconfig | 2 +- configs/imx6ulz_smm_m2_defconfig | 2 +- configs/imx8mm-cl-iot-gate-optee_defconfig | 2 +- configs/imx8mm-cl-iot-gate_defconfig | 2 +- configs/imx8mm-icore-mx8mm-ctouch2_defconfig | 2 +- configs/imx8mm-icore-mx8mm-edimm2.2_defconfig | 2 +- configs/imx8mm-mx8menlo_defconfig | 2 +- configs/imx8mm_beacon_defconfig | 2 +- configs/imx8mm_data_modul_edm_sbc_defconfig | 2 +- configs/imx8mm_evk_defconfig | 2 +- configs/imx8mm_evk_fspi_defconfig | 2 +- configs/imx8mm_venice_defconfig | 2 +- configs/imx8mn_beacon_2g_defconfig | 2 +- configs/imx8mn_beacon_defconfig | 2 +- configs/imx8mn_bsh_smm_s2_defconfig | 2 +- configs/imx8mn_bsh_smm_s2pro_defconfig | 2 +- configs/imx8mn_ddr4_evk_defconfig | 2 +- configs/imx8mn_evk_defconfig | 2 +- configs/imx8mn_var_som_defconfig | 2 +- configs/imx8mn_venice_defconfig | 2 +- configs/imx8mp_dhcom_pdk2_defconfig | 2 +- configs/imx8mp_evk_defconfig | 2 +- configs/imx8mp_rsb3720a1_4G_defconfig | 2 +- configs/imx8mp_rsb3720a1_6G_defconfig | 2 +- configs/imx8mp_venice_defconfig | 2 +- configs/imx8mq_cm_defconfig | 2 +- configs/imx8mq_evk_defconfig | 2 +- configs/imx8mq_phanbell_defconfig | 2 +- configs/imx8qm_mek_defconfig | 2 +- configs/imx8qm_rom7720_a1_4G_defconfig | 2 +- configs/imx8qxp_mek_defconfig | 2 +- configs/imx8ulp_evk_defconfig | 2 +- configs/imx93_11x11_evk_defconfig | 2 +- configs/imxrt1020-evk_defconfig | 2 +- configs/imxrt1050-evk_defconfig | 2 +- configs/imxrt1170-evk_defconfig | 2 +- configs/inetspace_v2_defconfig | 2 +- configs/integratorap_cm720t_defconfig | 2 +- configs/integratorap_cm920t_defconfig | 2 +- configs/integratorap_cm926ejs_defconfig | 2 +- configs/integratorap_cm946es_defconfig | 2 +- configs/integratorcp_cm1136_defconfig | 2 +- configs/integratorcp_cm920t_defconfig | 2 +- configs/integratorcp_cm926ejs_defconfig | 2 +- configs/integratorcp_cm946es_defconfig | 2 +- configs/iot_devkit_defconfig | 2 +- configs/jethub_j100_defconfig | 2 +- configs/jethub_j80_defconfig | 2 +- configs/jetson-tk1_defconfig | 2 +- configs/k2e_evm_defconfig | 2 +- configs/k2e_hs_evm_defconfig | 2 +- configs/k2g_evm_defconfig | 2 +- configs/k2g_hs_evm_defconfig | 2 +- configs/k2hk_evm_defconfig | 2 +- configs/k2hk_hs_evm_defconfig | 2 +- configs/k2l_evm_defconfig | 2 +- configs/k2l_hs_evm_defconfig | 2 +- configs/khadas-edge-captain-rk3399_defconfig | 2 +- configs/khadas-edge-rk3399_defconfig | 2 +- configs/khadas-edge-v-rk3399_defconfig | 2 +- configs/khadas-vim2_defconfig | 2 +- configs/khadas-vim3_android_ab_defconfig | 2 +- configs/khadas-vim3_android_defconfig | 2 +- configs/khadas-vim3_defconfig | 2 +- configs/khadas-vim3l_android_ab_defconfig | 2 +- configs/khadas-vim3l_android_defconfig | 2 +- configs/khadas-vim3l_defconfig | 2 +- configs/khadas-vim_defconfig | 2 +- configs/kmcent2_defconfig | 2 +- configs/kmcoge5ne_defconfig | 2 +- configs/kmeter1_defconfig | 2 +- configs/kmopti2_defconfig | 2 +- configs/kmsupx5_defconfig | 2 +- configs/kmtepr2_defconfig | 2 +- configs/koelsch_defconfig | 2 +- configs/kontron-sl-mx6ul_defconfig | 2 +- configs/kontron-sl-mx8mm_defconfig | 2 +- configs/kontron_pitx_imx8m_defconfig | 2 +- configs/kp_imx53_defconfig | 2 +- configs/kp_imx6q_tpc_defconfig | 2 +- configs/kylin-rk3036_defconfig | 2 +- configs/lager_defconfig | 2 +- configs/leez-rk3399_defconfig | 2 +- configs/legoev3_defconfig | 2 +- configs/librem5_defconfig | 2 +- configs/libretech-ac_defconfig | 2 +- configs/libretech-cc_defconfig | 2 +- configs/libretech-cc_v2_defconfig | 2 +- configs/libretech-s905d-pc_defconfig | 2 +- configs/libretech-s912-pc_defconfig | 2 +- configs/lion-rk3368_defconfig | 2 +- configs/liteboard_defconfig | 2 +- configs/ls1012a2g5rdb_qspi_defconfig | 2 +- configs/ls1012a2g5rdb_tfa_defconfig | 2 +- configs/ls1012afrdm_qspi_defconfig | 2 +- configs/ls1012afrdm_tfa_defconfig | 2 +- .../ls1012afrwy_qspi_SECURE_BOOT_defconfig | 2 +- configs/ls1012afrwy_qspi_defconfig | 2 +- configs/ls1012afrwy_tfa_SECURE_BOOT_defconfig | 2 +- configs/ls1012afrwy_tfa_defconfig | 2 +- configs/ls1012aqds_qspi_defconfig | 2 +- configs/ls1012aqds_tfa_SECURE_BOOT_defconfig | 2 +- configs/ls1012aqds_tfa_defconfig | 2 +- configs/ls1012ardb_qspi_SECURE_BOOT_defconfig | 2 +- configs/ls1012ardb_qspi_defconfig | 2 +- configs/ls1012ardb_tfa_SECURE_BOOT_defconfig | 2 +- configs/ls1012ardb_tfa_defconfig | 2 +- configs/ls1021aiot_qspi_defconfig | 2 +- configs/ls1021aiot_sdcard_defconfig | 2 +- configs/ls1021aqds_ddr4_nor_defconfig | 2 +- configs/ls1021aqds_ddr4_nor_lpuart_defconfig | 2 +- configs/ls1021aqds_nand_defconfig | 2 +- configs/ls1021aqds_nor_SECURE_BOOT_defconfig | 2 +- configs/ls1021aqds_nor_defconfig | 2 +- configs/ls1021aqds_nor_lpuart_defconfig | 2 +- configs/ls1021aqds_qspi_defconfig | 2 +- configs/ls1021aqds_sdcard_ifc_defconfig | 2 +- configs/ls1021aqds_sdcard_qspi_defconfig | 2 +- configs/ls1021atsn_qspi_defconfig | 2 +- configs/ls1021atsn_sdcard_defconfig | 2 +- configs/ls1021atwr_nor_SECURE_BOOT_defconfig | 2 +- configs/ls1021atwr_nor_defconfig | 2 +- configs/ls1021atwr_nor_lpuart_defconfig | 2 +- configs/ls1021atwr_qspi_defconfig | 2 +- ...s1021atwr_sdcard_ifc_SECURE_BOOT_defconfig | 2 +- configs/ls1021atwr_sdcard_ifc_defconfig | 2 +- configs/ls1021atwr_sdcard_qspi_defconfig | 2 +- configs/ls1043aqds_defconfig | 2 +- configs/ls1043aqds_lpuart_defconfig | 2 +- configs/ls1043aqds_nand_defconfig | 2 +- configs/ls1043aqds_nor_ddr3_defconfig | 2 +- configs/ls1043aqds_qspi_defconfig | 2 +- configs/ls1043aqds_sdcard_ifc_defconfig | 2 +- configs/ls1043aqds_sdcard_qspi_defconfig | 2 +- configs/ls1043aqds_tfa_SECURE_BOOT_defconfig | 2 +- configs/ls1043aqds_tfa_defconfig | 2 +- configs/ls1043ardb_SECURE_BOOT_defconfig | 2 +- configs/ls1043ardb_defconfig | 2 +- configs/ls1043ardb_nand_SECURE_BOOT_defconfig | 2 +- configs/ls1043ardb_nand_defconfig | 2 +- .../ls1043ardb_sdcard_SECURE_BOOT_defconfig | 2 +- configs/ls1043ardb_sdcard_defconfig | 2 +- configs/ls1043ardb_tfa_SECURE_BOOT_defconfig | 2 +- configs/ls1043ardb_tfa_defconfig | 2 +- configs/ls1046afrwy_tfa_SECURE_BOOT_defconfig | 2 +- configs/ls1046afrwy_tfa_defconfig | 2 +- configs/ls1046aqds_SECURE_BOOT_defconfig | 2 +- configs/ls1046aqds_defconfig | 2 +- configs/ls1046aqds_lpuart_defconfig | 2 +- configs/ls1046aqds_nand_defconfig | 2 +- configs/ls1046aqds_qspi_defconfig | 2 +- configs/ls1046aqds_sdcard_ifc_defconfig | 2 +- configs/ls1046aqds_sdcard_qspi_defconfig | 2 +- configs/ls1046aqds_tfa_SECURE_BOOT_defconfig | 2 +- configs/ls1046aqds_tfa_defconfig | 2 +- configs/ls1046ardb_emmc_defconfig | 2 +- configs/ls1046ardb_qspi_SECURE_BOOT_defconfig | 2 +- configs/ls1046ardb_qspi_defconfig | 2 +- configs/ls1046ardb_qspi_spl_defconfig | 2 +- .../ls1046ardb_sdcard_SECURE_BOOT_defconfig | 2 +- configs/ls1046ardb_sdcard_defconfig | 2 +- configs/ls1046ardb_tfa_SECURE_BOOT_defconfig | 2 +- configs/ls1046ardb_tfa_defconfig | 2 +- configs/ls1088aqds_defconfig | 2 +- configs/ls1088aqds_qspi_SECURE_BOOT_defconfig | 2 +- configs/ls1088aqds_qspi_defconfig | 2 +- configs/ls1088aqds_sdcard_ifc_defconfig | 2 +- configs/ls1088aqds_sdcard_qspi_defconfig | 2 +- configs/ls1088aqds_tfa_defconfig | 2 +- configs/ls1088ardb_qspi_SECURE_BOOT_defconfig | 2 +- configs/ls1088ardb_qspi_defconfig | 2 +- ...1088ardb_sdcard_qspi_SECURE_BOOT_defconfig | 2 +- configs/ls1088ardb_sdcard_qspi_defconfig | 2 +- configs/ls1088ardb_tfa_SECURE_BOOT_defconfig | 2 +- configs/ls1088ardb_tfa_defconfig | 2 +- configs/ls2080aqds_SECURE_BOOT_defconfig | 2 +- configs/ls2080aqds_defconfig | 2 +- configs/ls2080aqds_nand_defconfig | 2 +- configs/ls2080aqds_qspi_defconfig | 2 +- configs/ls2080aqds_sdcard_defconfig | 2 +- configs/ls2080ardb_SECURE_BOOT_defconfig | 2 +- configs/ls2080ardb_defconfig | 2 +- configs/ls2080ardb_nand_defconfig | 2 +- configs/ls2081ardb_defconfig | 2 +- configs/ls2088aqds_tfa_defconfig | 2 +- configs/ls2088ardb_qspi_SECURE_BOOT_defconfig | 2 +- configs/ls2088ardb_qspi_defconfig | 2 +- configs/ls2088ardb_tfa_SECURE_BOOT_defconfig | 2 +- configs/ls2088ardb_tfa_defconfig | 2 +- configs/lschlv2_defconfig | 2 +- configs/lsxhl_defconfig | 2 +- configs/lx2160aqds_tfa_SECURE_BOOT_defconfig | 2 +- configs/lx2160aqds_tfa_defconfig | 2 +- configs/lx2160ardb_tfa_SECURE_BOOT_defconfig | 2 +- configs/lx2160ardb_tfa_defconfig | 2 +- configs/lx2160ardb_tfa_stmm_defconfig | 2 +- configs/lx2162aqds_tfa_SECURE_BOOT_defconfig | 2 +- configs/lx2162aqds_tfa_defconfig | 2 +- .../lx2162aqds_tfa_verified_boot_defconfig | 2 +- configs/m53menlo_defconfig | 2 +- configs/malta64_defconfig | 2 +- configs/malta64el_defconfig | 2 +- configs/malta_defconfig | 2 +- configs/maltael_defconfig | 2 +- configs/marsboard_defconfig | 2 +- configs/maxbcm_defconfig | 2 +- configs/mccmon6_nor_defconfig | 2 +- configs/mccmon6_sd_defconfig | 2 +- configs/medcom-wide_defconfig | 2 +- configs/meesc_dataflash_defconfig | 2 +- configs/meesc_defconfig | 2 +- configs/microblaze-generic_defconfig | 2 +- configs/minnowmax_defconfig | 2 +- configs/miqi-rk3288_defconfig | 2 +- configs/mk808_defconfig | 2 +- configs/mscc_jr2_defconfig | 2 +- configs/mscc_luton_defconfig | 2 +- configs/mscc_ocelot_defconfig | 2 +- configs/mscc_serval_defconfig | 2 +- configs/mscc_servalt_defconfig | 2 +- configs/mt7622_rfb_defconfig | 2 +- configs/mt7623a_unielec_u7623_02_defconfig | 2 +- configs/mt7623n_bpir2_defconfig | 2 +- configs/mt7629_rfb_defconfig | 2 +- configs/mt7981_emmc_rfb_defconfig | 2 +- configs/mt7981_rfb_defconfig | 2 +- configs/mt7981_sd_rfb_defconfig | 2 +- configs/mt7986_rfb_defconfig | 2 +- configs/mt7986a_bpir3_emmc_defconfig | 2 +- configs/mt7986a_bpir3_sd_defconfig | 2 +- configs/mt8183_pumpkin_defconfig | 2 +- configs/mt8512_bm1_emmc_defconfig | 2 +- configs/mt8516_pumpkin_defconfig | 2 +- configs/mt8518_ap1_emmc_defconfig | 2 +- configs/mvebu_crb_cn9130_defconfig | 2 +- configs/mvebu_db-88f3720_defconfig | 2 +- configs/mvebu_db_armada8k_defconfig | 2 +- configs/mvebu_db_cn9130_defconfig | 2 +- configs/mvebu_espressobin-88f3720_defconfig | 2 +- configs/mvebu_mcbin-88f8040_defconfig | 2 +- configs/mvebu_puzzle-m801-88f8040_defconfig | 2 +- configs/mx23_olinuxino_defconfig | 2 +- configs/mx23evk_defconfig | 2 +- configs/mx28evk_defconfig | 2 +- configs/mx51evk_defconfig | 2 +- configs/mx53cx9020_defconfig | 2 +- configs/mx53loco_defconfig | 2 +- configs/mx53ppd_defconfig | 2 +- configs/mx6cuboxi_defconfig | 2 +- configs/mx6memcal_defconfig | 2 +- configs/mx6qsabrelite_defconfig | 2 +- configs/mx6sabreauto_defconfig | 2 +- configs/mx6sabresd_defconfig | 2 +- configs/mx6slevk_defconfig | 2 +- configs/mx6slevk_spinor_defconfig | 2 +- configs/mx6slevk_spl_defconfig | 2 +- configs/mx6sllevk_defconfig | 2 +- configs/mx6sllevk_plugin_defconfig | 2 +- configs/mx6sxsabreauto_defconfig | 2 +- configs/mx6sxsabresd_defconfig | 2 +- configs/mx6ul_14x14_evk_defconfig | 2 +- configs/mx6ul_9x9_evk_defconfig | 2 +- configs/mx6ull_14x14_evk_defconfig | 2 +- configs/mx6ull_14x14_evk_plugin_defconfig | 2 +- configs/mx6ulz_14x14_evk_defconfig | 2 +- configs/mx7ulp_com_defconfig | 2 +- configs/mx7ulp_evk_defconfig | 2 +- configs/mx7ulp_evk_plugin_defconfig | 2 +- configs/myir_mys_6ulx_defconfig | 2 +- configs/nanopc-t4-rk3399_defconfig | 2 +- configs/nanopi-k2_defconfig | 2 +- configs/nanopi-m4-2gb-rk3399_defconfig | 2 +- configs/nanopi-m4-rk3399_defconfig | 2 +- configs/nanopi-m4b-rk3399_defconfig | 2 +- configs/nanopi-neo4-rk3399_defconfig | 2 +- configs/nanopi-r2s-rk3328_defconfig | 2 +- configs/nanopi-r4s-rk3399_defconfig | 2 +- configs/nas220_defconfig | 2 +- configs/net2big_v2_defconfig | 2 +- configs/netgear_cg3100d_ram_defconfig | 2 +- configs/netgear_dgnd3700v2_ram_defconfig | 2 +- configs/netspace_lite_v2_defconfig | 2 +- configs/netspace_max_v2_defconfig | 2 +- configs/netspace_mini_v2_defconfig | 2 +- configs/netspace_v2_defconfig | 2 +- configs/nitrogen6dl2g_defconfig | 2 +- configs/nitrogen6dl_defconfig | 2 +- configs/nitrogen6q2g_defconfig | 2 +- configs/nitrogen6q_defconfig | 2 +- configs/nitrogen6s1g_defconfig | 2 +- configs/nitrogen6s_defconfig | 2 +- configs/novena_defconfig | 2 +- configs/nsa310s_defconfig | 2 +- configs/nsim_700_defconfig | 2 +- configs/nsim_700be_defconfig | 2 +- configs/nsim_hs38_defconfig | 2 +- configs/nsim_hs38be_defconfig | 2 +- configs/nyan-big_defconfig | 2 +- configs/o4-imx6ull-nano_defconfig | 2 +- configs/octeon_ebb7304_defconfig | 2 +- configs/octeon_nic23_defconfig | 2 +- configs/octeontx2_95xx_defconfig | 2 +- configs/octeontx2_96xx_defconfig | 2 +- configs/octeontx_81xx_defconfig | 2 +- configs/octeontx_83xx_defconfig | 2 +- configs/odroid-c2_defconfig | 2 +- configs/odroid-c4_defconfig | 2 +- configs/odroid-go2_defconfig | 2 +- configs/odroid-hc4_defconfig | 2 +- configs/odroid-n2_defconfig | 2 +- configs/odroid-xu3_defconfig | 2 +- configs/odroid_defconfig | 2 +- configs/omap35_logic_defconfig | 2 +- configs/omap35_logic_somlv_defconfig | 2 +- configs/omap3_logic_defconfig | 2 +- configs/omap3_logic_somlv_defconfig | 2 +- configs/omapl138_lcdk_defconfig | 2 +- configs/openpiton_riscv64_defconfig | 2 +- configs/openpiton_riscv64_spl_defconfig | 2 +- configs/openrd_base_defconfig | 2 +- configs/openrd_client_defconfig | 2 +- configs/openrd_ultimate_defconfig | 2 +- configs/opos6uldev_defconfig | 2 +- configs/orangepi-rk3399_defconfig | 2 +- configs/origen_defconfig | 2 +- configs/p200_defconfig | 2 +- configs/p201_defconfig | 2 +- configs/p212_defconfig | 2 +- configs/p2371-0000_defconfig | 2 +- configs/p2371-2180_defconfig | 2 +- configs/p2571_defconfig | 2 +- configs/p2771-0000-000_defconfig | 2 +- configs/p2771-0000-500_defconfig | 2 +- configs/p3450-0000_defconfig | 2 +- configs/paz00_defconfig | 2 +- configs/pcm052_defconfig | 2 +- configs/pcm058_defconfig | 2 +- configs/peach-pi_defconfig | 2 +- configs/peach-pit_defconfig | 2 +- configs/pg_wcom_expu1_defconfig | 2 +- configs/pg_wcom_expu1_update_defconfig | 2 +- configs/pg_wcom_seli8_defconfig | 2 +- configs/pg_wcom_seli8_update_defconfig | 2 +- configs/phycore-imx8mm_defconfig | 2 +- configs/phycore-imx8mp_defconfig | 2 +- configs/phycore-rk3288_defconfig | 2 +- configs/phycore_pcl063_defconfig | 2 +- configs/phycore_pcl063_ull_defconfig | 2 +- configs/pic32mzdask_defconfig | 2 +- configs/pico-dwarf-imx6ul_defconfig | 2 +- configs/pico-hobbit-imx6ul_defconfig | 2 +- configs/pico-imx6_defconfig | 2 +- configs/pico-imx6ul_defconfig | 2 +- configs/pico-imx8mq_defconfig | 2 +- configs/pico-pi-imx6ul_defconfig | 2 +- configs/pinebook-pro-rk3399_defconfig | 2 +- configs/plutux_defconfig | 2 +- configs/pm9261_defconfig | 2 +- configs/pm9263_defconfig | 2 +- configs/pm9g45_defconfig | 2 +- configs/pogo_e02_defconfig | 2 +- configs/pogo_v4_defconfig | 2 +- configs/poleg_evb_defconfig | 2 +- configs/pomelo_defconfig | 2 +- configs/poplar_defconfig | 2 +- configs/popmetal-rk3288_defconfig | 2 +- configs/porter_defconfig | 2 +- configs/puma-rk3399_defconfig | 2 +- configs/px30-core-ctouch2-of10-px30_defconfig | 2 +- configs/px30-core-ctouch2-px30_defconfig | 2 +- configs/px30-core-edimm2.2-px30_defconfig | 2 +- configs/pxm2_defconfig | 2 +- configs/qemu-ppce500_defconfig | 2 +- configs/qemu-x86_64_defconfig | 2 +- configs/qemu-x86_defconfig | 2 +- configs/r2dplus_defconfig | 2 +- configs/r8a77970_eagle_defconfig | 2 +- configs/r8a77980_condor_defconfig | 2 +- configs/r8a77990_ebisu_defconfig | 2 +- configs/r8a77995_draak_defconfig | 2 +- configs/r8a779a0_falcon_defconfig | 2 +- configs/radxa-zero_defconfig | 2 +- configs/rastaban_defconfig | 2 +- configs/rcar3_ulcb_defconfig | 2 +- configs/riotboard_defconfig | 2 +- configs/roc-cc-rk3308_defconfig | 2 +- configs/roc-cc-rk3328_defconfig | 2 +- configs/roc-pc-mezzanine-rk3399_defconfig | 2 +- configs/roc-pc-rk3399_defconfig | 2 +- configs/rock-pi-4-rk3399_defconfig | 2 +- configs/rock-pi-4c-rk3399_defconfig | 2 +- configs/rock-pi-e-rk3328_defconfig | 2 +- configs/rock-pi-n10-rk3399pro_defconfig | 2 +- configs/rock-pi-n8-rk3288_defconfig | 2 +- configs/rock2_defconfig | 2 +- configs/rock64-rk3328_defconfig | 2 +- configs/rock960-rk3399_defconfig | 2 +- configs/rock_defconfig | 2 +- configs/rockpro64-rk3399_defconfig | 2 +- configs/rpi_0_w_defconfig | 2 +- configs/rpi_2_defconfig | 2 +- configs/rpi_3_32b_defconfig | 2 +- configs/rpi_3_b_plus_defconfig | 2 +- configs/rpi_3_defconfig | 2 +- configs/rpi_4_32b_defconfig | 2 +- configs/rpi_4_defconfig | 2 +- configs/rpi_arm64_defconfig | 2 +- configs/rpi_defconfig | 2 +- configs/rut_defconfig | 2 +- configs/rzg2_beacon_defconfig | 2 +- configs/s400_defconfig | 2 +- configs/s5p4418_nanopi2_defconfig | 2 +- configs/s5p_goni_defconfig | 2 +- configs/s5pc210_universal_defconfig | 2 +- configs/sagem_f@st1704_ram_defconfig | 2 +- configs/sam9x60_curiosity_mmc_defconfig | 2 +- configs/sam9x60ek_mmc_defconfig | 2 +- configs/sam9x60ek_nandflash_defconfig | 2 +- configs/sam9x60ek_qspiflash_defconfig | 2 +- configs/sama5d27_giantboard_defconfig | 2 +- configs/sama5d27_som1_ek_mmc1_defconfig | 2 +- configs/sama5d27_som1_ek_mmc_defconfig | 2 +- configs/sama5d27_som1_ek_qspiflash_defconfig | 2 +- configs/sama5d27_wlsom1_ek_mmc_defconfig | 2 +- .../sama5d27_wlsom1_ek_qspiflash_defconfig | 2 +- configs/sama5d2_icp_mmc_defconfig | 2 +- configs/sama5d2_icp_qspiflash_defconfig | 2 +- configs/sama5d2_ptc_ek_mmc_defconfig | 2 +- configs/sama5d2_ptc_ek_nandflash_defconfig | 2 +- configs/sama5d2_xplained_emmc_defconfig | 2 +- configs/sama5d2_xplained_mmc_defconfig | 2 +- configs/sama5d2_xplained_qspiflash_defconfig | 2 +- configs/sama5d2_xplained_spiflash_defconfig | 2 +- configs/sama5d36ek_cmp_mmc_defconfig | 2 +- configs/sama5d36ek_cmp_nandflash_defconfig | 2 +- configs/sama5d36ek_cmp_spiflash_defconfig | 2 +- configs/sama5d3_xplained_mmc_defconfig | 2 +- configs/sama5d3_xplained_nandflash_defconfig | 2 +- configs/sama5d3xek_mmc_defconfig | 2 +- configs/sama5d3xek_nandflash_defconfig | 2 +- configs/sama5d3xek_spiflash_defconfig | 2 +- configs/sama5d4_xplained_mmc_defconfig | 2 +- configs/sama5d4_xplained_nandflash_defconfig | 2 +- configs/sama5d4_xplained_spiflash_defconfig | 2 +- configs/sama5d4ek_mmc_defconfig | 2 +- configs/sama5d4ek_nandflash_defconfig | 2 +- configs/sama5d4ek_spiflash_defconfig | 2 +- configs/sama7g5ek_mmc1_defconfig | 2 +- configs/sama7g5ek_mmc_defconfig | 2 +- configs/sandbox64_defconfig | 2 +- configs/sandbox_defconfig | 2 +- configs/sandbox_flattree_defconfig | 2 +- configs/sandbox_noinst_defconfig | 2 +- configs/sandbox_spl_defconfig | 2 +- configs/sandbox_vpl_defconfig | 2 +- configs/seaboard_defconfig | 2 +- configs/seeed_npi_imx6ull_defconfig | 2 +- configs/sei510_defconfig | 2 +- configs/sei610_defconfig | 2 +- configs/sfr_nb4-ser_ram_defconfig | 2 +- configs/sheep-rk3368_defconfig | 2 +- configs/sheevaplug_defconfig | 2 +- configs/silinux_ek874_defconfig | 2 +- configs/silk_defconfig | 2 +- configs/sipeed_maix_smode_defconfig | 2 +- configs/smartweb_defconfig | 2 +- configs/smdk5250_defconfig | 2 +- configs/smdk5420_defconfig | 2 +- configs/smdkc100_defconfig | 2 +- configs/smdkv310_defconfig | 2 +- configs/sniper_defconfig | 2 +- configs/snow_defconfig | 2 +- configs/socfpga_agilex_atf_defconfig | 2 +- configs/socfpga_agilex_defconfig | 2 +- configs/socfpga_agilex_vab_defconfig | 2 +- configs/socfpga_n5x_atf_defconfig | 2 +- configs/socfpga_n5x_defconfig | 2 +- configs/socfpga_n5x_vab_defconfig | 2 +- configs/socfpga_stratix10_atf_defconfig | 2 +- configs/socfpga_stratix10_defconfig | 2 +- configs/socrates_defconfig | 2 +- configs/som-db5800-som-6867_defconfig | 2 +- configs/somlabs_visionsom_6ull_defconfig | 2 +- configs/spring_defconfig | 2 +- configs/stemmy_defconfig | 2 +- configs/stih410-b2260_defconfig | 2 +- configs/stm32746g-eval_defconfig | 2 +- configs/stm32746g-eval_spl_defconfig | 2 +- configs/stm32f429-discovery_defconfig | 2 +- configs/stm32f429-evaluation_defconfig | 2 +- configs/stm32f469-discovery_defconfig | 2 +- configs/stm32f746-disco_defconfig | 2 +- configs/stm32f746-disco_spl_defconfig | 2 +- configs/stm32f769-disco_defconfig | 2 +- configs/stm32f769-disco_spl_defconfig | 2 +- configs/stm32h743-disco_defconfig | 2 +- configs/stm32h743-eval_defconfig | 2 +- configs/stm32h750-art-pi_defconfig | 2 +- configs/stmark2_defconfig | 2 +- configs/stout_defconfig | 2 +- configs/stv0991_defconfig | 2 +- configs/synquacer_developerbox_defconfig | 2 +- configs/syzygy_hub_defconfig | 2 +- configs/taurus_defconfig | 2 +- configs/tb100_defconfig | 2 +- configs/tbs2910_defconfig | 2 +- configs/tec-ng_defconfig | 2 +- configs/tec_defconfig | 2 +- configs/ten64_tfa_defconfig | 2 +- ...able-x86-conga-qa3-e3845-pcie-x4_defconfig | 2 +- .../theadorable-x86-conga-qa3-e3845_defconfig | 2 +- configs/theadorable-x86-dfi-bt700_defconfig | 2 +- configs/theadorable_debug_defconfig | 2 +- configs/thuban_defconfig | 2 +- configs/thunderx_88xx_defconfig | 2 +- configs/tinker-rk3288_defconfig | 2 +- configs/tinker-s-rk3288_defconfig | 2 +- configs/tools-only_defconfig | 2 +- configs/topic_miami_defconfig | 2 +- configs/topic_miamilite_defconfig | 2 +- configs/topic_miamiplus_defconfig | 2 +- configs/total_compute_defconfig | 2 +- configs/tplink_wdr4300_defconfig | 2 +- configs/trats2_defconfig | 2 +- configs/trats_defconfig | 2 +- configs/trimslice_defconfig | 2 +- configs/tuge1_defconfig | 2 +- configs/turris_mox_defconfig | 2 +- configs/turris_omnia_defconfig | 2 +- configs/tuxx1_defconfig | 2 +- configs/u200_defconfig | 2 +- configs/uDPU_defconfig | 2 +- configs/udoo_defconfig | 2 +- configs/udoo_neo_defconfig | 2 +- configs/uniphier_ld4_sld8_defconfig | 2 +- configs/uniphier_v7_defconfig | 2 +- configs/uniphier_v8_defconfig | 2 +- configs/usb_a9263_dataflash_defconfig | 2 +- configs/usbarmory_defconfig | 2 +- configs/variscite_dart6ul_defconfig | 2 +- configs/venice2_defconfig | 2 +- configs/ventana_defconfig | 2 +- configs/verdin-imx8mm_defconfig | 2 +- configs/verdin-imx8mp_defconfig | 2 +- configs/vexpress_ca9x4_defconfig | 2 +- configs/vf610twr_defconfig | 2 +- configs/vf610twr_nand_defconfig | 2 +- configs/vinco_defconfig | 2 +- configs/vining_2000_defconfig | 2 +- configs/vyasa-rk3288_defconfig | 2 +- configs/wandboard_defconfig | 2 +- configs/wetek-core2_defconfig | 2 +- configs/work_92105_defconfig | 2 +- configs/x530_defconfig | 2 +- configs/xenguest_arm64_defconfig | 2 +- configs/xilinx_versal_mini_defconfig | 2 +- configs/xilinx_versal_mini_emmc0_defconfig | 2 +- configs/xilinx_versal_mini_emmc1_defconfig | 2 +- configs/xilinx_versal_net_mini_defconfig | 2 +- configs/xilinx_versal_net_virt_defconfig | 2 +- configs/xilinx_versal_virt_defconfig | 2 +- configs/xilinx_zynq_virt_defconfig | 2 +- configs/xilinx_zynqmp_mini_defconfig | 2 +- configs/xilinx_zynqmp_mini_emmc0_defconfig | 2 +- configs/xilinx_zynqmp_mini_emmc1_defconfig | 2 +- configs/xilinx_zynqmp_mini_nand_defconfig | 2 +- .../xilinx_zynqmp_mini_nand_single_defconfig | 2 +- configs/xilinx_zynqmp_mini_qspi_defconfig | 2 +- configs/xilinx_zynqmp_r5_defconfig | 2 +- configs/xilinx_zynqmp_virt_defconfig | 2 +- configs/zynq_cse_nand_defconfig | 2 +- configs/zynq_cse_nor_defconfig | 2 +- configs/zynq_cse_qspi_defconfig | 2 +- doc/README.arm-relocation | 10 +- doc/SPL/README.omap3 | 6 +- doc/arch/m68k.rst | 2 +- doc/arch/sandbox.rst | 2 +- doc/board/coreboot/coreboot.rst | 4 +- doc/board/google/chromebook_coral.rst | 4 +- doc/board/google/chromebook_samus.rst | 2 +- doc/board/intel/minnowmax.rst | 2 +- doc/board/intel/slimbootloader.rst | 4 +- doc/board/nxp/mx6ul_14x14_evk.rst | 4 +- doc/board/sipeed/maix.rst | 4 +- doc/chromium/chainload.rst | 8 +- doc/develop/moveconfig.rst | 4 +- doc/imx/habv4/csf_examples/mx8m/csf.sh | 2 +- doc/imx/habv4/guides/mx8m_spl_secure_boot.txt | 4 +- include/configs/MCR3000.h | 2 +- include/configs/MPC837XERDB.h | 10 +- include/configs/MPC8548CDS.h | 10 +- include/configs/P2041RDB.h | 6 +- include/configs/T102xRDB.h | 4 +- include/configs/T104xRDB.h | 2 +- include/configs/T208xQDS.h | 4 +- include/configs/T208xRDB.h | 4 +- include/configs/T4240RDB.h | 4 +- include/configs/am3517_evm.h | 2 +- include/configs/at91sam9260ek.h | 2 +- include/configs/baltos.h | 2 +- include/configs/bcmstb.h | 2 +- include/configs/cobra5272.h | 2 +- include/configs/corenet_ds.h | 365 ++++++++++++++++++ include/configs/corvus.h | 6 +- include/configs/devkit3250.h | 6 +- include/configs/evb_ast2500.h | 2 +- include/configs/evb_ast2600.h | 2 +- .../configs/gardena-smart-gateway-at91sam.h | 4 +- .../configs/gardena-smart-gateway-mt7688.h | 2 +- include/configs/hikey.h | 2 +- include/configs/hikey960.h | 2 +- include/configs/imx6-engicam.h | 2 +- include/configs/imx6_logic.h | 2 +- include/configs/kontron-sl-mx6ul.h | 2 +- include/configs/linkit-smart-7688.h | 2 +- include/configs/ls1021aqds.h | 4 +- include/configs/ls1043a_common.h | 6 +- include/configs/ls1046a_common.h | 4 +- include/configs/ls1046aqds.h | 2 +- include/configs/ls1088a_common.h | 2 +- include/configs/ls2080a_common.h | 2 +- include/configs/meesc.h | 2 +- include/configs/microblaze-generic.h | 2 +- include/configs/mt7620.h | 2 +- include/configs/mt7622.h | 4 +- include/configs/mt7628.h | 2 +- include/configs/mt7981.h | 4 +- include/configs/mt7986.h | 4 +- include/configs/mt8512.h | 2 +- include/configs/mv-common.h | 2 +- include/configs/octeontx2_common.h | 2 +- include/configs/octeontx_common.h | 2 +- include/configs/p1_p2_rdb_pc.h | 18 +- include/configs/rpi.h | 2 +- include/configs/siemens-am33x-common.h | 2 +- include/configs/smartweb.h | 6 +- include/configs/taurus.h | 6 +- include/configs/ti_armv7_common.h | 2 +- include/configs/vocore2.h | 2 +- include/configs/work_92105.h | 6 +- include/spl.h | 4 +- lib/efi/efi_stub.c | 10 +- lib/efi_loader/efi_runtime.c | 8 +- lib/trace.c | 4 +- tools/binman/binman.rst | 4 +- tools/binman/entries.rst | 2 +- tools/binman/etype/fit.py | 2 +- tools/binman/etype/u_boot_with_ucode_ptr.py | 2 +- 1111 files changed, 1625 insertions(+), 1260 deletions(-) create mode 100644 include/configs/corenet_ds.h
Kconfig +1 -1
@@ -274,7 +274,7 @@ config HAS_CUSTOM_SYS_INIT_SP_ADDR config CUSTOM_SYS_INIT_SP_ADDR hex "Static location for the initial stack pointer" depends on HAS_CUSTOM_SYS_INIT_SP_ADDR - default SYS_TEXT_BASE if TFABOOT + default TEXT_BASE if TFABOOT config SYS_MALLOC_F bool "Enable malloc() pool before relocation"
Makefile +13 -13
@@ -1028,7 +1028,7 @@ LDFLAGS_u-boot += -z notext $(call ld-option,--apply-dynamic-relocs) LDFLAGS_u-boot += --build-id=none ifeq ($(CONFIG_ARC)$(CONFIG_NIOS2)$(CONFIG_X86)$(CONFIG_XTENSA),) -LDFLAGS_u-boot += -Ttext $(CONFIG_SYS_TEXT_BASE) +LDFLAGS_u-boot += -Ttext $(CONFIG_TEXT_BASE) endif # insure the checker run with the right endianness
@@ -1320,7 +1320,7 @@ shell_cmd = { $(call echo-cmd,$(1)) $(cmd_$(1)); } quiet_cmd_objcopy_uboot = OBJCOPY $@ ifdef cmd_static_rela -cmd_objcopy_uboot = $(cmd_objcopy) && $(call shell_cmd,static_rela,$<,$@,$(CONFIG_SYS_TEXT_BASE)) || { rm -f $@; false; } +cmd_objcopy_uboot = $(cmd_objcopy) && $(call shell_cmd,static_rela,$<,$@,$(CONFIG_TEXT_BASE)) || { rm -f $@; false; } else cmd_objcopy_uboot = $(cmd_objcopy) endif
@@ -1374,7 +1374,7 @@ u-boot.ldr.hex u-boot.ldr.srec: u-boot.ldr FORCE # from the SPL U-Boot version. # ifndef CONFIG_SYS_UBOOT_START -CONFIG_SYS_UBOOT_START := $(CONFIG_SYS_TEXT_BASE) +CONFIG_SYS_UBOOT_START := $(CONFIG_TEXT_BASE) endif # Boards with more complex image requirements can provide an .its source file
@@ -1399,7 +1399,7 @@ endif ifdef CONFIG_SPL_LOAD_FIT MKIMAGEFLAGS_u-boot.img = -f auto -A $(ARCH) -T firmware -C none -O u-boot \ - -a $(CONFIG_SYS_TEXT_BASE) -e $(CONFIG_SYS_UBOOT_START) \ + -a $(CONFIG_TEXT_BASE) -e $(CONFIG_SYS_UBOOT_START) \ -p $(CONFIG_FIT_EXTERNAL_OFFSET) \ -n "U-Boot $(UBOOTRELEASE) for $(BOARD) board" -E \ $(patsubst %,-b arch/$(ARCH)/dts/%.dtb,$(subst ",,$(DEVICE_TREE))) \
@@ -1407,10 +1407,10 @@ MKIMAGEFLAGS_u-boot.img = -f auto -A $(ARCH) -T firmware -C none -O u-boot \ $(patsubst %,-b arch/$(ARCH)/dts/%.dtbo,$(subst ",,$(CONFIG_OF_OVERLAY_LIST))) else MKIMAGEFLAGS_u-boot.img = -A $(ARCH) -T firmware -C none -O u-boot \ - -a $(CONFIG_SYS_TEXT_BASE) -e $(CONFIG_SYS_UBOOT_START) \ + -a $(CONFIG_TEXT_BASE) -e $(CONFIG_SYS_UBOOT_START) \ -n "U-Boot $(UBOOTRELEASE) for $(BOARD) board" MKIMAGEFLAGS_u-boot-ivt.img = -A $(ARCH) -T firmware_ivt -C none -O u-boot \ - -a $(CONFIG_SYS_TEXT_BASE) -e $(CONFIG_SYS_UBOOT_START) \ + -a $(CONFIG_TEXT_BASE) -e $(CONFIG_SYS_UBOOT_START) \ -n "U-Boot $(UBOOTRELEASE) for $(BOARD) board" u-boot-ivt.img: MKIMAGEOUTPUT = u-boot-ivt.img.log endif
@@ -1429,10 +1429,10 @@ KWD_CONFIG_FILE = $(shell \ fi) MKIMAGEFLAGS_u-boot.kwb = -n $(KWD_CONFIG_FILE) \ - -T kwbimage -a $(CONFIG_SYS_TEXT_BASE) -e $(CONFIG_SYS_TEXT_BASE) + -T kwbimage -a $(CONFIG_TEXT_BASE) -e $(CONFIG_TEXT_BASE) MKIMAGEFLAGS_u-boot-spl.kwb = -n $(KWD_CONFIG_FILE) \ - -T kwbimage -a $(CONFIG_SYS_TEXT_BASE) -e $(CONFIG_SYS_TEXT_BASE) \ + -T kwbimage -a $(CONFIG_TEXT_BASE) -e $(CONFIG_TEXT_BASE) \ $(if $(KEYDIR),-k $(KEYDIR)) MKIMAGEFLAGS_u-boot.pbl = -n $(srctree)/$(CONFIG_SYS_FSL_PBL_RCW:"%"=%) \
@@ -1441,7 +1441,7 @@ MKIMAGEFLAGS_u-boot.pbl = -n $(srctree)/$(CONFIG_SYS_FSL_PBL_RCW:"%"=%) \ UBOOT_BIN := u-boot.bin MKIMAGEFLAGS_u-boot-lzma.img = -A $(ARCH) -T standalone -C lzma -O u-boot \ - -a $(CONFIG_SYS_TEXT_BASE) -e $(CONFIG_SYS_UBOOT_START) \ + -a $(CONFIG_TEXT_BASE) -e $(CONFIG_SYS_UBOOT_START) \ -n "U-Boot $(UBOOTRELEASE) for $(BOARD) board" u-boot.bin.lzma: u-boot.bin FORCE
@@ -1549,7 +1549,7 @@ u-boot.uim: u-boot.bin FORCE u-boot-with-spl.imx u-boot-with-nand-spl.imx: SPL $(if $(CONFIG_OF_SEPARATE),u-boot.img,u-boot.uim) FORCE $(Q)$(MAKE) $(build)=arch/arm/mach-imx $@ -MKIMAGEFLAGS_u-boot.ubl = -n $(UBL_CONFIG) -T ublimage -e $(CONFIG_SYS_TEXT_BASE) +MKIMAGEFLAGS_u-boot.ubl = -n $(UBL_CONFIG) -T ublimage -e $(CONFIG_TEXT_BASE) u-boot.ubl: u-boot-with-spl.bin FORCE $(call if_changed,mkimage)
@@ -1693,8 +1693,8 @@ u-boot-img-spl-at-end.bin: u-boot.img spl/u-boot-spl.bin FORCE quiet_cmd_u-boot-elf ?= LD $@ cmd_u-boot-elf ?= $(LD) u-boot-elf.o -o $@ \ $(if $(CONFIG_SYS_BIG_ENDIAN),-EB,-EL) \ - -T u-boot-elf.lds --defsym=$(CONFIG_PLATFORM_ELFENTRY)=$(CONFIG_SYS_TEXT_BASE) \ - -Ttext=$(CONFIG_SYS_TEXT_BASE) + -T u-boot-elf.lds --defsym=$(CONFIG_PLATFORM_ELFENTRY)=$(CONFIG_TEXT_BASE) \ + -Ttext=$(CONFIG_TEXT_BASE) u-boot.elf: u-boot.bin u-boot-elf.lds $(Q)$(OBJCOPY) -I binary $(PLATFORM_ELFFLAGS) $< u-boot-elf.o $(call if_changed,u-boot-elf)
@@ -1715,7 +1715,7 @@ u-boot-mtk.bin: u-boot-with-spl.bin $(call if_changed,copy) else MKIMAGEFLAGS_u-boot-mtk.bin = -T mtk_image \ - -a $(CONFIG_SYS_TEXT_BASE) -e $(CONFIG_SYS_TEXT_BASE) \ + -a $(CONFIG_TEXT_BASE) -e $(CONFIG_TEXT_BASE) \ -n "$(patsubst "%",%,$(CONFIG_MTK_BROM_HEADER_INFO))" u-boot-mtk.bin: u-boot.bin FORCE
arch/arc/cpu/u-boot.lds +1 -1
@@ -10,7 +10,7 @@ OUTPUT_ARCH(arc) ENTRY(_start) SECTIONS { - . = CONFIG_SYS_TEXT_BASE; + . = CONFIG_TEXT_BASE; __image_copy_start = .; . = ALIGN(1024); __ivt_start = .;
arch/arm/Kconfig +1 -1
@@ -93,7 +93,7 @@ config LNX_KRNL_IMG_TEXT_OFFSET_BASE depends on LINUX_KERNEL_IMAGE_HEADER hex help - The value subtracted from CONFIG_SYS_TEXT_BASE to calculate the + The value subtracted from CONFIG_TEXT_BASE to calculate the TEXT_OFFSET value written to the Linux kernel image header. config GICV2
arch/arm/cpu/arm1176/start.S +1 -1
@@ -88,7 +88,7 @@ cpu_init_crit: /* Prepare to disable the MMU */ adr r2, mmu_disable_phys - sub r2, r2, #(CONFIG_SYS_PHY_UBOOT_BASE - CONFIG_SYS_TEXT_BASE) + sub r2, r2, #(CONFIG_SYS_PHY_UBOOT_BASE - CONFIG_TEXT_BASE) b mmu_disable .align 5
arch/arm/cpu/arm926ejs/mxs/Makefile +2 -2
@@ -60,14 +60,14 @@ spl/u-boot-spl.ivt: spl/u-boot-spl.bin u-boot.ivt: u-boot.bin $(call if_changed,mkalign_mxs) - $(call if_changed,mkivt_mxs,$(CONFIG_SYS_TEXT_BASE),\ + $(call if_changed,mkivt_mxs,$(CONFIG_TEXT_BASE),\ 0x40001000,0x40001040) spl/u-boot-spl.csf: spl/u-boot-spl.ivt spl/u-boot-spl.bin board/$(VENDOR)/$(BOARD)/sign/u-boot-spl.csf $(call if_changed,mkcsfreq_mxs,$(CONFIG_SPL_TEXT_BASE),0x8000) u-boot.csf: u-boot.ivt u-boot.bin board/$(VENDOR)/$(BOARD)/sign/u-boot.csf - $(call if_changed,mkcsfreq_mxs,$(CONFIG_SYS_TEXT_BASE),0x40001000) + $(call if_changed,mkcsfreq_mxs,$(CONFIG_TEXT_BASE),0x40001000) %.sig: %.csf $(call if_changed,mkcst_mxs)
arch/arm/cpu/armv7/ls102xa/fdt.c +3 -3
@@ -146,9 +146,9 @@ void ft_cpu_setup(void *blob, struct bd_info *bd)* Since second uboot binary has a head, that space need to be * reserved either(assuming its size is less than 0x1000). */ - off =fdt_add_mem_rsv (blob,CONFIG_SYS_TEXT_BASE -UBOOT_HEAD_LEN , -CONFIG_SYS_MONITOR_LEN +CONFIG_SYS_SPL_MALLOC_SIZE + -UBOOT_HEAD_LEN ); + off =fdt_add_mem_rsv (blob,CONFIG_TEXT_BASE -UBOOT_HEAD_LEN , +CONFIG_SYS_MONITOR_LEN + +CONFIG_SYS_SPL_MALLOC_SIZE +UBOOT_HEAD_LEN );if (off <0 )printf ("Failed to reserve memory for SD boot deep sleep: %s\n" ,fdt_strerror (off));
arch/arm/cpu/armv8/linux-kernel-image-header-vars.h +1 -1
@@ -69,7 +69,7 @@ (__HEAD_FLAG_PAGE_SIZE << 1) | \ (__HEAD_FLAG_PHYS_BASE << 3)) -#define TEXT_OFFSET (CONFIG_SYS_TEXT_BASE - \ +#define TEXT_OFFSET (CONFIG_TEXT_BASE - \ CONFIG_LNX_KRNL_IMG_TEXT_OFFSET_BASE)/*
arch/arm/cpu/armv8/start.S +1 -1
@@ -35,7 +35,7 @@ _start: .globl _TEXT_BASE _TEXT_BASE: - .quad CONFIG_SYS_TEXT_BASE + .quad CONFIG_TEXT_BASE /* * These are defined in the linker script.
arch/arm/dts/fsl-ls1028a-kontron-sl28-u-boot.dtsi +1 -1
@@ -36,7 +36,7 @@ os = "u-boot"; arch = "arm"; compression = "none"; - load = <CONFIG_SYS_TEXT_BASE>; + load = <CONFIG_TEXT_BASE>; u-boot-nodtb { };
arch/arm/dts/imx8mm-u-boot.dtsi +1 -1
@@ -90,7 +90,7 @@ arch = "arm64"; compression = "none"; description = "U-Boot (64-bit)"; - load = <CONFIG_SYS_TEXT_BASE>; + load = <CONFIG_TEXT_BASE>; type = "standalone"; uboot-blob {
arch/arm/dts/imx8mn-beacon-kit-u-boot.dtsi +1 -1
@@ -203,7 +203,7 @@ type = "standalone"; arch = "arm64"; compression = "none"; - load = <CONFIG_SYS_TEXT_BASE>; + load = <CONFIG_TEXT_BASE>; uboot_blob: blob-ext { filename = "u-boot-nodtb.bin";
arch/arm/dts/imx8mn-bsh-smm-s2-u-boot-common.dtsi +1 -1
@@ -150,7 +150,7 @@ arch = "arm64"; compression = "none"; description = "U-Boot (64-bit)"; - load = <CONFIG_SYS_TEXT_BASE>; + load = <CONFIG_TEXT_BASE>; type = "standalone"; uboot_blob {
arch/arm/dts/imx8mn-ddr4-evk-u-boot.dtsi +1 -1
@@ -211,7 +211,7 @@ type = "standalone"; arch = "arm64"; compression = "none"; - load = <CONFIG_SYS_TEXT_BASE>; + load = <CONFIG_TEXT_BASE>; uboot_blob: blob-ext { filename = "u-boot-nodtb.bin";
arch/arm/dts/imx8mn-evk-u-boot.dtsi +1 -1
@@ -88,7 +88,7 @@ type = "standalone"; arch = "arm64"; compression = "none"; - load = <CONFIG_SYS_TEXT_BASE>; + load = <CONFIG_TEXT_BASE>; uboot_blob: blob-ext { filename = "u-boot-nodtb.bin";
arch/arm/dts/imx8mn-var-som-symphony-u-boot.dtsi +1 -1
@@ -181,7 +181,7 @@ arch = "arm64"; compression = "none"; description = "U-Boot (64-bit)"; - load = <CONFIG_SYS_TEXT_BASE>; + load = <CONFIG_TEXT_BASE>; type = "standalone"; uboot_blob {
arch/arm/dts/imx8mn-venice-u-boot.dtsi +1 -1
@@ -181,7 +181,7 @@ arch = "arm64"; compression = "none"; description = "U-Boot (64-bit)"; - load = <CONFIG_SYS_TEXT_BASE>; + load = <CONFIG_TEXT_BASE>; type = "standalone"; uboot_blob {
arch/arm/dts/imx8mp-u-boot.dtsi +1 -1
@@ -113,7 +113,7 @@ type = "standalone"; arch = "arm64"; compression = "none"; - load = <CONFIG_SYS_TEXT_BASE>; + load = <CONFIG_TEXT_BASE>; uboot_blob: blob-ext { filename = "u-boot-nodtb.bin";
arch/arm/dts/imx8mq-cm-u-boot.dtsi +1 -1
@@ -77,7 +77,7 @@ type = "standalone"; arch = "arm64"; compression = "none"; - load = <CONFIG_SYS_TEXT_BASE>; + load = <CONFIG_TEXT_BASE>; uboot_blob: blob-ext { filename = "u-boot-nodtb.bin";
arch/arm/dts/imx8mq-u-boot.dtsi +1 -1
@@ -105,7 +105,7 @@ arch = "arm64"; compression = "none"; description = "U-Boot (64-bit)"; - load = <CONFIG_SYS_TEXT_BASE>; + load = <CONFIG_TEXT_BASE>; type = "standalone"; uboot-blob {
arch/arm/dts/rockchip-optee.dtsi +1 -1
@@ -21,7 +21,7 @@ os = "U-Boot"; arch = "arm"; compression = "none"; - load = <CONFIG_SYS_TEXT_BASE>; + load = <CONFIG_TEXT_BASE>; u-boot-nodtb { };
arch/arm/dts/sunxi-u-boot.dtsi +1 -1
@@ -47,7 +47,7 @@ os = "u-boot"; arch = "arm64"; compression = "none"; - load = <CONFIG_SYS_TEXT_BASE>; + load = <CONFIG_TEXT_BASE>; u-boot-nodtb { };
arch/arm/dts/tegra-u-boot.dtsi +1 -1
@@ -1,7 +1,7 @@ #include <config.h> #ifdef CONFIG_SPL_TEXT_BASE -#define U_BOOT_OFFSET (CONFIG_SYS_TEXT_BASE - CONFIG_SPL_TEXT_BASE) +#define U_BOOT_OFFSET (CONFIG_TEXT_BASE - CONFIG_SPL_TEXT_BASE) #else #define U_BOOT_OFFSET 0 #endif
arch/arm/include/asm/arch-mxs/sys_proto.h +1 -1
@@ -85,7 +85,7 @@ static const struct mxs_pair mxs_boot_modes[] = {#define MXS_BM_SDMMC1_3V3 0x0a#define MXS_BM_SDMMC1_1V8 0x1a -#define MXS_SPL_DATA ((struct mxs_spl_data *)(CONFIG_SYS_TEXT_BASE - 0x200)) +#define MXS_SPL_DATA ((struct mxs_spl_data *)(CONFIG_TEXT_BASE - 0x200))struct mxs_spl_data {uint8_t boot_mode_idx;
arch/arm/include/asm/arch-sunxi/boot0.h +1 -1
@@ -47,7 +47,7 @@#ifdef CONFIG_SPL_BUILD .word CONFIG_SPL_TEXT_BASE #else - .word CONFIG_SYS_TEXT_BASE + .word CONFIG_TEXT_BASE#endif .word fel_stash - .#else
arch/arm/lib/crt0.S +1 -1
@@ -144,7 +144,7 @@ ENTRY(_main) adr r0, _main ldr r1, _start_ofs add r0, r1 - ldr r1, =CONFIG_SYS_TEXT_BASE + ldr r1, =CONFIG_TEXT_BASE sub r1, r0 add lr, r1 #endif
arch/arm/lib/relocate_64.S +1 -1
@@ -37,7 +37,7 @@ ENTRY(relocate_code) * correctly apply relocations, we need to know the linked value. * * Linked &__image_copy_start, which we know was at - * CONFIG_SYS_TEXT_BASE, which is stored in _TEXT_BASE, as a non- + * CONFIG_TEXT_BASE, which is stored in _TEXT_BASE, as a non- * relocated value, since it isn't a symbol reference. */ ldr x1, _TEXT_BASE /* x1 <- Linked &__image_copy_start */
arch/arm/mach-apple/Kconfig +2 -2
@@ -1,6 +1,6 @@ if ARCH_APPLE -config SYS_TEXT_BASE +config TEXT_BASE default 0x00000000 config SYS_CONFIG_NAME
@@ -16,6 +16,6 @@ config SYS_MALLOC_F_LEN default 0x4000 config LNX_KRNL_IMG_TEXT_OFFSET_BASE - default SYS_TEXT_BASE + default TEXT_BASE endif
arch/arm/mach-aspeed/Kconfig +1 -1
@@ -6,7 +6,7 @@ config SYS_ARCH config SYS_SOC default "aspeed" -config SYS_TEXT_BASE +config TEXT_BASE default 0x00000000 choice
arch/arm/mach-at91/arm920t/lowlevel_init.S +2 -2
@@ -22,9 +22,9 @@ _MTEXT_BASE: #undef START_FROM_MEM #ifdef START_FROM_MEM - .word CONFIG_SYS_TEXT_BASE-PHYS_FLASH_1 + .word CONFIG_TEXT_BASE-PHYS_FLASH_1 #else - .word CONFIG_SYS_TEXT_BASE + .word CONFIG_TEXT_BASE #endif .globl lowlevel_init
arch/arm/mach-at91/arm926ejs/lowlevel_init.S +1 -1
@@ -32,7 +32,7 @@ lowlevel_init: POS1: adr r5, POS1 /* r5 = POS1 run time */ ldr r0, =POS1 /* r0 = POS1 compile */ - sub r5, r5, r0 /* r0 = CONFIG_SYS_TEXT_BASE-1 */ + sub r5, r5, r0 /* r0 = CONFIG_TEXT_BASE-1 */ /* memory control configuration 1 */ ldr r0, =SMRDATA
arch/arm/mach-exynos/spl_boot.c +5 -5
@@ -251,7 +251,7 @@ void copy_uboot_to_ram(void)#ifdef CONFIG_SPI_BOOTING case BOOT_MODE_SERIAL :/* Customised function to copy u-boot from SF */ -exynos_spi_copy (param->uboot_size,CONFIG_SYS_TEXT_BASE ); +exynos_spi_copy (param->uboot_size,CONFIG_TEXT_BASE );break ;#endif case BOOT_MODE_SD :
@@ -267,7 +267,7 @@ void copy_uboot_to_ram(void) copy_bl2_from_emmc =get_irom_func (EMMC44_INDEX ); end_bootop_from_emmc =get_irom_func (EMMC44_END_INDEX ); -copy_bl2_from_emmc (BL2_SIZE_BLOC_COUNT ,CONFIG_SYS_TEXT_BASE ); +copy_bl2_from_emmc (BL2_SIZE_BLOC_COUNT ,CONFIG_TEXT_BASE );end_bootop_from_emmc ();break ;#endif
@@ -279,7 +279,7 @@ void copy_uboot_to_ram(void)*/ is_cr_z_set =config_branch_prediction (0 ); usb_copy =get_irom_func (USB_INDEX ); -usb_copy (0 , (u32 *)CONFIG_SYS_TEXT_BASE ); +usb_copy (0 , (u32 *)CONFIG_TEXT_BASE );config_branch_prediction (is_cr_z_set);break ;#endif
@@ -288,7 +288,7 @@ void copy_uboot_to_ram(void) }if (copy_bl2) -copy_bl2 (offset, size,CONFIG_SYS_TEXT_BASE ); +copy_bl2 (offset, size,CONFIG_TEXT_BASE ); }void memzero (void *s,size_t n)
@@ -329,7 +329,7 @@ void board_init_f(unsigned long bootflag)copy_uboot_to_ram ();/* Jump to U-Boot image */ - uboot = (void *)CONFIG_SYS_TEXT_BASE ; + uboot = (void *)CONFIG_TEXT_BASE ; (*uboot)();/* Never returns Here */ }
arch/arm/mach-imx/Makefile +5 -5
@@ -126,7 +126,7 @@ DEPFILE_EXISTS := 0 endif MKIMAGEFLAGS_u-boot.imx = -n $(filter-out $(PLUGIN).bin $< $(PHONY),$^) \ - -T $(IMAGE_TYPE) -e $(CONFIG_SYS_TEXT_BASE) + -T $(IMAGE_TYPE) -e $(CONFIG_TEXT_BASE) u-boot.imx: MKIMAGEOUTPUT = u-boot.imx.log u-boot.imx: u-boot.bin u-boot.cfgout $(PLUGIN).bin FORCE
@@ -134,7 +134,7 @@ u-boot.imx: u-boot.bin u-boot.cfgout $(PLUGIN).bin FORCE ifeq ($(CONFIG_MULTI_DTB_FIT),y) MKIMAGEFLAGS_u-boot-dtb.imx = -n $(filter-out $(PLUGIN).bin $< $(PHONY),$^) \ - -T $(IMAGE_TYPE) -e $(CONFIG_SYS_TEXT_BASE) + -T $(IMAGE_TYPE) -e $(CONFIG_TEXT_BASE) u-boot-dtb.imx: MKIMAGEOUTPUT = u-boot-dtb.imx.log u-boot-dtb.imx: u-boot-fit-dtb.bin u-boot-dtb.cfgout $(PLUGIN).bin FORCE
@@ -143,7 +143,7 @@ ifeq ($(DEPFILE_EXISTS),0) endif else ifeq ($(CONFIG_OF_SEPARATE),y) MKIMAGEFLAGS_u-boot-dtb.imx = -n $(filter-out $(PLUGIN).bin $< $(PHONY),$^) \ - -T $(IMAGE_TYPE) -e $(CONFIG_SYS_TEXT_BASE) + -T $(IMAGE_TYPE) -e $(CONFIG_TEXT_BASE) u-boot-dtb.imx: MKIMAGEOUTPUT = u-boot-dtb.imx.log u-boot-dtb.imx: u-boot-dtb.bin u-boot-dtb.cfgout $(PLUGIN).bin FORCE
@@ -207,8 +207,8 @@ SPL: MKIMAGEOUTPUT = SPL.log SPL: spl/u-boot-spl.bin spl/u-boot-spl.cfgout $(PLUGIN).bin FORCE $(call if_changed,mkimage) -MKIMAGEFLAGS_u-boot.uim = -A arm -O U-Boot -a $(CONFIG_SYS_TEXT_BASE) \ - -e $(CONFIG_SYS_TEXT_BASE) -C none -T firmware +MKIMAGEFLAGS_u-boot.uim = -A arm -O U-Boot -a $(CONFIG_TEXT_BASE) \ + -e $(CONFIG_TEXT_BASE) -C none -T firmware u-boot.uim: u-boot.bin FORCE $(call if_changed,mkimage)
arch/arm/mach-imx/imx8/cpu.c +2 -2
@@ -313,8 +313,8 @@ phys_size_t get_effective_memsize(void)/* Find the memory region runs the U-Boot */ if (start >= phys_sdram_1_start && start <= end1 && - (start <=CONFIG_SYS_TEXT_BASE && - end >=CONFIG_SYS_TEXT_BASE )) { + (start <=CONFIG_TEXT_BASE && + end >=CONFIG_TEXT_BASE )) {if ((end +1 ) <= ((sc_faddr_t )phys_sdram_1_start + phys_sdram_1_size))
arch/arm/mach-imx/mx7/Kconfig +1 -1
@@ -16,7 +16,7 @@ config MX7D select ROM_UNIFIED_SECTIONS imply CMD_FUSE -config SYS_TEXT_BASE +config TEXT_BASE default 0x87800000 config SPL_TEXT_BASE
arch/arm/mach-imx/spl.c +1 -1
@@ -341,7 +341,7 @@ void *board_spl_fit_buffer_addr(ulong fit_size, int sectors, int bl_len)if (bl_len <512 ) bl_len =512 ; -return (void *)((CONFIG_SYS_TEXT_BASE - fit_size - bl_len - +return (void *)((CONFIG_TEXT_BASE - fit_size - bl_len - align_len) & ~align_len); }#endif
arch/arm/mach-ipq40xx/Kconfig +1 -1
@@ -6,7 +6,7 @@ config SYS_SOC config SYS_MALLOC_F_LEN default 0x2000 -config SYS_TEXT_BASE +config TEXT_BASE default 0x87300000 config NR_DRAM_BANKS
arch/arm/mach-k3/config_secure.mk +1 -1
@@ -30,7 +30,7 @@ tispl.bin_HS: $(obj)/u-boot-spl-nodtb.bin_HS $(patsubst %,$(obj)/dts/%.dtb_HS,$( $(call if_changed,mkfitimage) MKIMAGEFLAGS_u-boot.img_HS = -f auto -A $(ARCH) -T firmware -C none -O u-boot \ - -a $(CONFIG_SYS_TEXT_BASE) -e $(CONFIG_SYS_UBOOT_START) \ + -a $(CONFIG_TEXT_BASE) -e $(CONFIG_SYS_UBOOT_START) \ -n "U-Boot $(UBOOTRELEASE) for $(BOARD) board" -E \ $(patsubst %,-b arch/$(ARCH)/dts/%.dtb_HS,$(subst ",,$(CONFIG_OF_LIST)))
arch/arm/mach-k3/sysfw-loader.c +1 -1
@@ -91,7 +91,7 @@ static void *sysfw_load_address;struct legacy_img_hdr *spl_get_load_buffer (ssize_t offset,size_t size) {if (sysfw_loaded) -return (struct legacy_img_hdr *)(CONFIG_SYS_TEXT_BASE + offset); +return (struct legacy_img_hdr *)(CONFIG_TEXT_BASE + offset);else if (sysfw_load_address)return sysfw_load_address;else
arch/arm/mach-keystone/config.mk +1 -1
@@ -27,7 +27,7 @@ u-boot-spi.gph: spl/u-boot-spl.gph u-boot.img FORCE ifndef CONFIG_SPL_BUILD MKIMAGEFLAGS_MLO = -A $(ARCH) -T gpimage -C none \ - -a $(CONFIG_SYS_TEXT_BASE) -e $(CONFIG_SYS_TEXT_BASE) -n U-Boot + -a $(CONFIG_TEXT_BASE) -e $(CONFIG_TEXT_BASE) -n U-Boot MLO: u-boot.bin FORCE $(call if_changed,mkimage) @dd if=/dev/zero bs=8 count=1 2>/dev/null >> $@
arch/arm/mach-nexell/include/mach/boot0.h +3 -3
@@ -5,7 +5,7 @@* The NSIH (first 512 Bytes of u-boot.bin) is necessary for the * 2nd-Bootloader to get information like load address of U-Boot. * -* 0x400 must be added to CONFIG_SYS_TEXT_BASE to have the actual load and +* 0x400 must be added to CONFIG_TEXT_BASE to have the actual load and * start address because 2nd-Bootloader loads with an offset of 0x400 * (NSIH + 0x200 bytes are not loaded into RAM). *
@@ -23,9 +23,9 @@ .word (_end - _start) + 20 * 1024 /* 0x50: load size* (bin + 20k for DTB) */ .space 0x4 - .word CONFIG_SYS_TEXT_BASE + 0x400 /* 0x58: load address */ + .word CONFIG_TEXT_BASE + 0x400 /* 0x58: load address */ .word 0x00000000 - .word CONFIG_SYS_TEXT_BASE + 0x400 /* 0x60: start address */ + .word CONFIG_TEXT_BASE + 0x400 /* 0x60: start address */ .space 0x198 .byte 'N' /* 0x1FC: "NSIH" signature */ .byte 'S'
arch/arm/mach-npcm/Kconfig +1 -1
@@ -3,7 +3,7 @@ if ARCH_NPCM config SYS_ARCH default "arm" -config SYS_TEXT_BASE +config TEXT_BASE default 0x8000 choice
arch/arm/mach-octeontx/cpu.c +1 -1
@@ -46,7 +46,7 @@ struct mm_region *mem_map = otx_mem_map;void mem_map_fill (void ) {int banks =OTX_MEM_MAP_USED ; -u32 dram_start =CONFIG_SYS_TEXT_BASE ; +u32 dram_start =CONFIG_TEXT_BASE ;if (otx_is_soc (CN83XX )) { otx_mem_map[banks].virt =0x8c0000000000UL ;
arch/arm/mach-octeontx2/cpu.c +1 -1
@@ -51,7 +51,7 @@ struct mm_region *mem_map = otx2_mem_map;void mem_map_fill (void ) {int banks =OTX2_MEM_MAP_USED ; -u32 dram_start =CONFIG_SYS_TEXT_BASE ; +u32 dram_start =CONFIG_TEXT_BASE ;for (int i =0 ; i <CONFIG_NR_DRAM_BANKS ; i++) { otx2_mem_map[banks].virt = dram_start;
arch/arm/mach-omap2/config_secure.mk +2 -2
@@ -10,7 +10,7 @@ cmd_mkomapsecimg = $(TI_SECURE_DEV_PKG)/scripts/create-boot-image.sh \ $(if $(KBUILD_VERBOSE:1=), >/dev/null) else cmd_mkomapsecimg = $(TI_SECURE_DEV_PKG)/scripts/create-boot-image.sh \ - $(patsubst u-boot_HS_%,%,$(@F)) $< $@ $(CONFIG_SYS_TEXT_BASE) \ + $(patsubst u-boot_HS_%,%,$(@F)) $< $@ $(CONFIG_TEXT_BASE) \ $(if $(KBUILD_VERBOSE:1=), >/dev/null) endif else
@@ -102,7 +102,7 @@ u-boot_HS_XIP_X-LOADER: $(obj)/u-boot.bin FORCE ifdef CONFIG_SPL_LOAD_FIT MKIMAGEFLAGS_u-boot_HS.img = -f auto -A $(ARCH) -T firmware -C none -O u-boot \ - -a $(CONFIG_SYS_TEXT_BASE) -e $(CONFIG_SYS_UBOOT_START) \ + -a $(CONFIG_TEXT_BASE) -e $(CONFIG_SYS_UBOOT_START) \ -n "U-Boot $(UBOOTRELEASE) for $(BOARD) board" -E \ $(patsubst %,-b arch/$(ARCH)/dts/%.dtb_HS,$(subst ",,$(CONFIG_OF_LIST)))
arch/arm/mach-owl/Kconfig +1 -1
@@ -14,7 +14,7 @@ config MACH_S700 endchoice -config SYS_TEXT_BASE +config TEXT_BASE default 0x11000000 config SYS_CONFIG_NAME
arch/arm/mach-rockchip/Kconfig +1 -1
@@ -431,7 +431,7 @@ config ROCKCHIP_SPI_IMAGE is built by binman. U-Boot sits near the start of the image. config LNX_KRNL_IMG_TEXT_OFFSET_BASE - default SYS_TEXT_BASE + default TEXT_BASE source "arch/arm/mach-rockchip/px30/Kconfig" source "arch/arm/mach-rockchip/rk3036/Kconfig"
arch/arm/mach-socfpga/Kconfig +1 -1
@@ -40,7 +40,7 @@ config SYS_MALLOC_F_LEN default 0x2000 if TARGET_SOCFPGA_ARRIA10 default 0x2000 if TARGET_SOCFPGA_GEN5 -config SYS_TEXT_BASE +config TEXT_BASE default 0x01000040 if TARGET_SOCFPGA_ARRIA10 default 0x01000040 if TARGET_SOCFPGA_GEN5
arch/arm/mach-stm32mp/Kconfig.13x +1 -1
@@ -19,7 +19,7 @@ config TARGET_ST_STM32MP13x endchoice -config SYS_TEXT_BASE +config TEXT_BASE default 0xC0000000 config PRE_CON_BUF_ADDR
arch/arm/mach-stm32mp/Kconfig.15x +1 -1
@@ -93,7 +93,7 @@ config SPL_STM32MP15_PWR This config enables implementation of driver-model pmic and regulator uclass features for access to STM32MP15x PWR in SPL. -config SYS_TEXT_BASE +config TEXT_BASE default 0xC0100000 config PRE_CON_BUF_ADDR
arch/arm/mach-sunxi/board.c +1 -1
@@ -359,7 +359,7 @@ __weak void sunxi_sram_init(void)static bool sunxi_valid_emmc_boot (struct mmc *mmc) {struct blk_desc *bd =mmc_get_blk_desc (mmc); -uint32_t *buffer = (void *)(uintptr_t )CONFIG_SYS_TEXT_BASE ; +u32 *buffer = (void *)(uintptr_t )CONFIG_TEXT_BASE ;struct boot_file_head *egon_head = (void *)buffer;int bootpart =EXT_CSD_EXTRACT_BOOT_PART (mmc->part_config);uint32_t spl_size, emmc_checksum, chksum =0 ;
arch/arm/mach-sunxi/spl_spi_sunxi.c +1 -1
@@ -338,7 +338,7 @@ static int spl_spi_load_image(struct spl_image_info *spl_image,struct legacy_img_hdr *header;uint32_t load_offset =sunxi_get_spl_size (); - header = (struct legacy_img_hdr *)CONFIG_SYS_TEXT_BASE ; + header = (struct legacy_img_hdr *)CONFIG_TEXT_BASE ; load_offset =max_t (uint32_t, load_offset,CONFIG_SYS_SPI_U_BOOT_OFFS );spi0_init ();
arch/arm/mach-zynqmp/mkimage_fit_atf.sh +1 -1
@@ -26,7 +26,7 @@ TEE_LOAD_ADDR_LOW=`printf 0x%x $((TEE_LOAD_ADDR & 0xffffffff))` TEE_LOAD_ADDR_HIGH=`printf 0x%x $((TEE_LOAD_ADDR >> 32))` if [ -z "$BL33_LOAD_ADDR" ];then - BL33_LOAD_ADDR=`awk '/CONFIG_SYS_TEXT_BASE/ { print $3 }' include/generated/autoconf.h` + BL33_LOAD_ADDR=`awk '/CONFIG_TEXT_BASE/ { print $3 }' include/generated/autoconf.h` fi BL33_LOAD_ADDR_LOW=`printf 0x%x $((BL33_LOAD_ADDR & 0xffffffff))` BL33_LOAD_ADDR_HIGH=`printf 0x%x $((BL33_LOAD_ADDR >> 32))`
arch/m68k/cpu/mcf52x2/start.S +6 -6
@@ -35,8 +35,8 @@ */ _vectors: .long 0x00000000 /* Flash offset is 0 until we setup CS0 */ -#if defined(CONFIG_M5282) && (CONFIG_SYS_TEXT_BASE == CONFIG_SYS_INT_FLASH_BASE) -.long _start - CONFIG_SYS_TEXT_BASE +#if defined(CONFIG_M5282) && (CONFIG_TEXT_BASE == CONFIG_SYS_INT_FLASH_BASE) +.long _start - CONFIG_TEXT_BASE #else .long _START #endif
@@ -83,7 +83,7 @@ _vectors: #if defined(CONFIG_SYS_INT_FLASH_BASE) && \ (defined(CONFIG_M5282) || defined(CONFIG_M5281)) -#if (CONFIG_SYS_TEXT_BASE == CONFIG_SYS_INT_FLASH_BASE) +#if (CONFIG_TEXT_BASE == CONFIG_SYS_INT_FLASH_BASE) .long 0x55AA55AA,0xAA55AA55 /* CFM Backdoorkey */ .long 0xFFFFFFFF /* all sectors protected */ .long 0x00000000 /* supervisor/User restriction */
@@ -130,7 +130,7 @@ _start: movec %d0, %RAMBAR1 #if defined(CONFIG_M5282) -#if (CONFIG_SYS_TEXT_BASE == CONFIG_SYS_INT_FLASH_BASE) +#if (CONFIG_TEXT_BASE == CONFIG_SYS_INT_FLASH_BASE) /* * Setup code in SRAM to initialize FLASHBAR, * if start from internal Flash
@@ -156,7 +156,7 @@ _after_flashbar_copy: /* Setup code to initialize FLASHBAR, if start from external Memory */ move.l #(CONFIG_SYS_INT_FLASH_BASE + CONFIG_SYS_INT_FLASH_ENABLE), %d0 movec %d0, %FLASHBAR -#endif /* (CONFIG_SYS_TEXT_BASE == CONFIG_SYS_INT_FLASH_BASE) */ +#endif /* (CONFIG_TEXT_BASE == CONFIG_SYS_INT_FLASH_BASE) */ #endif #endif
@@ -165,7 +165,7 @@ _after_flashbar_copy: * therefore no VBR to set */ #if !defined(CONFIG_MONITOR_IS_IN_RAM) -#if defined(CONFIG_M5282) && (CONFIG_SYS_TEXT_BASE == CONFIG_SYS_INT_FLASH_BASE) +#if defined(CONFIG_M5282) && (CONFIG_TEXT_BASE == CONFIG_SYS_INT_FLASH_BASE) move.l #CONFIG_SYS_INT_FLASH_BASE, %d0 #else move.l #CONFIG_SYS_FLASH_BASE, %d0
arch/m68k/cpu/mcf530x/start.S +2 -2
@@ -39,8 +39,8 @@ _vectors: /* Flash offset is 0 until we setup CS0 */ .long 0x00000000 #if defined(CONFIG_M5307) && \ - (CONFIG_SYS_TEXT_BASE == CONFIG_SYS_INT_FLASH_BASE) -.long _start - CONFIG_SYS_TEXT_BASE + (CONFIG_TEXT_BASE == CONFIG_SYS_INT_FLASH_BASE) +.long _start - CONFIG_TEXT_BASE #else .long _START #endif
arch/m68k/cpu/mcf5445x/start.S +8 -8
@@ -26,10 +26,10 @@ rte; #if defined(CONFIG_SERIAL_BOOT) -#define ASM_DRAMINIT (asm_dram_init - CONFIG_SYS_TEXT_BASE + \ +#define ASM_DRAMINIT (asm_dram_init - CONFIG_TEXT_BASE + \ CONFIG_SYS_INIT_RAM_ADDR) -#define ASM_DRAMINIT_N (asm_dram_init - CONFIG_SYS_TEXT_BASE) -#define ASM_SBF_IMG_HDR (asm_sbf_img_hdr - CONFIG_SYS_TEXT_BASE + \ +#define ASM_DRAMINIT_N (asm_dram_init - CONFIG_TEXT_BASE) +#define ASM_SBF_IMG_HDR (asm_sbf_img_hdr - CONFIG_TEXT_BASE + \ CONFIG_SYS_INIT_RAM_ADDR) #endif
@@ -116,7 +116,7 @@ vector192_255: asm_sbf_img_hdr: .long 0x00000000 /* checksum, not yet implemented */ .long 0x00040000 /* image length */ - .long CONFIG_SYS_TEXT_BASE /* image to be relocated at */ + .long CONFIG_TEXT_BASE /* image to be relocated at */ asm_dram_init: move.w #0x2700,%sr /* Mask off Interrupt */
@@ -271,7 +271,7 @@ asm_dspi_rd_loop2: jsr asm_dspi_rd_status /* jump to memory and execute */ - move.l #(CONFIG_SYS_TEXT_BASE + 0x400), %a0 + move.l #(CONFIG_TEXT_BASE + 0x400), %a0 jmp (%a0) asm_dspi_wr_status:
@@ -298,7 +298,7 @@ asm_dspi_rd_status: /* copy 4 boot pages to dram as soon as possible */ /* each page is 996 bytes (1056 total with 60 ECC bytes */ move.l #0x00000000, %a1 /* src */ - move.l #CONFIG_SYS_TEXT_BASE, %a2 /* dst */ + move.l #CONFIG_TEXT_BASE, %a2 /* dst */ move.l #0x3E0, %d0 /* sz in long */ asm_boot_nand_copy:
@@ -381,7 +381,7 @@ asm_nand_init: move.l #4, %d2 /* start at 4 */ move.l #0xFC0FFF04, %a0 /* cmd2 */ move.l #0xFC0FFF0C, %a1 /* rar */ - move.l #(CONFIG_SYS_TEXT_BASE + 0xF80), %a2 + move.l #(CONFIG_TEXT_BASE + 0xF80), %a2 asm_nand_read: move.l #0x11000000, %d0 /* rar */
@@ -419,7 +419,7 @@ asm_nand_copy: bgt asm_nand_read /* jump to memory and execute */ - move.l #(CONFIG_SYS_TEXT_BASE + 0x400), %a0 + move.l #(CONFIG_TEXT_BASE + 0x400), %a0 jmp (%a0) #endif /* CONFIG_SYS_NAND_BOOT */
arch/microblaze/cpu/relocate.c +3 -3
@@ -19,7 +19,7 @@* @rela_start: rela section start * @rela_end: rela section end * @dyn_start: dynamic section start -* @origin_addr: address where u-boot starts(doesn't need to be CONFIG_SYS_TEXT_BASE) +* @origin_addr: address where u-boot starts(doesn't need to be CONFIG_TEXT_BASE) */ void mb_fix_rela (u32 reloc_addr,u32 verbose,u32 rela_start,u32 rela_end,u32 dyn_start,u32 origin_addr)
@@ -29,9 +29,9 @@ void mb_fix_rela(u32 reloc_addr, u32 verbose, u32 rela_start,/* * Return in case u-boot.elf is used directly. * Skip it when u-boot.bin is loaded to different address than -* CONFIG_SYS_TEXT_BASE. In this case relocation is necessary to run. +* CONFIG_TEXT_BASE. In this case relocation is necessary to run. */ -if (reloc_addr ==CONFIG_SYS_TEXT_BASE ) { +if (reloc_addr ==CONFIG_TEXT_BASE ) {debug_cond (verbose,"Relocation address is the same - skip relocation\n" );return ;
arch/microblaze/cpu/start.S +4 -4
@@ -55,15 +55,15 @@ uboot_sym_start: add r6, r0, r0 lwi r7, r20, ALIGNMENT_ADDR - addi r7, r7, -CONFIG_SYS_TEXT_BASE + addi r7, r7, -CONFIG_TEXT_BASE add r7, r7, r5 lwi r8, r20, ALIGNMENT_ADDR + 0x4 - addi r8, r8, -CONFIG_SYS_TEXT_BASE + addi r8, r8, -CONFIG_TEXT_BASE add r8, r8, r5 lwi r9, r20, ALIGNMENT_ADDR + 0x8 - addi r9, r9, -CONFIG_SYS_TEXT_BASE + addi r9, r9, -CONFIG_TEXT_BASE add r9, r9, r5 - addi r10, r0, CONFIG_SYS_TEXT_BASE + addi r10, r0, CONFIG_TEXT_BASE brlid r15, mb_fix_rela nop
arch/mips/mach-jz47xx/jz4780/jz4780.c +2 -2
@@ -58,7 +58,7 @@ void board_init_f(ulong dummy)if (ret)hang (); - header = (struct legacy_img_hdr *)(CONFIG_SYS_TEXT_BASE - + header = (struct legacy_img_hdr *)(CONFIG_TEXT_BASE -sizeof (struct legacy_img_hdr )); count = blk_dread(mmc_get_blk_desc(mmc),
@@ -68,7 +68,7 @@ void board_init_f(ulong dummy)hang ();image_entry_noargs_t image_entry = - (image_entry_noargs_t )CONFIG_SYS_TEXT_BASE ; + (image_entry_noargs_t )CONFIG_TEXT_BASE ;image_entry ();
arch/mips/mach-mscc/lowlevel_init.S +1 -1
@@ -21,7 +21,7 @@ LEAF(lowlevel_init) /* Modify ra/s0 such we return to physical NOR location */ li t0, 0x0fffffff - li t1, CONFIG_SYS_TEXT_BASE + li t1, CONFIG_TEXT_BASE and s0, ra, t0 add s0, s0, t1
arch/mips/mach-mtmips/Kconfig +1 -1
@@ -28,7 +28,7 @@ config SYS_ICACHE_LINE_SIZE config SYS_SCACHE_LINE_SIZE default 32 if SOC_MT7621 -config SYS_TEXT_BASE +config TEXT_BASE default 0x9c000000 if !SPL && !SOC_MT7621 default 0x80200000 if SPL || SOC_MT7621
arch/powerpc/cpu/mpc85xx/cpu_init_early.c +2 -2
@@ -30,7 +30,7 @@ void setup_ifc(void) _mas0 =MAS0_TLBSEL (1 ) |MAS0_ESEL (15 ); _mas1 =MAS1_VALID |MAS1_TID (0 ) |MAS1_TS |MAS1_IPROT |MAS1_TSIZE (BOOKE_PAGESZ_4M ); - _mas2 =FSL_BOOKE_MAS2 (CONFIG_SYS_TEXT_BASE ,MAS2_I |MAS2_G ); + _mas2 =FSL_BOOKE_MAS2 (CONFIG_TEXT_BASE ,MAS2_I |MAS2_G ); _mas3 =FSL_BOOKE_MAS3 (flash_phys,0 ,MAS3_SW |MAS3_SR |MAS3_SX ); _mas7 =FSL_BOOKE_MAS7 (flash_phys);
@@ -58,7 +58,7 @@ void setup_ifc(void)MAS0_ESEL (CONFIG_SYS_PPC_E500_DEBUG_TLB ); _mas1 =MAS1_VALID |MAS1_TID (0 ) |MAS1_IPROT |MAS1_TSIZE (BOOKE_PAGESZ_4M ); - _mas2 =FSL_BOOKE_MAS2 (CONFIG_SYS_TEXT_BASE ,MAS2_I |MAS2_G ); + _mas2 =FSL_BOOKE_MAS2 (CONFIG_TEXT_BASE ,MAS2_I |MAS2_G ); _mas3 =FSL_BOOKE_MAS3 (flash_phys,0 ,MAS3_SW |MAS3_SR |MAS3_SX ); _mas7 =FSL_BOOKE_MAS7 (flash_phys);
arch/powerpc/cpu/mpc85xx/u-boot.lds +1 -1
@@ -18,7 +18,7 @@ SECTIONS { /* Optional boot sector */ #if defined(CONFIG_FSL_PREPBL_ESDHC_BOOT_SECTOR) && !defined(CONFIG_SPL) - .bootsect CONFIG_SYS_TEXT_BASE - CONFIG_FSL_PREPBL_ESDHC_BOOT_SECTOR_DATA * 512 : { + .bootsect CONFIG_TEXT_BASE - CONFIG_FSL_PREPBL_ESDHC_BOOT_SECTOR_DATA * 512 : { KEEP(arch/powerpc/cpu/mpc85xx/start.o (.bootsect)) . = CONFIG_FSL_PREPBL_ESDHC_BOOT_SECTOR_DATA * 512; }
arch/powerpc/dts/kmcent2-u-boot.dtsi +2 -2
@@ -77,13 +77,13 @@ binman { filename = "u-boot.bin"; - skip-at-start = <CONFIG_SYS_TEXT_BASE>; + skip-at-start = <CONFIG_TEXT_BASE>; sort-by-offset; pad-byte = <0xff>; size = <CONFIG_SYS_MONITOR_LEN>; u-boot-with-ucode-ptr { - offset = <CONFIG_SYS_TEXT_BASE>; + offset = <CONFIG_TEXT_BASE>; optional-ucode; };
arch/powerpc/dts/u-boot.dtsi +2 -2
@@ -10,13 +10,13 @@ / { binman { filename = "u-boot.bin"; - skip-at-start = <CONFIG_SYS_TEXT_BASE>; + skip-at-start = <CONFIG_TEXT_BASE>; sort-by-offset; pad-byte = <0xff>; size = <CONFIG_SYS_MONITOR_LEN>; u-boot-with-ucode-ptr { - offset = <CONFIG_SYS_TEXT_BASE>; + offset = <CONFIG_TEXT_BASE>; optional-ucode; };
arch/riscv/dts/binman.dtsi +1 -1
@@ -27,7 +27,7 @@ os = "U-Boot"; arch = "riscv"; compression = "none"; - load = <CONFIG_SYS_TEXT_BASE>; + load = <CONFIG_TEXT_BASE>; uboot_blob: blob-ext { filename = "u-boot-nodtb.bin";
arch/sh/cpu/u-boot.lds +1 -1
@@ -25,7 +25,7 @@ ENTRY(_start) SECTIONS { - . = CONFIG_SYS_TEXT_BASE; + . = CONFIG_TEXT_BASE; reloc_dst = .; PROVIDE (_ftext = .);
arch/x86/Kconfig +2 -2
@@ -924,8 +924,8 @@ config CACHE_QOS_SIZE_PER_BIT config X86_OFFSET_U_BOOT hex "Offset of U-Boot in ROM image" - depends on HAVE_SYS_TEXT_BASE - default SYS_TEXT_BASE + depends on HAVE_TEXT_BASE + default TEXT_BASE config X86_OFFSET_SPL hex "Offset of SPL in ROM image"
arch/x86/cpu/apollolake/spl.c +1 -1
@@ -118,7 +118,7 @@ static int spl_fast_spi_load_image(struct spl_image_info *spl_image, spl_image->size =CONFIG_SYS_MONITOR_LEN ;/* We don't know SPL size */ spl_image->entry_point =spl_phase () ==PHASE_TPL ? -CONFIG_SPL_TEXT_BASE :CONFIG_SYS_TEXT_BASE ; +CONFIG_SPL_TEXT_BASE :CONFIG_TEXT_BASE ; spl_image->load_addr = spl_image->entry_point; spl_image->os =IH_OS_U_BOOT ; spl_image->name ="U-Boot" ;
arch/x86/cpu/quark/quark.c +1 -1
@@ -49,7 +49,7 @@ static void quark_setup_mtrr(void)/* variable range MTRR#0: ROM area */ mask = ~(CONFIG_SYS_MONITOR_LEN -1 ); - base =CONFIG_SYS_TEXT_BASE & mask; + base =CONFIG_TEXT_BASE & mask;msg_port_write (MSG_PORT_HOST_BRIDGE ,MTRR_VAR_PHYBASE (MTRR_VAR_ROM ), base |MTRR_TYPE_WRBACK ); msg_port_write(MSG_PORT_HOST_BRIDGE, MTRR_VAR_PHYMASK(MTRR_VAR_ROM),
arch/x86/cpu/start.S +3 -3
@@ -237,15 +237,15 @@ multiboot_header: /* checksum */ .long -0x1BADB002 - (1 << 16) /* header addr */ - .long multiboot_header - _x86boot_start + CONFIG_SYS_TEXT_BASE + .long multiboot_header - _x86boot_start + CONFIG_TEXT_BASE /* load addr */ - .long CONFIG_SYS_TEXT_BASE + .long CONFIG_TEXT_BASE /* load end addr */ .long 0 /* bss end addr */ .long 0 /* entry addr */ - .long CONFIG_SYS_TEXT_BASE + .long CONFIG_TEXT_BASE #ifdef CONFIG_X86_LOAD_FROM_32_BIT /*
arch/x86/cpu/u-boot-64.lds +2 -2
@@ -15,8 +15,8 @@ SECTIONS /DISCARD/ : { *(__u_boot_list_2_cmd_*) } #endif -#ifdef CONFIG_SYS_TEXT_BASE - . = CONFIG_SYS_TEXT_BASE; /* Location of bootcode in flash */ +#ifdef CONFIG_TEXT_BASE + . = CONFIG_TEXT_BASE; /* Location of bootcode in flash */ #endif __text_start = .;
arch/x86/cpu/u-boot.lds +1 -1
@@ -15,7 +15,7 @@ SECTIONS /DISCARD/ : { *(__u_boot_list_2_cmd_*) } #endif - . = CONFIG_SYS_TEXT_BASE; /* Location of bootcode in flash */ + . = CONFIG_TEXT_BASE; /* Location of bootcode in flash */ __text_start = .; .text.start : { *(.text.start); }
arch/x86/lib/relocate.c +3 -3
@@ -162,10 +162,10 @@ int do_elf_reloc_fixups(void)if (re_src == re_end)panic ("No relocation data" ); -#ifdef CONFIG_SYS_TEXT_BASE - text_base =CONFIG_SYS_TEXT_BASE ; +#ifdef CONFIG_TEXT_BASE + text_base =CONFIG_TEXT_BASE ;#else -panic ("No CONFIG_SYS_TEXT_BASE" ); +panic ("No CONFIG_TEXT_BASE" );#endif #if CONFIG_IS_ENABLED (X86_64 )do_elf_reloc_fixups64 (text_base, size, re_src, re_end);
arch/x86/lib/spl.c +3 -3
@@ -66,7 +66,7 @@ static int x86_spl_init(void)* TODO([email protected]): We use this area of RAM for the stack * and global_data in SPL. Once U-Boot starts up and releocates it * is not needed. We could make this a CONFIG option or perhaps -* place it immediately below CONFIG_SYS_TEXT_BASE. +* place it immediately below CONFIG_TEXT_BASE. */ __maybe_unused char *ptr = (char *)0x110000 ;#else
@@ -209,8 +209,8 @@ static int spl_board_load_image(struct spl_image_info *spl_image, struct spl_boot_device *bootdev) { spl_image->size =CONFIG_SYS_MONITOR_LEN ; - spl_image->entry_point =CONFIG_SYS_TEXT_BASE ; - spl_image->load_addr =CONFIG_SYS_TEXT_BASE ; + spl_image->entry_point =CONFIG_TEXT_BASE ; + spl_image->load_addr =CONFIG_TEXT_BASE ; spl_image->os =IH_OS_U_BOOT ; spl_image->name ="U-Boot" ;
board/BuS/eb_cpu5282/eb_cpu5282.c +1 -1
@@ -31,7 +31,7 @@ extern unsigned long display_height;int checkboard (void ) {puts ("Board: EB+CPU5282 (BuS Elektronik GmbH & Co. KG)\n" ); -#if (CONFIG_SYS_TEXT_BASE ==CONFIG_SYS_INT_FLASH_BASE ) +#if (CONFIG_TEXT_BASE ==CONFIG_SYS_INT_FLASH_BASE )puts (" Boot from Internal FLASH\n" );#endif return 0 ;
board/advantech/som-db5800-som-6867/Kconfig +1 -1
@@ -12,7 +12,7 @@ config SYS_SOC config SYS_CONFIG_NAME default "som-db5800-som-6867" -config SYS_TEXT_BASE +config TEXT_BASE default 0xfff00000 config BOARD_SPECIFIC_OPTIONS # dummy
board/armltd/vexpress64/Kconfig +2 -2
@@ -54,9 +54,9 @@ config JUNO_DTB_PART device tree blob to configure U-Boot. config LNX_KRNL_IMG_TEXT_OFFSET_BASE - default SYS_TEXT_BASE + default TEXT_BASE -config SYS_TEXT_BASE +config TEXT_BASE default 0x88000000 if TARGET_VEXPRESS64_BASE_FVP default 0xe0000000 if TARGET_VEXPRESS64_JUNO default 0x00001000 if TARGET_VEXPRESS64_BASER_FVP
board/beacon/beacon-rzg2m/beacon-rzg2m.c +1 -1
@@ -12,7 +12,7 @@ DECLARE_GLOBAL_DATA_PTR;int board_init (void ) {/* address of boot parameters */ - gd->bd->bi_boot_params =CONFIG_SYS_TEXT_BASE +0x50000 ; + gd->bd->bi_boot_params =CONFIG_TEXT_BASE +0x50000 ;return 0 ; }
board/broadcom/bcmstb/bcmstb.c +2 -2
@@ -61,13 +61,13 @@ int dram_init_banksize(void)/* * On this SoC, U-Boot is running as an ELF file. Change the -* relocation address to CONFIG_SYS_TEXT_BASE, so that in +* relocation address to CONFIG_TEXT_BASE, so that in * setup_reloc, gd->reloc_off works out to 0, effectively * disabling relocation. Otherwise U-Boot hangs in the setup * instructions just before relocate_code in * arch/arm/lib/crt0.S. */ - gd->relocaddr =CONFIG_SYS_TEXT_BASE ; + gd->relocaddr =CONFIG_TEXT_BASE ;return 0 ; }
board/cobra5272/README +4 -4
@@ -89,9 +89,9 @@ please first check: => u-boot as single bootloader starting from flash - in board/cobra5272/config.mk CONFIG_SYS_TEXT_BASE should be + in board/cobra5272/config.mk CONFIG_TEXT_BASE should be - CONFIG_SYS_TEXT_BASE = 0xffe00000 + CONFIG_TEXT_BASE = 0xffe00000 => linking address for u-boot as single bootloader stored in flash
@@ -128,9 +128,9 @@ please modify the settings: => u-boot as RAM version, chainloaded by another bootloader or using bdm cable - in board/cobra5272/config.mk CONFIG_SYS_TEXT_BASE should be + in board/cobra5272/config.mk CONFIG_TEXT_BASE should be - CONFIG_SYS_TEXT_BASE = 0x00020000 + CONFIG_TEXT_BASE = 0x00020000 => target linking address for RAM
board/congatec/cgtqmx8/cgtqmx8.c +1 -1
@@ -425,7 +425,7 @@ int board_late_init(void)char *end_of_uboot;char command[256 ]; - end_of_uboot = (char *)(ulong)(CONFIG_SYS_TEXT_BASE + _end_ofs + end_of_uboot = (char *)(ulong)(CONFIG_TEXT_BASE + _end_ofs +fdt_totalsize (gd->fdt_blob)); end_of_uboot +=9 ;
board/congatec/conga-qeval20-qa3-e3845/Kconfig +1 -1
@@ -11,7 +11,7 @@ config SYS_CONFIG_NAME default "conga-qeval20-qa3-e3845" if TARGET_CONGA_QEVAL20_QA3_E3845 default "theadorable-x86-conga-qa3-e3845" if TARGET_THEADORABLE_X86_CONGA_QA3_E3845 -config SYS_TEXT_BASE +config TEXT_BASE default 0xfff00000 config BOARD_SPECIFIC_OPTIONS # dummy
board/coreboot/coreboot/Kconfig +1 -1
@@ -9,7 +9,7 @@ config SYS_VENDOR config SYS_SOC default "coreboot" -config SYS_TEXT_BASE +config TEXT_BASE default 0x01110000 config BOARD_SPECIFIC_OPTIONS # dummy
board/cssi/MCR3000/Kconfig +1 -1
@@ -9,7 +9,7 @@ config SYS_VENDOR config SYS_CONFIG_NAME default "MCR3000" -config SYS_TEXT_BASE +config TEXT_BASE default 0x04000000 endif
board/davinci/da8xxevm/README.da850 +1 -1
@@ -124,7 +124,7 @@ NOR Flash is XIP (execute-in-place), so no AIS (or SPL) is needed. The u-boot.bin is directy flashed, but CONFIT_DA850_LOWLEVEL must be set to initialize hardware that's normally done by SPL. -For this case, CONFIG_SYS_TEXT_BASE=0x60000000 which is the address to +For this case, CONFIG_TEXT_BASE=0x60000000 which is the address to which the bootloader jumps when powered on. Example:
board/dfi/dfi-bt700/Kconfig +1 -1
@@ -11,7 +11,7 @@ config SYS_CONFIG_NAME default "dfi-bt700" if TARGET_Q7X_151_DFI_BT700 default "theadorable-x86-dfi-bt700" if TARGET_THEADORABLE_X86_DFI_BT700 -config SYS_TEXT_BASE +config TEXT_BASE default 0xfff00000 config BOARD_SPECIFIC_OPTIONS # dummy
board/efi/efi-x86_payload/Kconfig +1 -1
@@ -12,7 +12,7 @@ config SYS_SOC config SYS_CONFIG_NAME default "efi-x86_payload" -config SYS_TEXT_BASE +config TEXT_BASE default 0x00200000 config BOARD_SPECIFIC_OPTIONS # dummy
board/emulation/qemu-arm/Kconfig +1 -1
@@ -1,6 +1,6 @@ if TARGET_QEMU_ARM_32BIT || TARGET_QEMU_ARM_64BIT -config SYS_TEXT_BASE +config TEXT_BASE default 0x00000000 config BOARD_SPECIFIC_OPTIONS # dummy
board/emulation/qemu-riscv/Kconfig +1 -1
@@ -12,7 +12,7 @@ config SYS_CPU config SYS_CONFIG_NAME default "qemu-riscv" -config SYS_TEXT_BASE +config TEXT_BASE default 0x81200000 if SPL default 0x80000000 if !RISCV_SMODE default 0x80200000 if RISCV_SMODE && ARCH_RV64I
board/emulation/qemu-x86/Kconfig +1 -1
@@ -12,7 +12,7 @@ config SYS_SOC config SYS_CONFIG_NAME default "qemu-x86" -config SYS_TEXT_BASE +config TEXT_BASE default 0xfff00000 if !SUPPORT_SPL default 0x01110000 if SUPPORT_SPL
board/freescale/imx8qm_mek/uboot-container.cfg +1 -1
@@ -9,4 +9,4 @@ BOOT_FROM SD 0x400 SOC_TYPE IMX8QM CONTAINER IMAGE A35 bl31.bin 0x80000000 -IMAGE A35 u-boot.bin CONFIG_SYS_TEXT_BASE +IMAGE A35 u-boot.bin CONFIG_TEXT_BASE
board/freescale/imx8qxp_mek/uboot-container.cfg +1 -1
@@ -9,4 +9,4 @@ BOOT_FROM SD 0x400 SOC_TYPE IMX8QX CONTAINER IMAGE A35 bl31.bin 0x80000000 -IMAGE A35 u-boot.bin CONFIG_SYS_TEXT_BASE +IMAGE A35 u-boot.bin CONFIG_TEXT_BASE
board/freescale/ls1021atsn/ls1021atsn.c +1 -1
@@ -188,7 +188,7 @@ void board_init_f(ulong dummy)* in last boot. */ if (is_warm_boot ()) { - second_uboot = (void (*)(void ))CONFIG_SYS_TEXT_BASE ; + second_uboot = (void (*)(void ))CONFIG_TEXT_BASE ;second_uboot (); }
board/freescale/ls1021atwr/ls1021atwr.c +1 -1
@@ -439,7 +439,7 @@ void board_init_f(ulong dummy)* in last boot. */ if (is_warm_boot ()) { - second_uboot = (void (*)(void ))CONFIG_SYS_TEXT_BASE ; + second_uboot = (void (*)(void ))CONFIG_TEXT_BASE ;second_uboot (); }
board/freescale/ls1028a/Kconfig +2 -2
@@ -15,7 +15,7 @@ config SYS_CONFIG_NAME config EMMC_BOOT bool "Support for booting from EMMC" -config SYS_TEXT_BASE +config TEXT_BASE default 0x96000000 if SD_BOOT || EMMC_BOOT default 0x82000000 if TFABOOT default 0x20100000
@@ -51,7 +51,7 @@ config SYS_CONFIG_NAME config EMMC_BOOT bool "Support for booting from EMMC" -config SYS_TEXT_BASE +config TEXT_BASE default 0x96000000 if SD_BOOT || EMMC_BOOT default 0x82000000 if TFABOOT default 0x20100000
board/google/chromebook_coral/Kconfig +1 -1
@@ -12,7 +12,7 @@ config SYS_SOC config SYS_CONFIG_NAME default "chromebook_coral" -config SYS_TEXT_BASE +config TEXT_BASE default 0xffe00000 config BOARD_SPECIFIC_OPTIONS # dummy
board/google/chromebook_link/Kconfig +1 -1
@@ -12,7 +12,7 @@ config SYS_SOC config SYS_CONFIG_NAME default "chromebook_link" -config SYS_TEXT_BASE +config TEXT_BASE default 0xfff00000 if !SUPPORT_SPL default 0x10000000 if SUPPORT_SPL
board/google/chromebook_samus/Kconfig +1 -1
@@ -13,7 +13,7 @@ config SYS_CONFIG_NAME default "chromebook_samus" if TARGET_CHROMEBOOK_SAMUS default "chromebook_samus" if TARGET_CHROMEBOOK_SAMUS_TPL -config SYS_TEXT_BASE +config TEXT_BASE default 0xffe00000 config BOARD_SPECIFIC_OPTIONS # dummy
board/google/chromebox_panther/Kconfig +1 -1
@@ -12,7 +12,7 @@ config SYS_SOC config SYS_CONFIG_NAME default "chromebox_panther" -config SYS_TEXT_BASE +config TEXT_BASE default 0xfff00000 # Panther actually uses haswell, not ivybridge, so this is just a placeholder
board/hoperun/hihope-rzg2/hihope-rzg2.c +1 -1
@@ -39,7 +39,7 @@ int board_init(void)u32 i;/* address of boot parameters */ - gd->bd->bi_boot_params =CONFIG_SYS_TEXT_BASE +0x50000 ; + gd->bd->bi_boot_params =CONFIG_TEXT_BASE +0x50000 ;/* Configure the HSUSB block */ mstp_clrbits_le32 (SMSTPCR7 ,SMSTPCR7 ,HSUSB_MSTP704 );
board/hpe/gxp/Kconfig +1 -1
@@ -42,5 +42,5 @@ config SYS_VENDOR config SYS_CONFIG_NAME default "gxp" -config SYS_TEXT_BASE +config TEXT_BASE default 0x50000000
board/imgtec/boston/Kconfig +1 -1
@@ -9,7 +9,7 @@ config SYS_VENDOR config SYS_CONFIG_NAME default "boston" -config SYS_TEXT_BASE +config TEXT_BASE default 0x9fc00000 if 32BIT default 0xffffffff9fc00000 if 64BIT
board/imgtec/ci20/Kconfig +1 -1
@@ -9,7 +9,7 @@ config SYS_VENDOR config SYS_CONFIG_NAME default "ci20" -config SYS_TEXT_BASE +config TEXT_BASE default 0x80000000 endif
board/imgtec/malta/Kconfig +1 -1
@@ -9,7 +9,7 @@ config SYS_VENDOR config SYS_CONFIG_NAME default "malta" -config SYS_TEXT_BASE +config TEXT_BASE default 0xbe000000 if 32BIT default 0xffffffffbe000000 if 64BIT
board/imgtec/xilfpga/Kconfig +1 -1
@@ -9,7 +9,7 @@ config SYS_VENDOR config SYS_CONFIG_NAME default "imgtec_xilfpga" -config SYS_TEXT_BASE +config TEXT_BASE default 0x80C00000 endif
board/intel/bayleybay/Kconfig +1 -1
@@ -12,7 +12,7 @@ config SYS_SOC config SYS_CONFIG_NAME default "bayleybay" -config SYS_TEXT_BASE +config TEXT_BASE default 0xfff00000 config BOARD_SPECIFIC_OPTIONS # dummy
board/intel/cherryhill/Kconfig +1 -1
@@ -12,7 +12,7 @@ config SYS_SOC config SYS_CONFIG_NAME default "cherryhill" -config SYS_TEXT_BASE +config TEXT_BASE default 0xffe00000 config BOARD_SPECIFIC_OPTIONS # dummy
board/intel/cougarcanyon2/Kconfig +1 -1
@@ -12,7 +12,7 @@ config SYS_SOC config SYS_CONFIG_NAME default "cougarcanyon2" -config SYS_TEXT_BASE +config TEXT_BASE default 0xffe00000 config BOARD_SPECIFIC_OPTIONS # dummy
board/intel/crownbay/Kconfig +1 -1
@@ -12,7 +12,7 @@ config SYS_SOC config SYS_CONFIG_NAME default "crownbay" -config SYS_TEXT_BASE +config TEXT_BASE default 0xfff00000 config BOARD_SPECIFIC_OPTIONS # dummy
board/intel/edison/Kconfig +1 -1
@@ -15,7 +15,7 @@ config SYS_CONFIG_NAME config SYS_MALLOC_LEN default 0x08000000 -config SYS_TEXT_BASE +config TEXT_BASE default 0x01101000 config ROM_TABLE_ADDR
board/intel/galileo/Kconfig +1 -1
@@ -12,7 +12,7 @@ config SYS_SOC config SYS_CONFIG_NAME default "galileo" -config SYS_TEXT_BASE +config TEXT_BASE default 0xfff10000 config BOARD_SPECIFIC_OPTIONS # dummy
board/intel/minnowmax/Kconfig +1 -1
@@ -12,7 +12,7 @@ config SYS_SOC config SYS_CONFIG_NAME default "minnowmax" -config SYS_TEXT_BASE +config TEXT_BASE default 0xfff00000 config BOARD_SPECIFIC_OPTIONS # dummy
board/intel/slimbootloader/Kconfig +1 -1
@@ -16,7 +16,7 @@ config SYS_SOC config SYS_CONFIG_NAME default "slimbootloader" -config SYS_TEXT_BASE +config TEXT_BASE default 0x00100000 config BOARD_SPECIFIC_OPTIONS
board/keymile/common/common.c +2 -2
@@ -116,7 +116,7 @@ void check_for_uboot_update(void) } }printf ("Check update: starting factory image @%08x ...\n" , -CONFIG_SYS_TEXT_BASE ); +CONFIG_TEXT_BASE ); }else if (IS_ENABLED (CONFIG_PG_WCOM_UBOOT_UPDATE )) {/* * When running in field updated u-boot, make sure that
@@ -124,7 +124,7 @@ void check_for_uboot_update(void)*/ WARN_ON (bootcount >CONFIG_BOOTCOUNT_BOOTLIMIT );printf ("Check update: updated u-boot starting @%08x ...\n" , - CONFIG_SYS_TEXT_BASE); + CONFIG_TEXT_BASE); } }#endif
board/kontron/sl28/Kconfig +1 -1
@@ -12,7 +12,7 @@ config SYS_SOC config SYS_CONFIG_NAME default "kontron_sl28" -config SYS_TEXT_BASE +config TEXT_BASE default 0x96000000 config SL28_SPL_LOADS_ATF_BL31
board/microchip/mpfs_icicle/Kconfig +1 -1
@@ -12,7 +12,7 @@ config SYS_CPU config SYS_CONFIG_NAME default "microchip_mpfs_icicle" -config SYS_TEXT_BASE +config TEXT_BASE default 0x80000000 if !RISCV_SMODE default 0x80200000 if RISCV_SMODE
board/microchip/pic32mzda/Kconfig +1 -1
@@ -10,7 +10,7 @@ config SYS_VENDOR config SYS_CONFIG_NAME default "pic32mzdask" -config SYS_TEXT_BASE +config TEXT_BASE default 0x9d004000 endif
board/nokia/rx51/lowlevel_init.S +3 -3
@@ -7,7 +7,7 @@ #include <config.h> kernoffs: /* offset of kernel image from this address */ - .word KERNEL_OFFSET - (. - CONFIG_SYS_TEXT_BASE) + .word KERNEL_OFFSET - (. - CONFIG_TEXT_BASE) kernaddr: /* address of kernel after copying */ .word KERNEL_ADDRESS
@@ -37,13 +37,13 @@ save_boot_params: * * Nokia X-Loader is loading secondary image to address 0x80400000. * NOLO is loading boot image to random place, so it doesn't really - * matter what is set in CONFIG_SYS_TEXT_BASE. We have to detect + * matter what is set in CONFIG_TEXT_BASE. We have to detect * KERNEL_OFFSET from the current execution address and copy it to * absolute address KERNEL_ADDRESS. * * Note that U-Boot has to be compiled with CONFIG_POSITION_INDEPENDENT * because it is loaded at random address and not to the fixed address - * (CONFIG_SYS_TEXT_BASE). + * (CONFIG_TEXT_BASE). */ /* r0 - start of kernel before */
board/openpiton/riscv64/Kconfig +1 -1
@@ -12,7 +12,7 @@ config SYS_CPU config SYS_CONFIG_NAME default "openpiton-riscv64" -config SYS_TEXT_BASE +config TEXT_BASE default 0x81000000 if SPL default 0x80000000 if !RISCV_SMODE default 0x81000000 if RISCV_SMODE
board/qca/ap121/Kconfig +1 -1
@@ -9,7 +9,7 @@ config SYS_BOARD config SYS_CONFIG_NAME default "ap121" -config SYS_TEXT_BASE +config TEXT_BASE default 0x9f000000 config SYS_DCACHE_SIZE
board/qca/ap143/Kconfig +1 -1
@@ -9,7 +9,7 @@ config SYS_BOARD config SYS_CONFIG_NAME default "ap143" -config SYS_TEXT_BASE +config TEXT_BASE default 0x9f000000 config SYS_DCACHE_SIZE
board/qca/ap152/Kconfig +1 -1
@@ -9,7 +9,7 @@ config SYS_BOARD config SYS_CONFIG_NAME default "ap152" -config SYS_TEXT_BASE +config TEXT_BASE default 0x9f000000 endif
board/qualcomm/dragonboard820c/head.S +1 -1
@@ -20,7 +20,7 @@ _arm64_header: b _start .word 0 - .quad CONFIG_SYS_TEXT_BASE-PHYS_SDRAM_1 /* Image load offset, LE */ + .quad CONFIG_TEXT_BASE-PHYS_SDRAM_1 /* Image load offset, LE */ .quad 0 /* Effective size of kernel image, little-endian */ .quad 0 /* kernel flags, little-endian */ .quad 0 /* reserved */
board/renesas/falcon/falcon.c +1 -1
@@ -84,7 +84,7 @@ int board_early_init_f(void)int board_init (void ) {/* address of boot parameters */ - gd->bd->bi_boot_params =CONFIG_SYS_TEXT_BASE +0x50000 ; + gd->bd->bi_boot_params =CONFIG_TEXT_BASE +0x50000 ;init_gic_v3 ();
board/siemens/capricorn/uboot-container.cfg +1 -1
@@ -9,4 +9,4 @@ BOOT_FROM SD 0x400 SOC_TYPE IMX8QX CONTAINER IMAGE A35 bl31.bin 0x80000000 -IMAGE A35 u-boot.bin CONFIG_SYS_TEXT_BASE +IMAGE A35 u-boot.bin CONFIG_TEXT_BASE
board/sifive/unleashed/Kconfig +1 -1
@@ -12,7 +12,7 @@ config SYS_CPU config SYS_CONFIG_NAME default "sifive-unleashed" -config SYS_TEXT_BASE +config TEXT_BASE default 0x80200000 if SPL default 0x80000000 if !RISCV_SMODE default 0x80200000 if RISCV_SMODE
board/sifive/unmatched/Kconfig +1 -1
@@ -12,7 +12,7 @@ config SYS_CPU config SYS_CONFIG_NAME default "sifive-unmatched" -config SYS_TEXT_BASE +config TEXT_BASE default 0x80200000 if SPL default 0x80000000 if !RISCV_SMODE default 0x80200000 if RISCV_SMODE
board/silinux/ek874/ek874.c +1 -1
@@ -19,7 +19,7 @@ DECLARE_GLOBAL_DATA_PTR;int board_init (void ) {/* address of boot parameters */ - gd->bd->bi_boot_params =CONFIG_SYS_TEXT_BASE +0x50000 ; + gd->bd->bi_boot_params =CONFIG_TEXT_BASE +0x50000 ;return 0 ; }
board/sipeed/maix/Kconfig +1 -1
@@ -15,7 +15,7 @@ config SYS_CPU config SYS_CONFIG_NAME default "sipeed-maix" -config SYS_TEXT_BASE +config TEXT_BASE default 0x80000000 config DEFAULT_DEVICE_TREE
board/socrates/socrates.c +1 -1
@@ -223,7 +223,7 @@ void *board_fdt_blob_setup(int *err)void *fw_dtb; *err =0 ; - fw_dtb = (void *)(CONFIG_SYS_TEXT_BASE -CONFIG_ENV_SECT_SIZE ); + fw_dtb = (void *)(CONFIG_TEXT_BASE -CONFIG_ENV_SECT_SIZE );if (fdt_magic (fw_dtb) !=FDT_MAGIC ) {printf ("DTB is not passed via %x\n" , (u32 )fw_dtb); *err = -ENXIO ;
board/synopsys/axs10x/headerize-axs.py +1 -1
@@ -65,7 +65,7 @@ def main(): arc_id = 0x53 # initial header values: place where preloader will store u-boot binary, - # should be equal to CONFIG_SYS_TEXT_BASE + # should be equal to CONFIG_TEXT_BASE image_copy_adr = 0x81000000 # initial constant header values, do not change these values
board/synopsys/hsdk/headerize-hsdk.py +1 -1
@@ -55,7 +55,7 @@ def main(): uboot_scrypt_file = "u-boot-update.txt" # initial header values: place where preloader will store u-boot binary, - # should be equal to CONFIG_SYS_TEXT_BASE + # should be equal to CONFIG_TEXT_BASE image_copy_adr = 0x81000000 # initial constant header values, do not change these values
board/ti/ks2_evm/board.c +1 -1
@@ -66,7 +66,7 @@ int dram_init(void)struct legacy_img_hdr *spl_get_load_buffer (ssize_t offset,size_t size) { -return (struct legacy_img_hdr *)(CONFIG_SYS_TEXT_BASE ); +return (struct legacy_img_hdr *)(CONFIG_TEXT_BASE ); }int board_init (void )
board/tplink/wdr4300/Kconfig +1 -1
@@ -12,7 +12,7 @@ config SYS_BOARD config SYS_CONFIG_NAME default "tplink_wdr4300" -config SYS_TEXT_BASE +config TEXT_BASE default 0xa1000000 config SYS_DCACHE_SIZE
board/tq/tqma6/Kconfig +1 -1
@@ -84,7 +84,7 @@ config WRU4 endchoice -config SYS_TEXT_BASE +config TEXT_BASE default 0x2fc00000 if TQMA6S default 0x4fc00000 if TQMA6Q || TQMA6DL
boot/Kconfig +5 -5
@@ -487,14 +487,14 @@ config OF_STDOUT_VIA_ALIAS incorrect when used with device tree as this option does not exist / should not be used. -config HAVE_SYS_TEXT_BASE +config HAVE_TEXT_BASE bool depends on !NIOS2 && !XTENSA depends on !EFI_APP default y -config SYS_TEXT_BASE - depends on HAVE_SYS_TEXT_BASE +config TEXT_BASE + depends on HAVE_TEXT_BASE default 0x0 if POSITION_INDEPENDENT default 0x80800000 if ARCH_OMAP2PLUS || ARCH_K3 default 0x81700000 if MACH_SUNIV
@@ -515,10 +515,10 @@ config HAVE_SYS_MONITOR_BASE config SYS_MONITOR_BASE depends on HAVE_SYS_MONITOR_BASE hex "Physical start address of boot monitor code" - default SYS_TEXT_BASE + default TEXT_BASE help The physical start address of boot monitor code (which is the same as - CONFIG_SYS_TEXT_BASE when linking) and the same as CONFIG_SYS_FLASH_BASE + CONFIG_TEXT_BASE when linking) and the same as CONFIG_SYS_FLASH_BASE when booting from flash. config SPL_SYS_MONITOR_BASE
cmd/sf.c +1 -1
@@ -554,7 +554,7 @@ static int do_spi_flash_test(int argc, char *const argv[])return 1 ; } - from =map_sysmem (CONFIG_SYS_TEXT_BASE ,0 ); + from =map_sysmem (CONFIG_TEXT_BASE ,0 );memcpy (buf, from, len); ret =spi_flash_test (flash, buf, len, offset, vbuf);free (vbuf);
common/autoboot.c +4 -4
@@ -424,19 +424,19 @@ static int abortboot(int bootdelay)static void process_fdt_options (const void *blob) { -#ifdef CONFIG_SYS_TEXT_BASE +#ifdef CONFIG_TEXT_BASE ulong addr;/* Add an env variable to point to a kernel payload, if available */ addr =ofnode_conf_read_int ("kernel-offset" ,0 );if (addr) -env_set_addr ("kernaddr" , (void *)(CONFIG_SYS_TEXT_BASE + addr)); +env_set_addr ("kernaddr" , (void *)(CONFIG_TEXT_BASE + addr));/* Add an env variable to point to a root disk, if available */ addr =ofnode_conf_read_int ("rootdisk-offset" ,0 );if (addr) -env_set_addr ("rootaddr" , (void *)(CONFIG_SYS_TEXT_BASE + addr)); -#endif /* CONFIG_SYS_TEXT_BASE */ +env_set_addr ("rootaddr" , (void *)(CONFIG_TEXT_BASE + addr)); +#endif /* CONFIG_TEXT_BASE */ }const char *bootdelay_process (void )
common/board_f.c +5 -5
@@ -128,8 +128,8 @@ static int display_text_info(void) bss_start = (ulong)&__bss_start; bss_end = (ulong)&__bss_end; -#ifdef CONFIG_SYS_TEXT_BASE - text_base =CONFIG_SYS_TEXT_BASE ; +#ifdef CONFIG_TEXT_BASE + text_base =CONFIG_TEXT_BASE ;#else text_base =CONFIG_SYS_MONITOR_BASE ;#endif
@@ -687,7 +687,7 @@ static int reloc_bloblist(void)static int setup_reloc (void ) {if (!(gd->flags &GD_FLG_SKIP_RELOC )) { -#ifdef CONFIG_SYS_TEXT_BASE +#ifdef CONFIG_TEXT_BASE #ifdef ARM gd->reloc_off = gd->relocaddr - (unsigned long )__image_copy_start;#elif defined(CONFIG_MICROBLAZE )
@@ -697,9 +697,9 @@ static int setup_reloc(void)* On all ColdFire arch cpu, monitor code starts always * just after the default vector table location, so at 0x400 */ - gd->reloc_off = gd->relocaddr - (CONFIG_SYS_TEXT_BASE +0x400 ); + gd->reloc_off = gd->relocaddr - (CONFIG_TEXT_BASE +0x400 );#elif !defined(CONFIG_SANDBOX ) - gd->reloc_off = gd->relocaddr -CONFIG_SYS_TEXT_BASE ; + gd->reloc_off = gd->relocaddr -CONFIG_TEXT_BASE ;#endif #endif }
common/board_r.c +1 -1
@@ -369,7 +369,7 @@ static int initr_flash(void)#if defined(CONFIG_OXC ) || defined(CONFIG_RMU )/* flash mapped at end of memory map */ - bd->bi_flashoffset =CONFIG_SYS_TEXT_BASE + flash_size; + bd->bi_flashoffset =CONFIG_TEXT_BASE + flash_size;#elif CONFIG_SYS_MONITOR_BASE ==CONFIG_SYS_FLASH_BASE bd->bi_flashoffset = monitor_flash_len;/* reserved area for monitor */ #endif
common/spl/spl.c +4 -4
@@ -44,7 +44,7 @@ DECLARE_GLOBAL_DATA_PTR;DECLARE_BINMAN_MAGIC_SYM ;#ifndef CONFIG_SYS_UBOOT_START -#define CONFIG_SYS_UBOOT_START CONFIG_SYS_TEXT_BASE +#define CONFIG_SYS_UBOOT_START CONFIG_TEXT_BASE#endif #ifndef CONFIG_SYS_MONITOR_LEN /* Unknown U-Boot size, let's assume it will not be more than 200 KB */
@@ -192,7 +192,7 @@ ulong spl_get_image_text_base(void)return CONFIG_VPL_TEXT_BASE ;#endif return spl_next_phase () ==PHASE_SPL ?CONFIG_SPL_TEXT_BASE : -CONFIG_SYS_TEXT_BASE ; +CONFIG_TEXT_BASE ; }/*
@@ -229,7 +229,7 @@ __weak void spl_board_prepare_for_boot(void)__weak struct legacy_img_hdr *spl_get_load_buffer (ssize_t offset,size_t size) { -return map_sysmem (CONFIG_SYS_TEXT_BASE + offset,0 ); +return map_sysmem (CONFIG_TEXT_BASE + offset,0 ); }void spl_set_header_raw_uboot (struct spl_image_info *spl_image)
@@ -249,7 +249,7 @@ void spl_set_header_raw_uboot(struct spl_image_info *spl_image) spl_image->load_addr = u_boot_pos; }else { spl_image->entry_point =CONFIG_SYS_UBOOT_START ; - spl_image->load_addr =CONFIG_SYS_TEXT_BASE ; + spl_image->load_addr =CONFIG_TEXT_BASE ; } spl_image->os =IH_OS_U_BOOT ; spl_image->name ="U-Boot" ;
common/spl/spl_atf.c +1 -1
@@ -254,7 +254,7 @@ uintptr_t spl_fit_images_get_entry(void *blob, int node)void spl_invoke_atf (struct spl_image_info *spl_image) {uintptr_t bl32_entry =0 ; -uintptr_t bl33_entry =CONFIG_SYS_TEXT_BASE ; +uintptr_t bl33_entry =CONFIG_TEXT_BASE ;void *blob = spl_image->fdt_addr;uintptr_t platform_param = (uintptr_t )blob;int node;
common/spl/spl_nand.c +3 -3
@@ -157,11 +157,11 @@ static int spl_nand_load_image(struct spl_image_info *spl_image,*/ nand_spl_load_image (CONFIG_CMD_SPL_NAND_OFS ,CONFIG_CMD_SPL_WRITE_SIZE , - (void *)CONFIG_SYS_TEXT_BASE ); + (void *)CONFIG_TEXT_BASE );/* copy to destintion */ for (dst = (int *)CONFIG_SYS_SPL_ARGS_ADDR , - src = (int *)CONFIG_SYS_TEXT_BASE ; - src < (int *)(CONFIG_SYS_TEXT_BASE + + src = (int *)CONFIG_TEXT_BASE ; + src < (int *)(CONFIG_TEXT_BASE +CONFIG_CMD_SPL_WRITE_SIZE ); src++, dst++) {writel (readl (src), dst);
common/spl/spl_optee.S +1 -1
@@ -7,6 +7,6 @@ #include <asm/assembler.h> ENTRY(spl_optee_entry) - ldr lr, =CONFIG_SYS_TEXT_BASE + ldr lr, =CONFIG_TEXT_BASE mov pc, r3 ENDPROC(spl_optee_entry)
configs/M5208EVBE_defconfig +1 -1
@@ -1,5 +1,5 @@ CONFIG_M68K=y -CONFIG_SYS_TEXT_BASE=0x0 +CONFIG_TEXT_BASE=0x0 CONFIG_SYS_MALLOC_LEN=0x20000 CONFIG_ENV_SIZE=0x1000 CONFIG_ENV_SECT_SIZE=0x2000
configs/M5235EVB_Flash32_defconfig +1 -1
@@ -1,5 +1,5 @@ CONFIG_M68K=y -CONFIG_SYS_TEXT_BASE=0xFFC00000 +CONFIG_TEXT_BASE=0xFFC00000 CONFIG_SYS_MALLOC_LEN=0x20000 CONFIG_ENV_SIZE=0x2000 CONFIG_ENV_SECT_SIZE=0x2000
configs/M5235EVB_defconfig +1 -1
@@ -1,5 +1,5 @@ CONFIG_M68K=y -CONFIG_SYS_TEXT_BASE=0xFFE00000 +CONFIG_TEXT_BASE=0xFFE00000 CONFIG_SYS_MALLOC_LEN=0x20000 CONFIG_ENV_SIZE=0x2000 CONFIG_ENV_SECT_SIZE=0x2000
configs/M5249EVB_defconfig +1 -1
@@ -1,5 +1,5 @@ CONFIG_M68K=y -CONFIG_SYS_TEXT_BASE=0xFFE00000 +CONFIG_TEXT_BASE=0xFFE00000 CONFIG_SYS_MALLOC_LEN=0x100000 CONFIG_ENV_SIZE=0x2000 CONFIG_ENV_SECT_SIZE=0x2000
configs/M5253DEMO_defconfig +1 -1
@@ -1,5 +1,5 @@ CONFIG_M68K=y -CONFIG_SYS_TEXT_BASE=0xFF800000 +CONFIG_TEXT_BASE=0xFF800000 CONFIG_SYS_MALLOC_LEN=0x40000 CONFIG_ENV_SIZE=0x1000 CONFIG_ENV_SECT_SIZE=0x1000
configs/M5272C3_defconfig +1 -1
@@ -1,5 +1,5 @@ CONFIG_M68K=y -CONFIG_SYS_TEXT_BASE=0xFFE00000 +CONFIG_TEXT_BASE=0xFFE00000 CONFIG_SYS_MALLOC_LEN=0x40000 CONFIG_ENV_SIZE=0x2000 CONFIG_ENV_SECT_SIZE=0x2000
configs/M5275EVB_defconfig +1 -1
@@ -1,5 +1,5 @@ CONFIG_M68K=y -CONFIG_SYS_TEXT_BASE=0xFFE00000 +CONFIG_TEXT_BASE=0xFFE00000 CONFIG_SYS_MALLOC_LEN=0x40000 CONFIG_ENV_SIZE=0x2000 CONFIG_ENV_SECT_SIZE=0x2000
configs/M5282EVB_defconfig +1 -1
@@ -1,5 +1,5 @@ CONFIG_M68K=y -CONFIG_SYS_TEXT_BASE=0xFFE00000 +CONFIG_TEXT_BASE=0xFFE00000 CONFIG_SYS_MALLOC_LEN=0x40000 CONFIG_ENV_SIZE=0x2000 CONFIG_ENV_SECT_SIZE=0x2000
configs/M53017EVB_defconfig +1 -1
@@ -1,5 +1,5 @@ CONFIG_M68K=y -CONFIG_SYS_TEXT_BASE=0x0 +CONFIG_TEXT_BASE=0x0 CONFIG_SYS_MALLOC_LEN=0x20000 CONFIG_ENV_SIZE=0x1000 CONFIG_ENV_SECT_SIZE=0x8000
configs/M5329AFEE_defconfig +1 -1
@@ -1,5 +1,5 @@ CONFIG_M68K=y -CONFIG_SYS_TEXT_BASE=0x0 +CONFIG_TEXT_BASE=0x0 CONFIG_SYS_MALLOC_LEN=0x20000 CONFIG_ENV_SIZE=0x2000 CONFIG_ENV_SECT_SIZE=0x2000
configs/M5329BFEE_defconfig +1 -1
@@ -1,5 +1,5 @@ CONFIG_M68K=y -CONFIG_SYS_TEXT_BASE=0x0 +CONFIG_TEXT_BASE=0x0 CONFIG_SYS_MALLOC_LEN=0x20000 CONFIG_ENV_SIZE=0x2000 CONFIG_ENV_SECT_SIZE=0x2000
configs/M5373EVB_defconfig +1 -1
@@ -1,5 +1,5 @@ CONFIG_M68K=y -CONFIG_SYS_TEXT_BASE=0x0 +CONFIG_TEXT_BASE=0x0 CONFIG_SYS_MALLOC_LEN=0x20000 CONFIG_ENV_SIZE=0x2000 CONFIG_ENV_SECT_SIZE=0x2000
configs/MCR3000_defconfig +1 -1
@@ -1,5 +1,5 @@ CONFIG_PPC=y -CONFIG_SYS_TEXT_BASE=0x4000000 +CONFIG_TEXT_BASE=0x4000000 CONFIG_ENV_SIZE=0x2000 CONFIG_ENV_SECT_SIZE=0x2000 CONFIG_DEFAULT_DEVICE_TREE="mcr3000"
configs/MPC837XERDB_defconfig +1 -1
@@ -1,5 +1,5 @@ CONFIG_PPC=y -CONFIG_SYS_TEXT_BASE=0xFE000000 +CONFIG_TEXT_BASE=0xFE000000 CONFIG_SYS_MALLOC_LEN=0x80000 CONFIG_ENV_SIZE=0x4000 CONFIG_ENV_SECT_SIZE=0x10000
configs/MPC8548CDS_36BIT_defconfig +1 -1
@@ -1,6 +1,6 @@ CONFIG_PPC=y CONFIG_SYS_IMMR=0xE0000000 -CONFIG_SYS_TEXT_BASE=0xFFF80000 +CONFIG_TEXT_BASE=0xFFF80000 CONFIG_SYS_MALLOC_LEN=0x100000 CONFIG_ENV_SIZE=0x2000 CONFIG_ENV_SECT_SIZE=0x20000
configs/MPC8548CDS_defconfig +1 -1
@@ -1,6 +1,6 @@ CONFIG_PPC=y CONFIG_SYS_IMMR=0xE0000000 -CONFIG_SYS_TEXT_BASE=0xFFF80000 +CONFIG_TEXT_BASE=0xFFF80000 CONFIG_SYS_MALLOC_LEN=0x100000 CONFIG_ENV_SIZE=0x2000 CONFIG_ENV_SECT_SIZE=0x20000
configs/MPC8548CDS_legacy_defconfig +1 -1
@@ -1,6 +1,6 @@ CONFIG_PPC=y CONFIG_SYS_IMMR=0xE0000000 -CONFIG_SYS_TEXT_BASE=0xFFF80000 +CONFIG_TEXT_BASE=0xFFF80000 CONFIG_SYS_MALLOC_LEN=0x100000 CONFIG_ENV_SIZE=0x2000 CONFIG_ENV_SECT_SIZE=0x20000
configs/P1010RDB-PA_36BIT_NAND_defconfig +1 -1
@@ -1,5 +1,5 @@ CONFIG_PPC=y -CONFIG_SYS_TEXT_BASE=0x11000000 +CONFIG_TEXT_BASE=0x11000000 CONFIG_SYS_MALLOC_LEN=0x100000 CONFIG_ENV_SIZE=0x4000 CONFIG_ENV_OFFSET=0x100000
configs/P1010RDB-PA_36BIT_NOR_defconfig +1 -1
@@ -1,5 +1,5 @@ CONFIG_PPC=y -CONFIG_SYS_TEXT_BASE=0xEFF40000 +CONFIG_TEXT_BASE=0xEFF40000 CONFIG_SYS_MALLOC_LEN=0x100000 CONFIG_ENV_SIZE=0x2000 CONFIG_ENV_SECT_SIZE=0x20000
configs/P1010RDB-PA_36BIT_SDCARD_defconfig +1 -1
@@ -1,5 +1,5 @@ CONFIG_PPC=y -CONFIG_SYS_TEXT_BASE=0x11000000 +CONFIG_TEXT_BASE=0x11000000 CONFIG_SYS_MALLOC_LEN=0x100000 CONFIG_SPL_LIBCOMMON_SUPPORT=y CONFIG_SPL_LIBGENERIC_SUPPORT=y
configs/P1010RDB-PA_36BIT_SPIFLASH_defconfig +1 -1
@@ -1,5 +1,5 @@ CONFIG_PPC=y -CONFIG_SYS_TEXT_BASE=0x11000000 +CONFIG_TEXT_BASE=0x11000000 CONFIG_SYS_MALLOC_LEN=0x100000 CONFIG_SPL_LIBCOMMON_SUPPORT=y CONFIG_SPL_LIBGENERIC_SUPPORT=y
configs/P1010RDB-PA_NAND_defconfig +1 -1
@@ -1,5 +1,5 @@ CONFIG_PPC=y -CONFIG_SYS_TEXT_BASE=0x11000000 +CONFIG_TEXT_BASE=0x11000000 CONFIG_SYS_MALLOC_LEN=0x100000 CONFIG_ENV_SIZE=0x4000 CONFIG_ENV_OFFSET=0x100000
configs/P1010RDB-PA_NOR_defconfig +1 -1
@@ -1,5 +1,5 @@ CONFIG_PPC=y -CONFIG_SYS_TEXT_BASE=0xEFF40000 +CONFIG_TEXT_BASE=0xEFF40000 CONFIG_SYS_MALLOC_LEN=0x100000 CONFIG_ENV_SIZE=0x2000 CONFIG_ENV_SECT_SIZE=0x20000
configs/P1010RDB-PA_SDCARD_defconfig +1 -1
@@ -1,5 +1,5 @@ CONFIG_PPC=y -CONFIG_SYS_TEXT_BASE=0x11000000 +CONFIG_TEXT_BASE=0x11000000 CONFIG_SYS_MALLOC_LEN=0x100000 CONFIG_SPL_LIBCOMMON_SUPPORT=y CONFIG_SPL_LIBGENERIC_SUPPORT=y
configs/P1010RDB-PA_SPIFLASH_defconfig +1 -1
@@ -1,5 +1,5 @@ CONFIG_PPC=y -CONFIG_SYS_TEXT_BASE=0x11000000 +CONFIG_TEXT_BASE=0x11000000 CONFIG_SYS_MALLOC_LEN=0x100000 CONFIG_SPL_LIBCOMMON_SUPPORT=y CONFIG_SPL_LIBGENERIC_SUPPORT=y
configs/P1010RDB-PB_36BIT_NAND_defconfig +1 -1
@@ -1,5 +1,5 @@ CONFIG_PPC=y -CONFIG_SYS_TEXT_BASE=0x11000000 +CONFIG_TEXT_BASE=0x11000000 CONFIG_SYS_MALLOC_LEN=0x100000 CONFIG_ENV_SIZE=0x4000 CONFIG_ENV_OFFSET=0x100000
configs/P1010RDB-PB_36BIT_NOR_defconfig +1 -1
@@ -1,5 +1,5 @@ CONFIG_PPC=y -CONFIG_SYS_TEXT_BASE=0xEFF40000 +CONFIG_TEXT_BASE=0xEFF40000 CONFIG_SYS_MALLOC_LEN=0x100000 CONFIG_ENV_SIZE=0x2000 CONFIG_ENV_SECT_SIZE=0x20000
configs/P1010RDB-PB_36BIT_SDCARD_defconfig +1 -1
@@ -1,5 +1,5 @@ CONFIG_PPC=y -CONFIG_SYS_TEXT_BASE=0x11000000 +CONFIG_TEXT_BASE=0x11000000 CONFIG_SYS_MALLOC_LEN=0x100000 CONFIG_SPL_LIBCOMMON_SUPPORT=y CONFIG_SPL_LIBGENERIC_SUPPORT=y
configs/P1010RDB-PB_36BIT_SPIFLASH_defconfig +1 -1
@@ -1,5 +1,5 @@ CONFIG_PPC=y -CONFIG_SYS_TEXT_BASE=0x11000000 +CONFIG_TEXT_BASE=0x11000000 CONFIG_SYS_MALLOC_LEN=0x100000 CONFIG_SPL_LIBCOMMON_SUPPORT=y CONFIG_SPL_LIBGENERIC_SUPPORT=y
configs/P1010RDB-PB_NAND_defconfig +1 -1
@@ -1,5 +1,5 @@ CONFIG_PPC=y -CONFIG_SYS_TEXT_BASE=0x11000000 +CONFIG_TEXT_BASE=0x11000000 CONFIG_SYS_MALLOC_LEN=0x100000 CONFIG_ENV_SIZE=0x4000 CONFIG_ENV_OFFSET=0x100000
configs/P1010RDB-PB_NOR_defconfig +1 -1
@@ -1,5 +1,5 @@ CONFIG_PPC=y -CONFIG_SYS_TEXT_BASE=0xEFF40000 +CONFIG_TEXT_BASE=0xEFF40000 CONFIG_SYS_MALLOC_LEN=0x100000 CONFIG_ENV_SIZE=0x2000 CONFIG_ENV_SECT_SIZE=0x20000
configs/P1010RDB-PB_SDCARD_defconfig +1 -1
@@ -1,5 +1,5 @@ CONFIG_PPC=y -CONFIG_SYS_TEXT_BASE=0x11000000 +CONFIG_TEXT_BASE=0x11000000 CONFIG_SYS_MALLOC_LEN=0x100000 CONFIG_SPL_LIBCOMMON_SUPPORT=y CONFIG_SPL_LIBGENERIC_SUPPORT=y
configs/P1010RDB-PB_SPIFLASH_defconfig +1 -1
@@ -1,5 +1,5 @@ CONFIG_PPC=y -CONFIG_SYS_TEXT_BASE=0x11000000 +CONFIG_TEXT_BASE=0x11000000 CONFIG_SYS_MALLOC_LEN=0x100000 CONFIG_SPL_LIBCOMMON_SUPPORT=y CONFIG_SPL_LIBGENERIC_SUPPORT=y
configs/P1020RDB-PC_36BIT_NAND_defconfig +1 -1
@@ -1,5 +1,5 @@ CONFIG_PPC=y -CONFIG_SYS_TEXT_BASE=0x11000000 +CONFIG_TEXT_BASE=0x11000000 CONFIG_SYS_MALLOC_LEN=0x100000 CONFIG_ENV_SIZE=0x4000 CONFIG_ENV_OFFSET=0x100000
configs/P1020RDB-PC_36BIT_SDCARD_defconfig +1 -1
@@ -1,5 +1,5 @@ CONFIG_PPC=y -CONFIG_SYS_TEXT_BASE=0x11000000 +CONFIG_TEXT_BASE=0x11000000 CONFIG_SYS_MALLOC_LEN=0x100000 CONFIG_SPL_LIBCOMMON_SUPPORT=y CONFIG_SPL_LIBGENERIC_SUPPORT=y
configs/P1020RDB-PC_36BIT_SPIFLASH_defconfig +1 -1
@@ -1,5 +1,5 @@ CONFIG_PPC=y -CONFIG_SYS_TEXT_BASE=0x11000000 +CONFIG_TEXT_BASE=0x11000000 CONFIG_SYS_MALLOC_LEN=0x100000 CONFIG_SPL_LIBCOMMON_SUPPORT=y CONFIG_SPL_LIBGENERIC_SUPPORT=y
configs/P1020RDB-PC_36BIT_defconfig +1 -1
@@ -1,5 +1,5 @@ CONFIG_PPC=y -CONFIG_SYS_TEXT_BASE=0xEFF40000 +CONFIG_TEXT_BASE=0xEFF40000 CONFIG_SYS_MALLOC_LEN=0x100000 CONFIG_ENV_SIZE=0x2000 CONFIG_ENV_SECT_SIZE=0x20000
configs/P1020RDB-PC_NAND_defconfig +1 -1
@@ -1,5 +1,5 @@ CONFIG_PPC=y -CONFIG_SYS_TEXT_BASE=0x11000000 +CONFIG_TEXT_BASE=0x11000000 CONFIG_SYS_MALLOC_LEN=0x100000 CONFIG_ENV_SIZE=0x4000 CONFIG_ENV_OFFSET=0x100000
configs/P1020RDB-PC_SDCARD_defconfig +1 -1
@@ -1,5 +1,5 @@ CONFIG_PPC=y -CONFIG_SYS_TEXT_BASE=0x11000000 +CONFIG_TEXT_BASE=0x11000000 CONFIG_SYS_MALLOC_LEN=0x100000 CONFIG_SPL_LIBCOMMON_SUPPORT=y CONFIG_SPL_LIBGENERIC_SUPPORT=y
configs/P1020RDB-PC_SPIFLASH_defconfig +1 -1
@@ -1,5 +1,5 @@ CONFIG_PPC=y -CONFIG_SYS_TEXT_BASE=0x11000000 +CONFIG_TEXT_BASE=0x11000000 CONFIG_SYS_MALLOC_LEN=0x100000 CONFIG_SPL_LIBCOMMON_SUPPORT=y CONFIG_SPL_LIBGENERIC_SUPPORT=y
configs/P1020RDB-PC_defconfig +1 -1
@@ -1,5 +1,5 @@ CONFIG_PPC=y -CONFIG_SYS_TEXT_BASE=0xEFF40000 +CONFIG_TEXT_BASE=0xEFF40000 CONFIG_SYS_MALLOC_LEN=0x100000 CONFIG_ENV_SIZE=0x2000 CONFIG_ENV_SECT_SIZE=0x20000
configs/P1020RDB-PD_NAND_defconfig +1 -1
@@ -1,5 +1,5 @@ CONFIG_PPC=y -CONFIG_SYS_TEXT_BASE=0x11000000 +CONFIG_TEXT_BASE=0x11000000 CONFIG_SYS_MALLOC_LEN=0x100000 CONFIG_ENV_SIZE=0x20000 CONFIG_ENV_OFFSET=0x100000
configs/P1020RDB-PD_SDCARD_defconfig +1 -1
@@ -1,5 +1,5 @@ CONFIG_PPC=y -CONFIG_SYS_TEXT_BASE=0x11000000 +CONFIG_TEXT_BASE=0x11000000 CONFIG_SYS_MALLOC_LEN=0x100000 CONFIG_SPL_LIBCOMMON_SUPPORT=y CONFIG_SPL_LIBGENERIC_SUPPORT=y
configs/P1020RDB-PD_SPIFLASH_defconfig +1 -1
@@ -1,5 +1,5 @@ CONFIG_PPC=y -CONFIG_SYS_TEXT_BASE=0x11000000 +CONFIG_TEXT_BASE=0x11000000 CONFIG_SYS_MALLOC_LEN=0x100000 CONFIG_SPL_LIBCOMMON_SUPPORT=y CONFIG_SPL_LIBGENERIC_SUPPORT=y
configs/P1020RDB-PD_defconfig +1 -1
@@ -1,5 +1,5 @@ CONFIG_PPC=y -CONFIG_SYS_TEXT_BASE=0xEFF40000 +CONFIG_TEXT_BASE=0xEFF40000 CONFIG_SYS_MALLOC_LEN=0x100000 CONFIG_ENV_SIZE=0x2000 CONFIG_ENV_SECT_SIZE=0x20000
configs/P2020RDB-PC_36BIT_NAND_defconfig +1 -1
@@ -1,5 +1,5 @@ CONFIG_PPC=y -CONFIG_SYS_TEXT_BASE=0x11000000 +CONFIG_TEXT_BASE=0x11000000 CONFIG_SYS_MALLOC_LEN=0x100000 CONFIG_ENV_SIZE=0x4000 CONFIG_ENV_OFFSET=0x100000
configs/P2020RDB-PC_36BIT_SDCARD_defconfig +1 -1
@@ -1,5 +1,5 @@ CONFIG_PPC=y -CONFIG_SYS_TEXT_BASE=0x11000000 +CONFIG_TEXT_BASE=0x11000000 CONFIG_SYS_MALLOC_LEN=0x100000 CONFIG_SPL_LIBCOMMON_SUPPORT=y CONFIG_SPL_LIBGENERIC_SUPPORT=y
configs/P2020RDB-PC_36BIT_SPIFLASH_defconfig +1 -1
@@ -1,5 +1,5 @@ CONFIG_PPC=y -CONFIG_SYS_TEXT_BASE=0x11000000 +CONFIG_TEXT_BASE=0x11000000 CONFIG_SYS_MALLOC_LEN=0x100000 CONFIG_SPL_LIBCOMMON_SUPPORT=y CONFIG_SPL_LIBGENERIC_SUPPORT=y
configs/P2020RDB-PC_36BIT_defconfig +1 -1
@@ -1,5 +1,5 @@ CONFIG_PPC=y -CONFIG_SYS_TEXT_BASE=0xEFF40000 +CONFIG_TEXT_BASE=0xEFF40000 CONFIG_SYS_MALLOC_LEN=0x100000 CONFIG_ENV_SIZE=0x2000 CONFIG_ENV_SECT_SIZE=0x20000
configs/P2020RDB-PC_NAND_defconfig +1 -1
@@ -1,5 +1,5 @@ CONFIG_PPC=y -CONFIG_SYS_TEXT_BASE=0x11000000 +CONFIG_TEXT_BASE=0x11000000 CONFIG_SYS_MALLOC_LEN=0x100000 CONFIG_ENV_SIZE=0x4000 CONFIG_ENV_OFFSET=0x100000
configs/P2020RDB-PC_SDCARD_defconfig +1 -1
@@ -1,5 +1,5 @@ CONFIG_PPC=y -CONFIG_SYS_TEXT_BASE=0x11000000 +CONFIG_TEXT_BASE=0x11000000 CONFIG_SYS_MALLOC_LEN=0x100000 CONFIG_SPL_LIBCOMMON_SUPPORT=y CONFIG_SPL_LIBGENERIC_SUPPORT=y
configs/P2020RDB-PC_SPIFLASH_defconfig +1 -1
@@ -1,5 +1,5 @@ CONFIG_PPC=y -CONFIG_SYS_TEXT_BASE=0x11000000 +CONFIG_TEXT_BASE=0x11000000 CONFIG_SYS_MALLOC_LEN=0x100000 CONFIG_SPL_LIBCOMMON_SUPPORT=y CONFIG_SPL_LIBGENERIC_SUPPORT=y
configs/P2020RDB-PC_defconfig +1 -1
@@ -1,5 +1,5 @@ CONFIG_PPC=y -CONFIG_SYS_TEXT_BASE=0xEFF40000 +CONFIG_TEXT_BASE=0xEFF40000 CONFIG_SYS_MALLOC_LEN=0x100000 CONFIG_ENV_SIZE=0x2000 CONFIG_ENV_SECT_SIZE=0x20000
configs/P2041RDB_NAND_defconfig +1 -1
@@ -1,5 +1,5 @@ CONFIG_PPC=y -CONFIG_SYS_TEXT_BASE=0xFFF40000 +CONFIG_TEXT_BASE=0xFFF40000 CONFIG_SYS_MALLOC_LEN=0x100000 CONFIG_ENV_SIZE=0x20000 CONFIG_ENV_OFFSET=0xE0000
configs/P2041RDB_SDCARD_defconfig +1 -1
@@ -1,5 +1,5 @@ CONFIG_PPC=y -CONFIG_SYS_TEXT_BASE=0xFFF40000 +CONFIG_TEXT_BASE=0xFFF40000 CONFIG_SYS_MALLOC_LEN=0x100000 CONFIG_ENV_SIZE=0x2000 CONFIG_ENV_OFFSET=0xCF400
configs/P2041RDB_SPIFLASH_defconfig +1 -1
@@ -1,5 +1,5 @@ CONFIG_PPC=y -CONFIG_SYS_TEXT_BASE=0xFFF40000 +CONFIG_TEXT_BASE=0xFFF40000 CONFIG_SYS_MALLOC_LEN=0x100000 CONFIG_ENV_SIZE=0x2000 CONFIG_ENV_OFFSET=0x100000
configs/P2041RDB_defconfig +1 -1
@@ -1,5 +1,5 @@ CONFIG_PPC=y -CONFIG_SYS_TEXT_BASE=0xEFF40000 +CONFIG_TEXT_BASE=0xEFF40000 CONFIG_SYS_MALLOC_LEN=0x100000 CONFIG_ENV_SIZE=0x2000 CONFIG_ENV_SECT_SIZE=0x20000
configs/SBx81LIFKW_defconfig +1 -1
@@ -4,7 +4,7 @@ CONFIG_SYS_DCACHE_OFF=y CONFIG_ARCH_CPU_INIT=y CONFIG_ARCH_KIRKWOOD=y CONFIG_SYS_KWD_CONFIG="board/alliedtelesis/SBx81LIFKW/kwbimage.cfg" -CONFIG_SYS_TEXT_BASE=0x00600000 +CONFIG_TEXT_BASE=0x00600000 CONFIG_TARGET_SBx81LIFKW=y CONFIG_ENV_SIZE=0x2000 CONFIG_ENV_OFFSET=0xC0000
configs/SBx81LIFXCAT_defconfig +1 -1
@@ -4,7 +4,7 @@ CONFIG_SYS_DCACHE_OFF=y CONFIG_ARCH_CPU_INIT=y CONFIG_ARCH_KIRKWOOD=y CONFIG_SYS_KWD_CONFIG="board/alliedtelesis/SBx81LIFXCAT/kwbimage.cfg" -CONFIG_SYS_TEXT_BASE=0x00600000 +CONFIG_TEXT_BASE=0x00600000 CONFIG_TARGET_SBx81LIFXCAT=y CONFIG_ENV_SIZE=0x2000 CONFIG_ENV_OFFSET=0xC0000
configs/T1024RDB_NAND_defconfig +1 -1
@@ -1,5 +1,5 @@ CONFIG_PPC=y -CONFIG_SYS_TEXT_BASE=0x30000000 +CONFIG_TEXT_BASE=0x30000000 CONFIG_SYS_MALLOC_LEN=0xa00000 CONFIG_SPL_LIBCOMMON_SUPPORT=y CONFIG_SPL_LIBGENERIC_SUPPORT=y
configs/T1024RDB_SDCARD_defconfig +1 -1
@@ -1,5 +1,5 @@ CONFIG_PPC=y -CONFIG_SYS_TEXT_BASE=0x30000000 +CONFIG_TEXT_BASE=0x30000000 CONFIG_SYS_MALLOC_LEN=0xa00000 CONFIG_SPL_LIBCOMMON_SUPPORT=y CONFIG_SPL_LIBGENERIC_SUPPORT=y
configs/T1024RDB_SPIFLASH_defconfig +1 -1
@@ -1,5 +1,5 @@ CONFIG_PPC=y -CONFIG_SYS_TEXT_BASE=0x30000000 +CONFIG_TEXT_BASE=0x30000000 CONFIG_SYS_MALLOC_LEN=0xa00000 CONFIG_SPL_LIBCOMMON_SUPPORT=y CONFIG_SPL_LIBGENERIC_SUPPORT=y
configs/T1024RDB_defconfig +1 -1
@@ -1,5 +1,5 @@ CONFIG_PPC=y -CONFIG_SYS_TEXT_BASE=0xEFF40000 +CONFIG_TEXT_BASE=0xEFF40000 CONFIG_SYS_MALLOC_LEN=0xa00000 CONFIG_ENV_SIZE=0x2000 CONFIG_ENV_SECT_SIZE=0x20000
configs/T1042D4RDB_NAND_defconfig +1 -1
@@ -1,5 +1,5 @@ CONFIG_PPC=y -CONFIG_SYS_TEXT_BASE=0x30000000 +CONFIG_TEXT_BASE=0x30000000 CONFIG_SPL_LIBCOMMON_SUPPORT=y CONFIG_SPL_LIBGENERIC_SUPPORT=y CONFIG_ENV_SIZE=0x2000
configs/T1042D4RDB_SDCARD_defconfig +1 -1
@@ -1,5 +1,5 @@ CONFIG_PPC=y -CONFIG_SYS_TEXT_BASE=0x30000000 +CONFIG_TEXT_BASE=0x30000000 CONFIG_SPL_LIBCOMMON_SUPPORT=y CONFIG_SPL_LIBGENERIC_SUPPORT=y CONFIG_ENV_SIZE=0x2000
configs/T1042D4RDB_SPIFLASH_defconfig +1 -1
@@ -1,5 +1,5 @@ CONFIG_PPC=y -CONFIG_SYS_TEXT_BASE=0x30000000 +CONFIG_TEXT_BASE=0x30000000 CONFIG_SPL_LIBCOMMON_SUPPORT=y CONFIG_SPL_LIBGENERIC_SUPPORT=y CONFIG_ENV_SIZE=0x2000
configs/T1042D4RDB_defconfig +1 -1
@@ -1,5 +1,5 @@ CONFIG_PPC=y -CONFIG_SYS_TEXT_BASE=0xEFF40000 +CONFIG_TEXT_BASE=0xEFF40000 CONFIG_ENV_SIZE=0x2000 CONFIG_ENV_SECT_SIZE=0x20000 CONFIG_DEFAULT_DEVICE_TREE="t1042d4rdb"
configs/T2080QDS_NAND_defconfig +1 -1
@@ -1,5 +1,5 @@ CONFIG_PPC=y -CONFIG_SYS_TEXT_BASE=0x00200000 +CONFIG_TEXT_BASE=0x00200000 CONFIG_SPL_LIBCOMMON_SUPPORT=y CONFIG_SPL_LIBGENERIC_SUPPORT=y CONFIG_ENV_SIZE=0x2000
configs/T2080QDS_SDCARD_defconfig +1 -1
@@ -1,5 +1,5 @@ CONFIG_PPC=y -CONFIG_SYS_TEXT_BASE=0x00200000 +CONFIG_TEXT_BASE=0x00200000 CONFIG_SPL_LIBCOMMON_SUPPORT=y CONFIG_SPL_LIBGENERIC_SUPPORT=y CONFIG_ENV_SIZE=0x2000
configs/T2080QDS_SECURE_BOOT_defconfig +1 -1
@@ -1,5 +1,5 @@ CONFIG_PPC=y -CONFIG_SYS_TEXT_BASE=0xEFF40000 +CONFIG_TEXT_BASE=0xEFF40000 CONFIG_ENV_SIZE=0x2000 CONFIG_DEFAULT_DEVICE_TREE="t2080qds" CONFIG_MPC85xx=y
configs/T2080QDS_SPIFLASH_defconfig +1 -1
@@ -1,5 +1,5 @@ CONFIG_PPC=y -CONFIG_SYS_TEXT_BASE=0x00200000 +CONFIG_TEXT_BASE=0x00200000 CONFIG_SPL_LIBCOMMON_SUPPORT=y CONFIG_SPL_LIBGENERIC_SUPPORT=y CONFIG_ENV_SIZE=0x2000
configs/T2080QDS_SRIO_PCIE_BOOT_defconfig +1 -1
@@ -1,5 +1,5 @@ CONFIG_PPC=y -CONFIG_SYS_TEXT_BASE=0xFFF40000 +CONFIG_TEXT_BASE=0xFFF40000 CONFIG_ENV_SIZE=0x2000 CONFIG_DEFAULT_DEVICE_TREE="t2080qds" CONFIG_ENV_ADDR=0xFFE20000
configs/T2080QDS_defconfig +1 -1
@@ -1,5 +1,5 @@ CONFIG_PPC=y -CONFIG_SYS_TEXT_BASE=0xEFF40000 +CONFIG_TEXT_BASE=0xEFF40000 CONFIG_ENV_SIZE=0x2000 CONFIG_ENV_SECT_SIZE=0x20000 CONFIG_DEFAULT_DEVICE_TREE="t2080qds"
configs/T2080RDB_NAND_defconfig +1 -1
@@ -1,5 +1,5 @@ CONFIG_PPC=y -CONFIG_SYS_TEXT_BASE=0x00200000 +CONFIG_TEXT_BASE=0x00200000 CONFIG_SPL_LIBCOMMON_SUPPORT=y CONFIG_SPL_LIBGENERIC_SUPPORT=y CONFIG_ENV_SIZE=0x2000
configs/T2080RDB_SDCARD_defconfig +1 -1
@@ -1,5 +1,5 @@ CONFIG_PPC=y -CONFIG_SYS_TEXT_BASE=0x00200000 +CONFIG_TEXT_BASE=0x00200000 CONFIG_SPL_LIBCOMMON_SUPPORT=y CONFIG_SPL_LIBGENERIC_SUPPORT=y CONFIG_ENV_SIZE=0x2000
configs/T2080RDB_SPIFLASH_defconfig +1 -1
@@ -1,5 +1,5 @@ CONFIG_PPC=y -CONFIG_SYS_TEXT_BASE=0x00200000 +CONFIG_TEXT_BASE=0x00200000 CONFIG_SPL_LIBCOMMON_SUPPORT=y CONFIG_SPL_LIBGENERIC_SUPPORT=y CONFIG_ENV_SIZE=0x2000
configs/T2080RDB_defconfig +1 -1
@@ -1,5 +1,5 @@ CONFIG_PPC=y -CONFIG_SYS_TEXT_BASE=0xEFF40000 +CONFIG_TEXT_BASE=0xEFF40000 CONFIG_ENV_SIZE=0x2000 CONFIG_ENV_SECT_SIZE=0x20000 CONFIG_DEFAULT_DEVICE_TREE="t2080rdb"
configs/T2080RDB_revD_NAND_defconfig +1 -1
@@ -1,5 +1,5 @@ CONFIG_PPC=y -CONFIG_SYS_TEXT_BASE=0x00200000 +CONFIG_TEXT_BASE=0x00200000 CONFIG_SPL_LIBCOMMON_SUPPORT=y CONFIG_SPL_LIBGENERIC_SUPPORT=y CONFIG_ENV_SIZE=0x2000
configs/T2080RDB_revD_SDCARD_defconfig +1 -1
@@ -1,5 +1,5 @@ CONFIG_PPC=y -CONFIG_SYS_TEXT_BASE=0x00200000 +CONFIG_TEXT_BASE=0x00200000 CONFIG_SPL_LIBCOMMON_SUPPORT=y CONFIG_SPL_LIBGENERIC_SUPPORT=y CONFIG_ENV_SIZE=0x2000
configs/T2080RDB_revD_SPIFLASH_defconfig +1 -1
@@ -1,5 +1,5 @@ CONFIG_PPC=y -CONFIG_SYS_TEXT_BASE=0x00200000 +CONFIG_TEXT_BASE=0x00200000 CONFIG_SPL_LIBCOMMON_SUPPORT=y CONFIG_SPL_LIBGENERIC_SUPPORT=y CONFIG_ENV_SIZE=0x2000
configs/T2080RDB_revD_defconfig +1 -1
@@ -1,5 +1,5 @@ CONFIG_PPC=y -CONFIG_SYS_TEXT_BASE=0xEFF40000 +CONFIG_TEXT_BASE=0xEFF40000 CONFIG_ENV_SIZE=0x2000 CONFIG_ENV_SECT_SIZE=0x20000 CONFIG_DEFAULT_DEVICE_TREE="t2080rdb"
configs/T4240RDB_SDCARD_defconfig +1 -1
@@ -1,5 +1,5 @@ CONFIG_PPC=y -CONFIG_SYS_TEXT_BASE=0x00200000 +CONFIG_TEXT_BASE=0x00200000 CONFIG_SPL_LIBCOMMON_SUPPORT=y CONFIG_SPL_LIBGENERIC_SUPPORT=y CONFIG_ENV_SIZE=0x2000
configs/T4240RDB_defconfig +1 -1
@@ -1,5 +1,5 @@ CONFIG_PPC=y -CONFIG_SYS_TEXT_BASE=0xEFF40000 +CONFIG_TEXT_BASE=0xEFF40000 CONFIG_ENV_SIZE=0x2000 CONFIG_ENV_SECT_SIZE=0x20000 CONFIG_DEFAULT_DEVICE_TREE="t4240rdb"
configs/a3y17lte_defconfig +1 -1
@@ -3,7 +3,7 @@ CONFIG_SYS_CONFIG_NAME="exynos78x0-common" CONFIG_SKIP_LOWLEVEL_INIT=y CONFIG_COUNTER_FREQUENCY=26000000 CONFIG_ARCH_EXYNOS=y -CONFIG_SYS_TEXT_BASE=0x40001000 +CONFIG_TEXT_BASE=0x40001000 CONFIG_SYS_MALLOC_F_LEN=0x400 CONFIG_ARCH_EXYNOS7=y CONFIG_TARGET_A3Y17LTE=y
configs/a5y17lte_defconfig +1 -1
@@ -3,7 +3,7 @@ CONFIG_SYS_CONFIG_NAME="exynos78x0-common" CONFIG_SKIP_LOWLEVEL_INIT=y CONFIG_COUNTER_FREQUENCY=26000000 CONFIG_ARCH_EXYNOS=y -CONFIG_SYS_TEXT_BASE=0x40001000 +CONFIG_TEXT_BASE=0x40001000 CONFIG_SYS_MALLOC_F_LEN=0x400 CONFIG_ARCH_EXYNOS7=y CONFIG_TARGET_A5Y17LTE=y
configs/a7y17lte_defconfig +1 -1
@@ -3,7 +3,7 @@ CONFIG_SYS_CONFIG_NAME="exynos78x0-common" CONFIG_SKIP_LOWLEVEL_INIT=y CONFIG_COUNTER_FREQUENCY=26000000 CONFIG_ARCH_EXYNOS=y -CONFIG_SYS_TEXT_BASE=0x40001000 +CONFIG_TEXT_BASE=0x40001000 CONFIG_SYS_MALLOC_F_LEN=0x400 CONFIG_ARCH_EXYNOS7=y CONFIG_TARGET_A7Y17LTE=y
configs/ae350_rv32_defconfig +1 -1
@@ -1,5 +1,5 @@ CONFIG_RISCV=y -CONFIG_SYS_TEXT_BASE=0x00000000 +CONFIG_TEXT_BASE=0x00000000 CONFIG_SYS_MALLOC_LEN=0x80000 CONFIG_NR_DRAM_BANKS=2 CONFIG_ENV_SECT_SIZE=0x1000
configs/ae350_rv32_spl_defconfig +1 -1
@@ -1,5 +1,5 @@ CONFIG_RISCV=y -CONFIG_SYS_TEXT_BASE=0x01200000 +CONFIG_TEXT_BASE=0x01200000 CONFIG_SYS_MALLOC_LEN=0x80000 CONFIG_NR_DRAM_BANKS=2 CONFIG_ENV_SECT_SIZE=0x1000
configs/ae350_rv32_spl_xip_defconfig +1 -1
@@ -1,5 +1,5 @@ CONFIG_RISCV=y -CONFIG_SYS_TEXT_BASE=0x01200000 +CONFIG_TEXT_BASE=0x01200000 CONFIG_SYS_MALLOC_LEN=0x80000 CONFIG_NR_DRAM_BANKS=2 CONFIG_ENV_SECT_SIZE=0x1000
configs/ae350_rv32_xip_defconfig +1 -1
@@ -1,5 +1,5 @@ CONFIG_RISCV=y -CONFIG_SYS_TEXT_BASE=0x80000000 +CONFIG_TEXT_BASE=0x80000000 CONFIG_SYS_MALLOC_LEN=0x80000 CONFIG_NR_DRAM_BANKS=2 CONFIG_ENV_SECT_SIZE=0x1000
configs/ae350_rv64_defconfig +1 -1
@@ -1,5 +1,5 @@ CONFIG_RISCV=y -CONFIG_SYS_TEXT_BASE=0x00000000 +CONFIG_TEXT_BASE=0x00000000 CONFIG_SYS_MALLOC_LEN=0x80000 CONFIG_NR_DRAM_BANKS=2 CONFIG_ENV_SECT_SIZE=0x1000
configs/ae350_rv64_spl_defconfig +1 -1
@@ -1,5 +1,5 @@ CONFIG_RISCV=y -CONFIG_SYS_TEXT_BASE=0x01200000 +CONFIG_TEXT_BASE=0x01200000 CONFIG_SYS_MALLOC_LEN=0x80000 CONFIG_NR_DRAM_BANKS=2 CONFIG_ENV_SECT_SIZE=0x1000
configs/ae350_rv64_spl_xip_defconfig +1 -1
@@ -1,5 +1,5 @@ CONFIG_RISCV=y -CONFIG_SYS_TEXT_BASE=0x01200000 +CONFIG_TEXT_BASE=0x01200000 CONFIG_SYS_MALLOC_LEN=0x80000 CONFIG_NR_DRAM_BANKS=2 CONFIG_ENV_SECT_SIZE=0x1000
configs/ae350_rv64_xip_defconfig +1 -1
@@ -1,5 +1,5 @@ CONFIG_RISCV=y -CONFIG_SYS_TEXT_BASE=0x80000000 +CONFIG_TEXT_BASE=0x80000000 CONFIG_SYS_MALLOC_LEN=0x80000 CONFIG_NR_DRAM_BANKS=2 CONFIG_ENV_SECT_SIZE=0x1000
configs/alt_defconfig +1 -1
@@ -4,7 +4,7 @@ CONFIG_ENABLE_ARM_SOC_BOOT0_HOOK=y # CONFIG_SPL_USE_ARCH_MEMCPY is not set # CONFIG_SPL_USE_ARCH_MEMSET is not set CONFIG_ARCH_RMOBILE=y -CONFIG_SYS_TEXT_BASE=0x50000000 +CONFIG_TEXT_BASE=0x50000000 CONFIG_SYS_MALLOC_LEN=0x100000 CONFIG_SYS_MALLOC_F_LEN=0x8000 CONFIG_SPL_LIBCOMMON_SUPPORT=y
configs/am3517_evm_defconfig +1 -1
@@ -2,7 +2,7 @@ CONFIG_ARM=y # CONFIG_SPL_USE_ARCH_MEMCPY is not set # CONFIG_SPL_USE_ARCH_MEMSET is not set CONFIG_ARCH_OMAP2PLUS=y -CONFIG_SYS_TEXT_BASE=0x80100000 +CONFIG_TEXT_BASE=0x80100000 CONFIG_SYS_MALLOC_F_LEN=0x4000 CONFIG_TI_COMMON_CMD_OPTIONS=y CONFIG_NR_DRAM_BANKS=2
configs/am43xx_evm_qspiboot_defconfig +1 -1
@@ -2,7 +2,7 @@ CONFIG_ARM=y CONFIG_ARCH_CPU_INIT=y # CONFIG_SYS_THUMB_BUILD is not set CONFIG_ARCH_OMAP2PLUS=y -CONFIG_SYS_TEXT_BASE=0x30000000 +CONFIG_TEXT_BASE=0x30000000 CONFIG_SYS_MALLOC_F_LEN=0x400 CONFIG_ENV_SIZE=0x10000 CONFIG_ENV_OFFSET=0x110000
configs/amcore_defconfig +1 -1
@@ -1,5 +1,5 @@ CONFIG_M68K=y -CONFIG_SYS_TEXT_BASE=0xFFC00000 +CONFIG_TEXT_BASE=0xFFC00000 CONFIG_SYS_MALLOC_LEN=0x100000 CONFIG_SYS_MALLOC_F_LEN=0x800 CONFIG_ENV_SIZE=0x1000
configs/ap121_defconfig +1 -1
@@ -1,5 +1,5 @@ CONFIG_MIPS=y -CONFIG_SYS_TEXT_BASE=0x9F000000 +CONFIG_TEXT_BASE=0x9F000000 CONFIG_SYS_MALLOC_LEN=0x40000 CONFIG_ENV_SIZE=0x10000 CONFIG_ENV_OFFSET=0x40000
configs/ap143_defconfig +1 -1
@@ -1,5 +1,5 @@ CONFIG_MIPS=y -CONFIG_SYS_TEXT_BASE=0x9F000000 +CONFIG_TEXT_BASE=0x9F000000 CONFIG_SYS_MALLOC_LEN=0x40000 CONFIG_SYS_MALLOC_F_LEN=0x800 CONFIG_ENV_SIZE=0x10000
configs/ap152_defconfig +1 -1
@@ -1,5 +1,5 @@ CONFIG_MIPS=y -CONFIG_SYS_TEXT_BASE=0x9F000000 +CONFIG_TEXT_BASE=0x9F000000 CONFIG_SYS_MALLOC_LEN=0x40000 CONFIG_SYS_MALLOC_F_LEN=0x800 CONFIG_ENV_SIZE=0x10000
configs/apalis-imx8_defconfig +1 -1
@@ -1,6 +1,6 @@ CONFIG_ARM=y CONFIG_ARCH_IMX8=y -CONFIG_SYS_TEXT_BASE=0x80020000 +CONFIG_TEXT_BASE=0x80020000 CONFIG_SYS_MALLOC_LEN=0x2800000 CONFIG_SYS_MALLOC_F_LEN=0x4000 CONFIG_NR_DRAM_BANKS=3
configs/apalis-tk1_defconfig +1 -1
@@ -1,7 +1,7 @@ CONFIG_ARM=y CONFIG_SYS_L2CACHE_OFF=y CONFIG_ARCH_TEGRA=y -CONFIG_SYS_TEXT_BASE=0x80110000 +CONFIG_TEXT_BASE=0x80110000 CONFIG_SYS_MALLOC_F_LEN=0x2000 CONFIG_NR_DRAM_BANKS=2 CONFIG_ENV_SIZE=0x2000
configs/apalis_imx6_defconfig +1 -1
@@ -1,6 +1,6 @@ CONFIG_ARM=y CONFIG_ARCH_MX6=y -CONFIG_SYS_TEXT_BASE=0x17800000 +CONFIG_TEXT_BASE=0x17800000 CONFIG_SYS_MALLOC_LEN=0x2000000 CONFIG_SPL_GPIO=y CONFIG_SPL_LIBCOMMON_SUPPORT=y
configs/apalis_t30_defconfig +1 -1
@@ -1,7 +1,7 @@ CONFIG_ARM=y CONFIG_SYS_L2CACHE_OFF=y CONFIG_ARCH_TEGRA=y -CONFIG_SYS_TEXT_BASE=0x80110000 +CONFIG_TEXT_BASE=0x80110000 CONFIG_SYS_MALLOC_F_LEN=0x2000 CONFIG_NR_DRAM_BANKS=2 CONFIG_ENV_SIZE=0x2000
configs/aristainetos2c_defconfig +1 -1
@@ -1,6 +1,6 @@ CONFIG_ARM=y CONFIG_ARCH_MX6=y -CONFIG_SYS_TEXT_BASE=0x17800000 +CONFIG_TEXT_BASE=0x17800000 CONFIG_SYS_MALLOC_F_LEN=0x13000 CONFIG_NR_DRAM_BANKS=1 CONFIG_ENV_OFFSET=0xD0000
configs/aristainetos2ccslb_defconfig +1 -1
@@ -1,6 +1,6 @@ CONFIG_ARM=y CONFIG_ARCH_MX6=y -CONFIG_SYS_TEXT_BASE=0x17800000 +CONFIG_TEXT_BASE=0x17800000 CONFIG_SYS_MALLOC_F_LEN=0x13000 CONFIG_NR_DRAM_BANKS=1 CONFIG_ENV_OFFSET=0xD0000
configs/arndale_defconfig +1 -1
@@ -3,7 +3,7 @@ CONFIG_SKIP_LOWLEVEL_INIT=y CONFIG_SPL_SKIP_LOWLEVEL_INIT=y CONFIG_ARCH_CPU_INIT=y CONFIG_ARCH_EXYNOS=y -CONFIG_SYS_TEXT_BASE=0x43E00000 +CONFIG_TEXT_BASE=0x43E00000 CONFIG_SYS_MALLOC_LEN=0x5004000 CONFIG_SYS_MALLOC_F_LEN=0x400 CONFIG_ARCH_EXYNOS5=y
configs/astro_mcf5373l_defconfig +1 -1
@@ -1,5 +1,5 @@ CONFIG_M68K=y -CONFIG_SYS_TEXT_BASE=0x00000000 +CONFIG_TEXT_BASE=0x00000000 CONFIG_SYS_MALLOC_LEN=0x20000 CONFIG_ENV_SIZE=0x8000 CONFIG_ENV_SECT_SIZE=0x8000
configs/at91sam9260ek_dataflash_cs0_defconfig +1 -1
@@ -2,7 +2,7 @@ CONFIG_ARM=y CONFIG_SKIP_LOWLEVEL_INIT=y CONFIG_ARCH_CPU_INIT=y CONFIG_ARCH_AT91=y -CONFIG_SYS_TEXT_BASE=0x21f00000 +CONFIG_TEXT_BASE=0x21f00000 CONFIG_SYS_MALLOC_LEN=0x2d000 CONFIG_TARGET_AT91SAM9260EK=y CONFIG_ATMEL_LEGACY=y
configs/at91sam9260ek_dataflash_cs1_defconfig +1 -1
@@ -2,7 +2,7 @@ CONFIG_ARM=y CONFIG_SKIP_LOWLEVEL_INIT=y CONFIG_ARCH_CPU_INIT=y CONFIG_ARCH_AT91=y -CONFIG_SYS_TEXT_BASE=0x21f00000 +CONFIG_TEXT_BASE=0x21f00000 CONFIG_SYS_MALLOC_LEN=0x2d000 CONFIG_TARGET_AT91SAM9260EK=y CONFIG_ATMEL_LEGACY=y
configs/at91sam9260ek_nandflash_defconfig +1 -1
@@ -2,7 +2,7 @@ CONFIG_ARM=y CONFIG_SKIP_LOWLEVEL_INIT=y CONFIG_ARCH_CPU_INIT=y CONFIG_ARCH_AT91=y -CONFIG_SYS_TEXT_BASE=0x21f00000 +CONFIG_TEXT_BASE=0x21f00000 CONFIG_SYS_MALLOC_LEN=0x80000 CONFIG_TARGET_AT91SAM9260EK=y CONFIG_ATMEL_LEGACY=y
configs/at91sam9261ek_dataflash_cs0_defconfig +1 -1
@@ -1,7 +1,7 @@ CONFIG_ARM=y CONFIG_SKIP_LOWLEVEL_INIT=y CONFIG_ARCH_AT91=y -CONFIG_SYS_TEXT_BASE=0x21f00000 +CONFIG_TEXT_BASE=0x21f00000 CONFIG_SYS_MALLOC_LEN=0x2d000 CONFIG_TARGET_AT91SAM9261EK=y CONFIG_ATMEL_LEGACY=y
configs/at91sam9261ek_dataflash_cs3_defconfig +1 -1
@@ -1,7 +1,7 @@ CONFIG_ARM=y CONFIG_SKIP_LOWLEVEL_INIT=y CONFIG_ARCH_AT91=y -CONFIG_SYS_TEXT_BASE=0x21f00000 +CONFIG_TEXT_BASE=0x21f00000 CONFIG_SYS_MALLOC_LEN=0x2d000 CONFIG_TARGET_AT91SAM9261EK=y CONFIG_ATMEL_LEGACY=y
configs/at91sam9261ek_nandflash_defconfig +1 -1
@@ -1,7 +1,7 @@ CONFIG_ARM=y CONFIG_SKIP_LOWLEVEL_INIT=y CONFIG_ARCH_AT91=y -CONFIG_SYS_TEXT_BASE=0x21f00000 +CONFIG_TEXT_BASE=0x21f00000 CONFIG_SYS_MALLOC_LEN=0x80000 CONFIG_TARGET_AT91SAM9261EK=y CONFIG_ATMEL_LEGACY=y
configs/at91sam9263ek_dataflash_cs0_defconfig +1 -1
@@ -2,7 +2,7 @@ CONFIG_ARM=y CONFIG_SKIP_LOWLEVEL_INIT=y CONFIG_ARCH_CPU_INIT=y CONFIG_ARCH_AT91=y -CONFIG_SYS_TEXT_BASE=0x21F00000 +CONFIG_TEXT_BASE=0x21F00000 CONFIG_SYS_MALLOC_LEN=0x2d000 CONFIG_TARGET_AT91SAM9263EK=y CONFIG_ATMEL_LEGACY=y
configs/at91sam9263ek_dataflash_defconfig +1 -1
@@ -2,7 +2,7 @@ CONFIG_ARM=y CONFIG_SKIP_LOWLEVEL_INIT=y CONFIG_ARCH_CPU_INIT=y CONFIG_ARCH_AT91=y -CONFIG_SYS_TEXT_BASE=0x21F00000 +CONFIG_TEXT_BASE=0x21F00000 CONFIG_SYS_MALLOC_LEN=0x2d000 CONFIG_TARGET_AT91SAM9263EK=y CONFIG_ATMEL_LEGACY=y
configs/at91sam9263ek_nandflash_defconfig +1 -1
@@ -2,7 +2,7 @@ CONFIG_ARM=y CONFIG_SKIP_LOWLEVEL_INIT=y CONFIG_ARCH_CPU_INIT=y CONFIG_ARCH_AT91=y -CONFIG_SYS_TEXT_BASE=0x21F00000 +CONFIG_TEXT_BASE=0x21F00000 CONFIG_SYS_MALLOC_LEN=0x80000 CONFIG_TARGET_AT91SAM9263EK=y CONFIG_ATMEL_LEGACY=y
configs/at91sam9263ek_norflash_boot_defconfig +1 -1
@@ -1,7 +1,7 @@ CONFIG_ARM=y CONFIG_ARCH_CPU_INIT=y CONFIG_ARCH_AT91=y -CONFIG_SYS_TEXT_BASE=0x0000000 +CONFIG_TEXT_BASE=0x0000000 CONFIG_SYS_MALLOC_LEN=0x50000 CONFIG_TARGET_AT91SAM9263EK=y CONFIG_ATMEL_LEGACY=y
configs/at91sam9263ek_norflash_defconfig +1 -1
@@ -2,7 +2,7 @@ CONFIG_ARM=y CONFIG_SKIP_LOWLEVEL_INIT=y CONFIG_ARCH_CPU_INIT=y CONFIG_ARCH_AT91=y -CONFIG_SYS_TEXT_BASE=0x21F00000 +CONFIG_TEXT_BASE=0x21F00000 CONFIG_SYS_MALLOC_LEN=0x50000 CONFIG_TARGET_AT91SAM9263EK=y CONFIG_ATMEL_LEGACY=y
configs/at91sam9g10ek_dataflash_cs0_defconfig +1 -1
@@ -1,7 +1,7 @@ CONFIG_ARM=y CONFIG_SKIP_LOWLEVEL_INIT=y CONFIG_ARCH_AT91=y -CONFIG_SYS_TEXT_BASE=0x21f00000 +CONFIG_TEXT_BASE=0x21f00000 CONFIG_SYS_MALLOC_LEN=0x2d000 CONFIG_TARGET_AT91SAM9261EK=y CONFIG_ATMEL_LEGACY=y
configs/at91sam9g10ek_dataflash_cs3_defconfig +1 -1
@@ -1,7 +1,7 @@ CONFIG_ARM=y CONFIG_SKIP_LOWLEVEL_INIT=y CONFIG_ARCH_AT91=y -CONFIG_SYS_TEXT_BASE=0x21f00000 +CONFIG_TEXT_BASE=0x21f00000 CONFIG_SYS_MALLOC_LEN=0x2d000 CONFIG_TARGET_AT91SAM9261EK=y CONFIG_ATMEL_LEGACY=y
configs/at91sam9g10ek_nandflash_defconfig +1 -1
@@ -1,7 +1,7 @@ CONFIG_ARM=y CONFIG_SKIP_LOWLEVEL_INIT=y CONFIG_ARCH_AT91=y -CONFIG_SYS_TEXT_BASE=0x21f00000 +CONFIG_TEXT_BASE=0x21f00000 CONFIG_SYS_MALLOC_LEN=0x80000 CONFIG_TARGET_AT91SAM9261EK=y CONFIG_ATMEL_LEGACY=y
configs/at91sam9g20ek_2mmc_defconfig +1 -1
@@ -2,7 +2,7 @@ CONFIG_ARM=y CONFIG_SKIP_LOWLEVEL_INIT=y CONFIG_ARCH_CPU_INIT=y CONFIG_ARCH_AT91=y -CONFIG_SYS_TEXT_BASE=0x21f00000 +CONFIG_TEXT_BASE=0x21f00000 CONFIG_SYS_MALLOC_LEN=0x23000 CONFIG_TARGET_AT91SAM9260EK=y CONFIG_ATMEL_LEGACY=y
configs/at91sam9g20ek_2mmc_nandflash_defconfig +1 -1
@@ -2,7 +2,7 @@ CONFIG_ARM=y CONFIG_SKIP_LOWLEVEL_INIT=y CONFIG_ARCH_CPU_INIT=y CONFIG_ARCH_AT91=y -CONFIG_SYS_TEXT_BASE=0x21f00000 +CONFIG_TEXT_BASE=0x21f00000 CONFIG_SYS_MALLOC_LEN=0x80000 CONFIG_TARGET_AT91SAM9260EK=y CONFIG_ATMEL_LEGACY=y
configs/at91sam9g20ek_dataflash_cs0_defconfig +1 -1
@@ -2,7 +2,7 @@ CONFIG_ARM=y CONFIG_SKIP_LOWLEVEL_INIT=y CONFIG_ARCH_CPU_INIT=y CONFIG_ARCH_AT91=y -CONFIG_SYS_TEXT_BASE=0x21f00000 +CONFIG_TEXT_BASE=0x21f00000 CONFIG_SYS_MALLOC_LEN=0x2d000 CONFIG_TARGET_AT91SAM9260EK=y CONFIG_ATMEL_LEGACY=y
configs/at91sam9g20ek_dataflash_cs1_defconfig +1 -1
@@ -2,7 +2,7 @@ CONFIG_ARM=y CONFIG_SKIP_LOWLEVEL_INIT=y CONFIG_ARCH_CPU_INIT=y CONFIG_ARCH_AT91=y -CONFIG_SYS_TEXT_BASE=0x21f00000 +CONFIG_TEXT_BASE=0x21f00000 CONFIG_SYS_MALLOC_LEN=0x2d000 CONFIG_TARGET_AT91SAM9260EK=y CONFIG_ATMEL_LEGACY=y
configs/at91sam9g20ek_nandflash_defconfig +1 -1
@@ -2,7 +2,7 @@ CONFIG_ARM=y CONFIG_SKIP_LOWLEVEL_INIT=y CONFIG_ARCH_CPU_INIT=y CONFIG_ARCH_AT91=y -CONFIG_SYS_TEXT_BASE=0x21f00000 +CONFIG_TEXT_BASE=0x21f00000 CONFIG_SYS_MALLOC_LEN=0x80000 CONFIG_TARGET_AT91SAM9260EK=y CONFIG_ATMEL_LEGACY=y
configs/at91sam9m10g45ek_mmc_defconfig +1 -1
@@ -1,7 +1,7 @@ CONFIG_ARM=y CONFIG_SKIP_LOWLEVEL_INIT=y CONFIG_ARCH_AT91=y -CONFIG_SYS_TEXT_BASE=0x73f00000 +CONFIG_TEXT_BASE=0x73f00000 CONFIG_SYS_MALLOC_LEN=0x2c000 CONFIG_TARGET_AT91SAM9M10G45EK=y CONFIG_ATMEL_LEGACY=y
configs/at91sam9m10g45ek_nandflash_defconfig +1 -1
@@ -1,7 +1,7 @@ CONFIG_ARM=y CONFIG_SKIP_LOWLEVEL_INIT=y CONFIG_ARCH_AT91=y -CONFIG_SYS_TEXT_BASE=0x73f00000 +CONFIG_TEXT_BASE=0x73f00000 CONFIG_SYS_MALLOC_LEN=0x80000 CONFIG_TARGET_AT91SAM9M10G45EK=y CONFIG_ATMEL_LEGACY=y
configs/at91sam9n12ek_mmc_defconfig +1 -1
@@ -1,7 +1,7 @@ CONFIG_ARM=y CONFIG_SKIP_LOWLEVEL_INIT=y CONFIG_ARCH_AT91=y -CONFIG_SYS_TEXT_BASE=0x26f00000 +CONFIG_TEXT_BASE=0x26f00000 CONFIG_TARGET_AT91SAM9N12EK=y CONFIG_NR_DRAM_BANKS=1 CONFIG_ENV_SIZE=0x4000
configs/at91sam9n12ek_nandflash_defconfig +1 -1
@@ -1,7 +1,7 @@ CONFIG_ARM=y CONFIG_SKIP_LOWLEVEL_INIT=y CONFIG_ARCH_AT91=y -CONFIG_SYS_TEXT_BASE=0x26f00000 +CONFIG_TEXT_BASE=0x26f00000 CONFIG_TARGET_AT91SAM9N12EK=y CONFIG_NR_DRAM_BANKS=1 CONFIG_DM_GPIO=y
configs/at91sam9n12ek_spiflash_defconfig +1 -1
@@ -1,7 +1,7 @@ CONFIG_ARM=y CONFIG_SKIP_LOWLEVEL_INIT=y CONFIG_ARCH_AT91=y -CONFIG_SYS_TEXT_BASE=0x26f00000 +CONFIG_TEXT_BASE=0x26f00000 CONFIG_TARGET_AT91SAM9N12EK=y CONFIG_NR_DRAM_BANKS=1 CONFIG_ENV_SIZE=0x3000
configs/at91sam9rlek_dataflash_defconfig +1 -1
@@ -2,7 +2,7 @@ CONFIG_ARM=y CONFIG_SKIP_LOWLEVEL_INIT=y CONFIG_ARCH_CPU_INIT=y CONFIG_ARCH_AT91=y -CONFIG_SYS_TEXT_BASE=0x21F00000 +CONFIG_TEXT_BASE=0x21F00000 CONFIG_SYS_MALLOC_LEN=0x2d000 CONFIG_TARGET_AT91SAM9RLEK=y CONFIG_ATMEL_LEGACY=y
configs/at91sam9rlek_mmc_defconfig +1 -1
@@ -2,7 +2,7 @@ CONFIG_ARM=y CONFIG_SKIP_LOWLEVEL_INIT=y CONFIG_ARCH_CPU_INIT=y CONFIG_ARCH_AT91=y -CONFIG_SYS_TEXT_BASE=0x21F00000 +CONFIG_TEXT_BASE=0x21F00000 CONFIG_SYS_MALLOC_LEN=0x2c000 CONFIG_TARGET_AT91SAM9RLEK=y CONFIG_ATMEL_LEGACY=y
configs/at91sam9rlek_nandflash_defconfig +1 -1
@@ -2,7 +2,7 @@ CONFIG_ARM=y CONFIG_SKIP_LOWLEVEL_INIT=y CONFIG_ARCH_CPU_INIT=y CONFIG_ARCH_AT91=y -CONFIG_SYS_TEXT_BASE=0x21F00000 +CONFIG_TEXT_BASE=0x21F00000 CONFIG_SYS_MALLOC_LEN=0x80000 CONFIG_TARGET_AT91SAM9RLEK=y CONFIG_ATMEL_LEGACY=y
configs/at91sam9x5ek_dataflash_defconfig +1 -1
@@ -1,7 +1,7 @@ CONFIG_ARM=y CONFIG_SKIP_LOWLEVEL_INIT=y CONFIG_ARCH_AT91=y -CONFIG_SYS_TEXT_BASE=0x26f00000 +CONFIG_TEXT_BASE=0x26f00000 CONFIG_SYS_MALLOC_LEN=0x81000 CONFIG_TARGET_AT91SAM9X5EK=y CONFIG_ATMEL_LEGACY=y
configs/at91sam9x5ek_mmc_defconfig +1 -1
@@ -1,7 +1,7 @@ CONFIG_ARM=y CONFIG_SKIP_LOWLEVEL_INIT=y CONFIG_ARCH_AT91=y -CONFIG_SYS_TEXT_BASE=0x26f00000 +CONFIG_TEXT_BASE=0x26f00000 CONFIG_SYS_MALLOC_LEN=0x81000 CONFIG_TARGET_AT91SAM9X5EK=y CONFIG_ATMEL_LEGACY=y
configs/at91sam9x5ek_nandflash_defconfig +1 -1
@@ -1,7 +1,7 @@ CONFIG_ARM=y CONFIG_SKIP_LOWLEVEL_INIT=y CONFIG_ARCH_AT91=y -CONFIG_SYS_TEXT_BASE=0x26f00000 +CONFIG_TEXT_BASE=0x26f00000 CONFIG_SYS_MALLOC_LEN=0x81000 CONFIG_TARGET_AT91SAM9X5EK=y CONFIG_ATMEL_LEGACY=y
configs/at91sam9x5ek_spiflash_defconfig +1 -1
@@ -1,7 +1,7 @@ CONFIG_ARM=y CONFIG_SKIP_LOWLEVEL_INIT=y CONFIG_ARCH_AT91=y -CONFIG_SYS_TEXT_BASE=0x26f00000 +CONFIG_TEXT_BASE=0x26f00000 CONFIG_SYS_MALLOC_LEN=0x81000 CONFIG_TARGET_AT91SAM9X5EK=y CONFIG_ATMEL_LEGACY=y
configs/at91sam9xeek_dataflash_cs0_defconfig +1 -1
@@ -2,7 +2,7 @@ CONFIG_ARM=y CONFIG_SKIP_LOWLEVEL_INIT=y CONFIG_ARCH_CPU_INIT=y CONFIG_ARCH_AT91=y -CONFIG_SYS_TEXT_BASE=0x21f00000 +CONFIG_TEXT_BASE=0x21f00000 CONFIG_SYS_MALLOC_LEN=0x2d000 CONFIG_TARGET_AT91SAM9260EK=y CONFIG_ATMEL_LEGACY=y
configs/at91sam9xeek_dataflash_cs1_defconfig +1 -1
@@ -2,7 +2,7 @@ CONFIG_ARM=y CONFIG_SKIP_LOWLEVEL_INIT=y CONFIG_ARCH_CPU_INIT=y CONFIG_ARCH_AT91=y -CONFIG_SYS_TEXT_BASE=0x21f00000 +CONFIG_TEXT_BASE=0x21f00000 CONFIG_SYS_MALLOC_LEN=0x2d000 CONFIG_TARGET_AT91SAM9260EK=y CONFIG_ATMEL_LEGACY=y
configs/at91sam9xeek_nandflash_defconfig +1 -1
@@ -2,7 +2,7 @@ CONFIG_ARM=y CONFIG_SKIP_LOWLEVEL_INIT=y CONFIG_ARCH_CPU_INIT=y CONFIG_ARCH_AT91=y -CONFIG_SYS_TEXT_BASE=0x21f00000 +CONFIG_TEXT_BASE=0x21f00000 CONFIG_SYS_MALLOC_LEN=0x80000 CONFIG_TARGET_AT91SAM9260EK=y CONFIG_ATMEL_LEGACY=y
configs/avnet_ultrazedev_cc_v1_0_ultrazedev_som_v1_0_defconfig +1 -1
@@ -1,6 +1,6 @@ CONFIG_ARM=y CONFIG_ARCH_ZYNQMP=y -CONFIG_SYS_TEXT_BASE=0x8000000 +CONFIG_TEXT_BASE=0x8000000 CONFIG_SYS_MALLOC_LEN=0x4008000 CONFIG_SYS_MALLOC_F_LEN=0x8000 CONFIG_DM_GPIO=y
configs/axm_defconfig +1 -1
@@ -7,7 +7,7 @@ CONFIG_SYS_THUMB_BUILD=y # CONFIG_SPL_USE_ARCH_MEMCPY is not set # CONFIG_SPL_USE_ARCH_MEMSET is not set CONFIG_ARCH_AT91=y -CONFIG_SYS_TEXT_BASE=0x21000000 +CONFIG_TEXT_BASE=0x21000000 CONFIG_SYS_MALLOC_LEN=0x460000 CONFIG_TARGET_TAURUS=y CONFIG_AT91_GPIO_PULLUP=y
configs/axs101_defconfig +1 -1
@@ -1,6 +1,6 @@ CONFIG_ARC=y CONFIG_TARGET_AXS101=y -CONFIG_SYS_TEXT_BASE=0x81000000 +CONFIG_TEXT_BASE=0x81000000 CONFIG_SYS_MALLOC_LEN=0x0200000 CONFIG_SYS_MALLOC_F_LEN=0x400 CONFIG_DM_GPIO=y
configs/axs103_defconfig +1 -1
@@ -1,6 +1,6 @@ CONFIG_ARC=y CONFIG_ISA_ARCV2=y -CONFIG_SYS_TEXT_BASE=0x81000000 +CONFIG_TEXT_BASE=0x81000000 CONFIG_SYS_MALLOC_LEN=0x0200000 CONFIG_SYS_MALLOC_F_LEN=0x400 CONFIG_DM_GPIO=y
configs/bananapi-m5_defconfig +1 -1
@@ -1,6 +1,6 @@ CONFIG_ARM=y CONFIG_ARCH_MESON=y -CONFIG_SYS_TEXT_BASE=0x01000000 +CONFIG_TEXT_BASE=0x01000000 CONFIG_NR_DRAM_BANKS=1 CONFIG_ENV_SIZE=0x2000 CONFIG_DM_GPIO=y
configs/bayleybay_defconfig +1 -1
@@ -1,5 +1,5 @@ CONFIG_X86=y -CONFIG_SYS_TEXT_BASE=0xFFF00000 +CONFIG_TEXT_BASE=0xFFF00000 CONFIG_NR_DRAM_BANKS=8 CONFIG_ENV_SIZE=0x1000 CONFIG_ENV_OFFSET=0x6FF000
configs/bcm7260_defconfig +1 -1
@@ -1,7 +1,7 @@ CONFIG_ARM=y CONFIG_SKIP_LOWLEVEL_INIT=y CONFIG_ARCH_BCMSTB=y -CONFIG_SYS_TEXT_BASE=0x10100000 +CONFIG_TEXT_BASE=0x10100000 CONFIG_SYS_MALLOC_LEN=0x2800000 CONFIG_SYS_MALLOC_F_LEN=0x400 CONFIG_TARGET_BCM7260=y
configs/bcm7445_defconfig +1 -1
@@ -1,7 +1,7 @@ CONFIG_ARM=y CONFIG_SKIP_LOWLEVEL_INIT=y CONFIG_ARCH_BCMSTB=y -CONFIG_SYS_TEXT_BASE=0x80100000 +CONFIG_TEXT_BASE=0x80100000 CONFIG_SYS_MALLOC_LEN=0xa00000 CONFIG_SYS_MALLOC_F_LEN=0x400 CONFIG_TARGET_BCM7445=y
configs/bcm947622_defconfig +1 -1
@@ -1,6 +1,6 @@ CONFIG_ARM=y CONFIG_ARCH_BCMBCA=y -CONFIG_SYS_TEXT_BASE=0x01000000 +CONFIG_TEXT_BASE=0x01000000 CONFIG_SYS_MALLOC_LEN=0x2000000 CONFIG_SYS_MALLOC_F_LEN=0x8000 CONFIG_BCM47622=y
configs/bcm963158_ram_defconfig +1 -1
@@ -2,7 +2,7 @@ CONFIG_ARM=y CONFIG_SKIP_LOWLEVEL_INIT=y # CONFIG_ARM64_SUPPORT_AARCH32 is not set CONFIG_ARCH_BCM63158=y -CONFIG_SYS_TEXT_BASE=0x10000000 +CONFIG_TEXT_BASE=0x10000000 CONFIG_SYS_MALLOC_LEN=0x100000 CONFIG_SYS_MALLOC_F_LEN=0x8000 CONFIG_NR_DRAM_BANKS=1
configs/bcm96753ref_ram_defconfig +1 -1
@@ -3,7 +3,7 @@ CONFIG_SKIP_LOWLEVEL_INIT=y CONFIG_SKIP_LOWLEVEL_INIT_ONLY=y CONFIG_SYS_ARCH_TIMER=y CONFIG_ARCH_BCM6753=y -CONFIG_SYS_TEXT_BASE=0x1000000 +CONFIG_TEXT_BASE=0x1000000 CONFIG_SYS_MALLOC_F_LEN=0x1000 CONFIG_NR_DRAM_BANKS=1 CONFIG_ENV_SIZE=0x20000
configs/bcm968360bg_ram_defconfig +1 -1
@@ -1,7 +1,7 @@ CONFIG_ARM=y CONFIG_SKIP_LOWLEVEL_INIT=y CONFIG_ARCH_BCM68360=y -CONFIG_SYS_TEXT_BASE=0x10000000 +CONFIG_TEXT_BASE=0x10000000 CONFIG_SYS_MALLOC_LEN=0x100000 CONFIG_SYS_MALLOC_F_LEN=0x8000 CONFIG_NR_DRAM_BANKS=1
configs/bcm968380gerg_ram_defconfig +1 -1
@@ -1,6 +1,6 @@ CONFIG_MIPS=y CONFIG_SKIP_LOWLEVEL_INIT=y -CONFIG_SYS_TEXT_BASE=0x80010000 +CONFIG_TEXT_BASE=0x80010000 CONFIG_NR_DRAM_BANKS=1 CONFIG_ENV_SIZE=0x2000 CONFIG_DM_GPIO=y
configs/bcm968580xref_ram_defconfig +1 -1
@@ -1,7 +1,7 @@ CONFIG_ARM=y CONFIG_SKIP_LOWLEVEL_INIT=y CONFIG_ARCH_BCM6858=y -CONFIG_SYS_TEXT_BASE=0x10000000 +CONFIG_TEXT_BASE=0x10000000 CONFIG_SYS_MALLOC_LEN=0x100000 CONFIG_SYS_MALLOC_F_LEN=0x8000 CONFIG_NR_DRAM_BANKS=1
configs/bcm_ns3_defconfig +1 -1
@@ -1,7 +1,7 @@ CONFIG_ARM=y CONFIG_GIC_V3_ITS=y CONFIG_TARGET_BCMNS3=y -CONFIG_SYS_TEXT_BASE=0xFF000000 +CONFIG_TEXT_BASE=0xFF000000 CONFIG_SYS_MALLOC_LEN=0xc00000 CONFIG_SYS_MALLOC_F_LEN=0x400 CONFIG_NR_DRAM_BANKS=2
configs/beaver_defconfig +1 -1
@@ -1,7 +1,7 @@ CONFIG_ARM=y CONFIG_SYS_L2CACHE_OFF=y CONFIG_ARCH_TEGRA=y -CONFIG_SYS_TEXT_BASE=0x80110000 +CONFIG_TEXT_BASE=0x80110000 CONFIG_SYS_MALLOC_LEN=0x2500000 CONFIG_NR_DRAM_BANKS=2 CONFIG_ENV_SIZE=0x2000
configs/beelink-gsking-x_defconfig +1 -1
@@ -1,7 +1,7 @@ CONFIG_ARM=y CONFIG_SYS_BOARD="beelink-s922x" CONFIG_ARCH_MESON=y -CONFIG_SYS_TEXT_BASE=0x01000000 +CONFIG_TEXT_BASE=0x01000000 CONFIG_NR_DRAM_BANKS=1 CONFIG_ENV_SIZE=0x2000 CONFIG_DM_GPIO=y
configs/beelink-gtking_defconfig +1 -1
@@ -1,7 +1,7 @@ CONFIG_ARM=y CONFIG_SYS_BOARD="beelink-s922x" CONFIG_ARCH_MESON=y -CONFIG_SYS_TEXT_BASE=0x01000000 +CONFIG_TEXT_BASE=0x01000000 CONFIG_NR_DRAM_BANKS=1 CONFIG_ENV_SIZE=0x2000 CONFIG_DM_GPIO=y
configs/beelink-gtkingpro_defconfig +1 -1
@@ -1,7 +1,7 @@ CONFIG_ARM=y CONFIG_SYS_BOARD="beelink-s922x" CONFIG_ARCH_MESON=y -CONFIG_SYS_TEXT_BASE=0x01000000 +CONFIG_TEXT_BASE=0x01000000 CONFIG_NR_DRAM_BANKS=1 CONFIG_ENV_SIZE=0x2000 CONFIG_DM_GPIO=y
configs/bitmain_antminer_s9_defconfig +1 -1
@@ -5,7 +5,7 @@ CONFIG_SYS_CONFIG_NAME="bitmain_antminer_s9" CONFIG_SPL_SYS_DCACHE_OFF=y CONFIG_SYS_L2CACHE_OFF=y CONFIG_ARCH_ZYNQ=y -CONFIG_SYS_TEXT_BASE=0x4000000 +CONFIG_TEXT_BASE=0x4000000 CONFIG_ENV_OFFSET=0x300000 CONFIG_DM_GPIO=y CONFIG_DEFAULT_DEVICE_TREE="bitmain-antminer-s9"
configs/bk4r1_defconfig +1 -1
@@ -2,7 +2,7 @@ CONFIG_ARM=y CONFIG_SKIP_LOWLEVEL_INIT=y CONFIG_SYS_THUMB_BUILD=y CONFIG_ARCH_VF610=y -CONFIG_SYS_TEXT_BASE=0x3f401000 +CONFIG_TEXT_BASE=0x3f401000 CONFIG_SYS_MALLOC_LEN=0x402000 CONFIG_SYS_MALLOC_F_LEN=0x800 CONFIG_NR_DRAM_BANKS=1
configs/blanche_defconfig +1 -1
@@ -2,7 +2,7 @@ CONFIG_ARM=y CONFIG_ARCH_CPU_INIT=y CONFIG_ENABLE_ARM_SOC_BOOT0_HOOK=y CONFIG_ARCH_RMOBILE=y -CONFIG_SYS_TEXT_BASE=0x00000000 +CONFIG_TEXT_BASE=0x00000000 CONFIG_SYS_MALLOC_LEN=0x100000 CONFIG_SYS_MALLOC_F_LEN=0x8000 CONFIG_NR_DRAM_BANKS=1
configs/boston32r2_defconfig +1 -1
@@ -1,5 +1,5 @@ CONFIG_MIPS=y -CONFIG_SYS_TEXT_BASE=0x9FC00000 +CONFIG_TEXT_BASE=0x9FC00000 CONFIG_SYS_MALLOC_LEN=0x40000 CONFIG_SYS_MALLOC_F_LEN=0x400 CONFIG_ENV_SIZE=0x20000
configs/boston32r2el_defconfig +1 -1
@@ -1,5 +1,5 @@ CONFIG_MIPS=y -CONFIG_SYS_TEXT_BASE=0x9FC00000 +CONFIG_TEXT_BASE=0x9FC00000 CONFIG_SYS_MALLOC_LEN=0x40000 CONFIG_SYS_MALLOC_F_LEN=0x400 CONFIG_ENV_SIZE=0x20000
configs/boston32r6_defconfig +1 -1
@@ -1,5 +1,5 @@ CONFIG_MIPS=y -CONFIG_SYS_TEXT_BASE=0x9FC00000 +CONFIG_TEXT_BASE=0x9FC00000 CONFIG_SYS_MALLOC_LEN=0x40000 CONFIG_SYS_MALLOC_F_LEN=0x400 CONFIG_ENV_SIZE=0x20000
configs/boston32r6el_defconfig +1 -1
@@ -1,5 +1,5 @@ CONFIG_MIPS=y -CONFIG_SYS_TEXT_BASE=0x9FC00000 +CONFIG_TEXT_BASE=0x9FC00000 CONFIG_SYS_MALLOC_LEN=0x40000 CONFIG_SYS_MALLOC_F_LEN=0x400 CONFIG_ENV_SIZE=0x20000
configs/boston64r2_defconfig +1 -1
@@ -1,5 +1,5 @@ CONFIG_MIPS=y -CONFIG_SYS_TEXT_BASE=0xFFFFFFFF9FC00000 +CONFIG_TEXT_BASE=0xFFFFFFFF9FC00000 CONFIG_SYS_MALLOC_LEN=0x40000 CONFIG_SYS_MALLOC_F_LEN=0x400 CONFIG_ENV_SIZE=0x20000
configs/boston64r2el_defconfig +1 -1
@@ -1,5 +1,5 @@ CONFIG_MIPS=y -CONFIG_SYS_TEXT_BASE=0xFFFFFFFF9FC00000 +CONFIG_TEXT_BASE=0xFFFFFFFF9FC00000 CONFIG_SYS_MALLOC_LEN=0x40000 CONFIG_SYS_MALLOC_F_LEN=0x400 CONFIG_ENV_SIZE=0x20000
configs/boston64r6_defconfig +1 -1
@@ -1,5 +1,5 @@ CONFIG_MIPS=y -CONFIG_SYS_TEXT_BASE=0xFFFFFFFF9FC00000 +CONFIG_TEXT_BASE=0xFFFFFFFF9FC00000 CONFIG_SYS_MALLOC_LEN=0x40000 CONFIG_SYS_MALLOC_F_LEN=0x400 CONFIG_ENV_SIZE=0x20000
configs/boston64r6el_defconfig +1 -1
@@ -1,5 +1,5 @@ CONFIG_MIPS=y -CONFIG_SYS_TEXT_BASE=0xFFFFFFFF9FC00000 +CONFIG_TEXT_BASE=0xFFFFFFFF9FC00000 CONFIG_SYS_MALLOC_LEN=0x40000 CONFIG_SYS_MALLOC_F_LEN=0x400 CONFIG_ENV_SIZE=0x20000
configs/brppt2_defconfig +1 -1
@@ -2,7 +2,7 @@ CONFIG_ARM=y # CONFIG_SPL_SYS_THUMB_BUILD is not set CONFIG_SYS_L2CACHE_OFF=y CONFIG_ARCH_MX6=y -CONFIG_SYS_TEXT_BASE=0x17800000 +CONFIG_TEXT_BASE=0x17800000 CONFIG_SYS_MALLOC_LEN=0xa00000 CONFIG_SYS_MALLOC_F_LEN=0x1000 CONFIG_SPL_GPIO=y
configs/cardhu_defconfig +1 -1
@@ -1,7 +1,7 @@ CONFIG_ARM=y CONFIG_SYS_L2CACHE_OFF=y CONFIG_ARCH_TEGRA=y -CONFIG_SYS_TEXT_BASE=0x80110000 +CONFIG_TEXT_BASE=0x80110000 CONFIG_NR_DRAM_BANKS=2 CONFIG_ENV_SIZE=0x2000 CONFIG_ENV_OFFSET=0xFFFFE000
configs/cei-tk1-som_defconfig +1 -1
@@ -1,7 +1,7 @@ CONFIG_ARM=y CONFIG_SYS_L2CACHE_OFF=y CONFIG_ARCH_TEGRA=y -CONFIG_SYS_TEXT_BASE=0x80110000 +CONFIG_TEXT_BASE=0x80110000 CONFIG_SYS_MALLOC_LEN=0x2500000 CONFIG_NR_DRAM_BANKS=2 CONFIG_ENV_SIZE=0x2000
configs/cgtqmx8_defconfig +1 -1
@@ -1,6 +1,6 @@ CONFIG_ARM=y CONFIG_ARCH_IMX8=y -CONFIG_SYS_TEXT_BASE=0x80020000 +CONFIG_TEXT_BASE=0x80020000 CONFIG_SYS_MALLOC_LEN=0x2400000 CONFIG_SPL_GPIO=y CONFIG_SPL_LIBCOMMON_SUPPORT=y
configs/cherryhill_defconfig +1 -1
@@ -1,5 +1,5 @@ CONFIG_X86=y -CONFIG_SYS_TEXT_BASE=0xFFE00000 +CONFIG_TEXT_BASE=0xFFE00000 CONFIG_NR_DRAM_BANKS=8 CONFIG_ENV_SIZE=0x1000 CONFIG_ENV_OFFSET=0x5F0000
configs/chromebit_mickey_defconfig +1 -1
@@ -3,7 +3,7 @@ CONFIG_SPL_SKIP_LOWLEVEL_INIT=y CONFIG_SYS_ARCH_TIMER=y # CONFIG_SPL_USE_ARCH_MEMCPY is not set CONFIG_ARCH_ROCKCHIP=y -CONFIG_SYS_TEXT_BASE=0x00100000 +CONFIG_TEXT_BASE=0x00100000 CONFIG_NR_DRAM_BANKS=1 CONFIG_DEFAULT_DEVICE_TREE="rk3288-veyron-mickey" CONFIG_SPL_TEXT_BASE=0xff704000
configs/chromebook_bob_defconfig +1 -1
@@ -2,7 +2,7 @@ CONFIG_ARM=y CONFIG_SKIP_LOWLEVEL_INIT=y CONFIG_COUNTER_FREQUENCY=24000000 CONFIG_ARCH_ROCKCHIP=y -CONFIG_SYS_TEXT_BASE=0x00200000 +CONFIG_TEXT_BASE=0x00200000 CONFIG_SPL_GPIO=y CONFIG_NR_DRAM_BANKS=1 CONFIG_ENV_OFFSET=0x3F8000
configs/chromebook_coral_defconfig +1 -1
@@ -1,5 +1,5 @@ CONFIG_X86=y -CONFIG_SYS_TEXT_BASE=0x1110000 +CONFIG_TEXT_BASE=0x1110000 CONFIG_SYS_MALLOC_F_LEN=0x3d00 CONFIG_NR_DRAM_BANKS=8 CONFIG_MAX_CPUS=8
configs/chromebook_jerry_defconfig +1 -1
@@ -3,7 +3,7 @@ CONFIG_SPL_SKIP_LOWLEVEL_INIT=y CONFIG_SYS_ARCH_TIMER=y # CONFIG_SPL_USE_ARCH_MEMCPY is not set CONFIG_ARCH_ROCKCHIP=y -CONFIG_SYS_TEXT_BASE=0x00100000 +CONFIG_TEXT_BASE=0x00100000 CONFIG_NR_DRAM_BANKS=1 CONFIG_DEFAULT_DEVICE_TREE="rk3288-veyron-jerry" CONFIG_SPL_TEXT_BASE=0xff704000
configs/chromebook_kevin_defconfig +1 -1
@@ -2,7 +2,7 @@ CONFIG_ARM=y CONFIG_SKIP_LOWLEVEL_INIT=y CONFIG_COUNTER_FREQUENCY=24000000 CONFIG_ARCH_ROCKCHIP=y -CONFIG_SYS_TEXT_BASE=0x00200000 +CONFIG_TEXT_BASE=0x00200000 CONFIG_SPL_GPIO=y CONFIG_NR_DRAM_BANKS=1 CONFIG_ENV_OFFSET=0x3F8000
configs/chromebook_link_defconfig +1 -1
@@ -1,5 +1,5 @@ CONFIG_X86=y -CONFIG_SYS_TEXT_BASE=0xFFEF0000 +CONFIG_TEXT_BASE=0xFFEF0000 CONFIG_SYS_MALLOC_F_LEN=0x2400 CONFIG_NR_DRAM_BANKS=8 CONFIG_ENV_SIZE=0x1000
configs/chromebook_minnie_defconfig +1 -1
@@ -3,7 +3,7 @@ CONFIG_SPL_SKIP_LOWLEVEL_INIT=y CONFIG_SYS_ARCH_TIMER=y # CONFIG_SPL_USE_ARCH_MEMCPY is not set CONFIG_ARCH_ROCKCHIP=y -CONFIG_SYS_TEXT_BASE=0x00100000 +CONFIG_TEXT_BASE=0x00100000 CONFIG_NR_DRAM_BANKS=1 CONFIG_DEFAULT_DEVICE_TREE="rk3288-veyron-minnie" CONFIG_SPL_TEXT_BASE=0xff704000
configs/chromebook_samus_defconfig +1 -1
@@ -1,5 +1,5 @@ CONFIG_X86=y -CONFIG_SYS_TEXT_BASE=0xFFE00000 +CONFIG_TEXT_BASE=0xFFE00000 CONFIG_SYS_MALLOC_F_LEN=0x1d00 CONFIG_NR_DRAM_BANKS=8 CONFIG_ENV_SIZE=0x1000
configs/chromebook_samus_tpl_defconfig +1 -1
@@ -1,5 +1,5 @@ CONFIG_X86=y -CONFIG_SYS_TEXT_BASE=0xffed0000 +CONFIG_TEXT_BASE=0xffed0000 CONFIG_SYS_MALLOC_F_LEN=0x1a00 CONFIG_NR_DRAM_BANKS=8 CONFIG_ENV_SIZE=0x1000
configs/chromebook_speedy_defconfig +1 -1
@@ -3,7 +3,7 @@ CONFIG_SPL_SKIP_LOWLEVEL_INIT=y CONFIG_SYS_ARCH_TIMER=y # CONFIG_SPL_USE_ARCH_MEMCPY is not set CONFIG_ARCH_ROCKCHIP=y -CONFIG_SYS_TEXT_BASE=0x00100000 +CONFIG_TEXT_BASE=0x00100000 CONFIG_NR_DRAM_BANKS=1 CONFIG_DEFAULT_DEVICE_TREE="rk3288-veyron-speedy" CONFIG_SPL_TEXT_BASE=0xff704000
configs/chromebox_panther_defconfig +1 -1
@@ -1,5 +1,5 @@ CONFIG_X86=y -CONFIG_SYS_TEXT_BASE=0xFFF00000 +CONFIG_TEXT_BASE=0xFFF00000 CONFIG_NR_DRAM_BANKS=8 CONFIG_ENV_SIZE=0x1000 CONFIG_ENV_OFFSET=0x3F8000
configs/ci20_mmc_defconfig +1 -1
@@ -1,6 +1,6 @@ CONFIG_MIPS=y CONFIG_SKIP_LOWLEVEL_INIT=y -CONFIG_SYS_TEXT_BASE=0x80010000 +CONFIG_TEXT_BASE=0x80010000 CONFIG_SYS_MALLOC_LEN=0x4000000 CONFIG_SPL_GPIO=y CONFIG_SPL_LIBGENERIC_SUPPORT=y
configs/clearfog_defconfig +1 -1
@@ -2,7 +2,7 @@ CONFIG_ARM=y CONFIG_ARCH_CPU_INIT=y CONFIG_SYS_THUMB_BUILD=y CONFIG_ARCH_MVEBU=y -CONFIG_SYS_TEXT_BASE=0x00800000 +CONFIG_TEXT_BASE=0x00800000 CONFIG_SPL_LIBCOMMON_SUPPORT=y CONFIG_SPL_LIBGENERIC_SUPPORT=y CONFIG_NR_DRAM_BANKS=2
configs/clearfog_gt_8k_defconfig +1 -1
@@ -1,7 +1,7 @@ CONFIG_ARM=y CONFIG_ARCH_CPU_INIT=y CONFIG_ARCH_MVEBU=y -CONFIG_SYS_TEXT_BASE=0x00000000 +CONFIG_TEXT_BASE=0x00000000 CONFIG_NR_DRAM_BANKS=2 CONFIG_TARGET_MVEBU_ARMADA_8K=y CONFIG_ENV_SIZE=0x10000
configs/cm_fx6_defconfig +1 -1
@@ -1,6 +1,6 @@ CONFIG_ARM=y CONFIG_ARCH_MX6=y -CONFIG_SYS_TEXT_BASE=0x17800000 +CONFIG_TEXT_BASE=0x17800000 CONFIG_SYS_MALLOC_LEN=0xa00000 CONFIG_SPL_GPIO=y CONFIG_SPL_LIBCOMMON_SUPPORT=y
configs/cobra5272_defconfig +1 -1
@@ -1,5 +1,5 @@ CONFIG_M68K=y -CONFIG_SYS_TEXT_BASE=0xFFE00000 +CONFIG_TEXT_BASE=0xFFE00000 CONFIG_SYS_MALLOC_LEN=0x40000 CONFIG_ENV_SIZE=0x2000 CONFIG_ENV_SECT_SIZE=0x2000
configs/colibri-imx6ull-emmc_defconfig +1 -1
@@ -1,6 +1,6 @@ CONFIG_ARM=y CONFIG_ARCH_MX6=y -CONFIG_SYS_TEXT_BASE=0x87800000 +CONFIG_TEXT_BASE=0x87800000 CONFIG_NR_DRAM_BANKS=1 CONFIG_ENV_SIZE=0x2000 CONFIG_ENV_OFFSET=0xFFFFDE00
configs/colibri-imx6ull_defconfig +1 -1
@@ -1,6 +1,6 @@ CONFIG_ARM=y CONFIG_ARCH_MX6=y -CONFIG_SYS_TEXT_BASE=0x87800000 +CONFIG_TEXT_BASE=0x87800000 CONFIG_SYS_MALLOC_LEN=0x2000000 CONFIG_NR_DRAM_BANKS=1 CONFIG_ENV_SIZE=0x20000
configs/colibri-imx8x_defconfig +1 -1
@@ -1,6 +1,6 @@ CONFIG_ARM=y CONFIG_ARCH_IMX8=y -CONFIG_SYS_TEXT_BASE=0x80020000 +CONFIG_TEXT_BASE=0x80020000 CONFIG_SYS_MALLOC_LEN=0x2800000 CONFIG_SYS_MALLOC_F_LEN=0x4000 CONFIG_NR_DRAM_BANKS=3
configs/colibri_imx6_defconfig +1 -1
@@ -1,6 +1,6 @@ CONFIG_ARM=y CONFIG_ARCH_MX6=y -CONFIG_SYS_TEXT_BASE=0x17800000 +CONFIG_TEXT_BASE=0x17800000 CONFIG_SYS_MALLOC_LEN=0x2000000 CONFIG_SPL_GPIO=y CONFIG_SPL_LIBCOMMON_SUPPORT=y
configs/colibri_t20_defconfig +1 -1
@@ -1,7 +1,7 @@ CONFIG_ARM=y CONFIG_SYS_L2CACHE_OFF=y CONFIG_ARCH_TEGRA=y -CONFIG_SYS_TEXT_BASE=0x00110000 +CONFIG_TEXT_BASE=0x00110000 CONFIG_SYS_MALLOC_F_LEN=0x2000 CONFIG_NR_DRAM_BANKS=2 CONFIG_ENV_SIZE=0x10000
configs/colibri_t30_defconfig +1 -1
@@ -1,7 +1,7 @@ CONFIG_ARM=y CONFIG_SYS_L2CACHE_OFF=y CONFIG_ARCH_TEGRA=y -CONFIG_SYS_TEXT_BASE=0x80110000 +CONFIG_TEXT_BASE=0x80110000 CONFIG_SYS_MALLOC_F_LEN=0x2000 CONFIG_NR_DRAM_BANKS=2 CONFIG_ENV_SIZE=0x2000
configs/colibri_vf_defconfig +1 -1
@@ -2,7 +2,7 @@ CONFIG_ARM=y CONFIG_SKIP_LOWLEVEL_INIT=y
Lines of this file are not shown. View the raw message.
configs/comtrend_ar5387un_ram_defconfig +1 -1
Lines of this file are not shown. View the raw message.
configs/comtrend_wap5813n_ram_defconfig +1 -1
Lines of this file are not shown. View the raw message.
configs/conga-qeval20-qa3-e3845-internal-uart_defconfig +1 -1
Lines of this file are not shown. View the raw message.
configs/conga-qeval20-qa3-e3845_defconfig +1 -1
Lines of this file are not shown. View the raw message.
configs/cortina_presidio-asic-base_defconfig +1 -1
Lines of this file are not shown. View the raw message.
configs/cortina_presidio-asic-emmc_defconfig +1 -1
Lines of this file are not shown. View the raw message.
configs/cortina_presidio-asic-pnand_defconfig +1 -1
Lines of this file are not shown. View the raw message.
configs/gardena-smart-gateway-at91sam_defconfig +1 -1
Lines of this file are not shown. View the raw message.
configs/imx8mm-cl-iot-gate-optee_defconfig +1 -1
Lines of this file are not shown. View the raw message.
configs/imx8mm-icore-mx8mm-ctouch2_defconfig +1 -1
Lines of this file are not shown. View the raw message.
configs/imx8mm-icore-mx8mm-edimm2.2_defconfig +1 -1
Lines of this file are not shown. View the raw message.
configs/imx8mm_data_modul_edm_sbc_defconfig +1 -1
Lines of this file are not shown. View the raw message.
configs/integratorap_cm926ejs_defconfig +1 -1
Lines of this file are not shown. View the raw message.
configs/integratorcp_cm926ejs_defconfig +1 -1
Lines of this file are not shown. View the raw message.
configs/khadas-edge-captain-rk3399_defconfig +1 -1
Lines of this file are not shown. View the raw message.
configs/khadas-vim3_android_ab_defconfig +1 -1
Lines of this file are not shown. View the raw message.
configs/khadas-vim3l_android_ab_defconfig +1 -1
Lines of this file are not shown. View the raw message.
configs/ls1012afrwy_qspi_SECURE_BOOT_defconfig +1 -1
Lines of this file are not shown. View the raw message.
configs/ls1012afrwy_tfa_SECURE_BOOT_defconfig +1 -1
Lines of this file are not shown. View the raw message.
configs/ls1012aqds_tfa_SECURE_BOOT_defconfig +1 -1
Lines of this file are not shown. View the raw message.
configs/ls1012ardb_qspi_SECURE_BOOT_defconfig +1 -1
Lines of this file are not shown. View the raw message.
configs/ls1012ardb_tfa_SECURE_BOOT_defconfig +1 -1
Lines of this file are not shown. View the raw message.
configs/ls1021aqds_ddr4_nor_lpuart_defconfig +1 -1
Lines of this file are not shown. View the raw message.
configs/ls1021aqds_nor_SECURE_BOOT_defconfig +1 -1
Lines of this file are not shown. View the raw message.
configs/ls1021aqds_nor_lpuart_defconfig +1 -1
Lines of this file are not shown. View the raw message.
configs/ls1021aqds_sdcard_ifc_defconfig +1 -1
Lines of this file are not shown. View the raw message.
configs/ls1021aqds_sdcard_qspi_defconfig +1 -1
Lines of this file are not shown. View the raw message.
configs/ls1021atwr_nor_SECURE_BOOT_defconfig +1 -1
Lines of this file are not shown. View the raw message.
configs/ls1021atwr_nor_lpuart_defconfig +1 -1
Lines of this file are not shown. View the raw message.
configs/ls1021atwr_sdcard_ifc_SECURE_BOOT_defconfig +1 -1
Lines of this file are not shown. View the raw message.
configs/ls1021atwr_sdcard_ifc_defconfig +1 -1
Lines of this file are not shown. View the raw message.
configs/ls1021atwr_sdcard_qspi_defconfig +1 -1
Lines of this file are not shown. View the raw message.
configs/ls1043aqds_sdcard_ifc_defconfig +1 -1
Lines of this file are not shown. View the raw message.
configs/ls1043aqds_sdcard_qspi_defconfig +1 -1
Lines of this file are not shown. View the raw message.
configs/ls1043aqds_tfa_SECURE_BOOT_defconfig +1 -1
Lines of this file are not shown. View the raw message.
configs/ls1043ardb_SECURE_BOOT_defconfig +1 -1
Lines of this file are not shown. View the raw message.
configs/ls1043ardb_nand_SECURE_BOOT_defconfig +1 -1
Lines of this file are not shown. View the raw message.
configs/ls1043ardb_sdcard_SECURE_BOOT_defconfig +1 -1
Lines of this file are not shown. View the raw message.
configs/ls1043ardb_tfa_SECURE_BOOT_defconfig +1 -1
Lines of this file are not shown. View the raw message.
configs/ls1046afrwy_tfa_SECURE_BOOT_defconfig +1 -1
Lines of this file are not shown. View the raw message.
configs/ls1046aqds_SECURE_BOOT_defconfig +1 -1
Lines of this file are not shown. View the raw message.
configs/ls1046aqds_sdcard_ifc_defconfig +1 -1
Lines of this file are not shown. View the raw message.
configs/ls1046aqds_sdcard_qspi_defconfig +1 -1
Lines of this file are not shown. View the raw message.
configs/ls1046aqds_tfa_SECURE_BOOT_defconfig +1 -1
Lines of this file are not shown. View the raw message.
configs/ls1046ardb_qspi_SECURE_BOOT_defconfig +1 -1
Lines of this file are not shown. View the raw message.
configs/ls1046ardb_sdcard_SECURE_BOOT_defconfig +1 -1
Lines of this file are not shown. View the raw message.
configs/ls1046ardb_tfa_SECURE_BOOT_defconfig +1 -1
Lines of this file are not shown. View the raw message.
configs/ls1088aqds_qspi_SECURE_BOOT_defconfig +1 -1
Lines of this file are not shown. View the raw message.
configs/ls1088aqds_sdcard_ifc_defconfig +1 -1
Lines of this file are not shown. View the raw message.
configs/ls1088aqds_sdcard_qspi_defconfig +1 -1
Lines of this file are not shown. View the raw message.
configs/ls1088ardb_qspi_SECURE_BOOT_defconfig +1 -1
Lines of this file are not shown. View the raw message.
configs/ls1088ardb_sdcard_qspi_SECURE_BOOT_defconfig +1 -1
Lines of this file are not shown. View the raw message.
configs/ls1088ardb_sdcard_qspi_defconfig +1 -1
Lines of this file are not shown. View the raw message.
configs/ls1088ardb_tfa_SECURE_BOOT_defconfig +1 -1
Lines of this file are not shown. View the raw message.
configs/ls2080aqds_SECURE_BOOT_defconfig +1 -1
Lines of this file are not shown. View the raw message.
configs/ls2080ardb_SECURE_BOOT_defconfig +1 -1
Lines of this file are not shown. View the raw message.
configs/ls2088ardb_qspi_SECURE_BOOT_defconfig +1 -1
Lines of this file are not shown. View the raw message.
configs/ls2088ardb_tfa_SECURE_BOOT_defconfig +1 -1
Lines of this file are not shown. View the raw message.
configs/lx2160aqds_tfa_SECURE_BOOT_defconfig +1 -1
Lines of this file are not shown. View the raw message.
configs/lx2160ardb_tfa_SECURE_BOOT_defconfig +1 -1
Lines of this file are not shown. View the raw message.
configs/lx2162aqds_tfa_SECURE_BOOT_defconfig +1 -1
Lines of this file are not shown. View the raw message.
configs/lx2162aqds_tfa_verified_boot_defconfig +1 -1
Lines of this file are not shown. View the raw message.
configs/mt7623a_unielec_u7623_02_defconfig +1 -1
Lines of this file are not shown. View the raw message.
configs/mvebu_espressobin-88f3720_defconfig +1 -1
Lines of this file are not shown. View the raw message.
configs/mvebu_puzzle-m801-88f8040_defconfig +1 -1
Lines of this file are not shown. View the raw message.
configs/mx6ull_14x14_evk_plugin_defconfig +1 -1
Lines of this file are not shown. View the raw message.
configs/netgear_dgnd3700v2_ram_defconfig +1 -1
Lines of this file are not shown. View the raw message.
configs/openpiton_riscv64_spl_defconfig +1 -1
Lines of this file are not shown. View the raw message.
configs/px30-core-ctouch2-of10-px30_defconfig +1 -1
Lines of this file are not shown. View the raw message.
configs/px30-core-ctouch2-px30_defconfig +1 -1
Lines of this file are not shown. View the raw message.
configs/px30-core-edimm2.2-px30_defconfig +1 -1
Lines of this file are not shown. View the raw message.
configs/roc-pc-mezzanine-rk3399_defconfig +1 -1
Lines of this file are not shown. View the raw message.
configs/rock-pi-n10-rk3399pro_defconfig +1 -1
Lines of this file are not shown. View the raw message.
configs/sam9x60_curiosity_mmc_defconfig +1 -1
Lines of this file are not shown. View the raw message.
configs/sama5d27_som1_ek_mmc1_defconfig +1 -1
Lines of this file are not shown. View the raw message.
configs/sama5d27_som1_ek_qspiflash_defconfig +1 -1
Lines of this file are not shown. View the raw message.
configs/sama5d27_wlsom1_ek_mmc_defconfig +1 -1
Lines of this file are not shown. View the raw message.
configs/sama5d27_wlsom1_ek_qspiflash_defconfig +1 -1
Lines of this file are not shown. View the raw message.
configs/sama5d2_icp_qspiflash_defconfig +1 -1
Lines of this file are not shown. View the raw message.
configs/sama5d2_ptc_ek_nandflash_defconfig +1 -1
Lines of this file are not shown. View the raw message.
configs/sama5d2_xplained_emmc_defconfig +1 -1
Lines of this file are not shown. View the raw message.
configs/sama5d2_xplained_qspiflash_defconfig +1 -1
Lines of this file are not shown. View the raw message.
configs/sama5d2_xplained_spiflash_defconfig +1 -1
Lines of this file are not shown. View the raw message.
configs/sama5d36ek_cmp_nandflash_defconfig +1 -1
Lines of this file are not shown. View the raw message.
configs/sama5d36ek_cmp_spiflash_defconfig +1 -1
Lines of this file are not shown. View the raw message.
configs/sama5d3_xplained_nandflash_defconfig +1 -1
Lines of this file are not shown. View the raw message.
configs/sama5d4_xplained_nandflash_defconfig +1 -1
Lines of this file are not shown. View the raw message.
configs/sama5d4_xplained_spiflash_defconfig +1 -1
Lines of this file are not shown. View the raw message.
configs/socfpga_stratix10_atf_defconfig +1 -1
Lines of this file are not shown. View the raw message.
configs/somlabs_visionsom_6ull_defconfig +1 -1
Lines of this file are not shown. View the raw message.
configs/synquacer_developerbox_defconfig +1 -1
Lines of this file are not shown. View the raw message.
configs/theadorable-x86-conga-qa3-e3845-pcie-x4_defconfig +1 -1
Lines of this file are not shown. View the raw message.
configs/theadorable-x86-conga-qa3-e3845_defconfig +1 -1
Lines of this file are not shown. View the raw message.
configs/theadorable-x86-dfi-bt700_defconfig +1 -1
Lines of this file are not shown. View the raw message.
configs/xilinx_versal_mini_emmc0_defconfig +1 -1
Lines of this file are not shown. View the raw message.
configs/xilinx_versal_mini_emmc1_defconfig +1 -1
Lines of this file are not shown. View the raw message.
configs/xilinx_versal_net_mini_defconfig +1 -1
Lines of this file are not shown. View the raw message.
configs/xilinx_versal_net_virt_defconfig +1 -1
Lines of this file are not shown. View the raw message.
configs/xilinx_zynqmp_mini_emmc0_defconfig +1 -1
Lines of this file are not shown. View the raw message.
configs/xilinx_zynqmp_mini_emmc1_defconfig +1 -1
Lines of this file are not shown. View the raw message.
configs/xilinx_zynqmp_mini_nand_defconfig +1 -1
Lines of this file are not shown. View the raw message.
configs/xilinx_zynqmp_mini_nand_single_defconfig +1 -1
Lines of this file are not shown. View the raw message.
configs/xilinx_zynqmp_mini_qspi_defconfig +1 -1
Lines of this file are not shown. View the raw message.
doc/imx/habv4/guides/mx8m_spl_secure_boot.txt +2 -2
Lines of this file are not shown. View the raw message.
include/configs/corenet_ds.h new file +365 -0
365 lines not on this page · raw message
include/configs/gardena-smart-gateway-at91sam.h +2 -2
Lines of this file are not shown. View the raw message.
include/configs/gardena-smart-gateway-mt7688.h +1 -1
Lines of this file are not shown. View the raw message.
tools/binman/etype/u_boot_with_ucode_ptr.py +1 -1
Lines of this file are not shown. View the raw message.
The rest of this diff is not shown. View the raw message.
Signature · 1 line
2.38.0.rc1.362.ged0d419d3c-goog
Part of the diff is not shown here. View the raw message.
PATCH v2 4/45 disk: Drop debug messages in part_efi
In reply to Simon GlassThis is monstrously verbose when something goes wrong. It should work by recording the problem and reporting it (once) at the command level. At present it sometimes outputs hundreds of lines of CRC mismatches.
For now, just silence it all.
GUID Partition Table Entry Array CRC is wrong: 0xaebfebf2 != 0xc916f712
find_valid_gpt: *** ERROR: Invalid GPT ***
find_valid_gpt: *** Using Backup GPT ***
GUID Partition Table Entry Array CRC is wrong: 0xaebfebf2 != 0xc916f712
find_valid_gpt: *** ERROR: Invalid GPT ***
find_valid_gpt: *** Using Backup GPT ***
...
While we are error, remove the '*** ERROR: ' text as it is already clear that this is unexpected
---
Changes in v2:
- Drop the '*** ERROR: ' text as it is already clear that it is unexpected
- Fix exceds typo
disk/part_efi.c | 150 +++++++++++++++++++++++------------------------- 1 file changed, 72 insertions(+), 78 deletions(-)
disk/part_efi.c +72 -78
@@ -94,10 +94,10 @@ static int validate_gpt_header(gpt_header *gpt_h, lbaint_t lba,/* Check the GPT header signature */ if (le64_to_cpu (gpt_h->signature) !=GPT_HEADER_SIGNATURE_UBOOT ) { -printf ("%s signature is wrong: 0x%llX != 0x%llX\n" , -"GUID Partition Table Header" , -le64_to_cpu (gpt_h->signature), -GPT_HEADER_SIGNATURE_UBOOT ); +log_debug ("%s signature is wrong: %#llX != %#llX\n" , +"GUID Partition Table Header" , +le64_to_cpu (gpt_h->signature), +GPT_HEADER_SIGNATURE_UBOOT );return -1 ; }
@@ -111,9 +111,9 @@ static int validate_gpt_header(gpt_header *gpt_h, lbaint_t lba,memcpy (&gpt_h->header_crc32, &crc32_backup,sizeof (crc32_backup));if (calc_crc32 !=le32_to_cpu (crc32_backup)) { -printf ("%s CRC is wrong: 0x%x != 0x%x\n" , -"GUID Partition Table Header" , -le32_to_cpu (crc32_backup), calc_crc32); +log_debug ("%s: CRC is wrong: %#x != %#x\n" , +"GUID Partition Table Header" , +le32_to_cpu (crc32_backup), calc_crc32);return -1 ; }
@@ -121,9 +121,8 @@ static int validate_gpt_header(gpt_header *gpt_h, lbaint_t lba,* Check that the my_lba entry points to the LBA that contains the GPT */ if (le64_to_cpu (gpt_h->my_lba) != lba) { -printf ("GPT: my_lba incorrect: %llX != " LBAF "\n" , -le64_to_cpu (gpt_h->my_lba), - lba); +log_debug ("GPT: my_lba incorrect: %llX != " LBAF "\n" , +le64_to_cpu (gpt_h->my_lba), lba);return -1 ; }
@@ -132,13 +131,13 @@ static int validate_gpt_header(gpt_header *gpt_h, lbaint_t lba,* within the disk. */ if (le64_to_cpu (gpt_h->first_usable_lba) > lastlba) { -printf ("GPT: first_usable_lba incorrect: %llX > " LBAF "\n" , -le64_to_cpu (gpt_h->first_usable_lba), lastlba); +log_debug ("GPT: first_usable_lba incorrect: %llX > " LBAF "\n" , +le64_to_cpu (gpt_h->first_usable_lba), lastlba);return -1 ; }if (le64_to_cpu (gpt_h->last_usable_lba) > lastlba) { -printf ("GPT: last_usable_lba incorrect: %llX > " LBAF "\n" , -le64_to_cpu (gpt_h->last_usable_lba), lastlba); +log_debug ("GPT: last_usable_lba incorrect: %llX > " LBAF "\n" , +le64_to_cpu (gpt_h->last_usable_lba), lastlba);return -1 ; }
@@ -159,10 +158,10 @@ static int validate_gpt_entries(gpt_header *gpt_h, gpt_entry *gpt_e) le32_to_cpu(gpt_h->sizeof_partition_entry));if (calc_crc32 !=le32_to_cpu (gpt_h->partition_entry_array_crc32)) { -printf ("%s: 0x%x != 0x%x\n" , -"GUID Partition Table Entry Array CRC is wrong" , -le32_to_cpu (gpt_h->partition_entry_array_crc32), - calc_crc32); +log_debug ("%s: %#x != %#x\n" , +"GUID Partition Table Entry Array CRC is wrong" , +le32_to_cpu (gpt_h->partition_entry_array_crc32), + calc_crc32);return -1 ; }
@@ -274,7 +273,7 @@ int part_get_info_efi(struct blk_desc *dev_desc, int part,if (part >le32_to_cpu (gpt_head->num_partition_entries) || !is_pte_valid (&gpt_pte[part -1 ])) { -log_debug ("*** ERROR: Invalid partition number %d ***\n" , part); +log_debug ("Invalid partition number %d ***\n" , part);free (gpt_pte);return -EPERM ; }
@@ -330,14 +329,15 @@ static int set_protective_mbr(struct blk_desc *dev_desc)/* Setup the Protective MBR */ ALLOC_CACHE_ALIGN_BUFFER_PAD (legacy_mbr, p_mbr,1 , dev_desc->blksz);if (p_mbr ==NULL ) { -printf ("%s: calloc failed!\n" , __func__); -return -1 ; +log_debug ("calloc failed!\n" ); +return -ENOMEM ; }/* Read MBR to backup boot code if it exists */ if (blk_dread (dev_desc,0 ,1 , p_mbr) !=1 ) { -pr_err ("** Can't read from device %d **\n" , dev_desc->devnum); -return -1 ; +log_debug ("** Can't read from device %d **\n" , + dev_desc->devnum); +return -EIO ; }/* Clear all data in MBR except of backed up boot code */
@@ -352,9 +352,8 @@ static int set_protective_mbr(struct blk_desc *dev_desc)/* Write MBR sector to the MMC device */ if (blk_dwrite (dev_desc,0 ,1 , p_mbr) !=1 ) { -printf ("** Can't write to device %d **\n" , - dev_desc->devnum); -return -1 ; +log_debug ("** Can't write to device %d **\n" , dev_desc->devnum); +return -EIO ; }return 0 ;
@@ -404,8 +403,8 @@ int write_gpt_table(struct blk_desc *dev_desc,return 0 ; err: -printf ("** Can't write to device %d **\n" , dev_desc->devnum); -return -1 ; +log_debug ("** Can't write to device %d **\n" , dev_desc->devnum); +return -EIO ; } int gpt_fill_pte(struct blk_desc *dev_desc,
@@ -451,15 +450,15 @@ int gpt_fill_pte(struct blk_desc *dev_desc,*/ if (((start < hdr_end && hdr_start < (start + size)) || (start < pte_end && pte_start < (start + size)))) { -printf ("Partition overlap\n" ); -return -1 ; +log_debug ("Partition overlap\n" ); +return -ENOSPC ; } gpt_e[i].starting_lba =cpu_to_le64 (start);if (offset > (last_usable_lba +1 )) { -printf ("Partitions layout exceds disk size\n" ); -return -1 ; +log_debug ("Partitions layout exceeds disk size\n" ); +return -E2BIG ; }/* partition ending lba */ if ((i == parts -1 ) && (size ==0 ))
@@ -474,9 +473,9 @@ int gpt_fill_pte(struct blk_desc *dev_desc,if (strlen (str_type_guid)) {if (uuid_str_to_bin (str_type_guid, bin_type_guid,UUID_STR_FORMAT_GUID )) { -printf ("Partition no. %d: invalid type guid: %s\n" , - i, str_type_guid); -return -1 ; +log_debug ("Partition no. %d: invalid type guid: %s\n" , + i, str_type_guid); +return -EINVAL ; } }else {/* default partition type GUID */
@@ -494,9 +493,9 @@ int gpt_fill_pte(struct blk_desc *dev_desc, bin_uuid = gpt_e[i].unique_partition_guid.b;if (uuid_str_to_bin (str_uuid, bin_uuid,UUID_STR_FORMAT_GUID )) { -printf ("Partition no. %d: invalid guid: %s\n" , - i, str_uuid); -return -1 ; +log_debug ("Partition no. %d: invalid guid: %s\n" , + i, str_uuid); +return -EINVAL ; }#endif
@@ -608,8 +607,8 @@ int gpt_restore(struct blk_desc *dev_desc, char *str_disk_guid, size =PAD_TO_BLOCKSIZE (sizeof (gpt_header), dev_desc); gpt_h =malloc_cache_aligned (size);if (gpt_h ==NULL ) { -printf ("%s: calloc failed!\n" , __func__); -return -1 ; +log_debug ("calloc failed!\n" ); +return -ENOMEM ; }memset (gpt_h,0 , size);
@@ -617,9 +616,9 @@ int gpt_restore(struct blk_desc *dev_desc, char *str_disk_guid, dev_desc); gpt_e =malloc_cache_aligned (size);if (gpt_e ==NULL ) { -printf ("%s: calloc failed!\n" , __func__); +log_debug ("calloc failed!\n" );free (gpt_h); -return -1 ; +return -ENOMEM ; }memset (gpt_e,0 , size);
@@ -675,8 +674,7 @@ int gpt_verify_headers(struct blk_desc *dev_desc, gpt_header *gpt_head,if (is_gpt_valid (dev_desc,GPT_PRIMARY_PARTITION_TABLE_LBA , gpt_head, gpt_pte) !=1 ) { -printf ("%s: *** ERROR: Invalid GPT ***\n" , - __func__); +log_debug ("Invalid GPT ***\n" );return -1 ; }
@@ -687,15 +685,13 @@ int gpt_verify_headers(struct blk_desc *dev_desc, gpt_header *gpt_head,* Check that the alternate_lba entry points to the last LBA */ if (le64_to_cpu (gpt_head->alternate_lba) != (dev_desc->lba -1 )) { -printf ("%s: *** ERROR: Misplaced Backup GPT ***\n" , - __func__); +log_debug ("Misplaced Backup GPT ***\n" );return -1 ; }if (is_gpt_valid (dev_desc, (dev_desc->lba -1 ), gpt_head, gpt_pte) !=1 ) { -printf ("%s: *** ERROR: Invalid Backup GPT ***\n" , - __func__); +log_debug ("Invalid Backup GPT ***\n" );return -1 ; }
@@ -913,8 +909,8 @@ int write_mbr_and_gpt_partitions(struct blk_desc *dev_desc, void *buf) lba =0 ;/* MBR is always at 0 */ cnt =1 ;/* MBR (1 block) */ if (blk_dwrite (dev_desc, lba, cnt, buf) != cnt) { -printf ("%s: failed writing '%s' (%d blks at 0x" LBAF ")\n" , - __func__,"MBR" , cnt, lba); +log_debug ("failed writing '%s' (%d blks at 0x" LBAF ")\n" , +"MBR" , cnt, lba);return 1 ; }
@@ -922,16 +918,16 @@ int write_mbr_and_gpt_partitions(struct blk_desc *dev_desc, void *buf) lba =GPT_PRIMARY_PARTITION_TABLE_LBA ; cnt =1 ;/* GPT Header (1 block) */ if (blk_dwrite (dev_desc, lba, cnt, gpt_h) != cnt) { -printf ("%s: failed writing '%s' (%d blks at 0x" LBAF ")\n" , - __func__,"Primary GPT Header" , cnt, lba); +log_debug ("failed writing '%s' (%d blks at 0x" LBAF ")\n" , +"Primary GPT Header" , cnt, lba);return 1 ; } lba =le64_to_cpu (gpt_h->partition_entry_lba); cnt = gpt_e_blk_cnt;if (blk_dwrite (dev_desc, lba, cnt, gpt_e) != cnt) { -printf ("%s: failed writing '%s' (%d blks at 0x" LBAF ")\n" , - __func__,"Primary GPT Entries" , cnt, lba); +log_debug ("failed writing '%s' (%d blks at 0x" LBAF ")\n" , +"Primary GPT Entries" , cnt, lba);return 1 ; }
@@ -941,16 +937,16 @@ int write_mbr_and_gpt_partitions(struct blk_desc *dev_desc, void *buf) lba =le64_to_cpu (gpt_h->partition_entry_lba); cnt = gpt_e_blk_cnt;if (blk_dwrite (dev_desc, lba, cnt, gpt_e) != cnt) { -printf ("%s: failed writing '%s' (%d blks at 0x" LBAF ")\n" , - __func__,"Backup GPT Entries" , cnt, lba); +log_debug ("failed writing '%s' (%d blks at 0x" LBAF ")\n" , +"Backup GPT Entries" , cnt, lba);return 1 ; } lba =le64_to_cpu (gpt_h->my_lba); cnt =1 ;/* GPT Header (1 block) */ if (blk_dwrite (dev_desc, lba, cnt, gpt_h) != cnt) { -printf ("%s: failed writing '%s' (%d blks at 0x" LBAF ")\n" , - __func__,"Backup GPT Header" , cnt, lba); +log_debug ("failed writing '%s' (%d blks at 0x" LBAF ")\n" , +"Backup GPT Header" , cnt, lba);return 1 ; }
@@ -1017,7 +1013,7 @@ static int is_gpt_valid(struct blk_desc *dev_desc, u64 lba, {/* Confirm valid arguments prior to allocation. */ if (!dev_desc || !pgpt_head) { -printf ("%s: Invalid Argument(s)\n" , __func__); +log_debug ("Invalid Argument(s)\n" );return 0 ; }
@@ -1025,19 +1021,19 @@ static int is_gpt_valid(struct blk_desc *dev_desc, u64 lba,/* Read MBR Header from device */ if (blk_dread (dev_desc,0 ,1 , (ulong *)mbr) !=1 ) { -printf ("*** ERROR: Can't read MBR header ***\n" ); +log_debug ("Can't read MBR header ***\n" );return 0 ; }/* Read GPT Header from device */ if (blk_dread (dev_desc, (lbaint_t )lba,1 , pgpt_head) !=1 ) { -printf ("*** ERROR: Can't read GPT header ***\n" ); +log_debug ("Can't read GPT header ***\n" );return 0 ; }/* Invalid but nothing to yell about. */ if (le64_to_cpu (pgpt_head->signature) ==GPT_HEADER_CHROMEOS_IGNORE ) { -debug ("ChromeOS 'IGNOREME' GPT header found and ignored\n" ); +log_debug ("ChromeOS 'IGNOREME' GPT header found and ignored\n" );return 2 ; }
@@ -1089,17 +1085,15 @@ static int find_valid_gpt(struct blk_desc *dev_desc, gpt_header *gpt_head,if (r !=1 ) {if (r !=2 ) -printf ("%s: *** ERROR: Invalid GPT ***\n" , __func__); +log_debug ("Invalid GPT ***\n" );if (is_gpt_valid (dev_desc, (dev_desc->lba -1 ), gpt_head, pgpt_pte) !=1 ) { -printf ("%s: *** ERROR: Invalid Backup GPT ***\n" , - __func__); +log_debug ("Invalid Backup GPT ***\n" );return 0 ; }if (r !=2 ) -printf ("%s: *** Using Backup GPT ***\n" , - __func__); +log_debug ("*** Using Backup GPT ***\n" ); }return 1 ; }
@@ -1121,17 +1115,17 @@ static gpt_entry *alloc_read_gpt_entries(struct blk_desc *dev_desc,gpt_entry *pte =NULL ;if (!dev_desc || !pgpt_head) { -printf ("%s: Invalid Argument(s)\n" , __func__); +log_debug ("Invalid Argument(s)\n" );return NULL ; } count =le32_to_cpu (pgpt_head->num_partition_entries) *le32_to_cpu (pgpt_head->sizeof_partition_entry); -debug ("%s: count = %u * %u = %lu\n" , __func__, - (u32 )le32_to_cpu (pgpt_head->num_partition_entries), - (u32 )le32_to_cpu (pgpt_head->sizeof_partition_entry), - (ulong )count); +log_debug ("count = %u * %u = %lu\n" , + (u32 )le32_to_cpu (pgpt_head->num_partition_entries), + (u32 )le32_to_cpu (pgpt_head->sizeof_partition_entry), + (ulong )count);/* Allocate memory for PTE, remember to FREE */ if (count !=0 ) {
@@ -1140,8 +1134,8 @@ static gpt_entry *alloc_read_gpt_entries(struct blk_desc *dev_desc, }if (count ==0 || pte ==NULL ) { -printf ("%s: ERROR: Can't allocate %#lX bytes for GPT Entries\n" , - __func__, (ulong )count); +log_debug ("ERROR: Can't allocate %#lX bytes for GPT Entries\n" , + (ulong )count);return NULL ; }
@@ -1149,7 +1143,7 @@ static gpt_entry *alloc_read_gpt_entries(struct blk_desc *dev_desc, blk =le64_to_cpu (pgpt_head->partition_entry_lba); blk_cnt =BLOCK_CNT (count, dev_desc);if (blk_dread (dev_desc, blk, (lbaint_t )blk_cnt, pte) != blk_cnt) { -printf ("*** ERROR: Can't read GPT Entries ***\n" ); +log_debug ("Can't read GPT Entries ***\n" );free (pte);return NULL ; }
@@ -1167,7 +1161,7 @@ static int is_pte_valid(gpt_entry * pte)efi_guid_t unused_guid;if (!pte) { -printf ("%s: Invalid Argument(s)\n" , __func__); +log_debug ("Invalid Argument(s)\n" );return 0 ; }
@@ -1179,8 +1173,8 @@ static int is_pte_valid(gpt_entry * pte)if (memcmp (pte->partition_type_guid.b, unused_guid.b,sizeof (unused_guid.b)) ==0 ) { -debug ("%s: Found an unused PTE GUID at 0x%08X\n" , __func__, - (unsigned int )(uintptr_t )pte); +log_debug ("Found an unused PTE GUID at 0x%08X\n" , + (unsigned int )(uintptr_t )pte);return 0 ; }else {
Signature · 1 line
2.38.0.rc1.362.ged0d419d3c-goog
Re: [PATCH v2 04/45] disk: Drop debug messages in part_efi
Quoted 106 lines · Simon Glass
This is monstrously verbose when something goes wrong. It should work by recording the problem and reporting it (once) at the command level. At present it sometimes outputs hundreds of lines of CRC mismatches.
For now, just silence it all.
GUID Partition Table Entry Array CRC is wrong:
0xaebfebf2!=0xc916f712
find_valid_gpt: *** ERROR: Invalid GPT ***
find_valid_gpt: *** Using Backup GPT ***
GUID Partition Table Entry Array CRC is wrong:0xaebfebf2!=0xc916f712
find_valid_gpt: *** ERROR: Invalid GPT ***
find_valid_gpt: *** Using Backup GPT ***
...While we are error, remove the '*** ERROR: ' text as it is already clear that this is unexpected
Signed-off-by Simon Glass <[email protected]>Suggested-by Heinrich Schuchardt <[email protected]>---
Changes in v2:
- Drop the '*** ERROR: ' text as it is already clear that it is unexpected
- Fix exceds typodisk/part_efi.c | 150 +++++++++++++++++++++++------------------------- 1 file changed, 72 insertions(+), 78 deletions(-)disk/part_efi.c +17
-18@@ -94,10 +94,10 @@ static int validate_gpt_header(gpt_header *gpt_h, lbaint_t lba,/* Check the GPT header signature */ if (le64_to_cpu (gpt_h->signature) !=GPT_HEADER_SIGNATURE_UBOOT ) { -printf ("%s signature is wrong: 0x%llX != 0x%llX\n" , -"GUID Partition Table Header" , -le64_to_cpu (gpt_h->signature), -GPT_HEADER_SIGNATURE_UBOOT ); +log_debug ("%s signature is wrong: %#llX != %#llX\n" , +"GUID Partition Table Header" , +le64_to_cpu (gpt_h->signature), +GPT_HEADER_SIGNATURE_UBOOT );return -1 ; }@@ -111,9 +111,9 @@ static int validate_gpt_header(gpt_header *gpt_h, lbaint_t lba,memcpy (&gpt_h->header_crc32, &crc32_backup,sizeof (crc32_backup));if (calc_crc32 !=le32_to_cpu (crc32_backup)) { -printf ("%s CRC is wrong: 0x%x != 0x%x\n" , -"GUID Partition Table Header" , -le32_to_cpu (crc32_backup), calc_crc32); +log_debug ("%s: CRC is wrong: %#x != %#x\n" , +"GUID Partition Table Header" , +le32_to_cpu (crc32_backup), calc_crc32);return -1 ; }@@ -121,9 +121,8 @@ static int validate_gpt_header(gpt_header *gpt_h, lbaint_t lba,* Check that the my_lba entry points to the LBA that contains the GPT */ if (le64_to_cpu (gpt_h->my_lba) != lba) { -printf ("GPT: my_lba incorrect: %llX != " LBAF "\n" , -le64_to_cpu (gpt_h->my_lba), - lba); +log_debug ("GPT: my_lba incorrect: %llX != " LBAF "\n" , +le64_to_cpu (gpt_h->my_lba), lba);return -1 ; }@@ -132,13 +131,13 @@ static int validate_gpt_header(gpt_header *gpt_h, lbaint_t lba,* within the disk. */ if (le64_to_cpu (gpt_h->first_usable_lba) > lastlba) { -printf ("GPT: first_usable_lba incorrect: %llX > " LBAF "\n" , -le64_to_cpu (gpt_h->first_usable_lba), lastlba); +log_debug ("GPT: first_usable_lba incorrect: %llX > " LBAF "\n" , +le64_to_cpu (gpt_h->first_usable_lba), lastlba);return -1 ; }if (le64_to_cpu (gpt_h->last_usable_lba) > lastlba) { -printf ("GPT: last_usable_lba incorrect: %llX > " LBAF "\n" , -le64_to_cpu (gpt_h->last_usable_lba), lastlba); +log_debug ("GPT: last_usable_lba incorrect: %llX > " LBAF "\n" , +le64_to_cpu (gpt_h->last_usable_lba), lastlba);return -1 ; }@@ -159,10 +158,10 @@ static int validate_gpt_entries(gpt_header *gpt_h, gpt_entry *gpt_e) le32_to_cpu(gpt_h->sizeof_partition_entry));if (calc_crc32 !=le32_to_cpu (gpt_h->partition_entry_array_crc32)) { -printf ("%s: 0x%x != 0x%x\n" , -"GUID Partition Table Entry Array CRC is wrong" , -le32_to_cpu (gpt_h->partition_entry_array_crc32), - calc_crc32); +log_debug ("%s: %#x != %#x\n" , +"GUID Partition Table Entry Array CRC is wrong" , +le32_to_cpu (gpt_h->partition_entry_array_crc32), + calc_crc32);return -1 ; }
disk/part_efi.c int part_get_info_efi(struct blk_desc *dev_desc, int part, · line 276
Quoted 5 lines
disk/part_efi.c +1
-1@@ -274,7 +273,7 @@ int part_get_info_efi(struct blk_desc *dev_desc, int part,if (part >le32_to_cpu (gpt_head->num_partition_entries) || !is_pte_valid (&gpt_pte[part -1 ])) { -log_debug ("*** ERROR: Invalid partition number %d ***\n" , part); +log_debug ("Invalid partition number %d ***\n" , part);
Please remove trailing *** too in multiple places.
Quoted 116 lines
disk/part_efi.c +23
-23free (gpt_pte);return -EPERM ; }@@ -330,14 +329,15 @@ static int set_protective_mbr(struct blk_desc *dev_desc)/* Setup the Protective MBR */ ALLOC_CACHE_ALIGN_BUFFER_PAD (legacy_mbr, p_mbr,1 , dev_desc->blksz);if (p_mbr ==NULL ) { -printf ("%s: calloc failed!\n" , __func__); -return -1 ; +log_debug ("calloc failed!\n" ); +return -ENOMEM ; }/* Read MBR to backup boot code if it exists */ if (blk_dread (dev_desc,0 ,1 , p_mbr) !=1 ) { -pr_err ("** Can't read from device %d **\n" , dev_desc->devnum); -return -1 ; +log_debug ("** Can't read from device %d **\n" , + dev_desc->devnum); +return -EIO ; }/* Clear all data in MBR except of backed up boot code */ @@ -352,9 +352,8 @@ static int set_protective_mbr(struct blk_desc *dev_desc)/* Write MBR sector to the MMC device */ if (blk_dwrite (dev_desc,0 ,1 , p_mbr) !=1 ) { -printf ("** Can't write to device %d **\n" , - dev_desc->devnum); -return -1 ; +log_debug ("** Can't write to device %d **\n" , dev_desc->devnum); +return -EIO ; }return 0 ;@@ -404,8 +403,8 @@ int write_gpt_table(struct blk_desc *dev_desc,return 0 ; err: -printf ("** Can't write to device %d **\n" , dev_desc->devnum); -return -1 ; +log_debug ("** Can't write to device %d **\n" , dev_desc->devnum); +return -EIO ; } int gpt_fill_pte(struct blk_desc *dev_desc,@@ -451,15 +450,15 @@ int gpt_fill_pte(struct blk_desc *dev_desc,*/ if (((start < hdr_end && hdr_start < (start + size)) || (start < pte_end && pte_start < (start + size)))) { -printf ("Partition overlap\n" ); -return -1 ; +log_debug ("Partition overlap\n" ); +return -ENOSPC ; } gpt_e[i].starting_lba =cpu_to_le64 (start);if (offset > (last_usable_lba +1 )) { -printf ("Partitions layout exceds disk size\n" ); -return -1 ; +log_debug ("Partitions layout exceeds disk size\n" ); +return -E2BIG ; }/* partition ending lba */ if ((i == parts -1 ) && (size ==0 ))@@ -474,9 +473,9 @@ int gpt_fill_pte(struct blk_desc *dev_desc,if (strlen (str_type_guid)) {if (uuid_str_to_bin (str_type_guid, bin_type_guid,UUID_STR_FORMAT_GUID )) { -printf ("Partition no. %d: invalid type guid: %s\n" , - i, str_type_guid); -return -1 ; +log_debug ("Partition no. %d: invalid type guid: %s\n" , + i, str_type_guid); +return -EINVAL ; } }else {/* default partition type GUID */ @@ -494,9 +493,9 @@ int gpt_fill_pte(struct blk_desc *dev_desc, bin_uuid = gpt_e[i].unique_partition_guid.b;if (uuid_str_to_bin (str_uuid, bin_uuid,UUID_STR_FORMAT_GUID )) { -printf ("Partition no. %d: invalid guid: %s\n" , - i, str_uuid); -return -1 ; +log_debug ("Partition no. %d: invalid guid: %s\n" , + i, str_uuid); +return -EINVAL ; }#endif @@ -608,8 +607,8 @@ int gpt_restore(struct blk_desc *dev_desc, char *str_disk_guid, size =PAD_TO_BLOCKSIZE (sizeof (gpt_header), dev_desc); gpt_h =malloc_cache_aligned (size);if (gpt_h ==NULL ) { -printf ("%s: calloc failed!\n" , __func__); -return -1 ; +log_debug ("calloc failed!\n" ); +return -ENOMEM ; }memset (gpt_h,0 , size);@@ -617,9 +616,9 @@ int gpt_restore(struct blk_desc *dev_desc, char *str_disk_guid, dev_desc); gpt_e =malloc_cache_aligned (size);if (gpt_e ==NULL ) { -printf ("%s: calloc failed!\n" , __func__); +log_debug ("calloc failed!\n" );free (gpt_h); -return -1 ; +return -ENOMEM ; }memset (gpt_e,0 , size);
disk/part_efi.c int gpt_verify_headers(struct blk_desc *dev_desc, gpt_header *gpt_head, · line 677
Quoted 6 lines
disk/part_efi.c +1
-2@@ -675,8 +674,7 @@ int gpt_verify_headers(struct blk_desc *dev_desc, gpt_header *gpt_head,if (is_gpt_valid (dev_desc,GPT_PRIMARY_PARTITION_TABLE_LBA , gpt_head, gpt_pte) !=1 ) { -printf ("%s: *** ERROR: Invalid GPT ***\n" , - __func__); +log_debug ("Invalid GPT ***\n" );
ditto
disk/part_efi.c int gpt_verify_headers(struct blk_desc *dev_desc, gpt_header *gpt_head, · line 688
Quoted 10 lines
disk/part_efi.c +1
-2return -1 ; }@@ -687,15 +685,13 @@ int gpt_verify_headers(struct blk_desc *dev_desc, gpt_header *gpt_head,* Check that the alternate_lba entry points to the last LBA */ if (le64_to_cpu (gpt_head->alternate_lba) != (dev_desc->lba -1 )) { -printf ("%s: *** ERROR: Misplaced Backup GPT ***\n" , - __func__); +log_debug ("Misplaced Backup GPT ***\n" );
ditto
disk/part_efi.c int gpt_verify_headers(struct blk_desc *dev_desc, gpt_header *gpt_head, · line 697
Quoted 6 lines
disk/part_efi.c +0
-1return -1 ; }if (is_gpt_valid (dev_desc, (dev_desc->lba -1 ), gpt_head, gpt_pte) !=1 ) { - printf("%s: *** ERROR: Invalid Backup GPT ***\n",
ditto
Quoted 68 lines
disk/part_efi.c +12
-12- __func__); +log_debug ("Invalid Backup GPT ***\n" );return -1 ; }@@ -913,8 +909,8 @@ int write_mbr_and_gpt_partitions(struct blk_desc *dev_desc, void *buf) lba =0 ;/* MBR is always at 0 */ cnt =1 ;/* MBR (1 block) */ if (blk_dwrite (dev_desc, lba, cnt, buf) != cnt) { -printf ("%s: failed writing '%s' (%d blks at 0x" LBAF ")\n" , - __func__,"MBR" , cnt, lba); +log_debug ("failed writing '%s' (%d blks at 0x" LBAF ")\n" , +"MBR" , cnt, lba);return 1 ; }@@ -922,16 +918,16 @@ int write_mbr_and_gpt_partitions(struct blk_desc *dev_desc, void *buf) lba =GPT_PRIMARY_PARTITION_TABLE_LBA ; cnt =1 ;/* GPT Header (1 block) */ if (blk_dwrite (dev_desc, lba, cnt, gpt_h) != cnt) { -printf ("%s: failed writing '%s' (%d blks at 0x" LBAF ")\n" , - __func__,"Primary GPT Header" , cnt, lba); +log_debug ("failed writing '%s' (%d blks at 0x" LBAF ")\n" , +"Primary GPT Header" , cnt, lba);return 1 ; } lba =le64_to_cpu (gpt_h->partition_entry_lba); cnt = gpt_e_blk_cnt;if (blk_dwrite (dev_desc, lba, cnt, gpt_e) != cnt) { -printf ("%s: failed writing '%s' (%d blks at 0x" LBAF ")\n" , - __func__,"Primary GPT Entries" , cnt, lba); +log_debug ("failed writing '%s' (%d blks at 0x" LBAF ")\n" , +"Primary GPT Entries" , cnt, lba);return 1 ; }@@ -941,16 +937,16 @@ int write_mbr_and_gpt_partitions(struct blk_desc *dev_desc, void *buf) lba =le64_to_cpu (gpt_h->partition_entry_lba); cnt = gpt_e_blk_cnt;if (blk_dwrite (dev_desc, lba, cnt, gpt_e) != cnt) { -printf ("%s: failed writing '%s' (%d blks at 0x" LBAF ")\n" , - __func__,"Backup GPT Entries" , cnt, lba); +log_debug ("failed writing '%s' (%d blks at 0x" LBAF ")\n" , +"Backup GPT Entries" , cnt, lba);return 1 ; } lba =le64_to_cpu (gpt_h->my_lba); cnt =1 ;/* GPT Header (1 block) */ if (blk_dwrite (dev_desc, lba, cnt, gpt_h) != cnt) { -printf ("%s: failed writing '%s' (%d blks at 0x" LBAF ")\n" , - __func__,"Backup GPT Header" , cnt, lba); +log_debug ("failed writing '%s' (%d blks at 0x" LBAF ")\n" , +"Backup GPT Header" , cnt, lba);return 1 ; }@@ -1017,7 +1013,7 @@ static int is_gpt_valid(struct blk_desc *dev_desc, u64 lba, {/* Confirm valid arguments prior to allocation. */ if (!dev_desc || !pgpt_head) { -printf ("%s: Invalid Argument(s)\n" , __func__); +log_debug ("Invalid Argument(s)\n" );return 0 ; }
disk/part_efi.c static int is_gpt_valid(struct blk_desc *dev_desc, u64 lba, · line 1026
Quoted 7 lines
disk/part_efi.c +1
-1@@ -1025,19 +1021,19 @@ static int is_gpt_valid(struct blk_desc *dev_desc, u64 lba,/* Read MBR Header from device */ if (blk_dread (dev_desc,0 ,1 , (ulong *)mbr) !=1 ) { -printf ("*** ERROR: Can't read MBR header ***\n" ); +log_debug ("Can't read MBR header ***\n" );return 0 ; }
ditto
disk/part_efi.c static int is_gpt_valid(struct blk_desc *dev_desc, u64 lba, · line 1030
Quoted 5 lines
disk/part_efi.c +1
-1/* Read GPT Header from device */ if (blk_dread (dev_desc, (lbaint_t )lba,1 , pgpt_head) !=1 ) { -printf ("*** ERROR: Can't read GPT header ***\n" ); +log_debug ("Can't read GPT header ***\n" );
ditto
and so forth
Best regards
Heinrich
Quoted 94 lines
disk/part_efi.c +15
-17return 0 ; }/* Invalid but nothing to yell about. */ if (le64_to_cpu (pgpt_head->signature) ==GPT_HEADER_CHROMEOS_IGNORE ) { -debug ("ChromeOS 'IGNOREME' GPT header found and ignored\n" ); +log_debug ("ChromeOS 'IGNOREME' GPT header found and ignored\n" );return 2 ; }@@ -1089,17 +1085,15 @@ static int find_valid_gpt(struct blk_desc *dev_desc, gpt_header *gpt_head,if (r !=1 ) {if (r !=2 ) -printf ("%s: *** ERROR: Invalid GPT ***\n" , __func__); +log_debug ("Invalid GPT ***\n" );if (is_gpt_valid (dev_desc, (dev_desc->lba -1 ), gpt_head, pgpt_pte) !=1 ) { -printf ("%s: *** ERROR: Invalid Backup GPT ***\n" , - __func__); +log_debug ("Invalid Backup GPT ***\n" );return 0 ; }if (r !=2 ) -printf ("%s: *** Using Backup GPT ***\n" , - __func__); +log_debug ("*** Using Backup GPT ***\n" ); }return 1 ; }@@ -1121,17 +1115,17 @@ static gpt_entry *alloc_read_gpt_entries(struct blk_desc *dev_desc,gpt_entry *pte =NULL ;if (!dev_desc || !pgpt_head) { -printf ("%s: Invalid Argument(s)\n" , __func__); +log_debug ("Invalid Argument(s)\n" );return NULL ; } count =le32_to_cpu (pgpt_head->num_partition_entries) *le32_to_cpu (pgpt_head->sizeof_partition_entry); -debug ("%s: count = %u * %u = %lu\n" , __func__, - (u32 )le32_to_cpu (pgpt_head->num_partition_entries), - (u32 )le32_to_cpu (pgpt_head->sizeof_partition_entry), - (ulong )count); +log_debug ("count = %u * %u = %lu\n" , + (u32 )le32_to_cpu (pgpt_head->num_partition_entries), + (u32 )le32_to_cpu (pgpt_head->sizeof_partition_entry), + (ulong )count);/* Allocate memory for PTE, remember to FREE */ if (count !=0 ) {@@ -1140,8 +1134,8 @@ static gpt_entry *alloc_read_gpt_entries(struct blk_desc *dev_desc, }if (count ==0 || pte ==NULL ) { -printf ("%s: ERROR: Can't allocate %#lX bytes for GPT Entries\n" , - __func__, (ulong )count); +log_debug ("ERROR: Can't allocate %#lX bytes for GPT Entries\n" , + (ulong )count);return NULL ; }@@ -1149,7 +1143,7 @@ static gpt_entry *alloc_read_gpt_entries(struct blk_desc *dev_desc, blk =le64_to_cpu (pgpt_head->partition_entry_lba); blk_cnt =BLOCK_CNT (count, dev_desc);if (blk_dread (dev_desc, blk, (lbaint_t )blk_cnt, pte) != blk_cnt) { -printf ("*** ERROR: Can't read GPT Entries ***\n" ); +log_debug ("Can't read GPT Entries ***\n" );free (pte);return NULL ; }@@ -1167,7 +1161,7 @@ static int is_pte_valid(gpt_entry * pte)efi_guid_t unused_guid;if (!pte) { -printf ("%s: Invalid Argument(s)\n" , __func__); +log_debug ("Invalid Argument(s)\n" );return 0 ; }@@ -1179,8 +1173,8 @@ static int is_pte_valid(gpt_entry * pte)if (memcmp (pte->partition_type_guid.b, unused_guid.b,sizeof (unused_guid.b)) ==0 ) { -debug ("%s: Found an unused PTE GUID at 0x%08X\n" , __func__, - (unsigned int )(uintptr_t )pte); +log_debug ("Found an unused PTE GUID at 0x%08X\n" , + (unsigned int )(uintptr_t )pte);return 0 ; }else {
PATCH v2 5/45 spl: Use binman suffix allow symbols of any SPL etype
In reply to Simon GlassAt present we use symbols for the u-boot-spl entry, but this is not always what we want. For example, sandbox actually jumps to a u-boot-spl-elf entry, since sandbox executables are ELF files.
We already handle this with U-Boot by using the '-any' suffix. Add it for SPL as well.
---
(no changes since v1)
common/spl/spl.c | 16 ++++++++-------- include/spl.h | 8 ++++---- 2 files changed, 12 insertions(+), 12 deletions(-)
common/spl/spl.c +8 -8
@@ -59,13 +59,13 @@ binman_sym_declare(ulong, u_boot_any, image_pos);binman_sym_declare (ulong, u_boot_any, size);#ifdef CONFIG_TPL -binman_sym_declare (ulong, u_boot_spl, image_pos); -binman_sym_declare (ulong, u_boot_spl, size); +binman_sym_declare (ulong, u_boot_spl_any, image_pos); +binman_sym_declare (ulong, u_boot_spl_any, size);#endif #ifdef CONFIG_VPL -binman_sym_declare (ulong, u_boot_vpl, image_pos); -binman_sym_declare (ulong, u_boot_vpl, size); +binman_sym_declare (ulong, u_boot_vpl_any, image_pos); +binman_sym_declare (ulong, u_boot_vpl_any, size);#endif #endif /* BINMAN_UBOOT_SYMBOLS */
@@ -164,10 +164,10 @@ ulong spl_get_image_pos(void)#ifdef CONFIG_VPL if (spl_next_phase () ==PHASE_VPL ) -return binman_sym (ulong, u_boot_vpl, image_pos); +return binman_sym (ulong, u_boot_vpl_any, image_pos);#endif return spl_next_phase () ==PHASE_SPL ? -binman_sym (ulong, u_boot_spl, image_pos) : +binman_sym (ulong, u_boot_spl_any, image_pos) :binman_sym (ulong, u_boot_any, image_pos); }
@@ -178,10 +178,10 @@ ulong spl_get_image_size(void)#ifdef CONFIG_VPL if (spl_next_phase () ==PHASE_VPL ) -return binman_sym (ulong, u_boot_vpl, size); +return binman_sym (ulong, u_boot_vpl_any, size);#endif return spl_next_phase () ==PHASE_SPL ? -binman_sym (ulong, u_boot_spl, size) : +binman_sym (ulong, u_boot_spl_any, size) :binman_sym (ulong, u_boot_any, size); }
include/spl.h +4 -4
@@ -286,10 +286,10 @@ struct spl_load_info {*/ binman_sym_extern (ulong, u_boot_any, image_pos);binman_sym_extern (ulong, u_boot_any, size); -binman_sym_extern (ulong, u_boot_spl, image_pos); -binman_sym_extern (ulong, u_boot_spl, size); -binman_sym_extern (ulong, u_boot_vpl, image_pos); -binman_sym_extern (ulong, u_boot_vpl, size); +binman_sym_extern (ulong, u_boot_spl_any, image_pos); +binman_sym_extern (ulong, u_boot_spl_any, size); +binman_sym_extern (ulong, u_boot_vpl_any, image_pos); +binman_sym_extern (ulong, u_boot_vpl_any, size);/** * spl_get_image_pos() - get the image position of the next phase
Signature · 1 line
2.38.0.rc1.362.ged0d419d3c-goog
PATCH v2 6/45 spl: Refactor controls for console output
In reply to Simon GlassThe expression in boot_from_devices() is fairly long and appears to be an artefact from before we could easily call printf(...) and have the call be nop'd out. So update it to just check CONFIG_SILENT_CONSOLE.
---
(no changes since v1)
common/spl/spl.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-)
common/spl/spl.c +1 -3
@@ -703,9 +703,7 @@ static int boot_from_devices(struct spl_image_info *spl_image,if (CONFIG_IS_ENABLED (SHOW_ERRORS )) ret = -ENXIO ; loader =spl_ll_find_loader (bootdev); -if (CONFIG_IS_ENABLED (SERIAL ) && -CONFIG_IS_ENABLED (LIBCOMMON_SUPPORT ) && - !IS_ENABLED (CONFIG_SILENT_CONSOLE )) { +if (!IS_ENABLED (CONFIG_SILENT_CONSOLE )) {if (loader)printf ("Trying to boot from %s\n" ,spl_loader_name (loader));
Signature · 1 line
2.38.0.rc1.362.ged0d419d3c-goog
PATCH v2 7/45 spl: Add a separate silence option for SPL
In reply to Simon GlassAdd an option to allow silent console to be controlled separately in SPL, so that boot progress can be shown. Disable it by default for sandbox since it is useful to see what is going on there.
---
Changes in v2:
- Refactor based on a change to the earlier patch in spl.c
common/Kconfig | 22 ++++++++++++++++++++++ common/spl/spl.c | 2 +- 2 files changed, 23 insertions(+), 1 deletion(-)
common/Kconfig +22 -0
@@ -113,6 +113,28 @@ config SILENT_CONSOLE GD_FLG_SILENT flag is set. Changing the environment variable later will update the flag. +config SPL_SILENT_CONSOLE + bool "Use a silent console in SPL" + default y if SILENT_CONSOLE && !SANDBOX + help + This selects a silent console in SPL. When enabled it drops some + output messages. The GD_FLG_SILENT flag is not used in SPL so there + is no run-time control of console messages in SPL. + + Future work may allow the SPL console to be silenced completely using + this option. + +config TPL_SILENT_CONSOLE + bool "Use a silent console in TPL" + default y if SILENT_CONSOLE && !SANDBOX + help + This selects a silent console in TPL. When enabled it drops some + output messages. The GD_FLG_SILENT flag is not used in TPL so there + is no run-time control of console messages in TPL. + + Future work may allow the TPL console to be silenced completely using + this option. + config SILENT_U_BOOT_ONLY bool "Only silence the U-Boot console" depends on SILENT_CONSOLE
common/spl/spl.c +1 -1
@@ -703,7 +703,7 @@ static int boot_from_devices(struct spl_image_info *spl_image,if (CONFIG_IS_ENABLED (SHOW_ERRORS )) ret = -ENXIO ; loader =spl_ll_find_loader (bootdev); -if (!IS_ENABLED (CONFIG_SILENT_CONSOLE )) { +if (!CONFIG_IS_ENABLED (SILENT_CONSOLE )) {if (loader)printf ("Trying to boot from %s\n" ,spl_loader_name (loader));
Signature · 1 line
2.38.0.rc1.362.ged0d419d3c-goog
PATCH v2 8/45 binman: Allow obtaining a symbol value
In reply to Simon GlassProvide a function to obtain the integer value of an ELF symbol. This will be used
---
(no changes since v1)
tools/binman/elf.py | 53 ++++++++++++++++++++++++++++++++++++++------- 1 file changed, 45 insertions(+), 8 deletions(-)
tools/binman/elf.py +45 -8
@@ -188,6 +188,28 @@ def GetSymbolAddress(fname, sym_name): return None return sym.address +def GetPackString(sym, msg): + """Get the struct.pack/unpack string to use with a given symbol + + Args: + sym (Symbol): Symbol to check. Only the size member is checked + @msg (str): String which indicates the entry being processed, used for + errors + + Returns: + str: struct string to use, .e.g. '<I' + + Raises: + ValueError: Symbol has an unexpected size + """ + if sym.size == 4: + return '<I' + elif sym.size == 8: + return '<Q' + else: + raise ValueError('%s has size %d: only 4 and 8 are supported' % + (msg, sym.size)) + def LookupAndWriteSymbols(elf_fname, entry, section): """Replace all symbols in an entry with their correct values
@@ -218,14 +240,7 @@ def LookupAndWriteSymbols(elf_fname, entry, section): raise ValueError('%s has offset %x (size %x) but the contents ' 'size is %x' % (entry.GetPath(), offset, sym.size, entry.contents_size)) - if sym.size == 4: - pack_string = '<I' - elif sym.size == 8: - pack_string = '<Q' - else: - raise ValueError('%s has size %d: only 4 and 8 are supported' % - (msg, sym.size)) - + pack_string = GetPackString(sym, msg) if name == '_binman_sym_magic': value = BINMAN_SYM_MAGIC_VALUE else:
@@ -241,6 +256,28 @@ def LookupAndWriteSymbols(elf_fname, entry, section): entry.data = (entry.data[:offset] + value_bytes + entry.data[offset + sym.size:]) +def GetSymbolValue(sym, data, msg): + """Get the value of a symbol + + This can only be used on symbols with an integer value. + + Args: + sym (Symbol): Symbol to check + data (butes): Data for the ELF file - the symbol data appears at offset + sym.offset + @msg (str): String which indicates the entry being processed, used for + errors + + Returns: + int: Value of the symbol + + Raises: + ValueError: Symbol has an unexpected size + """ + pack_string = GetPackString(sym, msg) + value = struct.unpack(pack_string, data[sym.offset:sym.offset + sym.size]) + return value[0] + def MakeElf(elf_fname, text, data): """Make an elf file with the given data in a single section
Signature · 1 line
2.38.0.rc1.362.ged0d419d3c-goog
PATCH v2 9/45 binman: Split out looking up a symbol into a function
In reply to Simon GlassMove this code into its own function so it can be used from tests.
---
(no changes since v1)
tools/binman/etype/section.py | 60 ++++++++++++++++++++++++++--------- 1 file changed, 45 insertions(+), 15 deletions(-)
tools/binman/etype/section.py +45 -15
@@ -510,6 +510,50 @@ class Entry_section(Entry): source_entry.Raise("Cannot find entry for node '%s'" % node.name) return entry.GetData(required) + def LookupEntry(self, entries, sym_name, msg): + """Look up the entry for an ENF symbol + + Args: + entries (dict): entries to search: + key: entry name + value: Entry object + sym_name: Symbol name in the ELF file to look up in the format + _binman_<entry>_prop_<property> where <entry> is the name of + the entry and <property> is the property to find (e.g. + _binman_u_boot_prop_offset). As a special case, you can append + _any to <entry> to have it search for any matching entry. E.g. + _binman_u_boot_any_prop_offset will match entries called u-boot, + u-boot-img and u-boot-nodtb) + msg: Message to display if an error occurs + + Returns: + tuple: + Entry: entry object that was found + str: name used to search for entries (uses '-' instead of the + '_' used by the symbol name) + str: property name the symbol refers to, e.g. 'image_pos' + + Raises: + ValueError:the symbol name cannot be decoded, e.g. does not have + a '_binman_' prefix + """ + m = re.match(r'^_binman_(\w+)_prop_(\w+)$', sym_name) + if not m: + raise ValueError("%s: Symbol '%s' has invalid format" % + (msg, sym_name)) + entry_name, prop_name = m.groups() + entry_name = entry_name.replace('_', '-') + entry = entries.get(entry_name) + if not entry: + if entry_name.endswith('-any'): + root = entry_name[:-4] + for name in entries: + if name.startswith(root): + rest = name[len(root):] + if rest in ['', '-img', '-nodtb']: + entry = entries[name] + return entry, entry_name, prop_name + def LookupSymbol(self, sym_name, optional, msg, base_addr, entries=None): """Look up a symbol in an ELF file
@@ -547,23 +591,9 @@ class Entry_section(Entry): ValueError if the symbol is invalid or not found, or references a property which is not supported """ - m = re.match(r'^_binman_(\w+)_prop_(\w+)$', sym_name) - if not m: - raise ValueError("%s: Symbol '%s' has invalid format" % - (msg, sym_name)) - entry_name, prop_name = m.groups() - entry_name = entry_name.replace('_', '-') if not entries: entries = self._entries - entry = entries.get(entry_name) - if not entry: - if entry_name.endswith('-any'): - root = entry_name[:-4] - for name in entries: - if name.startswith(root): - rest = name[len(root):] - if rest in ['', '-img', '-nodtb']: - entry = entries[name] + entry, entry_name, prop_name = self.LookupEntry(entries, sym_name, msg) if not entry: err = ("%s: Entry '%s' not found in list (%s)" % (msg, entry_name, ','.join(entries.keys())))
Signature · 1 line
2.38.0.rc1.362.ged0d419d3c-goog
PATCH v2 10/45 binman: Handle writing ELF symbols in the Entry class
In reply to Simon GlassThis feature is used by several etypes and we plan to add more that use it. Make symbol writing a feature of the base class to reduce the code duplication.
---
(no changes since v1)
tools/binman/entry.py | 13 +++++++++++-- tools/binman/etype/blob.py | 5 +++-- tools/binman/etype/u_boot_spl.py | 7 ++----- tools/binman/etype/u_boot_spl_nodtb.py | 6 +----- tools/binman/etype/u_boot_tpl.py | 6 +----- tools/binman/etype/u_boot_tpl_nodtb.py | 6 +----- tools/binman/etype/u_boot_vpl.py | 6 +----- tools/binman/etype/u_boot_vpl_nodtb.py | 6 +----- 8 files changed, 21 insertions(+), 34 deletions(-)
tools/binman/entry.py +11 -2
@@ -12,6 +12,7 @@ import sys import time from binman import bintool +from binman import elf from dtoc import fdt_util from patman import tools from patman.tools import to_hex, to_hex_size
@@ -86,10 +87,15 @@ class Entry(object): fake_fname: Fake filename, if one was created, else None required_props (dict of str): Properties which must be present. This can be added to by subclasses + elf_fname (str): Filename of the ELF file, if this entry holds an ELF + file, or is a binary file produced from an ELF file + auto_write_symbols (bool): True to write ELF symbols into this entry's + contents """ fake_dir = None - def __init__(self, section, etype, node, name_prefix=''): + def __init__(self, section, etype, node, name_prefix='', + auto_write_symbols=False): # Put this here to allow entry-docs and help to work without libfdt global state from binman import state
@@ -125,6 +131,8 @@ class Entry(object): self.fake_fname = None self.required_props = [] self.comp_bintool = None + self.elf_fname = None + self.auto_write_symbols = auto_write_symbols @staticmethod def FindEntryClass(etype, expanded):
@@ -647,7 +655,8 @@ class Entry(object): Args: section: Section containing the entry """ - pass + if self.auto_write_symbols: + elf.LookupAndWriteSymbols(self.elf_fname, self, section.GetImage()) def CheckEntries(self): """Check that the entry offsets are correct
tools/binman/etype/blob.py +3 -2
@@ -31,8 +31,9 @@ class Entry_blob(Entry): the node (if enabled with -u) which provides the uncompressed size of the data. """ - def __init__(self, section, etype, node): - super().__init__(section, etype, node) + def __init__(self, section, etype, node, auto_write_symbols=False): + super().__init__(section, etype, node, + auto_write_symbols=auto_write_symbols) self._filename = fdt_util.GetString(self._node, 'filename', self.etype) def ObtainContents(self, fake_size=0):
tools/binman/etype/u_boot_spl.py +2 -5
@@ -5,7 +5,6 @@ # Entry-type module for spl/u-boot-spl.bin # -from binman import elf from binman.entry import Entry from binman.etype.blob import Entry_blob
@@ -35,11 +34,9 @@ class Entry_u_boot_spl(Entry_blob): unless --no-expanded is used or the node has a 'no-expanded' property. """ def __init__(self, section, etype, node): - super().__init__(section, etype, node) + super().__init__(section, etype, node, auto_write_symbols=True) self.elf_fname = 'spl/u-boot-spl' + self.auto_write_symbols = True def GetDefaultFilename(self): return 'spl/u-boot-spl.bin' - - def WriteSymbols(self, section): - elf.LookupAndWriteSymbols(self.elf_fname, self, section.GetImage())
tools/binman/etype/u_boot_spl_nodtb.py +1 -5
@@ -5,7 +5,6 @@ # Entry-type module for 'u-boot-spl-nodtb.bin' # -from binman import elf from binman.entry import Entry from binman.etype.blob import Entry_blob
@@ -32,11 +31,8 @@ class Entry_u_boot_spl_nodtb(Entry_blob): binman uses that to look up symbols to write into the SPL binary. """ def __init__(self, section, etype, node): - super().__init__(section, etype, node) + super().__init__(section, etype, node, auto_write_symbols=True) self.elf_fname = 'spl/u-boot-spl' def GetDefaultFilename(self): return 'spl/u-boot-spl-nodtb.bin' - - def WriteSymbols(self, section): - elf.LookupAndWriteSymbols(self.elf_fname, self, section.GetImage())
tools/binman/etype/u_boot_tpl.py +1 -5
@@ -5,7 +5,6 @@ # Entry-type module for tpl/u-boot-tpl.bin # -from binman import elf from binman.entry import Entry from binman.etype.blob import Entry_blob
@@ -35,11 +34,8 @@ class Entry_u_boot_tpl(Entry_blob): unless --no-expanded is used or the node has a 'no-expanded' property. """ def __init__(self, section, etype, node): - super().__init__(section, etype, node) + super().__init__(section, etype, node, auto_write_symbols=True) self.elf_fname = 'tpl/u-boot-tpl' def GetDefaultFilename(self): return 'tpl/u-boot-tpl.bin' - - def WriteSymbols(self, section): - elf.LookupAndWriteSymbols(self.elf_fname, self, section.GetImage())
tools/binman/etype/u_boot_tpl_nodtb.py +1 -5
@@ -5,7 +5,6 @@ # Entry-type module for 'u-boot-tpl-nodtb.bin' # -from binman import elf from binman.entry import Entry from binman.etype.blob import Entry_blob
@@ -32,11 +31,8 @@ class Entry_u_boot_tpl_nodtb(Entry_blob): binman uses that to look up symbols to write into the TPL binary. """ def __init__(self, section, etype, node): - super().__init__(section, etype, node) + super().__init__(section, etype, node, auto_write_symbols=True) self.elf_fname = 'tpl/u-boot-tpl' def GetDefaultFilename(self): return 'tpl/u-boot-tpl-nodtb.bin' - - def WriteSymbols(self, section): - elf.LookupAndWriteSymbols(self.elf_fname, self, section.GetImage())
tools/binman/etype/u_boot_vpl.py +1 -5
@@ -5,7 +5,6 @@ # Entry-type module for vpl/u-boot-vpl.bin # -from binman import elf from binman.entry import Entry from binman.etype.blob import Entry_blob
@@ -32,11 +31,8 @@ class Entry_u_boot_vpl(Entry_blob): binman uses that to look up symbols to write into the VPL binary. """ def __init__(self, section, etype, node): - super().__init__(section, etype, node) + super().__init__(section, etype, node, auto_write_symbols=True) self.elf_fname = 'vpl/u-boot-vpl' def GetDefaultFilename(self): return 'vpl/u-boot-vpl.bin' - - def WriteSymbols(self, section): - elf.LookupAndWriteSymbols(self.elf_fname, self, section.GetImage())
tools/binman/etype/u_boot_vpl_nodtb.py +1 -5
@@ -5,7 +5,6 @@ # Entry-type module for 'u-boot-vpl-nodtb.bin' # -from binman import elf from binman.entry import Entry from binman.etype.blob import Entry_blob
@@ -32,11 +31,8 @@ class Entry_u_boot_vpl_nodtb(Entry_blob): binman uses that to look up symbols to write into the VPL binary. """ def __init__(self, section, etype, node): - super().__init__(section, etype, node) + super().__init__(section, etype, node, auto_write_symbols=True) self.elf_fname = 'vpl/u-boot-vpl' def GetDefaultFilename(self): return 'vpl/u-boot-vpl-nodtb.bin' - - def WriteSymbols(self, section): - elf.LookupAndWriteSymbols(self.elf_fname, self, section.GetImage())
Signature · 1 line
2.38.0.rc1.362.ged0d419d3c-goog
PATCH v2 11/45 binman: Support writing symbols into ELF files
In reply to Simon GlassIn some cases the ELF version of SPL builds may be packaged, rather than a binary .bin file. Add support for this.
---
(no changes since v1)
tools/binman/elf.py | 41 +++++++++++++++---- tools/binman/entry.py | 5 ++- tools/binman/etype/section.py | 2 +- tools/binman/etype/u_boot_spl_elf.py | 3 +- tools/binman/etype/u_boot_tpl_elf.py | 3 +- tools/binman/etype/u_boot_vpl_elf.py | 25 ++++++++++++ tools/binman/ftest.py | 57 +++++++++++++++++++++++++++ tools/binman/test/256_symbols_elf.dts | 27 +++++++++++++ 8 files changed, 151 insertions(+), 12 deletions(-) create mode 100644 tools/binman/etype/u_boot_vpl_elf.py create mode 100644 tools/binman/test/256_symbols_elf.dts
tools/binman/elf.py +33 -8
@@ -210,7 +210,7 @@ def GetPackString(sym, msg): raise ValueError('%s has size %d: only 4 and 8 are supported' % (msg, sym.size)) -def LookupAndWriteSymbols(elf_fname, entry, section): +def LookupAndWriteSymbols(elf_fname, entry, section, is_elf=False): """Replace all symbols in an entry with their correct values The entry contents is updated so that values for referenced symbols will be
@@ -226,27 +226,52 @@ def LookupAndWriteSymbols(elf_fname, entry, section): """ fname = tools.get_input_filename(elf_fname) syms = GetSymbols(fname, ['image', 'binman']) + if is_elf: + if not ELF_TOOLS: + msg = ("Section '%s': entry '%s'" % + (section.GetPath(), entry.GetPath())) + raise ValueError(f'{msg}: Cannot write symbols to an ELF file without Python elftools') + new_syms = {} + with open(fname, 'rb') as fd: + elf = ELFFile(fd) + for name, sym in syms.items(): + offset = _GetFileOffset(elf, sym.address) + new_syms[name] = Symbol(sym.section, sym.address, sym.size, + sym.weak, offset) + syms = new_syms + if not syms: + tout.debug('LookupAndWriteSymbols: no syms') return base = syms.get('__image_copy_start') - if not base: + if not base and not is_elf: + tout.debug('LookupAndWriteSymbols: no base') return + base_addr = 0 if is_elf else base.address for name, sym in syms.items(): if name.startswith('_binman'): msg = ("Section '%s': Symbol '%s'\n in entry '%s'" % (section.GetPath(), name, entry.GetPath())) - offset = sym.address - base.address - if offset < 0 or offset + sym.size > entry.contents_size: - raise ValueError('%s has offset %x (size %x) but the contents ' - 'size is %x' % (entry.GetPath(), offset, - sym.size, entry.contents_size)) + if is_elf: + # For ELF files, use the file offset + offset = sym.offset + else: + # For blobs use the offset of the symbol, calculated by + # subtracting the base address which by definition is at the + # start + offset = sym.address - base.address + if offset < 0 or offset + sym.size > entry.contents_size: + raise ValueError('%s has offset %x (size %x) but the contents ' + 'size is %x' % (entry.GetPath(), offset, + sym.size, + entry.contents_size)) pack_string = GetPackString(sym, msg) if name == '_binman_sym_magic': value = BINMAN_SYM_MAGIC_VALUE else: # Look up the symbol in our entry tables. value = section.GetImage().LookupImageSymbol(name, sym.weak, - msg, base.address) + msg, base_addr) if value is None: value = -1 pack_string = pack_string.lower()
tools/binman/entry.py +4 -1
@@ -656,7 +656,10 @@ class Entry(object): section: Section containing the entry """ if self.auto_write_symbols: - elf.LookupAndWriteSymbols(self.elf_fname, self, section.GetImage()) + # Check if we are writing symbols into an ELF file + is_elf = self.GetDefaultFilename() == self.elf_fname + elf.LookupAndWriteSymbols(self.elf_fname, self, section.GetImage(), + is_elf) def CheckEntries(self): """Check that the entry offsets are correct
tools/binman/etype/section.py +1 -1
@@ -550,7 +550,7 @@ class Entry_section(Entry): for name in entries: if name.startswith(root): rest = name[len(root):] - if rest in ['', '-img', '-nodtb']: + if rest in ['', '-elf', '-img', '-nodtb']: entry = entries[name] return entry, entry_name, prop_name
tools/binman/etype/u_boot_spl_elf.py +2 -1
@@ -18,7 +18,8 @@ class Entry_u_boot_spl_elf(Entry_blob): be relocated to any address for execution. """ def __init__(self, section, etype, node): - super().__init__(section, etype, node) + super().__init__(section, etype, node, auto_write_symbols=True) + self.elf_fname = 'spl/u-boot-spl' def GetDefaultFilename(self): return 'spl/u-boot-spl'
tools/binman/etype/u_boot_tpl_elf.py +2 -1
@@ -18,7 +18,8 @@ class Entry_u_boot_tpl_elf(Entry_blob): be relocated to any address for execution. """ def __init__(self, section, etype, node): - super().__init__(section, etype, node) + super().__init__(section, etype, node, auto_write_symbols=True) + self.elf_fname = 'tpl/u-boot-tpl' def GetDefaultFilename(self): return 'tpl/u-boot-tpl'
tools/binman/etype/u_boot_vpl_elf.py new file +25 -0
@@ -0,0 +1,25 @@ +# SPDX-License-Identifier: GPL-2.0+ +# Copyright 2022 Google LLC +# Written by Simon Glass <[email protected]> +# +# Entry-type module for U-Boot VPL ELF image +# + +from binman.entry import Entry +from binman.etype.blob import Entry_blob + +class Entry_u_boot_vpl_elf(Entry_blob): + """U-Boot VPL ELF image + + Properties / Entry arguments: + - filename: Filename of VPL u-boot (default 'vpl/u-boot-vpl') + + This is the U-Boot VPL ELF image. It does not include a device tree but can + be relocated to any address for execution. + """ + def __init__(self, section, etype, node): + super().__init__(section, etype, node, auto_write_symbols=True) + self.elf_fname = 'vpl/u-boot-vpl' + + def GetDefaultFilename(self): + return 'vpl/u-boot-vpl'
tools/binman/ftest.py +57 -0
63 lines not on this page · raw message
tools/binman/test/256_symbols_elf.dts new file +27 -0
@@ -0,0 +1,27 @@ +// SPDX-License-Identifier: GPL-2.0+ + +/dts-v1/; + +/ { + #address-cells = <1>; + #size-cells = <1>; + + binman { + pad-byte = <0xff>; + u-boot-spl-elf { + }; + + u-boot { + }; + + u-boot-spl2 { + type = "u-boot-spl-elf"; + }; + + u-boot-tpl-elf { + }; + + u-boot-vpl-elf { + }; + }; +};
Signature · 1 line
2.38.0.rc1.362.ged0d419d3c-goog
PATCH v2 12/45 test: Report skippped tests
In reply to Simon GlassAt present it is possible for a test to skip itself by returning -EAGAIN but this is not recorded.
Keep a track of skipped tests and report the total at the end.
---
(no changes since v1)
include/test/test.h | 2 ++ test/test-main.c | 23 ++++++++++++++++++++--- 2 files changed, 22 insertions(+), 3 deletions(-)
include/test/test.h +2 -0
@@ -13,6 +13,7 @@* struct unit_test_state - Entire state of test system * * @fail_count: Number of tests that failed +* @skip_count: Number of tests that were skipped * @start: Store the starting mallinfo when doing leak test * @of_live: true to use livetree if available, false to use flattree * @of_root: Record of the livetree root node (used for setting up tests)
@@ -32,6 +33,7 @@*/ struct unit_test_state {int fail_count; +int skip_count;struct mallinfo start;struct device_node *of_root;bool of_live;
test/test-main.c +20 -3
@@ -365,6 +365,19 @@ static int test_post_run(struct unit_test_state *uts, struct unit_test *test)return 0 ; } +/** +* skip_test() - Handle skipping a test +* +* @uts: Test state to update +* @return -EAGAIN (always) +*/ +static int skip_test (struct unit_test_state *uts) +{ + uts->skip_count++; + +return -EAGAIN ; +} +/** * ut_run_test() - Run a single test *
@@ -395,11 +408,13 @@ static int ut_run_test(struct unit_test_state *uts, struct unit_test *test, ret =test_pre_run (uts, test);if (ret == -EAGAIN ) -return -EAGAIN ; +return skip_test (uts);if (ret)return ret; - test->func (uts); + ret = test->func (uts); +if (ret == -EAGAIN ) +skip_test (uts); ret =test_post_run (uts, test);if (ret)
@@ -433,7 +448,7 @@ static int ut_run_test_live_flat(struct unit_test_state *uts,int runs;if ((test->flags &UT_TESTF_OTHER_FDT ) && !IS_ENABLED (CONFIG_SANDBOX )) -return -EAGAIN ; +return skip_test (uts);/* Run with the live tree if possible */ runs =0 ;
@@ -567,6 +582,8 @@ int ut_run_list(const char *category, const char *prefix,os_free (uts.other_fdt); } +if (uts.skip_count) +printf ("Skipped: %d, " , uts.skip_count);if (ret == -ENOENT )printf ("Test '%s' not found\n" , select_name);else
Signature · 1 line
2.38.0.rc1.362.ged0d419d3c-goog
Re: [PATCH v2 12/45] test: Report skippped tests
Quoted 2 lines · Simon Glass
At present it is possible for a test to skip itself by returning
-EAGAINbut this is not recorded.
"Console recording disabled" in test_pre_run() is an existing example.
Quoted 90 lines
Keep a track of skipped tests and report the total at the end.
Signed-off-by Simon Glass <[email protected]>---
(no changes since v1)
include/test/test.h | 2 ++ test/test-main.c | 23 ++++++++++++++++++++--- 2 files changed, 22 insertions(+), 3 deletions(-)include/test/test.h +2
-0@@ -13,6 +13,7 @@* struct unit_test_state - Entire state of test system * * @fail_count: Number of tests that failed +* @skip_count: Number of tests that were skipped * @start: Store the starting mallinfo when doing leak test * @of_live: true to use livetree if available, false to use flattree * @of_root: Record of the livetree root node (used for setting up tests) @@ -32,6 +33,7 @@*/ struct unit_test_state {int fail_count; +int skip_count;struct mallinfo start;struct device_node *of_root;bool of_live;test/test-main.c +20
-3@@ -365,6 +365,19 @@ static int test_post_run(struct unit_test_state *uts, struct unit_test *test)return 0 ; } +/** +* skip_test() - Handle skipping a test +* +* @uts: Test state to update +* @return -EAGAIN (always) +*/ +static int skip_test (struct unit_test_state *uts) +{ + uts->skip_count++; + +return -EAGAIN ; +} +/** * ut_run_test() - Run a single test * @@ -395,11 +408,13 @@ static int ut_run_test(struct unit_test_state *uts, struct unit_test *test, ret =test_pre_run (uts, test);if (ret == -EAGAIN ) -return -EAGAIN ; +return skip_test (uts);if (ret)return ret; - test->func (uts); + ret = test->func (uts); +if (ret == -EAGAIN ) +skip_test (uts); ret =test_post_run (uts, test);if (ret)@@ -433,7 +448,7 @@ static int ut_run_test_live_flat(struct unit_test_state *uts,int runs;if ((test->flags &UT_TESTF_OTHER_FDT ) && !IS_ENABLED (CONFIG_SANDBOX )) -return -EAGAIN ; +return skip_test (uts);/* Run with the live tree if possible */ runs =0 ;@@ -567,6 +582,8 @@ int ut_run_list(const char *category, const char *prefix,os_free (uts.other_fdt); } +if (uts.skip_count) +printf ("Skipped: %d, " , uts.skip_count);if (ret == -ENOENT )printf ("Test '%s' not found\n" , select_name);else
PATCH v2 13/45 test: Update tests to use the skip feature
In reply to Simon GlassSome tests currently return 0 when they want to be skipped. Update them to return -EAGAIN instead, so they are counted as skipped.
A few tests are in two parts, with the latter part being skipped in certain situations. Split these into two and use the correct condition for the second part.
---
(no changes since v1)
test/boot/bootflow.c | 4 ++-- test/boot/bootmeth.c | 13 ++++++++++--- test/boot/vbe_fixup.c | 2 +- test/dm/of_platdata.c | 2 +- test/dm/ofnode.c | 25 +++++++++++++++---------- 5 files changed, 29 insertions(+), 17 deletions(-)
test/boot/bootflow.c +2 -2
@@ -330,7 +330,7 @@ static int bootflow_system(struct unit_test_state *uts)struct udevice *dev;if (!IS_ENABLED (CONFIG_CMD_BOOTEFI_BOOTMGR )) -return 0 ; +return -EAGAIN ;ut_assertok (uclass_get_device_by_name (UCLASS_BOOTMETH ,"efi_mgr" , &dev));sandbox_set_fake_efi_mgr_dev (dev, true);
@@ -395,7 +395,7 @@ BOOTSTD_TEST(bootflow_iter_disable, UT_TESTF_DM | UT_TESTF_SCAN_FDT);static int bootflow_scan_glob_bootmeth (struct unit_test_state *uts) {if (!IS_ENABLED (CONFIG_BOOTMETH_GLOBAL )) -return 0 ; +return -EAGAIN ;ut_assertok (bootstd_test_drop_bootdev_order (uts));
test/boot/bootmeth.c +10 -3
@@ -103,10 +103,17 @@ static int bootmeth_cmd_order(struct unit_test_state *uts)ut_asserteq_str ("efi syslinux" ,env_get ("bootmeths" ));ut_assert_console_end (); -/* Try with global bootmeths */ +return 0 ; +} +BOOTSTD_TEST (bootmeth_cmd_order,UT_TESTF_DM |UT_TESTF_SCAN_FDT ); + +/* Check 'bootmeth order' command with global bootmeths */ +static int bootmeth_cmd_order_glob (struct unit_test_state *uts) +{if (!IS_ENABLED (CONFIG_BOOTMETH_GLOBAL )) -return 0 ; +return -EAGAIN ; +console_record_reset_enable ();ut_assertok (run_command ("bootmeth order \"efi firmware0\"" ,0 ));ut_assert_console_end ();ut_assertok (run_command ("bootmeth list" ,0 ));
@@ -122,7 +129,7 @@ static int bootmeth_cmd_order(struct unit_test_state *uts)return 0 ; } -BOOTSTD_TEST (bootmeth_cmd_order,UT_TESTF_DM |UT_TESTF_SCAN_FDT ); +BOOTSTD_TEST (bootmeth_cmd_order_glob,UT_TESTF_DM |UT_TESTF_SCAN_FDT );/* Check 'bootmeths' env var */ static int bootmeth_env (struct unit_test_state *uts)
test/boot/vbe_fixup.c +1 -1
@@ -26,7 +26,7 @@ static int vbe_test_fixup(struct unit_test_state *uts)* flat tree, since device tree fix-ups do not yet support live tree. */ if (!working_fdt) -return 0 ; +return -EAGAIN ; tree =oftree_from_fdt (working_fdt);ut_assert (oftree_valid (tree));
test/dm/of_platdata.c +1 -1
@@ -150,7 +150,7 @@ static int dm_test_of_plat_dev(struct unit_test_state *uts)/* Skip this test if there is no platform data */ if (!CONFIG_IS_ENABLED (OF_PLATDATA_DRIVER_RT )) -return 0 ; +return -EAGAIN ;/* Record the indexes that are found */ memset (found,'\0' ,sizeof (found));
test/dm/ofnode.c +15 -10
@@ -753,10 +753,7 @@ static int make_ofnode_fdt(struct unit_test_state *uts, void *fdt, int size,static int dm_test_ofnode_root (struct unit_test_state *uts) { -char fdt[256 ]; -oftree tree;ofnode node; -int ret;/* Check that aliases work on the control FDT */ node =ofnode_get_aliases_node ("ethernet3" );
@@ -765,14 +762,22 @@ static int dm_test_ofnode_root(struct unit_test_state *uts)ut_assert (!oftree_valid (oftree_null ())); -ut_assertok (make_ofnode_fdt (uts, fdt,sizeof (fdt),0 )); - ret =get_oftree (uts, fdt, &tree); +return 0 ; +} +DM_TEST (dm_test_ofnode_root,UT_TESTF_SCAN_FDT ); -/* skip the rest of this test if multiple FDTs are not supported */ -if (ret == -EOVERFLOW ) -return 0 ; +static int dm_test_ofnode_root_mult (struct unit_test_state *uts) +{ +char fdt[256 ]; +oftree tree; +ofnode node; -ut_assertok (ret); +/* skip this test if multiple FDTs are not supported */ +if (!IS_ENABLED (CONFIG_OFNODE_MULTI_TREE )) +return -EAGAIN ; + +ut_assertok (make_ofnode_fdt (uts, fdt,sizeof (fdt),0 )); +ut_assertok (get_oftree (uts, fdt, &tree));ut_assert (oftree_valid (tree));/* Make sure they don't work on this new tree */
@@ -791,7 +796,7 @@ static int dm_test_ofnode_root(struct unit_test_state *uts)return 0 ; } -DM_TEST (dm_test_ofnode_root,UT_TESTF_SCAN_FDT ); +DM_TEST (dm_test_ofnode_root_mult,UT_TESTF_SCAN_FDT );static int dm_test_ofnode_livetree_writing (struct unit_test_state *uts) {
Signature · 1 line
2.38.0.rc1.362.ged0d419d3c-goog
PATCH v2 14/45 test: Support tests which can only be run manually
In reply to Simon GlassAt present we normally write tests either in Python or in C. But most Python tests end up doing a lot of checks which would be better done in C. Checks done in C are orders of magnitude faster and it is possible to get full access to U-Boot's internal workings, rather than just relying on the command line.
The model is to have a Python test set up some things and then use C code (in a unit test) to check that they were done correctly. But we don't want those checks to happen as part of normal test running, since each C unit tests is dependent on the associate Python tests, so cannot run without it.
To acheive this, add a new UT_TESTF_MANUAL flag to use with the C 'check' tests, so that they can be skipped by default when the 'ut' command is used. Require that tests have a name ending with '_norun', so that pytest knows to skip them.
---
Changes in v2:
- Rebase to master
- Expand docs a little to clarify that manual tests are otherwise normal
arch/sandbox/cpu/spl.c | 2 +- doc/develop/tests_writing.rst | 27 +++++++++++++++++++++++++++ include/test/test.h | 8 ++++++++ include/test/ut.h | 4 +++- test/cmd_ut.c | 16 +++++++++++++--- test/dm/test-dm.c | 2 +- test/py/conftest.py | 8 +++++++- test/test-main.c | 27 ++++++++++++++++++++++++++- 8 files changed, 86 insertions(+), 8 deletions(-)
arch/sandbox/cpu/spl.c +1 -1
@@ -89,7 +89,7 @@ void spl_board_init(void)int ret; ret =ut_run_list ("spl" ,NULL , tests, count, - state->select_unittests,1 ); + state->select_unittests,1 , false);/* continue execution into U-Boot */ } }
doc/develop/tests_writing.rst +27 -0
@@ -74,6 +74,33 @@ NOT rely on running with sandbox, but instead should function correctly on any board supported by U-Boot. +Mixing Python and C +------------------- + +The best of both worlds is sometimes to have a Python test set things up and +perform some operations, with a 'checker' C unit test doing the checks +afterwards. This can be achieved with these steps: + +- Add the `UT_TESTF_MANUAL` flag to the checker test so that the `ut` command + does not run it by default +- Add a `_norun` suffix to the name so that pytest knows to skip it too + +In your Python test use the `-f` flag to the `ut` command to force the checker +test to run it, e.g.:: + + # Do the Python part + host load ... + bootm ... + + # Run the checker to make sure that everything worked + ut -f bootstd vbe_test_fixup_norun + +Note that apart from the `UT_TESTF_MANUAL` flag, the code in a 'manual' C test +is just like any other C test. It still uses ut_assert...() and other such +constructs, in this case to check that the expected things happened in the +Python test. + + How slow are Python tests? --------------------------
include/test/test.h +8 -0
@@ -28,6 +28,7 @@* @other_fdt_size: Size of the other FDT (UT_TESTF_OTHER_FDT) * @of_other: Live tree for the other FDT * @runs_per_test: Number of times to run each test (typically 1) +* @force_run: true to run tests marked with the UT_TESTF_MANUAL flag * @expect_str: Temporary string used to hold expected string value * @actual_str: Temporary string used to hold actual string value */
@@ -48,6 +49,7 @@ struct unit_test_state {int other_fdt_size;struct device_node *of_other;int runs_per_test; +bool force_run;char expect_str[512 ];char actual_str[512 ]; };
@@ -63,6 +65,12 @@ enum {/* do extra driver model init and uninit */ UT_TESTF_DM =BIT (6 ),UT_TESTF_OTHER_FDT =BIT (7 ),/* read in other device tree */ +/* +* Only run if explicitly requested with 'ut -f <suite> <test>'. The +* test name must end in "_norun" so that pytest detects this also, +* since it cannot access the flags. +*/ + UT_TESTF_MANUAL = BIT(8), };/**
include/test/ut.h +3 -1
@@ -409,9 +409,11 @@ void test_set_state(struct unit_test_state *uts);* @select_name: Name of a single test to run (from the list provided). If NULL * then all tests are run * @runs_per_test: Number of times to run each test (typically 1) +* @force_run: Run tests that are marked as manual-only (UT_TESTF_MANUAL) * Return: 0 if all tests passed, -1 if any failed */ int ut_run_list (const char *name,const char *prefix,struct unit_test *tests, -int count,const char *select_name,int runs_per_test); +int count,const char *select_name,int runs_per_test, +bool force_run);#endif
test/cmd_ut.c +13 -3
@@ -19,16 +19,26 @@ int cmd_ut_category(const char *name, const char *prefix, int argc, char *const argv[]) { int runs_per_text = 1; +bool force_run = false;int ret; -if (argc >1 && !strncmp ("-r" , argv[1 ],2 )) { - runs_per_text =dectoul (argv[1 ] +2 ,NULL ); +while (argc >1 && *argv[1 ] =='-' ) { +const char *str = argv[1 ]; + +switch (str[1 ]) { +case 'r' : + runs_per_text =dectoul (str +2 ,NULL ); +break ; +case 'f' : + force_run = true; +break ; + } argv++; argc++; } ret =ut_run_list (name, prefix, tests, n_ents, - argc >1 ? argv[1 ] :NULL , runs_per_text); + argc >1 ? argv[1 ] :NULL , runs_per_text, force_run);return ret ?CMD_RET_FAILURE :0 ; }
test/dm/test-dm.c +1 -1
@@ -36,7 +36,7 @@ static int dm_test_run(const char *test_name, int runs_per_text)int ret; ret =ut_run_list ("driver model" ,"dm_test_" , tests, n_ents, test_name, - runs_per_text); + runs_per_text, false);return ret ?CMD_RET_FAILURE :0 ; }
test/py/conftest.py +7 -1
@@ -289,7 +289,13 @@ def generate_ut_subtest(metafunc, fixture_name, sym_path): m = re_ut_test_list.search(l) if not m: continue - vals.append(m.group(1) + ' ' + m.group(2)) + suite, name = m.groups() + + # Tests marked with _norun should only be run manually using 'ut -f' + if name.endswith('_norun'): + continue + + vals.append(f'{suite} {name}') ids = ['ut_' + s.replace(' ', '_') for s in vals] metafunc.parametrize(fixture_name, vals, ids=ids)
test/test-main.c +26 -1
@@ -517,6 +517,30 @@ static int ut_run_tests(struct unit_test_state *uts, const char *prefix,if (!test_matches (prefix, test_name, select_name))continue ; + +if (test->flags &UT_TESTF_MANUAL ) { +int len; + +/* +* manual tests must have a name ending "_norun" as this +* is how pytest knows to skip them. See +* generate_ut_subtest() for this check. +*/ + len =strlen (test_name); +if (len <6 ||strcmp (test_name + len -6 ,"_norun" )) { +printf ("Test %s is manual so must have a name ending in _norun\n" , + test_name); + uts->fail_count++; +return -EBADF ; + } +if (!uts->force_run) { +if (select_name) { +printf ("Test %s skipped as it is manual (use -f to run it)\n" , + test_name); + } +continue ; + } + } old_fail_count = uts->fail_count;for (i =0 ; i < uts->runs_per_test; i++) ret =ut_run_test_live_flat (uts, test, select_name);
@@ -538,7 +562,7 @@ static int ut_run_tests(struct unit_test_state *uts, const char *prefix,int ut_run_list (const char *category,const char *prefix,struct unit_test *tests,int count,const char *select_name, -int runs_per_test) +int runs_per_test,bool force_run) {struct unit_test_state uts = { .fail_count =0 };bool has_dm_tests = false;
@@ -572,6 +596,7 @@ int ut_run_list(const char *category, const char *prefix, }memcpy (uts.fdt_copy, gd->fdt_blob, uts.fdt_size); } + uts.force_run = force_run; ret =ut_run_tests (&uts, prefix, tests, count, select_name);/* Best efforts only...ignore errors */
Signature · 1 line
2.38.0.rc1.362.ged0d419d3c-goog
Re: [PATCH v2 14/45] test: Support tests which can only be run manually
Quoted 12 lines · Simon Glass
At present we normally write tests either in Python or in C. But most Python tests end up doing a lot of checks which would be better done in C. Checks done in C are orders of magnitude faster and it is possible to get full access to U-Boot's internal workings, rather than just relying on the command line.
The model is to have a Python test set up some things and then use C code (in a unit test) to check that they were done correctly. But we don't want those checks to happen as part of normal test running, since each C unit tests is dependent on the associate Python tests, so cannot run without it.
Quoted 3 lines
To acheive this, add a new
UT_TESTF_MANUALflag to use with the C 'check' tests, so that they can be skipped by default when the 'ut' command is used. Require that tests have a name ending with '_norun', so that pytest
Why do want to use a naming convention?
What will we do when we want more flags like e.g. "slow"?
Adding more fields to struct unit_test would be more future prove.
Best regards
Heinrich
Quoted 238 lines
knows to skip them.
Signed-off-by Simon Glass <[email protected]>---
Changes in v2:
- Rebase to master
- Expand docs a little to clarify that manual tests are otherwise normalarch/sandbox/cpu/spl.c | 2 +- doc/develop/tests_writing.rst | 27 +++++++++++++++++++++++++++ include/test/test.h | 8 ++++++++ include/test/ut.h | 4 +++- test/cmd_ut.c | 16 +++++++++++++--- test/dm/test-dm.c | 2 +- test/py/conftest.py | 8 +++++++- test/test-main.c | 27 ++++++++++++++++++++++++++- 8 files changed, 86 insertions(+), 8 deletions(-)arch/sandbox/cpu/spl.c +1
-1@@ -89,7 +89,7 @@ void spl_board_init(void)int ret; ret =ut_run_list ("spl" ,NULL , tests, count, - state->select_unittests,1 ); + state->select_unittests,1 , false);/* continue execution into U-Boot */ } }doc/develop/tests_writing.rst +27
-0@@ -74,6 +74,33 @@ NOT rely on running with sandbox, but instead should function correctly on any board supported by U-Boot. +Mixing Python and C +------------------- + +The best of both worlds is sometimes to have a Python test set things up and +perform some operations, with a 'checker' C unit test doing the checks +afterwards. This can be achieved with these steps: + +- Add the `UT_TESTF_MANUAL` flag to the checker test so that the `ut` command + does not run it by default +- Add a `_norun` suffix to the name so that pytest knows to skip it too + +In your Python test use the `-f` flag to the `ut` command to force the checker +test to run it, e.g.:: + + # Do the Python part + host load ... + bootm ... + + # Run the checker to make sure that everything worked + ut -f bootstd vbe_test_fixup_norun + +Note that apart from the `UT_TESTF_MANUAL` flag, the code in a 'manual' C test +is just like any other C test. It still uses ut_assert...() and other such +constructs, in this case to check that the expected things happened in the +Python test. + + How slow are Python tests? --------------------------include/test/test.h +8
-0@@ -28,6 +28,7 @@* @other_fdt_size: Size of the other FDT (UT_TESTF_OTHER_FDT) * @of_other: Live tree for the other FDT * @runs_per_test: Number of times to run each test (typically 1) +* @force_run: true to run tests marked with the UT_TESTF_MANUAL flag * @expect_str: Temporary string used to hold expected string value * @actual_str: Temporary string used to hold actual string value */ @@ -48,6 +49,7 @@ struct unit_test_state {int other_fdt_size;struct device_node *of_other;int runs_per_test; +bool force_run;char expect_str[512 ];char actual_str[512 ]; };@@ -63,6 +65,12 @@ enum {/* do extra driver model init and uninit */ UT_TESTF_DM =BIT (6 ),UT_TESTF_OTHER_FDT =BIT (7 ),/* read in other device tree */ +/* +* Only run if explicitly requested with 'ut -f <suite> <test>'. The +* test name must end in "_norun" so that pytest detects this also, +* since it cannot access the flags. +*/ + UT_TESTF_MANUAL = BIT(8), };/** include/test/ut.h +3
-1@@ -409,9 +409,11 @@ void test_set_state(struct unit_test_state *uts);* @select_name: Name of a single test to run (from the list provided). If NULL * then all tests are run * @runs_per_test: Number of times to run each test (typically 1) +* @force_run: Run tests that are marked as manual-only (UT_TESTF_MANUAL) * Return: 0 if all tests passed, -1 if any failed */ int ut_run_list (const char *name,const char *prefix,struct unit_test *tests, -int count,const char *select_name,int runs_per_test); +int count,const char *select_name,int runs_per_test, +bool force_run);#endif test/cmd_ut.c +13
-3@@ -19,16 +19,26 @@ int cmd_ut_category(const char *name, const char *prefix, int argc, char *const argv[]) { int runs_per_text = 1; +bool force_run = false;int ret; -if (argc >1 && !strncmp ("-r" , argv[1 ],2 )) { - runs_per_text =dectoul (argv[1 ] +2 ,NULL ); +while (argc >1 && *argv[1 ] =='-' ) { +const char *str = argv[1 ]; + +switch (str[1 ]) { +case 'r' : + runs_per_text =dectoul (str +2 ,NULL ); +break ; +case 'f' : + force_run = true; +break ; + } argv++; argc++; } ret =ut_run_list (name, prefix, tests, n_ents, - argc >1 ? argv[1 ] :NULL , runs_per_text); + argc >1 ? argv[1 ] :NULL , runs_per_text, force_run);return ret ?CMD_RET_FAILURE :0 ; }test/dm/test-dm.c +1
-1@@ -36,7 +36,7 @@ static int dm_test_run(const char *test_name, int runs_per_text)int ret; ret =ut_run_list ("driver model" ,"dm_test_" , tests, n_ents, test_name, - runs_per_text); + runs_per_text, false);return ret ?CMD_RET_FAILURE :0 ; }test/py/conftest.py +7
-1@@ -289,7 +289,13 @@ def generate_ut_subtest(metafunc, fixture_name, sym_path): m = re_ut_test_list.search(l) if not m: continue - vals.append(m.group(1) + ' ' + m.group(2)) + suite, name = m.groups() + + # Tests marked with _norun should only be run manually using 'ut -f' + if name.endswith('_norun'): + continue + + vals.append(f'{suite} {name}') ids = ['ut_' + s.replace(' ', '_') for s in vals] metafunc.parametrize(fixture_name, vals, ids=ids)test/test-main.c +26
-1@@ -517,6 +517,30 @@ static int ut_run_tests(struct unit_test_state *uts, const char *prefix,if (!test_matches (prefix, test_name, select_name))continue ; + +if (test->flags &UT_TESTF_MANUAL ) { +int len; + +/* +* manual tests must have a name ending "_norun" as this +* is how pytest knows to skip them. See +* generate_ut_subtest() for this check. +*/ + len =strlen (test_name); +if (len <6 ||strcmp (test_name + len -6 ,"_norun" )) { +printf ("Test %s is manual so must have a name ending in _norun\n" , + test_name); + uts->fail_count++; +return -EBADF ; + } +if (!uts->force_run) { +if (select_name) { +printf ("Test %s skipped as it is manual (use -f to run it)\n" , + test_name); + } +continue ; + } + } old_fail_count = uts->fail_count;for (i =0 ; i < uts->runs_per_test; i++) ret =ut_run_test_live_flat (uts, test, select_name);@@ -538,7 +562,7 @@ static int ut_run_tests(struct unit_test_state *uts, const char *prefix,int ut_run_list (const char *category,const char *prefix,struct unit_test *tests,int count,const char *select_name, -int runs_per_test) +int runs_per_test,bool force_run) {struct unit_test_state uts = { .fail_count =0 };bool has_dm_tests = false;@@ -572,6 +596,7 @@ int ut_run_list(const char *category, const char *prefix, }memcpy (uts.fdt_copy, gd->fdt_blob, uts.fdt_size); } + uts.force_run = force_run; ret =ut_run_tests (&uts, prefix, tests, count, select_name);/* Best efforts only...ignore errors */
Re: [PATCH v2 14/45] test: Support tests which can only be run manually
Hi Heinrich,
Quoted 14 lines · Heinrich Schuchardt
Quoted 12 lines · Simon Glass
At present we normally write tests either in Python or in C. But most Python tests end up doing a lot of checks which would be better done in C. Checks done in C are orders of magnitude faster and it is possible to get full access to U-Boot's internal workings, rather than just relying on the command line.
The model is to have a Python test set up some things and then use C code (in a unit test) to check that they were done correctly. But we don't want those checks to happen as part of normal test running, since each C unit tests is dependent on the associate Python tests, so cannot run without it.
Quoted 5 lines
Quoted 3 lines
To acheive this, add a new
UT_TESTF_MANUALflag to use with the C 'check' tests, so that they can be skipped by default when the 'ut' command is used. Require that tests have a name ending with '_norun', so that pytestWhy do want to use a naming convention?
See the line immediately above. The pytests don't have access to the flags as they are compiled into the executable.
Quoted 1 line
What will we do when we want more flags like e.g. "slow"?
We already have that in the pytest side. This 'manual' thing is unusual in that both pytest and C test need to have it.
Quoted 2 lines
Adding more fields to struct
unit_testwould be more future prove.
Well a flag is more compact and suits the purpose. See above for why we need to add something to the name.
Regards,
Simon
[..]
PATCH v2 15/45 bootstd: Add a way to set up a bootflow
In reply to Simon GlassAdd a function to init a bootflow, to reduce code duplication.
---
(no changes since v1)
boot/bootdev-uclass.c | 5 +---- boot/bootflow.c | 9 +++++++++ boot/bootmeth-uclass.c | 5 +---- include/bootflow.h | 12 ++++++++++++ 4 files changed, 23 insertions(+), 8 deletions(-)
boot/bootdev-uclass.c +1 -4
@@ -440,10 +440,7 @@ int bootdev_get_bootflow(struct udevice *dev, struct bootflow_iter *iter,if (!ops->get_bootflow)return -ENOSYS ; -memset (bflow,'\0' ,sizeof (*bflow)); - bflow->dev = dev; - bflow->method = iter->method; - bflow->state =BOOTFLOWST_BASE ; +bootflow_init (bflow, dev, iter->method);return ops->get_bootflow (dev, iter, bflow); }
boot/bootflow.c +9 -0
@@ -339,6 +339,15 @@ int bootflow_scan_next(struct bootflow_iter *iter, struct bootflow *bflow) }while (1 ); } +void bootflow_init (struct bootflow *bflow,struct udevice *bootdev, +struct udevice *meth) +{ +memset (bflow,'\0' ,sizeof (*bflow)); + bflow->dev = bootdev; + bflow->method = meth; + bflow->state =BOOTFLOWST_BASE ; +} +void bootflow_free (struct bootflow *bflow) {free (bflow->name);
boot/bootmeth-uclass.c +1 -4
@@ -77,10 +77,7 @@ int bootmeth_get_bootflow(struct udevice *dev, struct bootflow *bflow)if (!ops->read_bootflow)return -ENOSYS ; -memset (bflow,'\0' ,sizeof (*bflow)); - bflow->dev =NULL ; - bflow->method = dev; - bflow->state =BOOTFLOWST_BASE ; +bootflow_init (bflow,NULL , dev);return ops->read_bootflow (dev, bflow); }
include/bootflow.h +12 -0
@@ -144,6 +144,18 @@ struct bootflow_iter {bool doing_global; }; +/** +* bootflow_init() - Set up a bootflow struct +* +* The bootflow is zeroed and set to state BOOTFLOWST_BASE +* +* @bflow: Struct to set up +* @bootdev: Bootdev to use +* @meth: Bootmeth to use +*/ +void bootflow_init (struct bootflow *bflow,struct udevice *bootdev, +struct udevice *meth); +/** * bootflow_iter_init() - Reset a bootflow iterator *
Signature · 1 line
2.38.0.rc1.362.ged0d419d3c-goog
PATCH v2 16/45 disk: Rename block functions
In reply to Simon GlassUse the uclass type as the first part of the function name, to be consistent with the methods in other block drivers.
---
Changes in v2:
- Add new patch to rename block functions
disk/disk-uclass.c | 24 ++++++++++++------------ include/part.h | 12 ++++++------ lib/efi_loader/efi_disk.c | 6 ++++-- 3 files changed, 22 insertions(+), 20 deletions(-)
disk/disk-uclass.c +12 -12
@@ -65,7 +65,7 @@ int part_create_block_devices(struct udevice *blk_dev)return 0 ; } -static ulong blk_part_read (struct udevice *dev,lbaint_t start, +static ulong part_blk_read (struct udevice *dev,lbaint_t start,lbaint_t blkcnt,void *buffer) {struct udevice *parent;
@@ -88,7 +88,7 @@ static ulong blk_part_read(struct udevice *dev, lbaint_t start,return ops->read (parent, start, blkcnt, buffer); } -static ulong blk_part_write (struct udevice *dev,lbaint_t start, +static ulong part_blk_write (struct udevice *dev,lbaint_t start,lbaint_t blkcnt,const void *buffer) {struct udevice *parent;
@@ -111,7 +111,7 @@ static ulong blk_part_write(struct udevice *dev, lbaint_t start,return ops->write (parent, start, blkcnt, buffer); } -static ulong blk_part_erase (struct udevice *dev,lbaint_t start, +static ulong part_blk_erase (struct udevice *dev,lbaint_t start,lbaint_t blkcnt) {struct udevice *parent;
@@ -135,9 +135,9 @@ static ulong blk_part_erase(struct udevice *dev, lbaint_t start, }static const struct blk_ops blk_part_ops = { - .read = blk_part_read, - .write = blk_part_write, - .erase = blk_part_erase, + .read = part_blk_read, + .write = part_blk_write, + .erase = part_blk_erase, };U_BOOT_DRIVER (blk_partition) = {
@@ -168,8 +168,8 @@ static struct blk_desc *dev_get_blk(struct udevice *dev)return block_dev; } -unsigned long dev_read (struct udevice *dev,lbaint_t start, -lbaint_t blkcnt,void *buffer) +unsigned long disk_blk_read (struct udevice *dev,lbaint_t start, +lbaint_t blkcnt,void *buffer) {struct blk_desc *block_dev;const struct blk_ops *ops;
@@ -202,8 +202,8 @@ unsigned long dev_read(struct udevice *dev, lbaint_t start,return blks_read; } -unsigned long dev_write (struct udevice *dev,lbaint_t start, -lbaint_t blkcnt,const void *buffer) +unsigned long disk_blk_write (struct udevice *dev,lbaint_t start, +lbaint_t blkcnt,const void *buffer) {struct blk_desc *block_dev;const struct blk_ops *ops;
@@ -221,8 +221,8 @@ unsigned long dev_write(struct udevice *dev, lbaint_t start,return ops->write (dev, start, blkcnt, buffer); } -unsigned long dev_erase (struct udevice *dev,lbaint_t start, -lbaint_t blkcnt) +unsigned long disk_blk_erase (struct udevice *dev,lbaint_t start, +lbaint_t blkcnt) {struct blk_desc *block_dev;const struct blk_ops *ops;
include/part.h +6 -6
@@ -313,12 +313,12 @@ struct udevice;*/ int part_create_block_devices (struct udevice *blk_dev); -unsigned long dev_read (struct udevice *dev,lbaint_t start, -lbaint_t blkcnt,void *buffer); -unsigned long dev_write (struct udevice *dev,lbaint_t start, -lbaint_t blkcnt,const void *buffer); -unsigned long dev_erase (struct udevice *dev,lbaint_t start, -lbaint_t blkcnt); +unsigned long disk_blk_read (struct udevice *dev,lbaint_t start, +lbaint_t blkcnt,void *buffer); +unsigned long disk_blk_write (struct udevice *dev,lbaint_t start, +lbaint_t blkcnt,const void *buffer); +unsigned long disk_blk_erase (struct udevice *dev,lbaint_t start, +lbaint_t blkcnt);/* * We don't support printing partition information in SPL and only support
lib/efi_loader/efi_disk.c +4 -2
@@ -123,9 +123,11 @@ static efi_status_t efi_disk_rw_blocks(struct efi_block_io *this,if (CONFIG_IS_ENABLED (PARTITIONS ) &&device_get_uclass_id (diskobj->header.dev) ==UCLASS_PARTITION ) {if (direction ==EFI_DISK_READ ) - n =dev_read (diskobj->header.dev, lba, blocks, buffer); + n =disk_blk_read (diskobj->header.dev, lba, blocks, + buffer);else - n =dev_write (diskobj->header.dev, lba, blocks, buffer); + n =disk_blk_write (diskobj->header.dev, lba, blocks, + buffer); }else {/* dev is a block device (UCLASS_BLK) */ struct blk_desc *desc;
Signature · 1 line
2.38.0.rc1.362.ged0d419d3c-goog
Re: [PATCH v2 16/45] disk: Rename block functions
Quoted 101 lines · Simon Glass
Use the uclass type as the first part of the function name, to be consistent with the methods in other block drivers.
Signed-off-by Simon Glass <[email protected]>---
Changes in v2:
- Add new patch to rename block functionsdisk/disk-uclass.c | 24 ++++++++++++------------ include/part.h | 12 ++++++------ lib/efi_loader/efi_disk.c | 6 ++++-- 3 files changed, 22 insertions(+), 20 deletions(-)disk/disk-uclass.c +12
-12@@ -65,7 +65,7 @@ int part_create_block_devices(struct udevice *blk_dev)return 0 ; } -static ulong blk_part_read (struct udevice *dev,lbaint_t start, +static ulong part_blk_read (struct udevice *dev,lbaint_t start,lbaint_t blkcnt,void *buffer) {struct udevice *parent;@@ -88,7 +88,7 @@ static ulong blk_part_read(struct udevice *dev, lbaint_t start,return ops->read (parent, start, blkcnt, buffer); } -static ulong blk_part_write (struct udevice *dev,lbaint_t start, +static ulong part_blk_write (struct udevice *dev,lbaint_t start,lbaint_t blkcnt,const void *buffer) {struct udevice *parent;@@ -111,7 +111,7 @@ static ulong blk_part_write(struct udevice *dev, lbaint_t start,return ops->write (parent, start, blkcnt, buffer); } -static ulong blk_part_erase (struct udevice *dev,lbaint_t start, +static ulong part_blk_erase (struct udevice *dev,lbaint_t start,lbaint_t blkcnt) {struct udevice *parent;@@ -135,9 +135,9 @@ static ulong blk_part_erase(struct udevice *dev, lbaint_t start, }static const struct blk_ops blk_part_ops = { - .read = blk_part_read, - .write = blk_part_write, - .erase = blk_part_erase, + .read = part_blk_read, + .write = part_blk_write, + .erase = part_blk_erase, };U_BOOT_DRIVER (blk_partition) = {@@ -168,8 +168,8 @@ static struct blk_desc *dev_get_blk(struct udevice *dev)return block_dev; } -unsigned long dev_read (struct udevice *dev,lbaint_t start, -lbaint_t blkcnt,void *buffer) +unsigned long disk_blk_read (struct udevice *dev,lbaint_t start, +lbaint_t blkcnt,void *buffer) {struct blk_desc *block_dev;const struct blk_ops *ops;@@ -202,8 +202,8 @@ unsigned long dev_read(struct udevice *dev, lbaint_t start,return blks_read; } -unsigned long dev_write (struct udevice *dev,lbaint_t start, -lbaint_t blkcnt,const void *buffer) +unsigned long disk_blk_write (struct udevice *dev,lbaint_t start, +lbaint_t blkcnt,const void *buffer) {struct blk_desc *block_dev;const struct blk_ops *ops;@@ -221,8 +221,8 @@ unsigned long dev_write(struct udevice *dev, lbaint_t start,return ops->write (dev, start, blkcnt, buffer); } -unsigned long dev_erase (struct udevice *dev,lbaint_t start, -lbaint_t blkcnt) +unsigned long disk_blk_erase (struct udevice *dev,lbaint_t start, +lbaint_t blkcnt) {struct blk_desc *block_dev;const struct blk_ops *ops;include/part.h +0
-2@@ -313,12 +313,12 @@ struct udevice;*/ int part_create_block_devices (struct udevice *blk_dev); -unsigned long dev_read (struct udevice *dev,lbaint_t start, -lbaint_t blkcnt,void *buffer);
include/part.h struct udevice; · line 321
Quoted 10 lines
include/part.h +6
-4-unsigned long dev_write (struct udevice *dev,lbaint_t start, -lbaint_t blkcnt,const void *buffer); -unsigned long dev_erase (struct udevice *dev,lbaint_t start, -lbaint_t blkcnt); +unsigned long disk_blk_read (struct udevice *dev,lbaint_t start, +lbaint_t blkcnt,void *buffer); +unsigned long disk_blk_write (struct udevice *dev,lbaint_t start, +lbaint_t blkcnt,const void *buffer); +unsigned long disk_blk_erase (struct udevice *dev,lbaint_t start, +lbaint_t blkcnt);
Please, add Sphinx style descriptions for all new exported functions in the include. These descriptions should refer to the definition of struct blk_ops so that the next developer will know that he has to synchronize both.
Best regards
Heinrich
Quoted 21 lines
include/part.h +0
-0/* * We don't support printing partition information in SPL and only support lib/efi_loader/efi_disk.c +4
-2@@ -123,9 +123,11 @@ static efi_status_t efi_disk_rw_blocks(struct efi_block_io *this,if (CONFIG_IS_ENABLED (PARTITIONS ) &&device_get_uclass_id (diskobj->header.dev) ==UCLASS_PARTITION ) {if (direction ==EFI_DISK_READ ) - n =dev_read (diskobj->header.dev, lba, blocks, buffer); + n =disk_blk_read (diskobj->header.dev, lba, blocks, + buffer);else - n =dev_write (diskobj->header.dev, lba, blocks, buffer); + n =disk_blk_write (diskobj->header.dev, lba, blocks, + buffer); }else {/* dev is a block device (UCLASS_BLK) */ struct blk_desc *desc;
PATCH v2 17/45 disk: Rename block_dev to desc
In reply to Simon GlassThe use of 'block_dev' in this context is confusing, since it is not a pointer to a device, just to some information about it. Rename this to 'desc', as is more commonly used, since it is a block descriptor.
---
Changes in v2:
- Add new patch to rename block_dev to desc in disc-uclass.c
disk/disk-uclass.c | 38 +++++++++++++++++++------------------- 1 file changed, 19 insertions(+), 19 deletions(-)
disk/disk-uclass.c +19 -19
@@ -151,34 +151,34 @@ U_BOOT_DRIVER(blk_partition) = {*/ static struct blk_desc *dev_get_blk (struct udevice *dev) { -struct blk_desc *block_dev; +struct blk_desc *desc;switch (device_get_uclass_id (dev)) {/* * We won't support UCLASS_BLK with dev_* interfaces. */ case UCLASS_PARTITION : - block_dev =dev_get_uclass_plat (dev_get_parent (dev)); + desc =dev_get_uclass_plat (dev_get_parent (dev));break ;default : - block_dev =NULL ; + desc =NULL ;break ; } -return block_dev; +return desc; }unsigned long disk_blk_read (struct udevice *dev,lbaint_t start,lbaint_t blkcnt,void *buffer) { -struct blk_desc *block_dev; +struct blk_desc *desc;const struct blk_ops *ops;struct disk_part *part;lbaint_t start_in_disk;ulong blks_read; - block_dev =dev_get_blk (dev); -if (!block_dev) + desc =dev_get_blk (dev); +if (!desc)return -ENOSYS ; ops =blk_get_ops (dev);
@@ -191,13 +191,13 @@ unsigned long disk_blk_read(struct udevice *dev, lbaint_t start, start_in_disk += part->gpt_part_info.start; } -if (blkcache_read (block_dev->uclass_id, block_dev->devnum, - start_in_disk, blkcnt, block_dev->blksz, buffer)) +if (blkcache_read (desc->uclass_id, desc->devnum, start_in_disk, blkcnt, + desc->blksz, buffer))return blkcnt; blks_read = ops->read (dev, start, blkcnt, buffer);if (blks_read == blkcnt) -blkcache_fill (block_dev->uclass_id, block_dev->devnum, - start_in_disk, blkcnt, block_dev->blksz, buffer); +blkcache_fill (desc->uclass_id, desc->devnum, start_in_disk, + blkcnt, desc->blksz, buffer);return blks_read; }
@@ -205,18 +205,18 @@ unsigned long disk_blk_read(struct udevice *dev, lbaint_t start,unsigned long disk_blk_write (struct udevice *dev,lbaint_t start,lbaint_t blkcnt,const void *buffer) { -struct blk_desc *block_dev; +struct blk_desc *desc;const struct blk_ops *ops; - block_dev =dev_get_blk (dev); -if (!block_dev) + desc =dev_get_blk (dev); +if (!desc)return -ENOSYS ; ops =blk_get_ops (dev);if (!ops->write)return -ENOSYS ; -blkcache_invalidate (block_dev->uclass_id, block_dev->devnum); +blkcache_invalidate (desc->uclass_id, desc->devnum);return ops->write (dev, start, blkcnt, buffer); }
@@ -224,18 +224,18 @@ unsigned long disk_blk_write(struct udevice *dev, lbaint_t start,unsigned long disk_blk_erase (struct udevice *dev,lbaint_t start,lbaint_t blkcnt) { -struct blk_desc *block_dev; +struct blk_desc *desc;const struct blk_ops *ops; - block_dev =dev_get_blk (dev); -if (!block_dev) + desc =dev_get_blk (dev); +if (!desc)return -ENOSYS ; ops =blk_get_ops (dev);if (!ops->erase)return -ENOSYS ; -blkcache_invalidate (block_dev->uclass_id, block_dev->devnum); +blkcache_invalidate (desc->uclass_id, desc->devnum);return ops->erase (dev, start, blkcnt); }
Signature · 1 line
2.38.0.rc1.362.ged0d419d3c-goog
Re: [PATCH v2 17/45] disk: Rename block_dev to desc
Quoted 5 lines · Simon Glass
The use of '
block_dev' in this context is confusing, since it is not a pointer to a device, just to some information about it. Rename this to 'desc', as is more commonly used, since it is a block descriptor.Signed-off-by Simon Glass <[email protected]>
Quoted 118 lines
---
Changes in v2:
- Add new patch to renameblock_devto desc indisc-uclass.cdisk/disk-uclass.c | 38 +++++++++++++++++++------------------- 1 file changed, 19 insertions(+), 19 deletions(-)disk/disk-uclass.c +19
-19@@ -151,34 +151,34 @@ U_BOOT_DRIVER(blk_partition) = {*/ static struct blk_desc *dev_get_blk (struct udevice *dev) { -struct blk_desc *block_dev; +struct blk_desc *desc;switch (device_get_uclass_id (dev)) {/* * We won't support UCLASS_BLK with dev_* interfaces. */ case UCLASS_PARTITION : - block_dev =dev_get_uclass_plat (dev_get_parent (dev)); + desc =dev_get_uclass_plat (dev_get_parent (dev));break ;default : - block_dev =NULL ; + desc =NULL ;break ; } -return block_dev; +return desc; }unsigned long disk_blk_read (struct udevice *dev,lbaint_t start,lbaint_t blkcnt,void *buffer) { -struct blk_desc *block_dev; +struct blk_desc *desc;const struct blk_ops *ops;struct disk_part *part;lbaint_t start_in_disk;ulong blks_read; - block_dev =dev_get_blk (dev); -if (!block_dev) + desc =dev_get_blk (dev); +if (!desc)return -ENOSYS ; ops =blk_get_ops (dev);@@ -191,13 +191,13 @@ unsigned long disk_blk_read(struct udevice *dev, lbaint_t start, start_in_disk += part->gpt_part_info.start; } -if (blkcache_read (block_dev->uclass_id, block_dev->devnum, - start_in_disk, blkcnt, block_dev->blksz, buffer)) +if (blkcache_read (desc->uclass_id, desc->devnum, start_in_disk, blkcnt, + desc->blksz, buffer))return blkcnt; blks_read = ops->read (dev, start, blkcnt, buffer);if (blks_read == blkcnt) -blkcache_fill (block_dev->uclass_id, block_dev->devnum, - start_in_disk, blkcnt, block_dev->blksz, buffer); +blkcache_fill (desc->uclass_id, desc->devnum, start_in_disk, + blkcnt, desc->blksz, buffer);return blks_read; }@@ -205,18 +205,18 @@ unsigned long disk_blk_read(struct udevice *dev, lbaint_t start,unsigned long disk_blk_write (struct udevice *dev,lbaint_t start,lbaint_t blkcnt,const void *buffer) { -struct blk_desc *block_dev; +struct blk_desc *desc;const struct blk_ops *ops; - block_dev =dev_get_blk (dev); -if (!block_dev) + desc =dev_get_blk (dev); +if (!desc)return -ENOSYS ; ops =blk_get_ops (dev);if (!ops->write)return -ENOSYS ; -blkcache_invalidate (block_dev->uclass_id, block_dev->devnum); +blkcache_invalidate (desc->uclass_id, desc->devnum);return ops->write (dev, start, blkcnt, buffer); }@@ -224,18 +224,18 @@ unsigned long disk_blk_write(struct udevice *dev, lbaint_t start,unsigned long disk_blk_erase (struct udevice *dev,lbaint_t start,lbaint_t blkcnt) { -struct blk_desc *block_dev; +struct blk_desc *desc;const struct blk_ops *ops; - block_dev =dev_get_blk (dev); -if (!block_dev) + desc =dev_get_blk (dev); +if (!desc)return -ENOSYS ; ops =blk_get_ops (dev);if (!ops->erase)return -ENOSYS ; -blkcache_invalidate (block_dev->uclass_id, block_dev->devnum); +blkcache_invalidate (desc->uclass_id, desc->devnum);return ops->erase (dev, start, blkcnt); }
PATCH v2 18/45 dm: blk: Add udevice functions
In reply to Simon GlassAt present we have functions called blk_dread(), etc., which take a struct blk_desc * to refer to the block device. Add some functions which use udevice instead, since this is more in keeping with how driver model is supposed to work.
Update one of the tests to use this.
Note that it would be nice to update the functions in disk-uclass.c to use these new functions. However they are not quite the same. For example, disk_blk_read() adds the partition offset to 'start' when calling the cache read/fill functions, but does not with part_blk_read(), which does the addition itself. So as designed the code is duplicated.
---
Changes in v2:
- Add a note as to why we have almost-duplicated code in two places
drivers/block/blk-uclass.c | 51 +++++++++++++++++++++++++------------- include/blk.h | 39 ++++++++++++++++++++++++++++- test/dm/usb.c | 11 +++++--- 3 files changed, 80 insertions(+), 21 deletions(-)
drivers/block/blk-uclass.c +34 -17
@@ -444,53 +444,70 @@ int blk_get_device(int uclass_id, int devnum, struct udevice **devp)return device_probe (*devp); } -unsigned long blk_dread (struct blk_desc *block_dev,lbaint_t start, -lbaint_t blkcnt,void *buffer) +long blk_read (struct udevice *dev,lbaint_t start,lbaint_t blkcnt,void *buf) { -struct udevice *dev = block_dev->bdev; +struct blk_desc *desc =dev_get_uclass_plat (dev);const struct blk_ops *ops =blk_get_ops (dev);ulong blks_read;if (!ops->read)return -ENOSYS ; -if (blkcache_read (block_dev->uclass_id, block_dev->devnum, - start, blkcnt, block_dev->blksz, buffer)) +if (blkcache_read (desc->uclass_id, desc->devnum, + start, blkcnt, desc->blksz, buf))return blkcnt; - blks_read = ops->read (dev, start, blkcnt, buffer); + blks_read = ops->read (dev, start, blkcnt, buf);if (blks_read == blkcnt) -blkcache_fill (block_dev->uclass_id, block_dev->devnum, - start, blkcnt, block_dev->blksz, buffer); +blkcache_fill (desc->uclass_id, desc->devnum, start, blkcnt, + desc->blksz, buf);return blks_read; } -unsigned long blk_dwrite (struct blk_desc *block_dev,lbaint_t start, -lbaint_t blkcnt,const void *buffer) +long blk_write (struct udevice *dev,lbaint_t start,lbaint_t blkcnt, +const void *buf) { -struct udevice *dev = block_dev->bdev; +struct blk_desc *desc =dev_get_uclass_plat (dev);const struct blk_ops *ops =blk_get_ops (dev);if (!ops->write)return -ENOSYS ; -blkcache_invalidate (block_dev->uclass_id, block_dev->devnum); -return ops->write (dev, start, blkcnt, buffer); +blkcache_invalidate (desc->uclass_id, desc->devnum); + +return ops->write (dev, start, blkcnt, buf); } -unsigned long blk_derase (struct blk_desc *block_dev,lbaint_t start, -lbaint_t blkcnt) +long blk_erase (struct udevice *dev,lbaint_t start,lbaint_t blkcnt) { -struct udevice *dev = block_dev->bdev; +struct blk_desc *desc =dev_get_uclass_plat (dev);const struct blk_ops *ops =blk_get_ops (dev);if (!ops->erase)return -ENOSYS ; -blkcache_invalidate (block_dev->uclass_id, block_dev->devnum); +blkcache_invalidate (desc->uclass_id, desc->devnum); +return ops->erase (dev, start, blkcnt); } +ulong blk_dread (struct blk_desc *desc,lbaint_t start,lbaint_t blkcnt, +void *buffer) +{ +return blk_read (desc->bdev, start, blkcnt, buffer); +} + +ulong blk_dwrite (struct blk_desc *desc,lbaint_t start,lbaint_t blkcnt, +const void *buffer) +{ +return blk_write (desc->bdev, start, blkcnt, buffer); +} + +ulong blk_derase (struct blk_desc *desc,lbaint_t start,lbaint_t blkcnt) +{ +return blk_erase (desc->bdev, start, blkcnt); +} +int blk_get_from_parent (struct udevice *parent,struct udevice **devp) {struct udevice *dev;
include/blk.h +38 -1
@@ -273,6 +273,43 @@ unsigned long blk_dwrite(struct blk_desc *block_dev, lbaint_t start,unsigned long blk_derase (struct blk_desc *block_dev,lbaint_t start,lbaint_t blkcnt); +/** +* blk_read() - Read from a block device +* +* @dev: Device to read from +* @start: Start block for the read +* @blkcnt: Number of blocks to read +* @buf: Place to put the data +* @return number of blocks read (which may be less than @blkcnt), +* or -ve on error. This never returns 0 unless @blkcnt is 0 +*/ +long blk_read (struct udevice *dev,lbaint_t start,lbaint_t blkcnt, +void *buffer); + +/** +* blk_write() - Write to a block device +* +* @dev: Device to write to +* @start: Start block for the write +* @blkcnt: Number of blocks to write +* @buf: Data to write +* @return number of blocks written (which may be less than @blkcnt), +* or -ve on error. This never returns 0 unless @blkcnt is 0 +*/ +long blk_write (struct udevice *dev,lbaint_t start,lbaint_t blkcnt, +const void *buffer); + +/** +* blk_erase() - Erase part of a block device +* +* @dev: Device to erase +* @start: Start block for the erase +* @blkcnt: Number of blocks to erase +* @return number of blocks erased (which may be less than @blkcnt), +* or -ve on error. This never returns 0 unless @blkcnt is 0 +*/ +long blk_erase (struct udevice *dev,lbaint_t start,lbaint_t blkcnt); +/** * blk_find_device() - Find a block device *
@@ -428,7 +465,7 @@ const char *blk_get_devtype(struct udevice *dev);/** * blk_get_by_device() - Get the block device descriptor for the given device -* @dev: Instance of a storage device +* @dev: Instance of a storage device (the parent of the block device) * * Return: With block device descriptor on success , NULL if there is no such * block device.
test/dm/usb.c +8 -3
@@ -43,19 +43,24 @@ DM_TEST(dm_test_usb_base, UT_TESTF_SCAN_PDATA | UT_TESTF_SCAN_FDT);*/ static int dm_test_usb_flash (struct unit_test_state *uts) { -struct udevice *dev; -struct blk_desc *dev_desc; +struct blk_desc *dev_desc, *chk; +struct udevice *dev, *blk;char cmp[1024 ];state_set_skip_delays (true);ut_assertok (usb_init ());ut_assertok (uclass_get_device (UCLASS_MASS_STORAGE ,0 , &dev));ut_assertok (blk_get_device_by_str ("usb" ,"0" , &dev_desc)); + chk =blk_get_by_device (dev); +ut_asserteq_ptr (chk, dev_desc); + +ut_assertok (device_find_first_child_by_uclass (dev,UCLASS_BLK , &blk)); +ut_asserteq_ptr (chk,blk_get_by_device (dev));/* Read a few blocks and look for the string we expect */ ut_asserteq (512 , dev_desc->blksz);memset (cmp,'\0' ,sizeof (cmp)); -ut_asserteq (2 ,blk_dread (dev_desc,0 ,2 , cmp)); +ut_asserteq (2 ,blk_read (blk,0 ,2 , cmp));ut_assertok (strcmp (cmp,"this is a test" ));ut_assertok (usb_stop ());
Signature · 1 line
2.38.0.rc1.362.ged0d419d3c-goog
PATCH v2 19/45 usb: Update the test to cover reading and writing
In reply to Simon GlassAdd test coverage for blk_write() as well.
The blk_erase() is not tested for now as the USB stor interface does not support erase.
---
Changes in v2:
- Rebase to master
drivers/scsi/scsi_emul.c | 9 ++++++++ drivers/usb/emul/sandbox_flash.c | 35 ++++++++++++++++++++++++++++---- include/scsi.h | 10 +++++++++ include/scsi_emul.h | 16 +++++++++++---- test/dm/usb.c | 19 ++++++++++++++++- 5 files changed, 80 insertions(+), 9 deletions(-)
drivers/scsi/scsi_emul.c +9 -0
@@ -62,6 +62,15 @@ int sb_scsi_emul_command(struct scsi_emul_info *info, ret =SCSI_EMUL_DO_READ ;break ; } +case SCSI_WRITE10 : { +const struct scsi_write10_req *write_req = (void *)req; + + info->seek_block =be32_to_cpu (write_req->lba); + info->write_len =be16_to_cpu (write_req->xfer_len); + info->buff_used = info->write_len * info->block_size; + ret =SCSI_EMUL_DO_WRITE ; +break ; + }default :debug ("Command not supported: %x\n" , req->cmd[0 ]); ret = -EPROTONOSUPPORT ;
drivers/usb/emul/sandbox_flash.c +31 -4
@@ -4,6 +4,8 @@* Written by Simon Glass <[email protected]> */ +#define LOG_CATEGORY UCLASS_USB +#include <common.h> #include <dm.h> #include <log.h>
@@ -190,7 +192,8 @@ static int handle_ufi_command(struct sandbox_flash_priv *priv, const void *buff, ret =sb_scsi_emul_command (info, req, len);if (!ret) {setup_response (priv); - }else if (ret ==SCSI_EMUL_DO_READ && priv->fd !=-1 ) { + }else if ((ret ==SCSI_EMUL_DO_READ || ret ==SCSI_EMUL_DO_WRITE ) && + priv->fd !=-1 ) {os_lseek (priv->fd, info->seek_block * info->block_size,OS_SEEK_SET );setup_response (priv);
@@ -217,6 +220,7 @@ static int sandbox_flash_bulk(struct udevice *dev, struct usb_device *udev,case SCSIPH_START : info->alloc_len =0 ; info->read_len =0 ; + info->write_len =0 ;if (priv->error || len !=UMASS_BBB_CBW_SIZE || cbw->dCBWSignature !=CBWSIGNATURE ) goto err;
@@ -230,8 +234,31 @@ static int sandbox_flash_bulk(struct udevice *dev, struct usb_device *udev,return handle_ufi_command (priv, cbw->CBWCDB, cbw->bCDBLength);case SCSIPH_DATA : -debug ("data out\n" ); -break ; +log_debug ("data out, len=%x, info->write_len=%x\n" , len, + info->write_len); + info->transfer_len = cbw->dCBWDataTransferLength; + priv->tag = cbw->dCBWTag; +if (!info->write_len) +return 0 ; +if (priv->fd !=-1 ) { +ulong bytes_written; + + bytes_written =os_write (priv->fd, buff, len); +log_debug ("bytes_written=%lx" , bytes_written); +if (bytes_written != len) +return -EIO ; + info->write_len -= len / info->block_size; +if (!info->write_len) + info->phase =SCSIPH_STATUS ; + }else { +if (info->alloc_len && len > info->alloc_len) + len = info->alloc_len; +if (len >SANDBOX_FLASH_BUF_SIZE ) + len =SANDBOX_FLASH_BUF_SIZE ; +memcpy (info->buff, buff, len); + info->phase =SCSIPH_STATUS ; + } +return len;default :break ; }
@@ -310,7 +337,7 @@ static int sandbox_flash_probe(struct udevice *dev)struct scsi_emul_info *info = &priv->eminfo;int ret; - priv->fd =os_open (plat->pathname,OS_O_RDONLY ); + priv->fd =os_open (plat->pathname,OS_O_RDWR );if (priv->fd !=-1 ) { ret =os_get_filesize (plat->pathname, &info->file_size);if (ret)
include/scsi.h +10 -0
@@ -255,6 +255,16 @@ struct __packed scsi_read10_req {u8 spare2[3 ]; }; +/** struct scsi_write10_req - data for the write10 command */ +struct __packed scsi_write10_req { +u8 cmd; +u8 lun_flags; +u32 lba; +u8 spare; +u16 xfer_len; +u8 spare2[3 ]; +}; +/** * struct scsi_plat - stores information about SCSI controller *
include/scsi_emul.h +12 -4
@@ -41,13 +41,20 @@ struct scsi_emul_info {enum scsi_cmd_phase phase;int buff_used;int read_len; +int write_len;uint seek_pos;int alloc_len;uint transfer_len; }; -/* Indicates that a read is being started */ -#define SCSI_EMUL_DO_READ 1 +/** +* Return value from sb_scsi_emul_command() indicates that a read or write is +* being started +*/ +enum { +SCSI_EMUL_DO_READ =1 , +SCSI_EMUL_DO_WRITE =2 , +};/** * sb_scsi_emul_command() - Process a SCSI command
@@ -61,8 +68,9 @@ struct scsi_emul_info {* @info: Emulation information * @req: Request to process * @len: Length of request in bytes -* @return SCSI_EMUL_DO_READ if a read has started, 0 if some other operation -* has started, -ve if there was an error +* @return SCSI_EMUL_DO_READ if a read has started, SCSI_EMUL_DO_WRITE if a +* write has started, 0 if some other operation has started, -ve if there +* was an error */ int sb_scsi_emul_command (struct scsi_emul_info *info,const struct scsi_cmd *req,int len);
test/dm/usb.c +18 -1
@@ -61,7 +61,24 @@ static int dm_test_usb_flash(struct unit_test_state *uts)ut_asserteq (512 , dev_desc->blksz);memset (cmp,'\0' ,sizeof (cmp));ut_asserteq (2 ,blk_read (blk,0 ,2 , cmp)); -ut_assertok (strcmp (cmp,"this is a test" )); +ut_asserteq_str ("this is a test" , cmp); + +strcpy (cmp,"another test" ); +ut_asserteq (1 ,blk_write (blk,1 ,1 , cmp)); + +memset (cmp,'\0' ,sizeof (cmp)); +ut_asserteq (2 ,blk_read (blk,0 ,2 , cmp)); +ut_asserteq_str ("this is a test" , cmp); +ut_asserteq_str ("another test" , cmp +512 ); + +memset (cmp,'\0' ,sizeof (cmp)); +ut_asserteq (1 ,blk_write (blk,1 ,1 , cmp)); + +memset (cmp,'\0' ,sizeof (cmp)); +ut_asserteq (2 ,blk_read (blk,0 ,2 , cmp)); +ut_asserteq_str ("this is a test" , cmp); +ut_asserteq_str ("" , cmp +512 ); +ut_assertok (usb_stop ());return 0 ;
Signature · 1 line
2.38.0.rc1.362.ged0d419d3c-goog
PATCH v2 20/45 bloblist: Drop debugging
In reply to Simon GlassDisable debugging by default since this implementation is stable now.
---
(no changes since v1)
common/bloblist.c | 1 - 1 file changed, 1 deletion(-)
common/bloblist.c +0 -1
@@ -4,7 +4,6 @@* Written by Simon Glass <[email protected]> */ -#define LOG_DEBUG #define LOG_CATEGORY LOGC_BLOBLIST#include <common.h>
Signature · 1 line
2.38.0.rc1.362.ged0d419d3c-goog
PATCH v2 21/45 dm: blk: mmc: Tidy up some Makefile rules for SPL
In reply to Simon GlassUse the correct SPL_TPL_ variable so that these features can be enabled in TPL and VPL as needed.
Disable it by default in TPL to avoid any code-size increase. No boards are actually using it since the Makefile rules don't allow including drivers/block/ with TPL_DM enabled. It can be manually enabled as needed.
---
Changes in v2:
- Disable TPL_BLK by default
drivers/Makefile | 2 +- drivers/block/Kconfig | 1 - drivers/block/Makefile | 2 +- drivers/mmc/Makefile | 2 +- 4 files changed, 3 insertions(+), 4 deletions(-)
drivers/Makefile +1 -1
@@ -1,5 +1,6 @@ # SPDX-License-Identifier: GPL-2.0+ +obj-$(CONFIG_$(SPL_TPL_)BLK) += block/ obj-$(CONFIG_$(SPL_TPL_)BOOTCOUNT_LIMIT) += bootcount/ obj-$(CONFIG_$(SPL_TPL_)BUTTON) += button/ obj-$(CONFIG_$(SPL_TPL_)CACHE) += cache/
@@ -60,7 +61,6 @@ obj-$(CONFIG_SPL_USB_HOST) += usb/host/ obj-$(CONFIG_OMAP_USB_PHY) += usb/phy/ obj-$(CONFIG_SPL_SATA) += ata/ scsi/ obj-$(CONFIG_SPL_LEGACY_BLOCK) += block/ -obj-$(CONFIG_SPL_BLK) += block/ obj-$(CONFIG_SPL_THERMAL) += thermal/ endif
drivers/block/Kconfig +0 -1
@@ -37,7 +37,6 @@ config SPL_BLK config TPL_BLK bool "Support block devices in TPL" depends on TPL_DM && BLK - default y help Enable support for block devices, such as SCSI, MMC and USB flash sticks. These provide a block-level interface which permits
drivers/block/Makefile +1 -1
@@ -3,7 +3,7 @@ # (C) Copyright 2000-2007 # Wolfgang Denk, DENX Software Engineering, [email protected]. -obj-$(CONFIG_$(SPL_)BLK) += blk-uclass.o +obj-$(CONFIG_$(SPL_TPL_)BLK) += blk-uclass.o ifndef CONFIG_$(SPL_)BLK obj-$(CONFIG_SPL_LEGACY_BLOCK) += blk_legacy.o
drivers/mmc/Makefile +1 -1
@@ -10,7 +10,7 @@ ifdef CONFIG_$(SPL_TPL_)DM_MMC obj-$(CONFIG_$(SPL_TPL_)BOOTSTD) += mmc_bootdev.o endif -obj-$(CONFIG_$(SPL_)MMC_WRITE) += mmc_write.o +obj-$(CONFIG_$(SPL_TPL_)MMC_WRITE) += mmc_write.o obj-$(CONFIG_MMC_PWRSEQ) += mmc-pwrseq.o obj-$(CONFIG_MMC_SDHCI_ADMA_HELPERS) += sdhci-adma.o
Signature · 1 line
2.38.0.rc1.362.ged0d419d3c-goog
RE: [PATCH v2 21/45] dm: blk: mmc: Tidy up some Makefile rules for SPL
Quoted 13 lines
-----Original Message-----
From: Simon Glass [mailto:[email protected]]
Sent: Thursday, October 13, 2022 9:29 PM
To: U-Boot Mailing List <[email protected]>
Cc: Tom Rini <[email protected]>; Simon Glass <[email protected]>; Andrew Scull <[email protected]>; Heinrich Schuchardt <[email protected]>; Jaehoon Chung <[email protected]>; Marek Vasut <[email protected]>; Mark Kettenis <[email protected]>; Pavel Herrmann <[email protected]>; Peng Fan <[email protected]>; Stefan Roese <[email protected]>; Ye Li <[email protected]>
Subject: [PATCH v2 21/45] dm: blk: mmc: Tidy up someMakefilerules for SPL
Quoted 8 lines
Use the correct
SPL_TPL_variable so that these features can be enabled in TPL and VPL as needed.Disable it by default in TPL to avoid any code-size increase. No boards are actually using it since the
Makefilerules don't allow includingdrivers/block/withTPL_DMenabled. It can be manually enabled as needed.Signed-off-by Simon Glass <[email protected]>
Best Regards,
Jaehoon Chung
Quoted 70 lines
---
Changes in v2:
- DisableTPL_BLKby defaultdrivers/Makefile | 2 +- drivers/block/Kconfig | 1 - drivers/block/Makefile | 2 +- drivers/mmc/Makefile | 2 +- 4 files changed, 3 insertions(+), 4 deletions(-)drivers/Makefile +1
-1@@ -1,5 +1,6 @@ # SPDX-License-Identifier: GPL-2.0+ +obj-$(CONFIG_$(SPL_TPL_)BLK) += block/ obj-$(CONFIG_$(SPL_TPL_)BOOTCOUNT_LIMIT) += bootcount/ obj-$(CONFIG_$(SPL_TPL_)BUTTON) += button/ obj-$(CONFIG_$(SPL_TPL_)CACHE) += cache/@@ -60,7 +61,6 @@ obj-$(CONFIG_SPL_USB_HOST) += usb/host/ obj-$(CONFIG_OMAP_USB_PHY) += usb/phy/ obj-$(CONFIG_SPL_SATA) += ata/ scsi/ obj-$(CONFIG_SPL_LEGACY_BLOCK) += block/ -obj-$(CONFIG_SPL_BLK) += block/ obj-$(CONFIG_SPL_THERMAL) += thermal/ endifdrivers/block/Kconfig +0
-1@@ -37,7 +37,6 @@ config SPL_BLK config TPL_BLK bool "Support block devices in TPL" depends on TPL_DM && BLK - default y help Enable support for block devices, such as SCSI, MMC and USB flash sticks. These provide a block-level interface which permitsdrivers/block/Makefile +1
-1@@ -3,7 +3,7 @@ # (C) Copyright 2000-2007 # Wolfgang Denk, DENX Software Engineering, [email protected]. -obj-$(CONFIG_$(SPL_)BLK) += blk-uclass.o +obj-$(CONFIG_$(SPL_TPL_)BLK) += blk-uclass.o ifndef CONFIG_$(SPL_)BLK obj-$(CONFIG_SPL_LEGACY_BLOCK) += blk_legacy.odrivers/mmc/Makefile +1
-2@@ -10,7 +10,7 @@ ifdef CONFIG_$(SPL_TPL_)DM_MMC obj-$(CONFIG_$(SPL_TPL_)BOOTSTD) += mmc_bootdev.o endif -obj-$(CONFIG_$(SPL_)MMC_WRITE) += mmc_write.o +obj-$(CONFIG_$(SPL_TPL_)MMC_WRITE) += mmc_write.o obj-$(CONFIG_MMC_PWRSEQ) += mmc-pwrseq.o obj-$(CONFIG_MMC_SDHCI_ADMA_HELPERS) += sdhci-adma.o --2.38.0.rc1.362.ged0d419d3c-goog
PATCH v2 22/45 dm: mmc: Allow sandbox emulator to build without writes
In reply to Simon GlassWhen MMC_WRITE is disabled this driver produced a build error. Fix this.
Also update a comment while we are here.
---
(no changes since v1)
drivers/mmc/sandbox_mmc.c | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-)
drivers/mmc/sandbox_mmc.c +8 -2
@@ -23,6 +23,8 @@ struct sandbox_mmc_plat {#define MMC_CMULT 8/* 8 because the card is high-capacity */ #define MMC_BL_LEN_SHIFT 10#define MMC_BL_LEN BIT(MMC_BL_LEN_SHIFT) + +/* Granularity of priv->csize - this is 1MB */ #define SIZE_MULTIPLE ((1 << (MMC_CMULT + 2)) * MMC_BL_LEN)struct sandbox_mmc_priv {
@@ -41,7 +43,6 @@ static int sandbox_mmc_send_cmd(struct udevice *dev, struct mmc_cmd *cmd, struct mmc_data *data) {struct sandbox_mmc_priv *priv =dev_get_priv (dev); -struct mmc *mmc =mmc_get_mmc_dev (dev);static ulong erase_start, erase_end;switch (cmd->cmdidx) {
@@ -95,10 +96,15 @@ static int sandbox_mmc_send_cmd(struct udevice *dev, struct mmc_cmd *cmd,case SD_CMD_ERASE_WR_BLK_END : erase_end = cmd->cmdarg;break ; -case MMC_CMD_ERASE : +#if CONFIG_IS_ENABLED (MMC_WRITE ) +case MMC_CMD_ERASE : { +struct mmc *mmc =mmc_get_mmc_dev (dev); +memset (&priv->buf[erase_start * mmc->write_bl_len],'\0' , (erase_end - erase_start +1 ) * mmc->write_bl_len);break ; + } +#endif case SD_CMD_APP_SEND_OP_COND : cmd->response[0 ] =OCR_BUSY |OCR_HCS ; cmd->response[1 ] =0 ;
Signature · 1 line
2.38.0.rc1.362.ged0d419d3c-goog
RE: [PATCH v2 22/45] dm: mmc: Allow sandbox emulator to build without writes
Quoted 11 lines
-----Original Message-----
From: Simon Glass [mailto:[email protected]]
Sent: Thursday, October 13, 2022 9:29 PM
To: U-Boot Mailing List <[email protected]>
Cc: Tom Rini <[email protected]>; Simon Glass <[email protected]>; Jaehoon Chung <[email protected]>; Marek Vasut <[email protected]>; Pavel Herrmann <[email protected]>; Peng Fan <[email protected]>
Subject: [PATCH v2 22/45] dm: mmc: Allow sandbox emulator to build without writes
Quoted 5 lines
When
MMC_WRITEis disabled this driver produced a build error. Fix this.Also update a comment while we are here.
Signed-off-by Simon Glass <[email protected]>
Best Regards,
Jaehoon Chung
Quoted 47 lines
---
(no changes since v1)
drivers/mmc/sandbox_mmc.c | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-)drivers/mmc/sandbox_mmc.c +8
-3@@ -23,6 +23,8 @@ struct sandbox_mmc_plat {#define MMC_CMULT 8/* 8 because the card is high-capacity */ #define MMC_BL_LEN_SHIFT 10#define MMC_BL_LEN BIT(MMC_BL_LEN_SHIFT) + +/* Granularity of priv->csize - this is 1MB */ #define SIZE_MULTIPLE ((1 << (MMC_CMULT + 2)) * MMC_BL_LEN)struct sandbox_mmc_priv {@@ -41,7 +43,6 @@ static int sandbox_mmc_send_cmd(struct udevice *dev, struct mmc_cmd *cmd, struct mmc_data *data) {struct sandbox_mmc_priv *priv =dev_get_priv (dev); -struct mmc *mmc =mmc_get_mmc_dev (dev);static ulong erase_start, erase_end;switch (cmd->cmdidx) {@@ -95,10 +96,15 @@ static int sandbox_mmc_send_cmd(struct udevice *dev, struct mmc_cmd *cmd,case SD_CMD_ERASE_WR_BLK_END : erase_end = cmd->cmdarg;break ; -case MMC_CMD_ERASE : +#if CONFIG_IS_ENABLED (MMC_WRITE ) +case MMC_CMD_ERASE : { +struct mmc *mmc =mmc_get_mmc_dev (dev); +memset (&priv->buf[erase_start * mmc->write_bl_len],'\0' , (erase_end - erase_start +1 ) * mmc->write_bl_len);break ; + } +#endif case SD_CMD_APP_SEND_OP_COND : cmd->response[0 ] =OCR_BUSY |OCR_HCS ; cmd->response[1 ] =0 ; --2.38.0.rc1.362.ged0d419d3c-goog
PATCH v2 23/45 sandbox: Drop message about writing sandbox state
In reply to Simon GlassThis happens every time sandbox moves to the next phase so is not very interesting. Display the message only when debugging.
---
(no changes since v1)
arch/sandbox/cpu/state.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
arch/sandbox/cpu/state.c +1 -1
@@ -470,7 +470,7 @@ int state_uninit(void)int err;if (state->write_ram_buf || state->write_state) -log_info ("Writing sandbox state\n" ); +log_debug ("Writing sandbox state\n" ); state = &main_state;/* Finish the bloblist, so that it is correct before writing memory */
Signature · 1 line
2.38.0.rc1.362.ged0d419d3c-goog
PATCH v2 24/45 image: Move comment for fit_conf_find_compat()
In reply to Simon GlassMove this comment to the header file, where the APIs should be defined.
---
Changes in v2:
- Update the comment style
boot/image-fit.c | 43 ------------------------------------------- include/image.h | 41 +++++++++++++++++++++++++++++++++++++++++ 2 files changed, 41 insertions(+), 43 deletions(-)
boot/image-fit.c +0 -43
@@ -1686,49 +1686,6 @@ int fit_check_format(const void *fit, ulong size)return 0 ; } -/** -* fit_conf_find_compat -* @fit: pointer to the FIT format image header -* @fdt: pointer to the device tree to compare against -* -* fit_conf_find_compat() attempts to find the configuration whose fdt is the -* most compatible with the passed in device tree. -* -* Example: -* -* / o image-tree -* |-o images -* | |-o fdt-1 -* | |-o fdt-2 -* | -* |-o configurations -* |-o config-1 -* | |-fdt = fdt-1 -* | -* |-o config-2 -* |-fdt = fdt-2 -* -* / o U-Boot fdt -* |-compatible = "foo,bar", "bim,bam" -* -* / o kernel fdt1 -* |-compatible = "foo,bar", -* -* / o kernel fdt2 -* |-compatible = "bim,bam", "baz,biz" -* -* Configuration 1 would be picked because the first string in U-Boot's -* compatible list, "foo,bar", matches a compatible string in the root of fdt1. -* "bim,bam" in fdt2 matches the second string which isn't as good as fdt1. -* -* As an optimization, the compatible property from the FDT's root node can be -* copied into the configuration node in the FIT image. This is required to -* match configurations with compressed FDTs. -* -* returns: -* offset to the configuration to use if one was found -* -1 otherwise -*/ int fit_conf_find_compat (const void *fit,const void *fdt) {int ndepth =0 ;
include/image.h +41 -0
47 lines not on this page · raw message
Signature · 1 line
2.38.0.rc1.362.ged0d419d3c-goog
PATCH v2 25/45 sandbox: Generalise SPL booting
In reply to Simon GlassAt present sandbox only supports jumping to a file, to get to the next U-Boot phase. We want to support other methods, so update the code to use an enum for the method. Also use the
Use board_boot_order() to set the order, so we can add more options. Also add the MMC methods into the BOOT_DEVICE enum so that booting from MMC can be supported.
---
(no changes since v1)
arch/sandbox/cpu/spl.c | 33 +++++++++++++++++++++------------ arch/sandbox/include/asm/spl.h | 3 +++ include/spl.h | 9 +++++++++ 3 files changed, 33 insertions(+), 12 deletions(-)
arch/sandbox/cpu/spl.c +21 -12
@@ -49,13 +49,13 @@ void board_init_f(ulong flag)preloader_console_init (); } -u32 spl_boot_device (void ) +void board_boot_order (u32 *spl_boot_list) { -return BOOT_DEVICE_BOARD ; + spl_boot_list[0 ] =BOOT_DEVICE_BOARD ; } -static int spl_board_load_image (struct spl_image_info *spl_image, -struct spl_boot_device *bootdev) +static int spl_board_load_file (struct spl_image_info *spl_image, +struct spl_boot_device *bootdev) {char fname[256 ];int ret;
@@ -74,10 +74,11 @@ static int spl_board_load_image(struct spl_image_info *spl_image,if (!spl_image->arg)return log_msg_ret ("exec" , -ENOMEM );strcpy (spl_image->arg, fname); + spl_image->flags =SPL_SANDBOXF_ARG_IS_FNAME ;return 0 ; } -SPL_LOAD_IMAGE_METHOD ("sandbox" ,9 ,BOOT_DEVICE_BOARD , spl_board_load_image); +SPL_LOAD_IMAGE_METHOD ("sandbox" ,9 ,BOOT_DEVICE_BOARD , spl_board_load_file);void spl_board_init (void ) {
@@ -96,13 +97,21 @@ void spl_board_init(void)void __noreturn jump_to_image_no_args (struct spl_image_info *spl_image) { -const char *fname = spl_image->arg; - -if (fname) { -os_fd_restore (); -os_spl_to_uboot (fname); - }else { -printf ("No filename provided for U-Boot\n" ); +switch (spl_image->flags) { +case SPL_SANDBOXF_ARG_IS_FNAME : { +const char *fname = spl_image->arg; + +if (fname) { +os_fd_restore (); +os_spl_to_uboot (fname); + }else { +log_err ("No filename provided for U-Boot\n" ); + } +break ; + } +default : +log_err ("Invalid flags\n" ); +break ; }hang (); }
arch/sandbox/include/asm/spl.h +3 -0
@@ -7,6 +7,9 @@#define __asm_spl_henum { +BOOT_DEVICE_MMC1 , +BOOT_DEVICE_MMC2 , +BOOT_DEVICE_MMC2_2 ,BOOT_DEVICE_BOARD , };
include/spl.h +9 -0
@@ -228,6 +228,15 @@ static inline const char *spl_phase_prefix(enum u_boot_phase phase)# define SPL_TPL_PROMPT ""#endif +/** +* enum spl_sandbox_flags - flags for sandbox's use of spl_image_info->flags +* +* @SPL_SANDBOXF_ARG_IS_FNAME: arg is the filename to jump to (default) +*/ +enum spl_sandbox_flags { +SPL_SANDBOXF_ARG_IS_FNAME =0 , +}; +struct spl_image_info {const char *name;u8 os;
Signature · 1 line
2.38.0.rc1.362.ged0d419d3c-goog
PATCH v2 26/45 sandbox: Add a way to specify the sandbox executable
In reply to Simon GlassAt present the sandbox executable is assumed to be arg[0] but this only works for a single jump (e.g. from SPL to U-Boot). Add a new arg to solve this issue, along with a detailed comment.
---
(no changes since v1)
arch/sandbox/cpu/start.c | 30 ++++++++++++++++++++++++++++++ arch/sandbox/include/asm/state.h | 3 ++- 2 files changed, 32 insertions(+), 1 deletion(-)
arch/sandbox/cpu/start.c +30 -0
@@ -244,6 +244,36 @@ static int sandbox_cmdline_cb_jump(struct sandbox_state *state, }SANDBOX_CMDLINE_OPT_SHORT (jump,'j' ,1 ,"Jumped from previous U-Boot" ); +static int sandbox_cmdline_cb_program (struct sandbox_state *state, +const char *arg) +{ +/* +* Record the program name to use when jumping to future phases. This +* is the original executable which holds all the phases. We need to +* use this instead of argv[0] since each phase is started by +* extracting a particular binary from the full program, then running +* it. Therefore in that binary, argv[0] contains only the +* current-phase executable. +* +* For example, sandbox TPL may be started using image file: +* +* ./image.bin +* +* but then TPL needs to run VPL, which it does by extracting the VPL +* image from the image.bin file. +* +* ./temp-vpl +* +* When VPL runs it needs access to the original image.bin so it can +* extract the next phase (SPL). This works if we use '-f image.bin' +* when starting the original image.bin file. +*/ + state->prog_fname = arg; + +return 0 ; +} +SANDBOX_CMDLINE_OPT_SHORT (program,'p' ,1 ,"U-Boot program name" ); +static int sandbox_cmdline_cb_memory (struct sandbox_state *state,const char *arg) {
arch/sandbox/include/asm/state.h +2 -1
@@ -71,7 +71,8 @@ struct sandbox_state {const char *parse_err;/* Error to report from parsing */ int argc;/* Program arguments */ char **argv;/* Command line arguments */ -const char *jumped_fname;/* Jumped from previous U_Boot */ +const char *jumped_fname;/* Jumped from previous U-Boot */ +const char *prog_fname;/* U-Boot executable filename */ uint8_t *ram_buf;/* Emulated RAM buffer */ unsigned long ram_size;/* Size of RAM buffer */ const char *ram_buf_fname;/* Filename to use for RAM buffer */
Signature · 1 line
2.38.0.rc1.362.ged0d419d3c-goog
PATCH v2 27/45 image: Add the concept of a phase to FIT
In reply to Simon GlassWe want to be able to mark an image as related to a phase, so we can easily load all the images for SPL or for U-Boot proper.
Add this to the FIT specification, along with some access functions.
---
Changes in v2:
- Attach the phase to the image node instead of the configuration node
- Update the documentation too
boot/image.c | 18 +++++++ doc/uImage.FIT/source_file_format.txt | 3 ++ include/image.h | 74 ++++++++++++++++++++++++++- test/boot/Makefile | 1 + test/boot/image.c | 36 +++++++++++++ 5 files changed, 130 insertions(+), 2 deletions(-) create mode 100644 test/boot/image.c
boot/image.c +18 -0
@@ -194,6 +194,13 @@ static const table_entry_t uimage_comp[] = { { -1, "", "", }, }; +static const table_entry_t uimage_phase[] = { + {IH_PHASE_NONE ,"none" ,"any" , }, + {IH_PHASE_U_BOOT ,"u-boot" ,"U-Boot phase" , }, + {IH_PHASE_SPL ,"spl" ,"SPL Phase" , }, + {-1 ,"" ,"" , }, +}; + struct table_info { const char *desc; int count;
@@ -215,6 +222,7 @@ static const struct table_info table_info[IH_COUNT] = { { "compression", IH_COMP_COUNT, uimage_comp }, { "operating system", IH_OS_COUNT, uimage_os }, { "image type", IH_TYPE_COUNT, uimage_type }, + { "phase", IH_PHASE_COUNT, uimage_phase }, };/*****************************************************************************/
@@ -656,6 +664,11 @@ const char *genimg_get_comp_name(uint8_t comp) comp)); } +const char *genimg_get_phase_name (enum image_phase_t phase) +{ +return get_table_entry_name (uimage_phase,"Unknown Phase" , phase); +} +static const char *genimg_get_short_name (const table_entry_t *table,int val) { table =get_table_entry (table, val);
@@ -731,3 +744,8 @@ int genimg_get_comp_id(const char *name) {return (get_table_entry_id (uimage_comp,"Compression" , name)); } + +int genimg_get_phase_id (const char *name) +{ +return get_table_entry_id (uimage_phase,"Phase" , name); +}
doc/uImage.FIT/source_file_format.txt +3 -0
@@ -190,6 +190,9 @@ the '/images' node should have the following layout: Xilinx Zynq UltraScale+ (ZymqMP) device. "u-boot,zynqmp-fpga-enc" - encrypted FPGA bitstream for Xilinx Zynq UltraScale+ (ZynqMP) device. + - phase : U-Boot phase for which the image is intended. + "spl" - image is an SPL image + "u-boot" - image is a U-Boot image Optional nodes: - hash-1 : Each hash sub-node represents separate hash or checksum
include/image.h +72 -2
104 lines not on this page · raw message
test/boot/Makefile +1 -0
@@ -3,6 +3,7 @@ # Copyright 2021 Google LLC obj-$(CONFIG_BOOTSTD) += bootdev.o bootstd_common.o bootflow.o bootmeth.o +obj-$(CONFIG_FIT) += image.o ifdef CONFIG_OF_LIVE obj-$(CONFIG_BOOTMETH_VBE_SIMPLE) += vbe_simple.o
test/boot/image.c new file +36 -0
@@ -0,0 +1,36 @@ +// SPDX-License-Identifier: GPL-2.0+ +/* +* Test for vbe-simple bootmeth. All start with 'vbe_simple' +* +* Copyright 2023 Google LLC +* Written by Simon Glass <[email protected]> +*/ + +#include <common.h> +#include <image.h> +#include <test/suites.h> +#include <test/ut.h> +#include "bootstd_common.h" + +/* Test of image phase */ +static int test_image_phase (struct unit_test_state *uts) +{ +int val; + +ut_asserteq_str ("U-Boot phase" ,genimg_get_phase_name (IH_PHASE_U_BOOT )); +ut_asserteq_str ("SPL Phase" ,genimg_get_phase_name (IH_PHASE_SPL )); +ut_asserteq_str ("any" ,genimg_get_phase_name (IH_PHASE_NONE )); +ut_asserteq_str ("Unknown Phase" ,genimg_get_phase_name (-1 )); + +ut_asserteq (IH_PHASE_U_BOOT ,genimg_get_phase_id ("u-boot" )); +ut_asserteq (IH_PHASE_SPL ,genimg_get_phase_id ("spl" )); +ut_asserteq (IH_PHASE_NONE ,genimg_get_phase_id ("none" )); +ut_asserteq (-1 ,genimg_get_phase_id ("fred" )); + + val =image_ph (IH_PHASE_SPL ,IH_TYPE_FIRMWARE ); +ut_asserteq (IH_PHASE_SPL ,image_ph_phase (val)); +ut_asserteq (IH_TYPE_FIRMWARE ,image_ph_type (val)); + +return 0 ; +} +BOOTSTD_TEST (test_image_phase,0 );
Signature · 1 line
2.38.0.rc1.362.ged0d419d3c-goog
PATCH v2 28/45 image: Allow loading a FIT image for a particular phase
In reply to Simon GlassAdd support for filtering out FIT images by phase. Rather than adding yet another argument to this already overloaded function, use a composite value, where the phase is only added in if needed.
The FIT config is still selected (and verified) as normal, but the images are selected based on the phase.
Tests for this come in a little later, as part of the updated VPL test.
---
Changes in v2:
- Attach the phase to the image node instead of the configuration node
boot/image-fit.c | 83 +++++++++++++++++++++++++++++++++++----- doc/uImage.FIT/howto.txt | 6 +++ include/image.h | 12 +++--- 3 files changed, 86 insertions(+), 15 deletions(-)
boot/image-fit.c +73 -10
@@ -802,6 +802,40 @@ int fit_image_get_comp(const void *fit, int noffset, uint8_t *comp)return 0 ; } +/** +* fit_image_get_phase() - get the phase for a configuration node +* @fit: pointer to the FIT format image header +* @offset: configuration-node offset +* @phasep: returns the phase +* +* Finds the phase property in a given configuration node. If the property is +* found, its (string) value is translated to the numeric id which is returned +* to the caller. +* +* Returns: 0 on success, -ENOENT if missing, -EINVAL for invalid value +*/ +int fit_image_get_phase (const void *fit,int offset,enum image_phase_t *phasep) +{ +const void *data; +int len, ret; + +/* Get phase name from property data */ + data =fdt_getprop (fit, offset,FIT_PHASE_PROP , &len); +if (!data) { +fit_get_debug (fit, offset,FIT_PHASE_PROP , len); + *phasep =0 ; +return -ENOENT ; + } + +/* Translate phase name to id */ + ret =genimg_get_phase_id (data); +if (ret <0 ) +return ret; + *phasep = ret; + +return 0 ; +} +static int fit_image_get_address (const void *fit,int noffset,char *name,ulong *load) {
@@ -1867,10 +1901,37 @@ int fit_conf_get_prop_node_index(const void *fit, int noffset,return fit_image_get_node (fit, uname); } -int fit_conf_get_prop_node (const void *fit,int noffset, -const char *prop_name) +int fit_conf_get_prop_node (const void *fit,int noffset,const char *prop_name, +enum image_phase_t sel_phase) { -return fit_conf_get_prop_node_index (fit, noffset, prop_name,0 ); +int i, count; + +if (sel_phase ==IH_PHASE_NONE ) +return fit_conf_get_prop_node_index (fit, noffset, prop_name,0 ); + + count =fit_conf_get_prop_node_count (fit, noffset, prop_name); +if (count <0 ) +return count; + +/* check each image in the list */ +for (i =0 ; i < count; i++) { +enum image_phase_t phase; +int ret, node; + + node =fit_conf_get_prop_node_index (fit, noffset, prop_name, i); + ret =fit_image_get_phase (fit, node, &phase); + +/* if the image is for any phase, let's use it */ +if (ret == -ENOENT ) +return node; +else if (ret <0 ) +return ret; + +if (phase == sel_phase) +return node; + } + +return -ENOENT ; } static int fit_get_data_tail(const void *fit, int noffset,
@@ -1906,7 +1967,8 @@ int fit_get_data_conf_prop(const void *fit, const char *prop_name, {int noffset =fit_conf_get_node (fit,NULL ); - noffset =fit_conf_get_prop_node (fit, noffset, prop_name); + noffset =fit_conf_get_prop_node (fit, noffset, prop_name, +IH_PHASE_NONE );return fit_get_data_tail (fit, noffset, data, size); }
@@ -1944,7 +2006,8 @@ int fit_get_node_from_config(struct bootm_headers *images,return -EINVAL ; } - noffset =fit_conf_get_prop_node (fit_hdr, cfg_noffset, prop_name); + noffset =fit_conf_get_prop_node (fit_hdr, cfg_noffset, prop_name, +IH_PHASE_NONE );if (noffset <0 ) {debug ("* %s: no '%s' in config\n" , prop_name, prop_name);return -ENOENT ;
@@ -1990,9 +2053,10 @@ static const char *fit_get_image_type_property(int type)int fit_image_load (struct bootm_headers *images,ulong addr,const char **fit_unamep,const char **fit_uname_configp, -int arch,int image_type,int bootstage_id, +int arch,int ph_type,int bootstage_id,enum fit_load_op load_op,ulong *datap,ulong *lenp) { +int image_type =image_ph_type (ph_type);int cfg_noffset, noffset;const char *fit_uname;const char *fit_uname_config;
@@ -2038,8 +2102,7 @@ int fit_image_load(struct bootm_headers *images, ulong addr,if (IS_ENABLED (CONFIG_FIT_BEST_MATCH ) && !fit_uname_config) { cfg_noffset =fit_conf_find_compat (fit,gd_fdt_blob ()); }else { - cfg_noffset =fit_conf_get_node (fit, - fit_uname_config); + cfg_noffset =fit_conf_get_node (fit, fit_uname_config); }if (cfg_noffset <0 ) {puts ("Could not find configuration node\n" );
@@ -2067,8 +2130,8 @@ int fit_image_load(struct bootm_headers *images, ulong addr,bootstage_mark (BOOTSTAGE_ID_FIT_CONFIG ); - noffset =fit_conf_get_prop_node (fit, cfg_noffset, - prop_name); + noffset =fit_conf_get_prop_node (fit, cfg_noffset, prop_name, +image_ph_phase (ph_type)); fit_uname =fit_get_name (fit, noffset,NULL ); }if (noffset <0 ) {
doc/uImage.FIT/howto.txt +6 -0
@@ -70,6 +70,12 @@ The SPL also records to a DT all additional images (called loadables) which are loaded. The information about loadables locations is passed via the DT node with fit-images name. +Finally, if there are multiple xPL phases (e.g. SPL, VPL), images can be marked +as intended for a particular phase using the 'phase' property. For example, if +fit_image_load() is called with image_ph(IH_PHASE_SPL, IH_TYPE_FIRMWARE), then +only the image listed into the "firmware" property where phase is set to "spl" +will be loaded. + Loadables Example ----------------- Consider the following case for an ARM64 platform where U-Boot runs in EL2
include/image.h +7 -5
@@ -691,9 +691,10 @@ int boot_get_fdt_fit(struct bootm_headers *images, ulong addr,* name (e.g. "conf-1") or NULL to use the default. On * exit points to the selected configuration name. * @param arch Expected architecture (IH_ARCH_...) -* @param image_type Required image type (IH_TYPE_...). If this is +* @param image_ph_type Required image type (IH_TYPE_...). If this is * IH_TYPE_KERNEL then we allow IH_TYPE_KERNEL_NOLOAD -* also. +* also. If a phase is required, this is included also, +* see image_phase_and_type() * @param bootstage_id ID of starting bootstage to use for progress updates. * This will be added to the BOOTSTAGE_SUB values when * calling bootstage_mark()
@@ -704,7 +705,7 @@ int boot_get_fdt_fit(struct bootm_headers *images, ulong addr,*/ int fit_image_load (struct bootm_headers *images,ulong addr,const char **fit_unamep,const char **fit_uname_configp, -int arch,int image_type,int bootstage_id, +int arch,int image_ph_type,int bootstage_id,enum fit_load_op load_op,ulong *datap,ulong *lenp);/**
@@ -1349,14 +1350,15 @@ int fit_conf_get_prop_node_index(const void *fit, int noffset,* @fit: FIT to check * @noffset: Offset of conf@xxx node to check * @prop_name: Property to read from the conf node +* @phase: Image phase to use, IH_PHASE_NONE for any * * The conf- nodes contain references to other nodes, using properties * like 'kernel = "kernel"'. Given such a property name (e.g. "kernel"), * return the offset of the node referred to (e.g. offset of node * "/images/kernel". */ -int fit_conf_get_prop_node (const void *fit,int noffset, -const char *prop_name); +int fit_conf_get_prop_node (const void *fit,int noffset,const char *prop_name, +enum image_phase_t phase);int fit_check_ramdisk (const void *fit,int os_noffset,uint8_t arch,int verify);
Signature · 1 line
2.38.0.rc1.362.ged0d419d3c-goog
PATCH v2 29/45 image: Correct strncpy() warning with image_set_name()
In reply to Simon Glassgcc 12 seems to warn on strncpy() as a matter of course. Rewrite the code a different way to do the same thing, to avoid the warning.
---
(no changes since v1)
include/image.h | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-)
include/image.h +7 -1
@@ -853,7 +853,13 @@ image_set_hdr_b(comp) /* image_set_comp */static inline void image_set_name (struct legacy_img_hdr *hdr,const char *name) { -strncpy (image_get_name (hdr), name,IH_NMLEN ); +/* +* This is equivalent to: strncpy(image_get_name(hdr), name, IH_NMLEN); +* +* Use the tortured code below to avoid a warning with gcc 12. We do not +* want to include a nul terminator if the name is of length IH_NMLEN +*/ +memcpy (image_get_name (hdr), name,strnlen (name,IH_NMLEN )); }int image_check_hcrc (const struct legacy_img_hdr *hdr);
Signature · 1 line
2.38.0.rc1.362.ged0d419d3c-goog
Re: [PATCH v2 29/45] image: Correct strncpy() warning with image_set_name()
Quoted 20 lines · Simon Glass
gcc 12 seems to warn on
strncpy()as a matter of course. Rewrite the code a different way to do the same thing, to avoid the warning.Signed-off-by Simon Glass <[email protected]>---
(no changes since v1)
include/image.h | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-)include/image.h +0
-1@@ -853,7 +853,13 @@ image_set_hdr_b(comp) /* image_set_comp */static inline void image_set_name (struct legacy_img_hdr *hdr,const char *name) { -strncpy (image_get_name (hdr), name,IH_NMLEN );
include/image.h image_set_hdr_b(comp) /* image_set_comp */ · line 865
Quoted 10 lines
include/image.h +7
-0+/* +* This is equivalent to: strncpy(image_get_name(hdr), name, IH_NMLEN); +* +* Use the tortured code below to avoid a warning with gcc 12. We do not +* want to include a nul terminator if the name is of length IH_NMLEN +*/ +memcpy (image_get_name (hdr), name,strnlen (name,IH_NMLEN )); }int image_check_hcrc (const struct legacy_img_hdr *hdr);
memcpy does not add a trailing '\0' if there is enough space.
In a parallel thread today it was indicated that the proper way of addressing the problem is using __attribute__(nonstring), cf.
https://lore.kernel.org/u-boot/[email protected]/
Best regards
Heinrich
Re: [PATCH v2 29/45] image: Correct strncpy() warning with image_set_name()
Hi Heinrich,
Quoted 31 lines · Heinrich Schuchardt
Quoted 29 lines · Simon Glass
gcc 12 seems to warn on
strncpy()as a matter of course. Rewrite the code a different way to do the same thing, to avoid the warning.Signed-off-by Simon Glass <[email protected]>---
(no changes since v1)
include/image.h | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-)include/image.h +7
-1@@ -853,7 +853,13 @@ image_set_hdr_b(comp) /* image_set_comp */static inline void image_set_name (struct legacy_img_hdr *hdr,const char *name) { -strncpy (image_get_name (hdr), name,IH_NMLEN ); +/* +* This is equivalent to: strncpy(image_get_name(hdr), name, IH_NMLEN); +* +* Use the tortured code below to avoid a warning with gcc 12. We do not +* want to include a nul terminator if the name is of length IH_NMLEN +*/ +memcpy (image_get_name (hdr), name,strnlen (name,IH_NMLEN )); }
Quoted 8 lines
include/image.h image_set_hdr_b(comp) /* image_set_comp */ · line 865
Quoted 1 line
include/image.h +0
-0int image_check_hcrc (const struct legacy_img_hdr *hdr);memcpy does not add a trailing '\0' if there is enough space.
In a parallel thread today it was indicated that the proper way of addressing the problem is using
__attribute__(nonstring), cf.
Yes, I pointed Tom to it instead of this. That was the question I asked a month ago but I didn't not know how to find this option.
Regards,
Simon
PATCH v2 30/45 vbe: Rename vbe_fixup to vbe_request
In reply to Simon GlassThe vbe_fixup file handles device tree fixups, but these are called OS requests in VBE. Rename the file to reflect its wider purpose.
---
(no changes since v1)
boot/Makefile | 2 +-
boot/{vbe_fixup.c => vbe_request.c} | 2 +-
test/py/tests/test_event_dump.py | 2 +-
3 files changed, 3 insertions(+), 3 deletions(-)
rename boot/{vbe_fixup.c => vbe_request.c} (98%)boot/Makefile +1 -1
@@ -47,5 +47,5 @@ ifdef CONFIG_SPL_BUILD obj-$(CONFIG_SPL_LOAD_FIT) += common_fit.o endif -obj-$(CONFIG_$(SPL_TPL_)BOOTMETH_VBE) += vbe.o vbe_fixup.o +obj-$(CONFIG_$(SPL_TPL_)BOOTMETH_VBE) += vbe.o vbe_request.o obj-$(CONFIG_$(SPL_TPL_)BOOTMETH_VBE_SIMPLE) += vbe_simple.o
boot/vbe_request.c renamed from boot/vbe_fixup.c +1 -1
@@ -1,6 +1,6 @@// SPDX-License-Identifier: GPL-2.0 /* -* Verified Boot for Embedded (VBE) device tree fixup functions +* Verified Boot for Embedded (VBE) OS request (device tree fixup) functions * * Copyright 2022 Google LLC * Written by Simon Glass <[email protected]>
test/py/tests/test_event_dump.py +1 -1
@@ -16,7 +16,7 @@ def test_event_dump(u_boot_console): out = util.run_and_log(cons, ['scripts/event_dump.py', sandbox]) expect = '''.*Event type Id Source location -------------------- ------------------------------ ------------------------------ -EVT_FT_FIXUP bootmeth_vbe_ft_fixup .*boot/vbe_fixup.c:.* +EVT_FT_FIXUP bootmeth_vbe_ft_fixup .*boot/vbe_request.c:.* EVT_FT_FIXUP bootmeth_vbe_simple_ft_fixup .*boot/vbe_simple.c:.* EVT_MISC_INIT_F sandbox_misc_init_f .*arch/sandbox/cpu/start.c:''' assert re.match(expect, out, re.MULTILINE) is not None
Signature · 1 line
2.38.0.rc1.362.ged0d419d3c-goog
PATCH v2 31/45 vbe: Use a warning for a failed requests
In reply to Simon GlassOptional requests should present a warning rather than an error. Update the log call.
---
(no changes since v1)
boot/vbe_request.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
boot/vbe_request.c +2 -2
@@ -195,8 +195,8 @@ static int bootmeth_vbe_ft_fixup(void *ctx, struct event *event) ret =vbe_process_request (dest, &result);if (ret) { result.errnum = ret; -log_err ("Failed to process VBE request %s (err=%d)\n" , -ofnode_get_name (dest), ret); +log_warning ("Failed to process VBE request %s (err=%d)\n" , +ofnode_get_name (dest), ret);if (*result.err_str) {char *msg =strdup (result.err_str);
Signature · 1 line
2.38.0.rc1.362.ged0d419d3c-goog
PATCH v2 32/45 spl: Allow multiple loaders of the same time
In reply to Simon GlassAt present we only support a single loader of each time. Extra ones are ignored. This means that only one BOOT_DEVICE_BOARD can be used in the SPL image.
This is inconvenient since we sometimes want to provide several board-specific drivers, albeit at different priorties. Add support for this.
This should have no functional change for existing boards.
---
(no changes since v1)
common/spl/spl.c | 56 +++++++++++++++++++++--------------------------- 1 file changed, 25 insertions(+), 31 deletions(-)
common/spl/spl.c +25 -31
@@ -630,23 +630,6 @@ __weak void board_boot_order(u32 *spl_boot_list) spl_boot_list[0 ] =spl_boot_device (); } -static struct spl_image_loader *spl_ll_find_loader (uint boot_device) -{ -struct spl_image_loader *drv = - ll_entry_start(struct spl_image_loader, spl_image_loader); -const int n_ents = - ll_entry_count(struct spl_image_loader, spl_image_loader); -struct spl_image_loader *entry; - -for (entry = drv; entry != drv + n_ents; entry++) { -if (boot_device == entry->boot_device) -return entry; - } - -/* Not found */ -return NULL ; -} -__weak int spl_check_board_image (struct spl_image_info *spl_image,const struct spl_boot_device *bootdev) {
@@ -693,6 +676,10 @@ static int spl_load_image(struct spl_image_info *spl_image,static int boot_from_devices (struct spl_image_info *spl_image,u32 spl_boot_list[],int count) { +struct spl_image_loader *drv = + ll_entry_start(struct spl_image_loader, spl_image_loader); +const int n_ents = + ll_entry_count(struct spl_image_loader, spl_image_loader);int ret = -ENODEV ;int i;
@@ -702,20 +689,27 @@ static int boot_from_devices(struct spl_image_info *spl_image,if (CONFIG_IS_ENABLED (SHOW_ERRORS )) ret = -ENXIO ; - loader =spl_ll_find_loader (bootdev); -if (!CONFIG_IS_ENABLED (SILENT_CONSOLE )) { -if (loader) -printf ("Trying to boot from %s\n" , -spl_loader_name (loader)); -else if (CONFIG_IS_ENABLED (SHOW_ERRORS )) -printf (SPL_TPL_PROMPT -"Unsupported Boot Device %d\n" , bootdev); -else -puts (SPL_TPL_PROMPT "Unsupported Boot Device!\n" ); - } -if (loader && !spl_load_image (spl_image, loader)) { - spl_image->boot_device = bootdev; -return 0 ; +for (loader = drv; loader != drv + n_ents; loader++) { +if (bootdev != loader->boot_device) +continue ; +if (!CONFIG_IS_ENABLED (SILENT_CONSOLE )) { +if (loader) +printf ("Trying to boot from %s\n" , +spl_loader_name (loader)); +else if (CONFIG_IS_ENABLED (SHOW_ERRORS )) { +printf (SPL_TPL_PROMPT +"Unsupported Boot Device %d\n" , + bootdev); + }else { +puts (SPL_TPL_PROMPT +"Unsupported Boot Device!\n" ); + } + } +if (loader && + !spl_load_image (spl_image, loader)) { + spl_image->boot_device = bootdev; +return 0 ; + } } }
Signature · 1 line
2.38.0.rc1.362.ged0d419d3c-goog
PATCH v2 33/45 sandbox: Support obtaining the next phase from an image
In reply to Simon GlassAt present sandbox runs the next phase from discrete executables, so for example u-boot-tpl runs u-boot-vpl to get to the next phase.
In some cases the phases are all built into a single firmware image, as is done for real boards. Add support for this to sandbox.
Make it higher priority so that it takes precedence over the existing method.
---
(no changes since v1)
arch/sandbox/cpu/spl.c | 52 +++++++++++++++++++++++++++++++++++++++++- include/spl.h | 3 +++ 2 files changed, 54 insertions(+), 1 deletion(-)
arch/sandbox/cpu/spl.c +51 -1
@@ -78,7 +78,48 @@ static int spl_board_load_file(struct spl_image_info *spl_image,return 0 ; } -SPL_LOAD_IMAGE_METHOD ("sandbox" ,9 ,BOOT_DEVICE_BOARD , spl_board_load_file); +SPL_LOAD_IMAGE_METHOD ("sandbox_file" ,9 ,BOOT_DEVICE_BOARD , + spl_board_load_file); + +static int load_from_image (struct spl_image_info *spl_image, +struct spl_boot_device *bootdev) +{ +struct sandbox_state *state =state_get_current (); +enum u_boot_phase next_phase; +const char *fname; +ulong pos, size; +int full_size; +void *buf; +int ret; + +if (!IS_ENABLED (CONFIG_SANDBOX_VPL )) +return -ENOENT ; + + next_phase =spl_next_phase (); + pos =spl_get_image_pos (); + size =spl_get_image_size (); +if (pos ==BINMAN_SYM_MISSING || size ==BINMAN_SYM_MISSING ) { +log_debug ("No image found\n" ); +return -ENOENT ; + } +log_info ("Reading from pos %lx size %lx\n" , pos, size); + +/* +* Set up spl_image to boot from jump_to_image_no_args(). Allocate this +* outside the RAM buffer (i.e. don't use strdup()). +*/ + fname = state->prog_fname ? state->prog_fname : state->argv[0 ]; + ret =os_read_file (fname, &buf, &full_size); +if (ret) +return log_msg_ret ("rd" , -ENOMEM ); + spl_image->flags =SPL_SANDBOXF_ARG_IS_BUF ; + spl_image->arg = buf; + spl_image->offset = pos; + spl_image->size = size; + +return 0 ; +} +SPL_LOAD_IMAGE_METHOD ("sandbox_image" ,7 ,BOOT_DEVICE_BOARD , load_from_image);void spl_board_init (void ) {
@@ -109,6 +150,15 @@ void __noreturn jump_to_image_no_args(struct spl_image_info *spl_image) }break ; } +case SPL_SANDBOXF_ARG_IS_BUF : { +int ret; + + ret =os_jump_to_image (spl_image->arg + spl_image->offset, + spl_image->size); +if (ret) +log_err ("Failed to load image\n" ); +break ; + }default :log_err ("Invalid flags\n" );break ;
include/spl.h +3 -0
@@ -232,9 +232,12 @@ static inline const char *spl_phase_prefix(enum u_boot_phase phase)* enum spl_sandbox_flags - flags for sandbox's use of spl_image_info->flags * * @SPL_SANDBOXF_ARG_IS_FNAME: arg is the filename to jump to (default) +* @SPL_SANDBOXF_ARG_IS_BUF: arg is the containing image to jump to, @offset is +* the start offset within the image, @size is the size of the image */ enum spl_sandbox_flags {SPL_SANDBOXF_ARG_IS_FNAME =0 , +SPL_SANDBOXF_ARG_IS_BUF , };struct spl_image_info {
Signature · 1 line
2.38.0.rc1.362.ged0d419d3c-goog