help-grub
[Top][All Lists]
Advanced

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

Re: How to use device tree in x86_64


From: Randy Goldenberg
Subject: Re: How to use device tree in x86_64
Date: Thu, 5 Dec 2024 11:03:48 -0800

https://www.google.com/search?q=Building+Grub+from+source+with+device+tree+support

On Wed, Dec 4, 2024 at 5:18 AM Mehran Memarnejad <memarnejadm74@gmail.com>
wrote:

> Hi,
> I have a requirement in which I need to use the same approach uboot uses in
> ARM platforms. I know it's uncommon to do so in x86_64 as devices are hot
> pluggable (connected by usb and pcie), But I need it for my requirement.
> I want to use device tree with *grub* in *x86_64* and pass it to *linux*
> kernel in *ubuntu*
>
> Technically, I have a minimal device tree as following:
>
> /dts-v1/;
>
> / {
>     model = "Custom x86 Platform";
>
>     soc@0 {
> #address-cells = <1>;
> #size-cells = <1>;
>
>         simple_platform_device@0 {
>             compatible = "simple,platform-device";    // Driver matching
> string
>             reg = <0x0 0x0>;
>         };
>     };
> };
>
> The primary goal is to call probe function of the corresponding platform
> device driver which has the same compatible string.
> Searching about device tree support in grub on x86, I found some results
> but could not get it to work. I guess I need to do the following:
> 1) Enable Kernel Device Tree Support (CONFIG_OF) [Already Done]
> 2) Building Grub from source with device tree support [HOW?]
> 3) Edit grub config file to insert device tree dtb path [HOW?]
>
> The above items (2 and 3) are my questions
> Thanks in advance for your help
>


reply via email to

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