[PATCH v2 2/2] pxe_utils: Clean up {bootm,zboot}_argv generation

2021-10-20 Thread Zhaofeng Li
Signed-off-by: Zhaofeng Li Cc: Simon Glass Cc: Bin Meng --- cmd/pxe_utils.c | 45 +++-- 1 file changed, 27 insertions(+), 18 deletions(-) diff --git a/cmd/pxe_utils.c b/cmd/pxe_utils.c index 78ebfdcc79..b79fcb6418 100644 --- a/cmd/pxe_utils.c +++ b/cmd

[PATCH v2 1/2] pxe_utils: Fix arguments to x86 zboot

2021-10-20 Thread Zhaofeng Li
the kernel size (should be argv[3]). zboot also expects the initrd address and size to be separate arguments. Let's untangle them and have separate argv/argc locals. Signed-off-by: Zhaofeng Li Cc: Simon Glass Cc: Bin Meng --- cmd/pxe_utils.c | 12 +++- 1 file changed, 11 insertions(

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

2021-10-20 Thread Zhaofeng Li
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 g

[PATCH] pxe_utils: Fix arguments to x86 zboot

2021-10-16 Thread Zhaofeng Li
the kernel size (should be argv[3]). zboot also expects the initrd address and size to be separate arguments. Let's untangle them and have separate argv/argc locals. Signed-off-by: Zhaofeng Li Cc: Simon Glass Cc: Bin Meng diff --git a/cmd/pxe_utils.c b/cmd/pxe_utils.c index 067c24e5ff..78ebfdcc7