From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp10.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id 0DB4GMHl+2JxtwAAbAwnHQ (envelope-from ) for ; Tue, 16 Aug 2022 20:45:21 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp10.migadu.com with LMTPS id 8NyYF8Hl+2IOaQAAG6o9tA (envelope-from ) for ; Tue, 16 Aug 2022 20:45:21 +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 EDC183A1D7 for ; Tue, 16 Aug 2022 20:45:20 +0200 (CEST) Received: from localhost ([::1]:42420 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oO1Z1-0002WZ-7i for larch@yhetil.org; Tue, 16 Aug 2022 14:45:19 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:48978) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oO1Yk-0002W5-3N for guix-patches@gnu.org; Tue, 16 Aug 2022 14:45:02 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:58561) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oO1Yj-0004nL-Qk for guix-patches@gnu.org; Tue, 16 Aug 2022 14:45:01 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1oO1Yj-00069X-LR for guix-patches@gnu.org; Tue, 16 Aug 2022 14:45:01 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#57070] [PATCH] bootloader: extlinux: support for optional FDTDIR Resent-From: Maxime Devos Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Tue, 16 Aug 2022 18:45: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: Reza Alizadeh Majd , 57070@debbugs.gnu.org Cc: Mathieu Othacehe Received: via spool by 57070-submit@debbugs.gnu.org id=B57070.166067549023614 (code B ref 57070); Tue, 16 Aug 2022 18:45:01 +0000 Received: (at 57070) by debbugs.gnu.org; 16 Aug 2022 18:44:50 +0000 Received: from localhost ([127.0.0.1]:48310 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oO1YX-00068o-K6 for submit@debbugs.gnu.org; Tue, 16 Aug 2022 14:44:49 -0400 Received: from laurent.telenet-ops.be ([195.130.137.89]:58964) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oO1YU-00068b-Kc for 57070@debbugs.gnu.org; Tue, 16 Aug 2022 14:44:48 -0400 Received: from [IPV6:2a02:1811:8c09:9d00:5dba:d409:33f7:a16] ([IPv6:2a02:1811:8c09:9d00:5dba:d409:33f7:a16]) by laurent.telenet-ops.be with bizsmtp id 8Jkk2800A20ykKC01Jkkux; Tue, 16 Aug 2022 20:44:45 +0200 Message-ID: <2ea79bba-ad84-56ad-e907-61481401ac6d@telenet.be> Date: Tue, 16 Aug 2022 20:44:44 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.12.0 Content-Language: en-US References: <20220809145730.435ef8d0@pantherx.org> <59ee7050-d5b1-695a-4be4-c1f1856fbda7@telenet.be> <20220816213835.3e0dd301@pantherx.org> From: Maxime Devos In-Reply-To: <20220816213835.3e0dd301@pantherx.org> Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="------------IuxxoPoL8UyN1TZ7wmgNWqP0" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=telenet.be; s=r22; t=1660675485; bh=blQcz32BwOvfDkl8zZtf/ivMcWV4oeHZQgnirGzWQEc=; h=Date:To:Cc:References:From:Subject:In-Reply-To; b=dORsT4+TbO0DyupZUzUbKdE3oj/PFW+dgaaK/b0tR5ITqhZ7TF8J7xq+w1XCrcrVN wreW1EIKdwXdTnHfEamvJWC/rqik3r+Q4B+bgYewDIw4Ol2FOyL3emoO4pY103NgMp pDUPSlt4oAM1uO0NBBU7VoTb0Lp2jlF8T8Y5OXWyXLK7ek/U83VbyOuGhi4yTY4HSK BauYdHpZ0CCTU5SOy9xU1fXVNSvUYvLdK9DMYtQmonZrb0gdA/++JNnrEAI4gd5qW/ Iz5JPNCB9VAqJ323SEQHEOHoyLFPga4R50/7MhT2AwHGiWXwyRETCWHMW7YZT3rEav upMlhmZd2yCNw== 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=1660675521; 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: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=0/CcEYliFfYhHGAxg5mRd5OGF1wZ3t3iNecyD9xYUxA=; b=GQHjSgR6Faw3RmvO38XRwgVyU91G9JVb5V/3pHeslYV34oLGV79C5gy9d/CF25Us4vZYLW veyCqxrM09oln6t7H8qe3s0EG/uTnhCOEhZ4wWKzGrNECo7SRsF82Y5HPhnzmbxGIF7aIr obzNMk074rGnTa3TQrXiICQCDFOTJ4X01256qrEYQ3JwFel4gxQLcxYEZ2inLwTO8ZHAMP NkKucYxogfA8zmOhaqGycXdkw6XOi4qXxLp4pecUSqWf1rsDqP11sorvyEuleCpeXq1ryg r2xuYlSVYIltuLtKX4VhIWeu+kE6DxX8lwe4TCQDHc2rabV0OIoNC1R725dhzQ== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1660675521; a=rsa-sha256; cv=none; b=Wq2n0fVKKn8V2GvKtfHjyfzs4Y3jAs35HdUvRXl1Q+L50C8GV9WXIZKkjrl+SjK/cl7nKn bs50es0D+ZPX5wElAf4PFwtQBF7S1FIqwn7JqPqTwgCC9dlhK114sS4cR0ZPoU2rRfCQ5x xxfPZ6tbWND37aVYZCV0wpXh6YCSaD3vf//sjl29CCIhZ/JYuhoskQNKkZeI6q0gq4GlR4 iAQthejKO05aJ1J8d2IFmVJP+DwQpEi+fGoZSjFgtGYSXscGlqhbVjb9tkdODOUrMQ47tH OkV9eI02BTzd/ylb408R/gL1Ma9RnN0ACgP1SQgnApHUKa0utJjnr1LStjL/4w== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("body hash did not verify") header.d=telenet.be header.s=r22 header.b=dORsT4+T; dmarc=fail reason="SPF not aligned (relaxed)" header.from=telenet.be (policy=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: 4.24 Authentication-Results: aspmx1.migadu.com; dkim=fail ("body hash did not verify") header.d=telenet.be header.s=r22 header.b=dORsT4+T; dmarc=fail reason="SPF not aligned (relaxed)" header.from=telenet.be (policy=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: EDC183A1D7 X-Spam-Score: 4.24 X-Migadu-Scanner: scn1.migadu.com X-TUID: LIW4ccz8g5Hh This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --------------IuxxoPoL8UyN1TZ7wmgNWqP0 Content-Type: multipart/mixed; boundary="------------X0uRUHYxl8hDUTwl6kYsqvG4"; protected-headers="v1" From: Maxime Devos To: Reza Alizadeh Majd , 57070@debbugs.gnu.org Cc: Mathieu Othacehe Message-ID: <2ea79bba-ad84-56ad-e907-61481401ac6d@telenet.be> Subject: Re: [bug#57070] [PATCH] bootloader: extlinux: support for optional FDTDIR References: <20220809145730.435ef8d0@pantherx.org> <59ee7050-d5b1-695a-4be4-c1f1856fbda7@telenet.be> <20220816213835.3e0dd301@pantherx.org> In-Reply-To: <20220816213835.3e0dd301@pantherx.org> --------------X0uRUHYxl8hDUTwl6kYsqvG4 Content-Type: multipart/mixed; boundary="------------00XbY6bvreRvagddtQnCyvKg" --------------00XbY6bvreRvagddtQnCyvKg Content-Type: multipart/alternative; boundary="------------UrD707Lb0oKzLpLXPopciZ01" --------------UrD707Lb0oKzLpLXPopciZ01 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: base64 DQpPbiAxNi0wOC0yMDIyIDE5OjA4LCBSZXphIEFsaXphZGVoIE1hamQgd3JvdGU6DQo+PiBD YW4gRkRURElSIGJlIHNldCBhdXRvbWF0aWNhbGx5IG9yIHVuc2V0IGF1dG9tYXRpY2FsbHkg ZGVwZW5kaW5nIG9uDQo+PiB0aGUgaGFyZHdhcmU/IFRoYXQgd291bGQgcmVkdWNlIHRoZSBy ZXF1aXJlZCBjb25maWd1cmF0aW9uDQo+IE5vLCB0aGF0J3Mgbm90IHBvc3NpYmxlLiBBcyBJ IG1lbnRpb25lZCBpbiB0aGUgaW5pdGlhbCBtZXNzYWdlLCBzb21lDQo+IGhhcmR3YXJlIG1h eSBvciBtYXk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90aCBmaXJtd2FyZSBkZXZp Y2UgdHJlZSBvbiBzb21lDQo+IGtlcm5lbHMgYW5kIHdpdGggc3BlY2lhbCBkZXZpY2UgdHJl ZSBvbiBvdGhlciAobW9kaWZpZWQpIGtlcm5lbHMu4oCZDQo+DQo+IElmIEknbSBndWVzc2lu ZyBjb3JyZWN0bHksIHRoYXQgc291bmRzIGxpa2UgdGhlIHByb2JsZW0gaXMgdGhhdCBkZXZp Y2UgDQo+IHRyZWUgaW5mb3JtYXRpb24gaXMgbWlzc2luZyBmcm9tIHRoZSBrZXJuZWwuIFBy b3Bvc2FsOiB1cHN0cmVhbSB0aGUgDQo+IGRldmljZSB0cmVlIGluZm9ybWF0aW9uLg0KDQpH cmVldGluZ3MsDQpNYXhpbWUuDQoNCg== --------------UrD707Lb0oKzLpLXPopciZ01 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable


On 16-08-2022 19:08, Reza Alizadeh Maj= d wrote:
Can FDTDIR be set automati=
cally or unset automatically depending on
the hardware? That would reduce the required configuration
No, that's not possible. As =
I mentioned in the initial message, some
hardware may or may not require it depending on the kernel.

My question has a part 'depending on the hardware', so possibly the relevant code could check what the hardware is.=C2=A0 Likewise,= the code could check the kernel version.=C2=A0 More generally, when something can be decided manually, it can often be detected automatically with some work.=C2=A0 I'm not seeing any impossibilit= y here.

Also, again, why are you submitting this work-around when it appears to be simply a kernel bug that needs a kernel package to be updated and maybe a devicetree fix to be backported? As written in a previous response:

=E2=80=98There is also no =
reliable way to guess if u-boot bootloader should load
device tree or not on a specific hardware. in addition, there are
hardware that can be booted with both firmware device tree on some
kernels and with special device tree on other (modified) kernels.=E2=80=99=


If I'm guessing correctly, that sounds like the problem is that device tree information is missing from the kernel. Proposal: upstream the device tree information.

Greetings,
Maxime.

--------------UrD707Lb0oKzLpLXPopciZ01-- --------------00XbY6bvreRvagddtQnCyvKg Content-Type: application/pgp-keys; name="OpenPGP_0x49E3EE22191725EE.asc" Content-Disposition: attachment; filename="OpenPGP_0x49E3EE22191725EE.asc" Content-Description: OpenPGP public key Content-Transfer-Encoding: quoted-printable -----BEGIN PGP PUBLIC KEY BLOCK----- xjMEX4ch6BYJKwYBBAHaRw8BAQdANPb/d6MrGnGi5HyvODCkBUJPRjiFQcRU5V+m xvMaAa/NL01heGltZSBEZXZvcyA8bWF4aW1lLmRldm9zQHN0dWRlbnQua3VsZXV2 ZW4uYmU+wpAEExYIADgWIQTB8z7iDFKP233XAR9J4+4iGRcl7gUCX4ch6AIbAwUL CQgHAwUVCgkICwUWAgMBAAIeAQIXgAAKCRBJ4+4iGRcl7japAQC3opZ2KGWzWmRc /gIWSu0AAcfMwyinFEEPa/QhUt2CogD/e2RdF4CYAgaRHJJmZ9WU7piKbLZ7llB4 LzgezVDHggzNJU1heGltZSBEZXZvcyA8bWF4aW1lZGV2b3NAdGVsZW5ldC5iZT7C kAQTFggAOBYhBMHzPuIMUo/bfdcBH0nj7iIZFyXuBQJf56ycAhsDBQsJCAcDBRUK CQgLBRYCAwEAAh4BAheAAAoJEEnj7iIZFyXujpQBAKV1SwDDl4f24rXciDlB9L8W ycZt30CgbewMSRQk4mvbAP9dFMbVVixYBd6C8cfhR+NsOBGiOJnQABlUmgNuqGFJ Dc44BF+HIegSCisGAQQBl1UBBQEBB0BOlzIWiJzgobMF6/cqwLaLk7jIcFSZ++c0 k9cCNT6YXwMBCAfCeAQYFggAIBYhBMHzPuIMUo/bfdcBH0nj7iIZFyXuBQJfhyHo AhsMAAoJEEnj7iIZFyXuMr0BAJc8cl5PGvVmVuSQVKjleNl4DK1/XAaPAYPe34AE fZJPAP9IqLCQhH/FeJanHqBP8gNdGNI2qn8RnnLVfRJgUjZ1BA=3D=3D =3DOVqp -----END PGP PUBLIC KEY BLOCK----- --------------00XbY6bvreRvagddtQnCyvKg-- --------------X0uRUHYxl8hDUTwl6kYsqvG4-- --------------IuxxoPoL8UyN1TZ7wmgNWqP0 Content-Type: application/pgp-signature; name="OpenPGP_signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="OpenPGP_signature" -----BEGIN PGP SIGNATURE----- wnsEABYIACMWIQTB8z7iDFKP233XAR9J4+4iGRcl7gUCYvvlnAUDAAAAAAAKCRBJ4+4iGRcl7oF4 AP929H2zENzqsTAVgR4T3flZ0ovTxKJd7KdVM1toj039nAEA5ZeWL9hLOnAbtj9xrgePzp9DZMv2 BjvvANdRQpxysgg= =Izml -----END PGP SIGNATURE----- --------------IuxxoPoL8UyN1TZ7wmgNWqP0--