* [Buildroot] [PATCH] board/khadas/vim3: add the path of the devicetree in extlinux.conf
@ 2023-11-17 15:50 Antoine Coutant
2023-11-18 15:16 ` Yann E. MORIN
0 siblings, 1 reply; 2+ messages in thread
From: Antoine Coutant @ 2023-11-17 15:50 UTC (permalink / raw)
To: buildroot; +Cc: Antoine Coutant, romain.naour
Without this patch, the devicetree used by linux at runtime is
the u_boot devicetree.
While using rusticl on the khadas vim3 board with the default
extlinux.conf, mesa's panfrost driver return "gpu shed timeout"
errors. Adding "devicetree /meson-g12b-khadas-vim3.dtb" to the
extlinux.conf file solve the problem. Linux successfully boot
with and without the change but without this patch the devicetree
used by linux at runtime is the u-boot devicetree.
The differences between the u-boot devicetree and the linux
devicetree are:
-The u-boot devicetree contains two more nodes than the linux devicetree. Those nodes are:
- smbios : compatible option is set to "u-boot,sysinfo-smbios".
- __symbols__ : present if -@ or --symbols is used during the devicetree compilation.
-Most of u-boot devicetree nodes have a "phandle" property.
-SoC and vpu have a "u-boot,dm-pre-reloc;" property.
-Some aliases are different.
-The u-boot operating points tables contains more nodes.
The size difference between the u-boot devicetree and the linux
devicetree is approximately 3.5kB.
During runtime, the linux devicetree have the "phandle" and
"u-boot,dm-pre-reloc;" properties and the smbios node. So,
The runtime devicetree is the one from u-boot.
Signed-off-by: Antoine Coutant <antoine.coutant@smile.fr>
---
Without this patch, there is 18 lines modified in the runtime
devicetree compared to the u-boot devicetree. These 18 same lines
are also modified in the runtime devicetree with this patch
compared to the linux devicetree. Those lines may be modified by
u-boot during the boot process.
The 18 lines added/modified by u-boot during the boot process are:
-The comments about the device tree characteristics are modified.
-The memreserve is added.
-A serial number is added.
-The u-boot version is added.
-The bootargs are added.
-The CVBS framebuffer is enabled.
-The local-mac-address is set.
-The memory size is modified.
---
board/khadas/vim3/extlinux.conf | 1 +
1 file changed, 1 insertion(+)
diff --git a/board/khadas/vim3/extlinux.conf b/board/khadas/vim3/extlinux.conf
index fede99b502..2b1544a5cc 100644
--- a/board/khadas/vim3/extlinux.conf
+++ b/board/khadas/vim3/extlinux.conf
@@ -1,4 +1,5 @@
default buildroot
label buildroot
kernel /Image
+ devicetree /meson-g12b-a311d-khadas-vim3.dtb
append root=/dev/mmcblk0p2 rootwait console=ttyAML0,115200
--
2.25.1
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [Buildroot] [PATCH] board/khadas/vim3: add the path of the devicetree in extlinux.conf
2023-11-17 15:50 [Buildroot] [PATCH] board/khadas/vim3: add the path of the devicetree in extlinux.conf Antoine Coutant
@ 2023-11-18 15:16 ` Yann E. MORIN
0 siblings, 0 replies; 2+ messages in thread
From: Yann E. MORIN @ 2023-11-18 15:16 UTC (permalink / raw)
To: Antoine Coutant; +Cc: romain.naour, buildroot
Antoine, All,
On 2023-11-17 16:50 +0100, Antoine Coutant spake thusly:
> Without this patch, the devicetree used by linux at runtime is
> the u_boot devicetree.
>
> While using rusticl on the khadas vim3 board with the default
> extlinux.conf, mesa's panfrost driver return "gpu shed timeout"
> errors. Adding "devicetree /meson-g12b-khadas-vim3.dtb" to the
> extlinux.conf file solve the problem. Linux successfully boot
> with and without the change but without this patch the devicetree
> used by linux at runtime is the u-boot devicetree.
>
> The differences between the u-boot devicetree and the linux
> devicetree are:
> -The u-boot devicetree contains two more nodes than the linux devicetree. Those nodes are:
> - smbios : compatible option is set to "u-boot,sysinfo-smbios".
> - __symbols__ : present if -@ or --symbols is used during the devicetree compilation.
> -Most of u-boot devicetree nodes have a "phandle" property.
> -SoC and vpu have a "u-boot,dm-pre-reloc;" property.
> -Some aliases are different.
> -The u-boot operating points tables contains more nodes.
> The size difference between the u-boot devicetree and the linux
> devicetree is approximately 3.5kB.
>
> During runtime, the linux devicetree have the "phandle" and
> "u-boot,dm-pre-reloc;" properties and the smbios node. So,
> The runtime devicetree is the one from u-boot.
>
> Signed-off-by: Antoine Coutant <antoine.coutant@smile.fr>
Thanks for the extensive description!
Applied to master, thanks.
Regards,
Yann E. MORIN.
> ---
>
> Without this patch, there is 18 lines modified in the runtime
> devicetree compared to the u-boot devicetree. These 18 same lines
> are also modified in the runtime devicetree with this patch
> compared to the linux devicetree. Those lines may be modified by
> u-boot during the boot process.
> The 18 lines added/modified by u-boot during the boot process are:
> -The comments about the device tree characteristics are modified.
> -The memreserve is added.
> -A serial number is added.
> -The u-boot version is added.
> -The bootargs are added.
> -The CVBS framebuffer is enabled.
> -The local-mac-address is set.
> -The memory size is modified.
> ---
> board/khadas/vim3/extlinux.conf | 1 +
> 1 file changed, 1 insertion(+)
>
> diff --git a/board/khadas/vim3/extlinux.conf b/board/khadas/vim3/extlinux.conf
> index fede99b502..2b1544a5cc 100644
> --- a/board/khadas/vim3/extlinux.conf
> +++ b/board/khadas/vim3/extlinux.conf
> @@ -1,4 +1,5 @@
> default buildroot
> label buildroot
> kernel /Image
> + devicetree /meson-g12b-a311d-khadas-vim3.dtb
> append root=/dev/mmcblk0p2 rootwait console=ttyAML0,115200
> --
> 2.25.1
>
> _______________________________________________
> buildroot mailing list
> buildroot@buildroot.org
> https://lists.buildroot.org/mailman/listinfo/buildroot
--
.-----------------.--------------------.------------------.--------------------.
| Yann E. MORIN | Real-Time Embedded | /"\ ASCII RIBBON | Erics' conspiracy: |
| +33 662 376 056 | Software Designer | \ / CAMPAIGN | ___ |
| +33 561 099 427 `------------.-------: X AGAINST | \e/ There is no |
| http://ymorin.is-a-geek.org/ | _/*\_ | / \ HTML MAIL | v conspiracy. |
'------------------------------^-------^------------------^--------------------'
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2023-11-18 15:16 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-11-17 15:50 [Buildroot] [PATCH] board/khadas/vim3: add the path of the devicetree in extlinux.conf Antoine Coutant
2023-11-18 15:16 ` Yann E. MORIN
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.