u-boot/arch
Tom Rini 9565771076 Merge patch series "bootm: Refactoring to reduce reliance on CMDLINE (part A)"
To quote the author:

It would be useful to be able to boot an OS when CONFIG_CMDLINE is
disabled. This could allow reduced code size.

Standard boot provides a way to handle programmatic boot, without
scripts, so such a feature is possible. The main impediment is the
inability to use the booting features of U-Boot without a command line.
So the solution is to avoid passing command arguments and the like to
code in boot/

A similar process has taken place with filesystems, for example, where
we have (somewhat) separate Kconfig options for the filesystem commands
and the filesystems themselves.

This series starts the process of refactoring the bootm logic so that
it can be called from standard boot without using the command line.
Mostly it removes the use of argc, argv and cmdtbl from the internal
logic.

Some limited tidy-up is included, but this is kept to smaller patches,
rather than trying to remove all #ifdefs etc. Some function comments
are added, however.

A simple programmatic boot is provided as a starting point.

This work will likely take many series, so this is just the start.

Size growth with this series for firefly-rk3288 (Thumb2) is:

       arm: (for 1/1 boards) all +23.0 rodata -49.0 text +72.0

This should be removed by:

   https://source.denx.de/u-boot/custodians/u-boot-dm/-/issues/11

but it is not included in this series as it is already large enough.

No functional change is intended in this series.

Changes in v3:
- Add a panic if programmatic boot fails
- Drop RFC tag

Changes in v2:
- Add new patch to adjust position of unmap_sysmem() in boot_get_kernel()
- Add new patch to obtain command arguments
- Fix 'boot_find_os' typo
- Pass in the command name
- Use the command table to provide the command name, instead of "bootm"
2023-12-13 11:51:53 -05:00
..
arc arc: Remove common.h usage 2023-10-24 16:34:45 -04:00
arm Merge patch series "bootm: Refactoring to reduce reliance on CMDLINE (part A)" 2023-12-13 11:51:53 -05:00
m68k m68k: Remove CONFIG_FSLDMAFEC 2023-11-07 14:50:51 -05:00
microblaze microblaze: Remove common.h usage 2023-10-24 16:34:45 -04:00
mips mips: io.h: Add defines for read/write/in/out functions 2023-11-28 16:19:06 -05:00
nios2 nios2: io.h: Add defines for ins/outs functions 2023-11-28 16:19:06 -05:00
powerpc Merge patch series "Import "string" I/O functions from Linux" 2023-11-28 16:19:19 -05:00
riscv riscv: io.h: Fix signatures of reads/writes functions 2023-11-28 16:19:06 -05:00
sandbox Merge patch series "Import "string" I/O functions from Linux" 2023-11-28 16:19:19 -05:00
sh spl: Use SYS_MALLOC_F instead of SYS_MALLOC_F_LEN 2023-10-06 14:38:12 -04:00
x86 Merge patch series "bootm: Refactoring to reduce reliance on CMDLINE (part A)" 2023-12-13 11:51:53 -05:00
xtensa xtensa: io.h: Add defines for ins/outs functions 2023-11-28 16:19:06 -05:00
.gitignore
Kconfig scsi: Forceably finish migration to DM_SCSI 2023-11-07 18:36:06 -05:00
Kconfig.nxp LFU-544: Kconfig.nxp: Fixed secure boot on LS-CH2 platforms 2023-07-06 13:04:56 +08:00
u-boot-elf.lds