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 56725C38A02 for ; Fri, 28 Oct 2022 09:01:47 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id A16F884EF8; Fri, 28 Oct 2022 11:01:45 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=foss.st.com 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=foss.st.com header.i=@foss.st.com header.b="ID7VuEea"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id D95A584EF7; Fri, 28 Oct 2022 11:01:43 +0200 (CEST) Received: from mx07-00178001.pphosted.com (mx07-00178001.pphosted.com [185.132.182.106]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id 65C1184EC3 for ; Fri, 28 Oct 2022 11:01:41 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=foss.st.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=prvs=7300081d9c=patrick.delaunay@foss.st.com Received: from pps.filterd (m0288072.ppops.net [127.0.0.1]) by mx07-00178001.pphosted.com (8.17.1.5/8.17.1.5) with ESMTP id 29S886mV008626; Fri, 28 Oct 2022 11:01:36 +0200 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=foss.st.com; h=from : to : cc : subject : date : message-id : mime-version : content-transfer-encoding : content-type; s=selector1; bh=uQZXYAPwTS7FG6o+ZcNUSZg8CFac9mMv7SbCYCuZS0U=; b=ID7VuEeaKJZ3FWWOc0lP0ARF4HdrGW5bpVWUuhhz0T8Sgn+X0Dlu/x3NXjs7ohblK0PR lvaWJNPtU/cH6No351/ILqLTSQoMjrbPwiCHVuxiJCK+pAGtO88gIjWwEPdSwkZ75Q1q LYUxwjoPwuIGyREMhvpvCP+Gk6JeJt76TgCraGxA2lFoVXMlvEmfQre9K5kfE6OJFUgR VbobJJkcWZ/mLdQr9Z4QhwDTv4XgXhaXe3BPVeJ2VwYr7tdztmYO2mfobdNhZPgDv/T0 c7bK7yOi+/ScEhDXkORfMKZt38UUIg+xMnAlxGSYXuT8PcD6qVwhwHQObUYHzvq1cxxq kQ== Received: from beta.dmz-eu.st.com (beta.dmz-eu.st.com [164.129.1.35]) by mx07-00178001.pphosted.com (PPS) with ESMTPS id 3kfagcbj3t-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Fri, 28 Oct 2022 11:01:36 +0200 Received: from euls16034.sgp.st.com (euls16034.sgp.st.com [10.75.44.20]) by beta.dmz-eu.st.com (STMicroelectronics) with ESMTP id 4F7DF10002A; Fri, 28 Oct 2022 11:01:31 +0200 (CEST) Received: from Webmail-eu.st.com (shfdag1node3.st.com [10.75.129.71]) by euls16034.sgp.st.com (STMicroelectronics) with ESMTP id 29524215133; Fri, 28 Oct 2022 11:01:31 +0200 (CEST) Received: from localhost (10.48.0.157) by SHFDAG1NODE3.st.com (10.75.129.71) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.31; Fri, 28 Oct 2022 11:01:30 +0200 From: Patrick Delaunay To: CC: Ramon Fried , Peter Hoyes , Patrick Delaunay , Amjad Ouled-Ameur , Artem Lapkin , Edoardo Tomelleri , Heinrich Schuchardt , Neil Armstrong , Simon Glass , Zhang Ning , Zhaofeng Li , U-Boot STM32 Subject: [PATCH 0/3] cmd: pxe: support INITRD and FDT selection with FIT Date: Fri, 28 Oct 2022 11:01:17 +0200 Message-ID: <20221028090120.1536827-1-patrick.delaunay@foss.st.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-Originating-IP: [10.48.0.157] X-ClientProxiedBy: SHFCAS1NODE2.st.com (10.75.129.73) To SHFDAG1NODE3.st.com (10.75.129.71) X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.205,Aquarius:18.0.895,Hydra:6.0.545,FMLib:17.11.122.1 definitions=2022-10-28_04,2022-10-27_01,2022-06-22_01 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 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 is present in this command parameters is no more performed when FIT is used for kernel. The next file "extlinux.conf" no more selects the device tree in FIT but use the pxe fallback with the device tree of U-Boot. menu title Select the boot mode DEFAULT test LABEL test KERNEL /fitImage This serie restores the possibility to use a FIT in extlinux.conf by using FDT label with the same string. menu title Select the boot mode DEFAULT test LABEL test KERNEL /fitImage FDT /fitImage even when a specific FIT config is used: menu title Select the boot mode DEFAULT test LABEL test KERNEL /fitImage#config FDT /fitImage#config The last commit of the series is only a minor improvement. Patrick Delaunay (3): cmd: pxe: reorder kernel treatment in label_boot cmd: pxe: support INITRD and FDT selection with FIT cmd: pxe: use strdup to copy config boot/pxe_utils.c | 69 +++++++++++++++++++++++++-------------------- doc/README.pxe | 8 ++++++ include/pxe_utils.h | 2 ++ 3 files changed, 49 insertions(+), 30 deletions(-) -- 2.25.1