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 8AE86C4332F for ; Tue, 13 Dec 2022 14:31:53 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 52F2C854B2; Tue, 13 Dec 2022 15:31:47 +0100 (CET) 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="ENh1ZIwo"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id ABF3D854B5; Tue, 13 Dec 2022 15:31:45 +0100 (CET) Received: from mx07-00178001.pphosted.com (mx08-00178001.pphosted.com [91.207.212.93]) (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 A519B830FA for ; Tue, 13 Dec 2022 15:31:42 +0100 (CET) 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=8346722abf=patrick.delaunay@foss.st.com Received: from pps.filterd (m0046660.ppops.net [127.0.0.1]) by mx07-00178001.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 2BDDtxDs021357; Tue, 13 Dec 2022 15:31:37 +0100 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=foss.st.com; h=message-id : date : mime-version : subject : to : cc : references : from : in-reply-to : content-type : content-transfer-encoding; s=selector1; bh=5a9CVPA7OQfyBMUnzp6ZqNqPYzCfIjwvu+KOIR2YznA=; b=ENh1ZIwo9YuzTAnr6kLXi4Q8w3xhpVtrEjd7n6uYWgMHmSukk1zrVhL8Hz0r353pcQB/ dSj9NUrujwbkBqdrb7rThiGIvulJNDFaVnL5zJDbPwWgtEmLw6K4qDxijHIGQfFVTIyT nPPzMNaRXKTVXQAFsRRL/Y7UdJjD/tgS+y7W8h8TfTo0Vbf0C2+zyE6nyl8O15wbBexD qJNhe0BbeKPQ5AC9sKY+EU3KHIy5qXVhQRtM7hmqU4/bPNpqMRntvzdhK9xFVZlme55+ 8ASZmKeISA6rrMR9rN5VyxKVCQitGMz1VleHffaQVRBWy3jYTy/paXAHHqK49DKbAUaX Sg== 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 3mepxx1vn8-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Tue, 13 Dec 2022 15:31:37 +0100 Received: from euls16034.sgp.st.com (euls16034.sgp.st.com [10.75.44.20]) by beta.dmz-eu.st.com (STMicroelectronics) with ESMTP id 1F01210002A; Tue, 13 Dec 2022 15:31:30 +0100 (CET) Received: from Webmail-eu.st.com (shfdag1node3.st.com [10.75.129.71]) by euls16034.sgp.st.com (STMicroelectronics) with ESMTP id E75AE229A8B; Tue, 13 Dec 2022 15:31:30 +0100 (CET) Received: from [10.48.0.157] (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.2507.13; Tue, 13 Dec 2022 15:31:29 +0100 Message-ID: <5ce0e4ad-b015-3487-614c-a60099dbede9@foss.st.com> Date: Tue, 13 Dec 2022 15:31:28 +0100 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.4.2 Subject: Re: [PATCH 0/3] cmd: pxe: support INITRD and FDT selection with FIT Content-Language: en-US To: , Quentin Schulz , CC: Ramon Fried , Peter Hoyes , Amjad Ouled-Ameur , Artem Lapkin , Edoardo Tomelleri , Heinrich Schuchardt , Simon Glass , Zhang Ning , Zhaofeng Li , U-Boot STM32 References: <20221028090120.1536827-1-patrick.delaunay@foss.st.com> <5f67e057-c41a-d4a0-b199-5840ae771e35@linaro.org> From: Patrick DELAUNAY In-Reply-To: Content-Type: text/plain; charset="UTF-8"; format=flowed Content-Transfer-Encoding: 8bit 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.923,Hydra:6.0.545,FMLib:17.11.122.1 definitions=2022-12-13_03,2022-12-13_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 Hi, On 11/22/22 20:43, Neil Armstrong wrote: > On 22/11/2022 20:11, Neil Armstrong wrote: >> Hi, >> >> On 21/11/2022 13:23, Quentin Schulz wrote: >>> Hi Patrick, >>> >>> Thanks for looking at it. >>> >>> On 10/28/22 11:01, 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 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. >>>> >>> >>> I tested this on my Puma RK3399 and it does work again, thanks. >>> >>> However, I'm not sure this is what we should go for? >>> >>> My worry is the following: >>> What happens for old releases (pre-v2022.04) where KERNEL worked >>> just fine without the FDT to load the fdt from the fitimage conf >>> specified in KERNEL field? Would we now need to keep an >>> extlinux.conf for pre-2022.04 releases where FDT wouldn't be set and >>> one for 2023.01 and later where FDT would be mentioned? That does >>> not seem like a good thing for distros. >>> >>> I unfortunately cannot answer the question myself without spending >>> significant effort patching v2022.01 to get it to work on our Puma >>> module. Does anyone have access to a board to quickly check an >>> extlinux.conf with KERNEL and FDT set to /fitImage on a v2022.01 >>> release? >> >> I'm building kirkstone images with meta-meson having v2022.01, I'll >> test with FDT set to /fitImage to see if it breaks. > > It breaks: > Found /extlinux/extlinux.conf > Retrieving file: /extlinux/extlinux.conf > 1:    Yocto > Retrieving file: /fitImage > append: root=PARTUUID=3ebc0005-02 rootwait console=ttyAML0,115200 > Retrieving file: /fitImage > Bad Linux ARM64 Image magic! > SCRIPT FAILED: continuing... > Can you share the extlinux file used for your test ?do you have my patch ? because I test the config on my board (STM32MP15x / armv7) the 2 cases : DEFAULT test LABEL test          KERNEL /fitImage          FDT /fitImage And DEFAULT test LABEL test          KERNEL /fitImage#config          FDT /fitImage#config and normally the file is retrieved one time => "/fitImage" and in the trace it is retrieving 2 times = "Retrieving file: /fitImage" and it is stange I know I have limitation for mixed config: DEFAULT test LABEL test          KERNEL /fitImage          FDT /fitImag#config Do you have this type of extlinux.conf ? >> >> Neil >> >>> >>> Is there really no other way than adding this new requirement? >>> (Nothing against it if it does not break older releases with the >>> "new" extlinux.conf though). The commit d5ba6188dfbf ("cmd: pxe_utils: Check fdtcontroladdr in label_boot") aready break the extlinux.conf support..... => FTD or FDTDIR is now mandatory so potentially, some working extlinux.conf is ot more working       since  v2022.01-rc2 For example: menu title Select the boot mode DEFAULT test LABEL test          KERNEL /fitImage But this issue is not linked to this serie, I just try to correct the regression - keep the new behavior (usefull when FIT is not used) - add a way to have a functional extlinux.conf for FIT    (even if extlinux.conf files need to be modified and it is difficult for 'distros') >>> >>> Cheers, >>> Quentin >> > I don't found a other solution / better solution for v202.01 => v2023.01... Regards Patrick