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 389F7C433FE for ; Tue, 22 Nov 2022 19:11:45 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id BE12C85494; Tue, 22 Nov 2022 20:11:42 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=linaro.org 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=linaro.org header.i=@linaro.org header.b="r0LHhCUm"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id E0500854A3; Tue, 22 Nov 2022 20:11:40 +0100 (CET) Received: from mail-wr1-x42e.google.com (mail-wr1-x42e.google.com [IPv6:2a00:1450:4864:20::42e]) (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 8D9058547D for ; Tue, 22 Nov 2022 20:11:38 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=neil.armstrong@linaro.org Received: by mail-wr1-x42e.google.com with SMTP id bs21so26189076wrb.4 for ; Tue, 22 Nov 2022 11:11:38 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=content-transfer-encoding:in-reply-to:organization:references:cc:to :content-language:subject:reply-to:from:user-agent:mime-version:date :message-id:from:to:cc:subject:date:message-id:reply-to; bh=oux2agNqoYxrYmYdaFKpNuQ2r9Vb7GLQflfcDZTlaF0=; b=r0LHhCUmEVOLPimxwBk/KdH5xOxs9imFWFmmKZMjOYNbVBSgLXFg9VgtnHvzFgudiT tYYP0JjXTZRKfoVr5XLDrlk+QKMV2NTBm4bvT+RPj5ebQOqNKtgHIZCblc58ZdMGQLaq Zkg57hp1em8jRu0gh6EH6X+pY4CvRAl09uNxHoxLOcM/n6DbPkN2nFTWBLHikj1eORyy jXysGnCsIGMSOP7rpmo0u7RaslEe5rdeYxBazhJWlPVrL4D3Y7y7VSYeVD6BZ13rNfjp hb67LCMi+QkhHe2UW+EqDdmfGBCnZPpcdMs33mCzax5YHtugCqL4ps8zNZ5Liqte6fSe /3xw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:in-reply-to:organization:references:cc:to :content-language:subject:reply-to:from:user-agent:mime-version:date :message-id:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=oux2agNqoYxrYmYdaFKpNuQ2r9Vb7GLQflfcDZTlaF0=; b=4Xvl4qsblfYtezUoilr4DT47v53aakA5knLF+TQLLgMRDiYFnjiP6n/dQojlbsuDpg nXGdA4NH+I/DelwGSv3F8uQhxZzyQGeWpmm4zDPmjgXVx0Av1yYzHPCLPAkUI7GoGkDT XvJqRYZa4FUlkEo2P01GZ+oP9Hj4/sujA2NdJZ3L0K5mzOQv7bsa2v5325IrxasrRVAA 3tv/3HrLf33o2bUgOgurg4ewLXxMvox/VNbNn8ehdC8/oefZNJyU62dCa2L5+hedCcpt x2nv2CTa4A4tutuX7KPIxTwV4QvZekMFKIc0UF/dsZvhr1dynu7jpO7fB3/XCXYt/fio nmww== X-Gm-Message-State: ANoB5plKA7pzLrRpRTRBcR+f1LJUt40rcUsWCLIcfAfI/GsffR+JlBnZ Ydwp26/o/hR0U4ufdnZeSJUT+g== X-Google-Smtp-Source: AA0mqf6DfYjYQ/XK64eS2k4CC3XFHYf/fvypD7AWWgMF1hcQnAQcZcZyDpEU1FnMHM+onR2dpwI6EA== X-Received: by 2002:a5d:5914:0:b0:236:57f3:c9e6 with SMTP id v20-20020a5d5914000000b0023657f3c9e6mr15001430wrd.21.1669144297577; Tue, 22 Nov 2022 11:11:37 -0800 (PST) Received: from ?IPV6:2a01:e0a:982:cbb0:6969:11a1:a2af:e8c0? ([2a01:e0a:982:cbb0:6969:11a1:a2af:e8c0]) by smtp.gmail.com with ESMTPSA id v14-20020a5d4b0e000000b002416e383e1csm14896956wrq.25.2022.11.22.11.11.36 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 22 Nov 2022 11:11:37 -0800 (PST) Message-ID: <5f67e057-c41a-d4a0-b199-5840ae771e35@linaro.org> Date: Tue, 22 Nov 2022 20:11:35 +0100 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.4.2 From: Neil Armstrong Subject: Re: [PATCH 0/3] cmd: pxe: support INITRD and FDT selection with FIT Content-Language: en-US To: Quentin Schulz , Patrick Delaunay , u-boot@lists.denx.de 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> Organization: Linaro Developer Services In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit 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: , Reply-To: neil.armstrong@linaro.org 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 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. 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). > > Cheers, > Quentin