Skip to content

pxe: Allow extlinux booting without CMDLINE enabled

Simon Glass u-boot 2 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest16 patches 9 repliesIn review
  2. v114 patches 14 repliesSuperseded

Changes in v2 from the cover letter

- Use unmap_sysmem() too
- Drop check for NULL with env_set()
- Avoid changing the logic when a command is not set
- Split out the strlcpy() change into its own patch
- Update commit message to mention booti
- Use bootm_init() instead of memset()

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/16boot: Reorder FIT and BOOTSTD to be firstboot/Kconfig+18 -180 replies
2/16bootm: Add a Kconfig option for bootm functionalityboot/Kconfig boot/Makefile cmd/Kconfig +22 more+36 -230 replies
3/16bootm: Make OS booting dependent on BOOTMboot/Kconfig cmd/Kconfig+49 -490 replies
4/16treewide: Make arch-specific bootm code depend on BOOTMarch/arc/lib/Makefile arch/arm/lib/Makefile arch/m68k/lib/Makefile +9 more+12 -121 reply
5/16boot: Update SYS_BOOTM_LEN to depend on BOOTMboot/Kconfig+1 -10 replies
6/16fastboot: Change fastboot_buf_addr to an addresscmd/fastboot.c drivers/fastboot/fb_command.c drivers/fastboot/fb_common.c +2 more+21 -210 replies
7/16bootm: Make cmdline optional with bootm_boot_start()include/bootm.h+1 -10 replies
8/16fastboot: Remove dependencies on CMDLINEdrivers/fastboot/Kconfig drivers/fastboot/fb_common.c+14 -172 replies
9/16doc: Mention fastboot dependency on CMDLINEdoc/android/fastboot.rst+1 -02 replies
10/16pxe: Use strlcpy() instead of strcpy() in label_boot()boot/pxe_utils.c+1 -10 replies
11/16pxe: Refactor to reduce the size of label_boot()boot/pxe_utils.c+163 -1380 replies
12/16pxe: Refactor to avoid over-using bootm_argvboot/pxe_utils.c+12 -100 replies
13/16pxe: Move calculation of FDT file into a functionboot/pxe_utils.c+64 -480 replies
14/16pxe: Allow booting without CMDLINE for bootm methodsboot/pxe_utils.c+15 -170 replies
15/16pxe: Allow booting without CMDLINE for the zboot methodboot/pxe_utils.c+8 -110 replies
16/16x86: Drop message about features being missing with 64-bitarch/x86/lib/spl.c doc/board/emulation/qemu-x86.rst+2 -20 replies

Reviews trailers per patch

5 of 16 patches have a Reviewed-by or Acked-by.

PatchTom RiniDmitrii MerkurevMattijs KorpershoekSam ProtsenkoAngelo Dureghello
1/16
2/16
3/16R-b
4/16A-b
5/16
6/16R-b R-b T-b
7/16
8/16R-b
9/16R-b R-b
10/16
11/16
12/16
13/16
14/16
15/16
16/16

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes. Scroll the table sideways for all 5 reviewers.

Read the v2 thread

Cover letter [PATCH v2 00/16] pxe: Allow extlinux booting without CMDLINE enabled

This series is the culmanation of the current line of refactoring series. It adjusts pxe to call the booting functionality directly rather than going through the command-line interface.

With this is is possible to boot using the extlinux bootmeth without the command line enabled.

It also updates fastboot to do a similar thing.

This is cmdf (part f of CMDLINE refactoring)
It depends on dm/cmde-working
which depends on dm/cmdd-working
which depends on dm/bootstda-working
which depends on dm/cmdc-working

Changes in v2:
- Use unmap_sysmem() too
- Drop check for NULL with env_set()
- Avoid changing the logic when a command is not set
- Split out the strlcpy() change into its own patch
- Update commit message to mention booti
- Use bootm_init() instead of memset()

Simon Glass (16):
boot: Reorder FIT and BOOTSTD to be first
bootm: Add a Kconfig option for bootm functionality
bootm: Make OS booting dependent on BOOTM
treewide: Make arch-specific bootm code depend on BOOTM
boot: Update SYS_BOOTM_LEN to depend on BOOTM
fastboot: Change fastboot_buf_addr to an address
bootm: Make cmdline optional with bootm_boot_start()
fastboot: Remove dependencies on CMDLINE
doc: Mention fastboot dependency on CMDLINE
pxe: Use strlcpy() instead of strcpy() in label_boot()
pxe: Refactor to reduce the size of label_boot()
pxe: Refactor to avoid over-using bootm_argv
pxe: Move calculation of FDT file into a function
pxe: Allow booting without CMDLINE for bootm methods
pxe: Allow booting without CMDLINE for the zboot method
x86: Drop message about features being missing with 64-bit

 arch/arc/lib/Makefile                         |   2 +-
 arch/arm/lib/Makefile                         |   2 +-
 arch/m68k/lib/Makefile                        |   2 +-
 arch/microblaze/lib/Makefile                  |   2 +-
 arch/mips/lib/Makefile                        |   2 +-
 arch/nios2/lib/Makefile                       |   2 +-
 arch/powerpc/lib/Makefile                     |   2 +-
 arch/riscv/lib/Makefile                       |   2 +-
 arch/sandbox/lib/Makefile                     |   2 +-
 arch/sh/lib/Makefile                          |   2 +-
 arch/x86/lib/Makefile                         |   2 +-
 arch/x86/lib/spl.c                            |   2 +-
 arch/xtensa/lib/Makefile                      |   2 +-
 boot/Kconfig                                  |  99 ++++-
 boot/Makefile                                 |   2 +-
 boot/pxe_utils.c                              | 360 ++++++++++--------
 cmd/Kconfig                                   |  50 +--
 cmd/fastboot.c                                |   2 +-
 configs/colibri_vf_defconfig                  |   2 +-
 configs/iot_devkit_defconfig                  |   2 +-
 configs/mx6memcal_defconfig                   |   2 +-
 configs/tools-only_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_mini_ospi_defconfig     |   2 +-
 configs/xilinx_versal_mini_qspi_defconfig     |   2 +-
 configs/xilinx_versal_net_mini_defconfig      |   2 +-
 configs/xilinx_versal_net_mini_emmc_defconfig |   2 +-
 configs/xilinx_versal_net_mini_ospi_defconfig |   2 +-
 configs/xilinx_versal_net_mini_qspi_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/zynq_cse_nand_defconfig               |   2 +-
 configs/zynq_cse_nor_defconfig                |   2 +-
 configs/zynq_cse_qspi_defconfig               |   2 +-
 doc/android/fastboot.rst                      |   1 +
 doc/board/emulation/qemu-x86.rst              |   2 +-
 drivers/fastboot/Kconfig                      |   1 -
 drivers/fastboot/fb_command.c                 |  17 +-
 drivers/fastboot/fb_common.c                  |  37 +-
 include/bootm.h                               |   2 +-
 include/fastboot-internal.h                   |   2 +-
 include/fastboot.h                            |   6 +-
 48 files changed, 350 insertions(+), 301 deletions(-)
Signature · 1 line
2.43.0.472.g3155946c3a-goog