Received: by 2002:a05:7412:419a:b0:f3:1519:9f41 with SMTP id i26csp4853773rdh; Wed, 29 Nov 2023 12:35:30 -0800 (PST) X-Google-Smtp-Source: AGHT+IHivojkp6Yj+siXL2j2xGnv0OfVQzRLyzLhAbHpjCXkWSVRIErQYTVAXzKihQV0mnZA6MEe X-Received: by 2002:a05:6a00:2918:b0:6bd:3157:2dfe with SMTP id cg24-20020a056a00291800b006bd31572dfemr20715092pfb.7.1701290130264; Wed, 29 Nov 2023 12:35:30 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1701290130; cv=none; d=google.com; s=arc-20160816; b=HlV5gp/UGn0i/IV91Pd+Aku/CQsfZtZNG0POzvxyqgBWIiBHLRTh/XGAWcjVEUiMfT boxaBmOhXiHrKu07cWZi+Pmx4HKmxVsxgmR7iXDnZJs386Qg+xyAIXHRefIOK5F0arzw K9Q1DfJ0FaOjBAAoPRdjrnftB9dOWvEApSO7LssjJObpKafv3DCDHJn4NsU0d2p6NHUn EO6QNn6kJPvsA1AZNEx59gNQCiDzeVVTBSOZJXcsVph3+J3lVGQRY0PRqACSbJMt22vW vtPvMSel7Mshbo2ue7hO53iZto+inn/RgMGzmtmyVlhIrJk4Z+eZtOuYF/LBNRGy0KSg ydww== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id; bh=6kaX/Fp+Yoo0cle2uRL/oXiOZNOILbS5aKpZl1aRleo=; fh=58mvxDYp+91DFuCFSacis+b2Z1raZvSUVIFbm2i9FyM=; b=FfUa7riecSu2Ktsla4CfXf5nPe4omL+oW4qiyZA2/NAn/TGYKThxzqOrN9VVSJ9aNj i+tbL9lfpMVmHNT3yG13w8w5LV2dfZUM+AhN0bAVOgsLiVnDMJwyUXnRlsULmGvsyZq/ bZXK/tR3ItN67nCRp9NjOWK/iqdubmZJhGug+u4Ub9okX6By5+wRdsZnZqegruNalrv3 EnBY9fGiAfrbqhA5zHqkyaa/LpDIJJqUrEXcI2qDULQ/2DYQEUcEgT2a1A4gVQSI+I3e IoHdaAtidbBagQpLu8kgnIOGdf4FERHAo8eJ5xr6n1DzyyPjCD5KZHCH6tkqtJt14F3g y0wg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.31 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from morse.vger.email (morse.vger.email. [23.128.96.31]) by mx.google.com with ESMTPS id fh6-20020a056a00390600b006c4dacc3912si15237681pfb.169.2023.11.29.12.35.29 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 29 Nov 2023 12:35:30 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.31 as permitted sender) client-ip=23.128.96.31; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.31 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by morse.vger.email (Postfix) with ESMTP id A4C6280AFE9A; Wed, 29 Nov 2023 12:35:27 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at morse.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233967AbjK2UfH (ORCPT + 99 others); Wed, 29 Nov 2023 15:35:07 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46934 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231489AbjK2UfG (ORCPT ); Wed, 29 Nov 2023 15:35:06 -0500 Received: from metis.whiteo.stw.pengutronix.de (metis.whiteo.stw.pengutronix.de [IPv6:2a0a:edc0:2:b01:1d::104]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A704A91 for ; Wed, 29 Nov 2023 12:35:12 -0800 (PST) Received: from ptz.office.stw.pengutronix.de ([2a0a:edc0:0:900:1d::77] helo=[127.0.0.1]) by metis.whiteo.stw.pengutronix.de with esmtp (Exim 4.92) (envelope-from ) id 1r8RH1-0006ZB-Pk; Wed, 29 Nov 2023 21:35:07 +0100 Message-ID: <2746082e-4357-4608-8fd9-ffbd1ecd6ac2@pengutronix.de> Date: Wed, 29 Nov 2023 21:35:05 +0100 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH v7 2/2] arm64: boot: Support Flat Image Tree Content-Language: en-US To: Simon Glass Cc: linux-arm-kernel@lists.infradead.org, Masahiro Yamada , Tom Rini , lkml , U-Boot Mailing List , Catalin Marinas , Nathan Chancellor , Nick Terrell , Nicolas Schier , Will Deacon , linux-kbuild@vger.kernel.org, Pengutronix Kernel Team References: <20231129172200.430674-1-sjg@chromium.org> <20231129172200.430674-3-sjg@chromium.org> <03595817-4698-46d3-b2d8-3bc40c7e723e@pengutronix.de> From: Ahmad Fatoum In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-SA-Exim-Connect-IP: 2a0a:edc0:0:900:1d::77 X-SA-Exim-Mail-From: a.fatoum@pengutronix.de X-SA-Exim-Scanned: No (on metis.whiteo.stw.pengutronix.de); SAEximRunCond expanded to false X-PTX-Original-Recipient: linux-kernel@vger.kernel.org X-Spam-Status: No, score=-0.8 required=5.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on morse.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (morse.vger.email [0.0.0.0]); Wed, 29 Nov 2023 12:35:27 -0800 (PST) Hi Simon, On 29.11.23 20:00, Simon Glass wrote: > On Wed, 29 Nov 2023 at 11:35, Ahmad Fatoum wrote: >> Doesn't hardcoding a load address and entry address here defeat the point >> of having FIT as generic portable image format? >> >> At least barebox will try to place the kernel image at physical address 0 and >> will exit with an error message if no SDRAM is located at that address. >> The recommendation in that case is to omit load and entry address altogether >> to have barebox find a suitable location, but I see now that the FIT specification >> requires a load and entry address. What would happen if U-Boot tries to load this >> FIT image on a board that has no DRAM at address 0? > > The 'kernel_noload' type indicates that the load/exec address are ignored. Can the script not insert load/exec addresses with dummy values to avoid confusion? >> Please Cc me on subsequent revisions. I am interested in testing that this works for barebox >> too. > > There has been some discussion about this recently in U-Boot too, > along with a series [1] which you could try if you like. Thanks for the pointer. I have just sent out a first patch to add support for kernel_noload to the barebox mailing list[1]. With that change applied, barebox can boot the FIT images generated by this series. Once that's accepted, I'll reply with a Tested-by. [1]: https://lore.barebox.org/barebox/20231129203106.2417486-1-a.fatoum@pengutronix.de/T/#u > The FIT spec[2] does not provide enough detail on exactly what > kernel_noload means and we should improve this at some point. Yes, that would be nice. Also straight references to e.g. U-Boot configuration symbols could use some rewording. Thanks, Ahmad > > Regards, > Simon > > [1] https://patchwork.ozlabs.org/project/uboot/list/?series=382849 > [2] https://github.com/open-source-firmware/flat-image-tree > > > >> >> Thanks, >> Ahmad >> >> -- >> Pengutronix e.K. | | >> Steuerwalder Str. 21 | http://www.pengutronix.de/ | >> 31137 Hildesheim, Germany | Phone: +49-5121-206917-0 | >> Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-5555 | >> > -- Pengutronix e.K. | | Steuerwalder Str. 21 | http://www.pengutronix.de/ | 31137 Hildesheim, Germany | Phone: +49-5121-206917-0 | Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-5555 |