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 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 smtp.lore.kernel.org (Postfix) with ESMTPS id 56775C00145 for ; Mon, 12 Dec 2022 21:35:13 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id D5A108544B; Mon, 12 Dec 2022 22:35:04 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=konsulko.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (1024-bit key; unprotected) header.d=konsulko.com header.i=@konsulko.com header.b="FzKiRrMq"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 9550884FD4; Mon, 12 Dec 2022 22:35:00 +0100 (CET) Received: from mail-qt1-x82c.google.com (mail-qt1-x82c.google.com [IPv6:2607:f8b0:4864:20::82c]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id 7960C8527C for ; Mon, 12 Dec 2022 22:34:56 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=konsulko.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=trini@konsulko.com Received: by mail-qt1-x82c.google.com with SMTP id x11so4842281qtv.13 for ; Mon, 12 Dec 2022 13:34:56 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=konsulko.com; s=google; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:from:to:cc:subject:date:message-id:reply-to; bh=5kxntNIck0+l1ZDI7zKHaiD4lecp18iMZk2Mh2cn+34=; b=FzKiRrMqV8hczpESlddSGuJ4ump2ack7QAumZCeSSozqi40ukKW35mgaNSrrSfW6wD CPBGp0kTzspJxTy3PL7dn+ksrtcIm1GJjYFNweXLqDMmOBzm/wwjdTXLVnp5PR/CTEsI MDchgp/pDUczhTJNkZeXRj+9/tbeMOt8hysMA= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=5kxntNIck0+l1ZDI7zKHaiD4lecp18iMZk2Mh2cn+34=; b=HBURdNUvfujI2+k1gcIpJHo9pa7jNEIcL+WN2X9vxmI6F3GxAZGmoJLw71Q3fVkSHF pMJi0Rc6wtDxJyqFW7VQhm7wv20dSm12Dpau+ix0yKSNvV7eCrXYhxVDr5XPUZCNuxaU iRbtJea7cB4dt6HHxG9A94I5L8x0qpPtKuG0wwa9b0VsfxhryUKu2QBod6frYEnuldf+ ewGwWCj+SCghoLML2PmJC5PItPxxQ6FoxhJYr0WgLzNNUXjVtTwIVh5bbpwQ0VcrlXlJ WKptXpAVLGaxaXrMoVhzgHdklFhOf5fpRFjMT9rsJtNwMI6/jGWwhZzMSdRZEb7tyuMD gCEw== X-Gm-Message-State: ANoB5plZQZnvxQPYfKZ6tIRVP7JBSBzKj5GuobcaqAjfy+ouLK5DCd8e Lg8yeADYDOYVTgamJZR4Z5fp0w== X-Google-Smtp-Source: AA0mqf525T97PfZR3qC45x1XWwh6QHlvgkLRbHqwsc1Fnq3JkKQYoEOZn6/S+QKSmbUVsgHRFGVZSQ== X-Received: by 2002:a05:622a:40ca:b0:3a6:ee87:20e7 with SMTP id ch10-20020a05622a40ca00b003a6ee8720e7mr25901482qtb.68.1670880895283; Mon, 12 Dec 2022 13:34:55 -0800 (PST) Received: from bill-the-cat (2603-6081-7b00-6400-8c5e-02dc-44a6-fa90.res6.spectrum.com. [2603:6081:7b00:6400:8c5e:2dc:44a6:fa90]) by smtp.gmail.com with ESMTPSA id k16-20020a05622a03d000b0039a610a04b1sm6602567qtx.37.2022.12.12.13.34.54 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 12 Dec 2022 13:34:54 -0800 (PST) Date: Mon, 12 Dec 2022 16:34:53 -0500 From: Tom Rini To: Patrick Delaunay Cc: u-boot@lists.denx.de, Ramon Fried , Peter Hoyes , Amjad Ouled-Ameur , Artem Lapkin , Edoardo Tomelleri , Heinrich Schuchardt , Neil Armstrong , Simon Glass , Zhang Ning , Zhaofeng Li , U-Boot STM32 Subject: Re: [PATCH 2/3] cmd: pxe: support INITRD and FDT selection with FIT Message-ID: <20221212213453.GF3787616@bill-the-cat> References: <20221028090120.1536827-1-patrick.delaunay@foss.st.com> <20221028110055.2.I4662774cdd525de1992f84f0ea97255e2e43d8c2@changeid> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="ke0KUbML/F2VkA+s" Content-Disposition: inline In-Reply-To: <20221028110055.2.I4662774cdd525de1992f84f0ea97255e2e43d8c2@changeid> X-Clacks-Overhead: GNU Terry Pratchett X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.39 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.6 at phobos.denx.de X-Virus-Status: Clean --ke0KUbML/F2VkA+s Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Fri, Oct 28, 2022 at 11:01:19AM +0200, Patrick Delaunay wrote: > Since the commit d5ba6188dfbf ("cmd: pxe_utils: Check fdtcontroladdr > in label_boot") the FDT or the FDTDIR label is required in extlinux.conf > and the fallback done by bootm command when only the device tree present > in this command parameters is no more performed when FIT is used for > kernel. >=20 > When the label FDT or FDTDIR are absent or if the device tree file is > absent, the PXE command in U-Boot uses the default U-Boot device tree > selected by fdtcontroladdr =3D gd->fdt_blob, it is the "Scenario 3". >=20 > With this scenario the bootm FIP fallback is no more possible with > the extlinux.conf when only "kernel" label is present and is a FIP: >=20 > kernel #[#=20 > As the U-Boot FDT is always provided in the third bootm argument, > the device tree found in FIP is not used as fallback, it was done > previously in boot_get_fdt(). >=20 > This patch adds a new field kernel_label to save the full kernel label. > The FDT bootm parameters use the kernel address (to avoid to load a > second time the same FIP) and the config when this full label is reused > for "fdt" or "initrd" label. >=20 > This FIP support in extlinux.conf is restored when the "FDT" label > can be found and select the same FIP (identical file and configuration): >=20 > kernel #[# fdt #[#=20 > The patch add also this possibility for initrd. >=20 > initrd #[#=20 > Signed-off-by: Patrick Delaunay > Reviewed-by: Neil Armstrong Applied to u-boot/next, thanks! --=20 Tom --ke0KUbML/F2VkA+s Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQGzBAABCgAdFiEEGjx/cOCPqxcHgJu/FHw5/5Y0tywFAmOXnnwACgkQFHw5/5Y0 tyyB8Av/V/UQkQSD3TZF6cP6sDhvjrQ/cPuDUGrgp5EYx7bfVBPPG1U9mskgAxsu Wki1FGzgnJX+SA82NmlTS3eTf1S5cmJH4ao1ntXbetsaUArhdPNpEMnyesZ1FxVc YC4bxAiH6fyYAeD3g46cYs2DsnsmmGVY0vDrLMHkJ1K925O2iK51Qtp3kz40kPwY DVE7AxmDAAhgjC5ecE1eW5SlIc/m341zSi9WwwsH39scniSM4v7jQEb4H2StjZHi dc/hiJDhydB+uMOKIguuuwkLs25LNjBg+bxarYeb2ZAYRg0AYq8B7WMmekGAvq7T gc9ykIQpclFvSEojLph9H5GQuZXAeoI9OmVs84OiIUGscNTcVnOTivTTOweawArq pI+2MO3zyzRhVXwbSig7+DyQMiHykGrGiuWGOYtE3+p506vSrAcpwuPxI4YJAw1n 2qUsIOqBdml4JACwMx8oDjl5jj/N5zgDwn1bT4DDlMh5KtMXZ98gxBzG/N7N4jQq Nj+GFRoi =Pq/+ -----END PGP SIGNATURE----- --ke0KUbML/F2VkA+s--