From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp12.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id 4CQHDd/LB2M/XAAAbAwnHQ (envelope-from ) for ; Thu, 25 Aug 2022 21:22:07 +0200 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp12.migadu.com with LMTPS id yO37DN/LB2NUEAEAauVa8A (envelope-from ) for ; Thu, 25 Aug 2022 21:22:07 +0200 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 86204C23F for ; Thu, 25 Aug 2022 21:22:06 +0200 (CEST) Received: from localhost ([::1]:43302 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oRIQX-0001eO-Ck for larch@yhetil.org; Thu, 25 Aug 2022 15:22:05 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:36794) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oRILf-0005tT-JX for guix-patches@gnu.org; Thu, 25 Aug 2022 15:17:03 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:33357) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oRILf-0000Al-9K for guix-patches@gnu.org; Thu, 25 Aug 2022 15:17:03 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1oRILf-0001EL-48 for guix-patches@gnu.org; Thu, 25 Aug 2022 15:17:03 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#57070] [PATCH] bootloader: extlinux: support for optional FDTDIR References: <20220809145730.435ef8d0@pantherx.org> In-Reply-To: <20220809145730.435ef8d0@pantherx.org> Resent-From: Pavel Shlyak Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Thu, 25 Aug 2022 19:17:03 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 57070 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 57070@debbugs.gnu.org Received: via spool by 57070-submit@debbugs.gnu.org id=B57070.16614550214711 (code B ref 57070); Thu, 25 Aug 2022 19:17:03 +0000 Received: (at 57070) by debbugs.gnu.org; 25 Aug 2022 19:17:01 +0000 Received: from localhost ([127.0.0.1]:51338 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oRILd-0001Dv-6q for submit@debbugs.gnu.org; Thu, 25 Aug 2022 15:17:01 -0400 Received: from out1-smtp.messagingengine.com ([66.111.4.25]:46103) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oRILa-0001DW-9b for 57070@debbugs.gnu.org; Thu, 25 Aug 2022 15:17:00 -0400 Received: from compute5.internal (compute5.nyi.internal [10.202.2.45]) by mailout.nyi.internal (Postfix) with ESMTP id 39A3B5C00AB for <57070@debbugs.gnu.org>; Thu, 25 Aug 2022 15:16:51 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute5.internal (MEProxy); Thu, 25 Aug 2022 15:16:51 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=pantherx.org; h= cc:content-transfer-encoding:content-type:date:date:from:from :in-reply-to:message-id:mime-version:reply-to:sender:subject :subject:to:to; s=fm2; t=1661455011; x=1661541411; bh=jv+JPom6/v Z0ymKiLBiBBUlaBVpMqYTpGP3DUTn2Af4=; b=W0yB93/gUtTNCFEBS/7uZpGlcu VPd1KyuavnrMKYz0KFixxdWzwUZ0lCpvEvjP6S0idSUINga+d5J/nmluDGJ4buT+ zOwvwHc8nc8fD+63wfCdmvZBg5c36zx23Ocbmm8G1VG+uPbbmUVGmGuYd5XR5C5A /v7+7iJRDaju+/qSTzynWST79mfZ/BuwbM7a/ZUMI1pJhZgzB7+9O8eKa05K9Nd0 tcShlxPE4XLF/x8zTDd3D1Rgr+z5fujtGyip+uDmXw+rINEcGwgOOzy4knuT8b8M usz5uc43wXMQ61+natHEttRFZYS/SABbe+f8z8BwczCdeB3hJtc54fLhOnSg== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:content-type :date:date:feedback-id:feedback-id:from:from:in-reply-to :message-id:mime-version:reply-to:sender:subject:subject:to:to :x-me-proxy:x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s= fm1; t=1661455011; x=1661541411; bh=jv+JPom6/vZ0ymKiLBiBBUlaBVpM qYTpGP3DUTn2Af4=; b=NrVIiJHHwuaR1+B40WcdiBfmlxWkW7/zBQigNt1I+H+K TzHPQjeH3et9yYVXCtWRRGUeQq8miq57QSVAE9fLzc5/D0sjPR0pr5Ik6JYcTxI+ m8BWPveQfBTZzc7+WD5SF1BD03zSZgUnFyeE72EfjuzSExPasJDXe8ZdOa1z6GKQ oc7YqCjUTvC54tM610aqPcpvzZeySeM9VTdO2tL5UZVtOjwzslQNG/t3EJzju2Xr WdmSBcEAnV/m23k9vmy404pZERQ4ftZEZNxt+tRIx/R7oK8opbMXaLC6c3Xr0iQV LtG6/kTVSNYquP5dtQoNyvVGMkPrdhU6CmpTvUFZ8w== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvfedrvdejfedgudefgecutefuodetggdotefrod ftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfgh necuuegrihhlohhuthemuceftddtnecunecujfgurhephfgtgfgguffkfffvofesthhqmh dthhdtjeenucfhrhhomheprfgrvhgvlhcuufhhlhihrghkuceophdrshhhlhihrghksehp rghnthhhvghrgidrohhrgheqnecuggftrfgrthhtvghrnhepgfeiffelfeeuvdetkedtud fhkeehjeegjedtkeevfeehkefhvdekjeelfefgtddtnecuvehluhhsthgvrhfuihiivgep tdenucfrrghrrghmpehmrghilhhfrhhomhepphdrshhhlhihrghksehprghnthhhvghrgi drohhrgh X-ME-Proxy: Feedback-ID: idda946d0:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA for <57070@debbugs.gnu.org>; Thu, 25 Aug 2022 15:16:50 -0400 (EDT) From: Pavel Shlyak Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Mime-Version: 1.0 (Mac OS X Mail 16.0 \(3696.120.41.1.1\)) Message-Id: Date: Thu, 25 Aug 2022 22:16:48 +0300 X-Mailer: Apple Mail (2.3696.120.41.1.1) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+larch=yhetil.org@gnu.org Sender: "Guix-patches" X-Migadu-Flow: FLOW_IN X-Migadu-To: larch@yhetil.org X-Migadu-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1661455327; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding:resent-cc: resent-from:resent-sender:resent-message-id:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=jv+JPom6/vZ0ymKiLBiBBUlaBVpMqYTpGP3DUTn2Af4=; b=n2pYX3p9ggqaI7sAgDTCvusgeeh6QUgzoGX/3icFccayQdDibmaYywGUz3e2GkkI/4s+8H o2JzCRJG1zMRTuooQYTATBpVayuUl3RGC8/PbvcuSMOLEpeIbzBCkpEi1wspau3WU4wsRV 5fbnRmdxP3S9wE0mRYEWctuG6DannaFcy+8lmzQ9FPTNa9uJcK7ggR8UcDIrFLJc6y9Qcm Bui3kD/LJn2wuxLb2YNzrop4BSxoIw8BflTdep+4mlBVjhiJe+gRViCrVGk2XrZnDJCQ31 uQsPGZSywvf8L2724eKCuFKEml0kAemv+DvJBllJMPGNO7rXlCqDSyJoYO5GlQ== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1661455327; a=rsa-sha256; cv=none; b=STf3ZwxrIdpW0KzgdT7ZFVrbrg8YfLp1LKfE4VUGLyhkNqrTZG39Vz3+CoG8vWvx6eHAb7 EJMbv+IDgBTJp6rpI55TiZSQ9q0ZGccOI5cu8ks3hZzMsmTt2GS7C5oDO/ZUo+VPXNqPuF ofOVNTLXCkPkic6CSBGz9g/2+qANnkWuFjtrWMkzlOCrBYJgB4D56mBGi7nejwUzVVucQW /wDo8l4l20VE1zJJ90U6XqmD/zpLA31RpYvnRdQ7xYKhYHlh/ba1GUSomXBxSx0bV0gvPT SFo0Eeu6wG1XkPQj5ASpSzwQmufgA0HutBi1iqEhHMaq8+yUtyP2izBCjHsHbg== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=pantherx.org header.s=fm2 header.b="W0yB93/g"; dkim=fail ("headers rsa verify failed") header.d=messagingengine.com header.s=fm1 header.b=NrVIiJHH; dmarc=none; spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org" X-Migadu-Spam-Score: 0.19 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=pantherx.org header.s=fm2 header.b="W0yB93/g"; dkim=fail ("headers rsa verify failed") header.d=messagingengine.com header.s=fm1 header.b=NrVIiJHH; dmarc=none; spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org" X-Migadu-Queue-Id: 86204C23F X-Spam-Score: 0.19 X-Migadu-Scanner: scn0.migadu.com X-TUID: /lirNLK7Zv6D Hello, Mathieu Thanks for joining us here! Firstly, I kindly ask everyone in this thread to CC me as emails from = this thread are not delivered to me for some reason I don=E2=80=99t = really understand. I get emails from all other threads but this one. Secondly, to reply you question "where is located the device tree that = is loaded?", I would like to refer uboot source code comments, as I have = not seen this point documented anywhere else. Check boot/pxe_utils.c /* * fdt usage is optional: * It handles the following scenarios. * * Scenario 1: If fdt_addr_r specified and "fdt" or "fdtdir" = label is * defined in pxe file, retrieve fdt blob from server. Pass = fdt_addr_r to * bootm, and adjust argc appropriately. * * If retrieve fails and no exact fdt blob is specified in pxe = file with * "fdt" label, try Scenario 2. * * Scenario 2: If there is an fdt_addr specified, pass it along = to * bootm, and adjust argc appropriately. * * Scenario 3: If there is an fdtcontroladdr specified, pass it = along to * bootm, and adjust argc appropriately. * * Scenario 4: fdt blob is not available. */ In other words, if there=E2=80=99s no fdtdir, uboot just passes the = fdt_addr to bootm command, that means it passes the pointer to device = tree loaded by firmware (or previous bootloader) to the kernel. If = fdt_addr is also missing, it passes fdtcontroladdr to the kernel. If all = of the previous scenarios don=E2=80=99t work, it passes no FDT and = kernel boots without device tree, that is absolutely normal on some = devices, check x86. As for the tests and documentation, I think I should leave these = questions to Reza, as they have more experience and deeper = understanding. Sincerely, Pavel=