emacs-bug-tracker
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#57070: closed ([PATCH] bootloader: extlinux: support for optional FD


From: GNU bug Tracking System
Subject: bug#57070: closed ([PATCH] bootloader: extlinux: support for optional FDTDIR)
Date: Tue, 30 Aug 2022 06:54:02 +0000

Your message dated Tue, 30 Aug 2022 08:53:28 +0200
with message-id <8735derzmf.fsf_-_@gnu.org>
and subject line Re: bug#57070: [PATCH] bootloader: extlinux: support for 
optional FDTDIR
has caused the debbugs.gnu.org bug report #57070,
regarding [PATCH] bootloader: extlinux: support for optional FDTDIR
to be marked as done.

(If you believe you have received this mail in error, please contact
help-debbugs@gnu.org.)


-- 
57070: https://debbugs.gnu.org/cgi/bugreport.cgi?bug=57070
GNU Bug Tracking System
Contact help-debbugs@gnu.org with problems
--- Begin Message --- Subject: [PATCH] bootloader: extlinux: support for optional FDTDIR Date: Tue, 9 Aug 2022 14:57:30 +0430
There are situations that u-boot doesn't have to load from the device
tree. some provide the device tree using a vendor bootloader (like what
raspberry-pi does) or with an external bootloader that chainloads the
u-boot (what Asahi does for m1n1 bootloader). 

Unfortunately we couldn't find any reliable document to enforce u-boot
to pass the device tree via `extlinux.conf`, however during our tests,
we found that removing the `FDTDIR` line from the `extlinux.conf` tend
us to do so.

There 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. 

so we propose the following patch to define an optional parameter in
`bootloader` record, called `ignore-fdtdir?` which by default is set to
`#f` to keep the current behavior unchanged. if this paramter is set to
`#t`, the `FDTDIR` line will be discarded from the `extlinux.conf` and
u-boot doesn't load the device tree automatically.

This patch was tested on a Raspberry PI and in a VM. It is proven to
preserve the old behavior. We’d love to hear your feedback and hope we
can support more arm hardware in the future.


Regards,
Reza

-- 
Reza Alizadeh Majd
PantherX Team
https://pantherx.org



--- End Message ---
--- Begin Message --- Subject: Re: bug#57070: [PATCH] bootloader: extlinux: support for optional FDTDIR Date: Tue, 30 Aug 2022 08:53:28 +0200 User-agent: Gnus/5.13 (Gnus v5.13) Emacs/28.1 (gnu/linux)
Hello Reza,

> * gnu/bootloader.scm (<bootloader-configuration>)[device-tree-support?]: new 
> field.
> * gnu/bootloader/extlinux.scm (extlinux-configuration-file): add FDTDIR line
> based on <device-tree-support?> field of <bootloader-configuration>.
> * doc/guix.texi (Bootloader Configuration)[device-tree-support?]: Add
> documentation for the new field.

I pushed this patch with a few modifications.

Thanks,

Mathieu


--- End Message ---

reply via email to

[Prev in Thread] Current Thread [Next in Thread]