Skip to content

pxe_utils: Fix arguments to x86 zboot

Zhaofeng Li u-boot 2 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest2 patches 3 repliesIn review
  2. v11 patch 1 replySuperseded

Changes in v2 from the cover letter

- Added patch to clean up argv generation

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2pxe_utils: Fix arguments to x86 zbootcmd/pxe_utils.c+11 -11 reply
2/2pxe_utils: Clean up {bootm,zboot}_argv generationcmd/pxe_utils.c+27 -181 reply

Reviews trailers per patch

All 2 patches have a Reviewed-by or Acked-by.

PatchSimon Glass
1/2R-b
2/2R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v2 thread

Cover letter [PATCH v2 0/2] pxe_utils: Fix arguments to x86 zboot

Hi Simon,

Thanks for your review! I have added a second patch to perform the cleanup that you mentioned in the review, so the actual "fix" patch stays minimal and easy to review.

I agree that calling the bootm and zboot code directly is the real solution to go. The current method is inherently error-prone, and I wonder how many cases of "kinda works but not really" [1] like this are there in U-Boot.

Thanks,
Zhaofeng Li

[1] Without the patch, the kernel would boot with the U-Boot log showing initrd being loaded. However, the kernel wouldn't actually get the initrd.

---

This patch series fixes the issue that incorrect arguments are passed to x86 zboot in pxe_utils (pxe/extlinux-like config). See the commit message of the first patch for details.

Changes since v1:
- Added patch to clean up argv generation

Zhaofeng Li (2):
pxe_utils: Fix arguments to x86 zboot
pxe_utils: Clean up {bootm,zboot}_argv generation

 cmd/pxe_utils.c | 45 ++++++++++++++++++++++++++++++++-------------
 1 file changed, 32 insertions(+), 13 deletions(-)
Signature · 1 line
2.33.0