[PATCH v3 00/46] pxe: Support read_all() for extlinux and PXE
Tom Rini
trini at konsulko.com
Fri Jan 24 20:18:30 CET 2025
On Thu, Dec 05, 2024 at 07:35:39PM -0700, Simon Glass wrote:
> This series implements read_all() so that it is possible to read all the
> files relating to a bootflow, make adjustments and then boot.
>
> Unfortunately quite a few things stand in the way, so this series
> finishes off several pending items: zboot without CONFIG_CMDLINE,
> required support in pxe_utils and the differing code in the extlinux and
> PXE bootmeths. There is very little new code, but quite a lot of
> refactoring.
>
> The bootm, booti and bootz commands have all been refactored previously,
> so that they can operate without needing CONFIG_CMDLINE to be enabled.
> At the, time, zboot was left alone, since it is x86-specific and a bit
> more trouble.
>
> However it turns out that the booti support doesn't work with compressed
> booti images, so this series resolved that problem too.
>
> This series adds a programatic API for zboot and uses the forthcoming
> bootstd 'image list' to collect information from an extlinux file. It is
> therefore possible to parse the file, load the resulting images and then
> examine/adjust the resulting bootflow, before booting.
>
> The addition of options to extlinux resulted in the PXE and extlinux
> bootmeth having slightly different features. This is tidied up in this
> series, with common functions for both. This allows the same features
> (loading images as a separate step) to be provided for PXE.
With v4 of 45/46, this fails with lwIP on Pi in the PXE tests now. You
likely don't need more than CONFIG_NET_LWIP=y being added but for
completeness here's everything:
CONFIG_UNIT_TEST=y
# CONFIG_CMD_EFIDEBUG is not set
CONFIG_CMD_BOOTMENU=y
CONFIG_CMD_LOG=y
# CONFIG_CMD_BOOTEFI_SELFTEST is not set
CONFIG_IPV6=y
CONFIG_IPV6_ROUTER_DISCOVERY=y
CONFIG_CMD_TFTPPUT=y
CONFIG_CMD_WGET=y
CONFIG_FIT=y
CONFIG_FIT_SIGNATURE=y
CONFIG_FIT_BEST_MATCH=y
CONFIG_SYS_BOOTM_LEN=0x4000000
CONFIG_NET_LWIP=y
CONFIG_BOOTSTAGE_STASH_ADDR=0x02400000
CONFIG_BOOTSTAGE=y
CONFIG_BOOTSTAGE_STASH=y
CONFIG_CMD_BOOTSTAGE=y
on top of rpi_3_defconfig.
--
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 659 bytes
Desc: not available
URL: <https://lists.denx.de/pipermail/u-boot/attachments/20250124/81760edf/attachment.sig>
More information about the U-Boot
mailing list