Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 68813C433F5 for ; Wed, 20 Oct 2021 07:18:36 +0000 (UTC) Received: from phobos.denx.de (phobos.denx.de [85.214.62.61]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 9EF7C60FD8 for ; Wed, 20 Oct 2021 07:18:32 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org 9EF7C60FD8 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=zhaofeng.li Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=lists.denx.de Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 015D983246; Wed, 20 Oct 2021 09:18:30 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=zhaofeng.li Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (2048-bit key; unprotected) header.d=zhaofeng.li header.i=@zhaofeng.li header.b="eGSQpl1U"; dkim=pass (2048-bit key; unprotected) header.d=messagingengine.com header.i=@messagingengine.com header.b="G9u+WQ72"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id E23EF83246; Wed, 20 Oct 2021 09:18:29 +0200 (CEST) Received: from wout5-smtp.messagingengine.com (wout5-smtp.messagingengine.com [64.147.123.21]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id C56D783276 for ; Wed, 20 Oct 2021 09:18:25 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=zhaofeng.li Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=hello@zhaofeng.li Received: from compute5.internal (compute5.nyi.internal [10.202.2.45]) by mailout.west.internal (Postfix) with ESMTP id 615A03201C79; Wed, 20 Oct 2021 03:18:23 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute5.internal (MEProxy); Wed, 20 Oct 2021 03:18:23 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=zhaofeng.li; h= from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; s=fm1; bh=mFm9fmoMaGLWFV9zScg/+ksjzd vYZqbs1Am4Hb7xArU=; b=eGSQpl1UZ9TY56hnIKuXbtdk3W5iMgqCBH3NTEdFsh ewDEOmasKGoq9HjnLvn0JlkcmFq13ZaeQ4wkK+81XSjExnPtDK9m0EKadxbncnhu N4BSJIS8QPC88shN59mnTWuX/BM9zXVRH5DbY9+RzKf6Ond1yMuziuqiYaklPlxi igJS88d22RZN3CMgUgYOlZ/LyNfAPfi4yYTFEYoJWaUNTbkN3ji53mHfHSCFDB8o /TNn1s9GaQ3bFfkKocJFYMePiqQKIWV4SVf4/nOl+Gya//3/ton0ka3lW1oDWWr2 2w3XwZ7ZrabigdVUqjZkB5UxQPc9RWf6pU0b6s5AavgA== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:date:from :message-id:mime-version:subject:to:x-me-proxy:x-me-proxy :x-me-sender:x-me-sender:x-sasl-enc; s=fm1; bh=mFm9fmoMaGLWFV9zS cg/+ksjzdvYZqbs1Am4Hb7xArU=; b=G9u+WQ72njXDFWceQtcJ39Ie1nm+Y5gRZ 8hB+eZAf8E/fqZ+kv+PWI1NbIzWhCxLSwL6XVmXDUoxMQ5ZC33mlGOgW2Dk+aZfv sP94YS/AKHtpnky8PQ0Y4ufM5iY5+8bsUH8eal3LyzpRqbe3fHB4mU5Kb+S0n1aK XzC8vK3y6AGLMYt6cuR04OuwD5fztRROqGX1EbnFtZ/rRmNWj7+s2Cq6W0w8LEss acwdQMUjMRM/xiJLWu1F1JIbHLjCBW88pGHqnPr7U9GxgOJET0mI5nNM2LI2ITzb Y7LgRckczXBx7qAdEntP3DRr1bUETLRuj5fT1D8ceHowsau1IGNbQ== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvtddrvddvfedgudduvdcutefuodetggdotefrod ftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfgh necuuegrihhlohhuthemuceftddtnecunecujfgurhephffvufffkffoggfgsedtkeertd ertddtnecuhfhrohhmpegkhhgrohhfvghnghcunfhiuceohhgvlhhlohesiihhrghofhgv nhhgrdhliheqnecuggftrfgrthhtvghrnhepieffheeghfelvefgieeuhefhgedvieeuue etuddttdetveejkeehgeduueethfdunecuvehluhhsthgvrhfuihiivgeptdenucfrrghr rghmpehmrghilhhfrhhomhephhgvlhhlohesiihhrghofhgvnhhgrdhlih X-ME-Proxy: Received: by mail.messagingengine.com (Postfix) with ESMTPA; Wed, 20 Oct 2021 03:18:22 -0400 (EDT) From: Zhaofeng Li To: u-boot@lists.denx.de Cc: Simon Glass , Bin Meng , Zhaofeng Li Subject: [PATCH v2 0/2] pxe_utils: Fix arguments to x86 zboot Date: Wed, 20 Oct 2021 00:18:13 -0700 Message-Id: <20211020071815.115763-1-hello@zhaofeng.li> X-Mailer: git-send-email 2.33.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.34 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" X-Virus-Scanned: clamav-milter 0.103.2 at phobos.denx.de X-Virus-Status: Clean 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(-) -- 2.33.0