From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp10.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 yCPgJJPYA2NO2wAAbAwnHQ (envelope-from ) for ; Mon, 22 Aug 2022 21:27:15 +0200 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp10.migadu.com with LMTPS id SKIFJJPYA2NmOwAAG6o9tA (envelope-from ) for ; Mon, 22 Aug 2022 21:27:15 +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 3250523CB0 for ; Mon, 22 Aug 2022 21:27:15 +0200 (CEST) Received: from localhost ([::1]:43226 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oQD4s-0005oh-1p for larch@yhetil.org; Mon, 22 Aug 2022 15:27:14 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:42060) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oQCxu-0000eJ-5R for guix-patches@gnu.org; Mon, 22 Aug 2022 15:20:02 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:52060) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oQCxt-0001nM-RO for guix-patches@gnu.org; Mon, 22 Aug 2022 15:20:01 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1oQCxt-000855-IC for guix-patches@gnu.org; Mon, 22 Aug 2022 15:20:01 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#57070] [PATCH] bootloader: extlinux: support for optional FDTDIR Resent-From: Pavel Shlyak Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Mon, 22 Aug 2022 19:20:01 +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: Maxime Devos Cc: vagrant@debian.org, 57070@debbugs.gnu.org, Tobias Geerinckx-Rice Received: via spool by 57070-submit@debbugs.gnu.org id=B57070.166119598331034 (code B ref 57070); Mon, 22 Aug 2022 19:20:01 +0000 Received: (at 57070) by debbugs.gnu.org; 22 Aug 2022 19:19:43 +0000 Received: from localhost ([127.0.0.1]:41809 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oQCxa-00084U-Qh for submit@debbugs.gnu.org; Mon, 22 Aug 2022 15:19:43 -0400 Received: from out5-smtp.messagingengine.com ([66.111.4.29]:39147) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oQCxV-00084C-VW for 57070@debbugs.gnu.org; Mon, 22 Aug 2022 15:19:40 -0400 Received: from compute2.internal (compute2.nyi.internal [10.202.2.46]) by mailout.nyi.internal (Postfix) with ESMTP id 856E15C00EA; Mon, 22 Aug 2022 15:19:32 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute2.internal (MEProxy); Mon, 22 Aug 2022 15:19:32 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=pantherx.org; h= cc:cc:content-transfer-encoding:content-type:date:date:from:from :in-reply-to:in-reply-to:message-id:mime-version:references :reply-to:sender:subject:subject:to:to; s=fm2; t=1661195972; x= 1661282372; bh=aF6pxgfH76WgXhOuuntAq98Q4dSshLteOqJRmaoilIU=; b=g GxjeTqjzfhi+sjx0t1hH6t9RQeZhU1KjmsyZ25jZAug+BphAJB7V5ZYJE4XJKPp9 NZG2YzmeQ9Z1qIN92J9GcYaP3GDab0N6fHjhe23kuY91qpirZnRt3TecheYIFTXm cvnsmpgSmgKKiWc1sv8tOof1h0YrVFxrzo/kvpAQxTY278h9PBMbo13H+wtgUZhA apJGXIgJcDnze0zIhdfyUI8ArqW7sv6q94ks6c4LS4TIMUPuEQJ3p89uxVKWXzKb vhKaQf/1NdZsdSiU1THeAjXFsJNkEP5QS2wSt/0NaUE85GjuV3C3Hdg56Y4EJ8MQ vCYe9jp8L7FfpQKunt2Lg== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-transfer-encoding :content-type:date:date:feedback-id:feedback-id:from:from :in-reply-to:in-reply-to:message-id:mime-version:references :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=1661195972; x= 1661282372; bh=aF6pxgfH76WgXhOuuntAq98Q4dSshLteOqJRmaoilIU=; b=z BbniF2rRlXXbZdbjbkNKpjFbPb4ZXFc0NZwzm/hxhbDaXlcBtJpgVRngrGtRVduI IQwN/tGvBfSGBqGsQq9qjVhWtbUdpj/mIE9459NGcSgSF2hFbGZ9SVIsG5pOHOOD fnupObq6F2XZDGwIWlEbp524hMkBPs+51Gsw+0DH+bb2B8hk2Djvu+ONEEF4xFSY dfse2np+upTmvddgadZz4SnQe/xRm+PK3J0AJugITt/z55eBnDtE2ZfpsH1IPqaa VrryTs3CCpwqqxC8jXZbjaq68iGLSxd5fA27+0kAi7nf4VtxuxuIsnmGcqyWc0tJ FncDBFp5tlGO7jayVtBGw== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvfedrvdeijedgudefkecutefuodetggdotefrod ftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfgh necuuegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmd enucfjughrpegtggfuhfgjffevgffkfhfvofesthhqmhdthhdtjeenucfhrhhomheprfgr vhgvlhcuufhhlhihrghkuceophdrshhhlhihrghksehprghnthhhvghrgidrohhrgheqne cuggftrfgrthhtvghrnhepveehudduvefhledthefgieefffefgedtleegvdffieffjeel feegjedtvdfgfefhnecuffhomhgrihhnpehrrghsphgsvghrrhihphhirdgtohhmpdhkvg hrnhgvlhdrohhrghdprhgvrgguthhhvgguohgtshdrihhopdhoiihlrggsshdrohhrghdp ghhithhhuhgsrdgtohhmpdhfrhgvvgguvghskhhtohhprdhorhhgnecuvehluhhsthgvrh fuihiivgeptdenucfrrghrrghmpehmrghilhhfrhhomhepphdrshhhlhihrghksehprghn thhhvghrgidrohhrgh X-ME-Proxy: Feedback-ID: idda946d0:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Mon, 22 Aug 2022 15:19:31 -0400 (EDT) Content-Type: text/plain; charset=utf-8 Mime-Version: 1.0 (Mac OS X Mail 16.0 \(3696.120.41.1.1\)) From: Pavel Shlyak In-Reply-To: Date: Mon, 22 Aug 2022 22:19:29 +0300 Content-Transfer-Encoding: quoted-printable Message-Id: <13223735-7417-4785-81F8-43715A135574@pantherx.org> References: <20220809145730.435ef8d0@pantherx.org> <483BAA4D-ADDE-43C2-B1E3-BADAD7C43E7D@pantherx.org> <85904cd4-576d-81d0-2cfc-05ff0ab802a6@telenet.be> 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=1661196435; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc: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=aF6pxgfH76WgXhOuuntAq98Q4dSshLteOqJRmaoilIU=; b=cIyrrBn0ohIyAODAAKPaQ/G6VrIvOVhZdWNflmuHClf2YsGMdnJNL1s+Rc8e+KNZQfSJwU LhK6G1++FbH3thKyhJZHeRWlhBUHzxjJsoY2MfrTwOeThVfYGwdFemOyt2zeVz3eLx7YK/ fr8q4FqAmXHcAeBiehJziVRAKOFjUIW/XmCF5fCq2FRwEIct+wV3X9zBK3I/IjMNBV6+Mt MyCekJj5j61bSsod8vTGA4dVIWfM574hUvoJYjYiaIH/0nxJPCO+94JkoikK3F3op6XDb9 cg90KLsEWBvYqV3PSLkShb2ucT5ZsnIoo0M9mJq4vQf1CJB1DApUKoE747L6qQ== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1661196435; a=rsa-sha256; cv=none; b=KVHocRhcfT0G2n7XwhccQOqr3gK+k2Dj9QH2pN28q7iFKY+gPrelMz4CUwc4Li88xYYWVO zvsZwkPeuLar2j7NzTtQ2x4Bzlc4OXbO9ECI6+B336ggMyY4CXayX3AKdAiQb+w+kXBl8r jSkEvSpF79IgMLpkXmam95rnYK/6XH9V72uJYNWnivW9lvcSjzQ8+wqCqDoS2EOjukjjSS RdD67O98YnHztieHeiMGlAwiyHu87AB/gyqb2BGVv+4QNZy4wM/uUJb55uJbwQgab2DnwH 3+IYdJod1mA1HRX4Yl/hDDdXyt8JAmBQ4+BK3J3ONaXUgNlXnccQDsl1FXYeKQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=pantherx.org header.s=fm2 header.b="g GxjeTq"; dkim=fail ("headers rsa verify failed") header.d=messagingengine.com header.s=fm1 header.b="z BbniF2"; 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: 2.49 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=pantherx.org header.s=fm2 header.b="g GxjeTq"; dkim=fail ("headers rsa verify failed") header.d=messagingengine.com header.s=fm1 header.b="z BbniF2"; 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: 3250523CB0 X-Spam-Score: 2.49 X-Migadu-Scanner: scn0.migadu.com X-TUID: 4LakFFi0q53B > Could you point me at the documentation or code that claims or does = that? I am not finding any evidence that device trees are generated at = boot. Google =C2=ABdevice tree raspberry bootloader=C2=BB, 1st result = https://forums.raspberrypi.com/viewtopic.php?t=3D329799 > If the bootloader can, surely the kernel can. Bootloader runs on GPU on Raspberry. It cannot run kernel.=20 Also, check m1n1 on Apple. It has docs. > I believe the kernel folks will appreciate a patch fixing the DT for = RPI3b+ and Compute Module 4. And for other devices that behave the same way? You=E2=80=99re literally = promoting making GUIX not bootable on all devices alike. > DTs are a kernel thing, e.g. the Linux documentation = https://www.kernel.org/doc/html/latest/devicetree/usage-model.html = mentions DT, also, Linux. I could not find any information on = bootloaders loading DTs. Because you didn=E2=80=99t search for it. Google =C2=ABdevice tree = raspberry bootloader=C2=BB, the first link is about bootloader forming = the device tree https://forums.raspberrypi.com/viewtopic.php?t=3D329799. = Google =C2=ABuboot device tree=C2=BB = https://u-boot.readthedocs.io/en/latest/usage/fdt_overlays.html to know = how uboot manipulates them. Moreover, Raspberry PI uboot uses DTB to boot on the board as in = https://patchwork.ozlabs.org/project/uboot/patch/20191106144104.28177-1-ma= tthias.bgg@kernel.org/ (Instead of using the embedded DTB as done in = RPi3 we use the devicetree provided by the firmware.) > bootloaders don't magically have access to more information than = kernels They do, if they are run on a separate core on the SOC that linux or arm = core has no access to. Check = https://github.com/christinaa/rpi-open-firmware > My point is that supporting more devices would be nice, but this patch = isn't the way to do it. Well, there is no other way to support devices that require DTB not to = be loaded with uboot. The solutions you suggest are not possible. Moreover, keep in mind FDTDIR is not in the = http://www.freedesktop.org/wiki/Specifications/BootLoaderSpec/ = specification and making is permanent we basically violate it.=20 Since we=E2=80=99ve not come to any understanding here, I kindly invite = Vagrant and Tobias to join the discussion. They seem to be familiar with = the relevant parts of GUIX. Sincerely, Pavel=