Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

What is the best way to add/cofigure device tree overlays? #8

Open
yrik opened this issue Aug 29, 2023 · 5 comments
Open

What is the best way to add/cofigure device tree overlays? #8

yrik opened this issue Aug 29, 2023 · 5 comments

Comments

@yrik
Copy link

yrik commented Aug 29, 2023

Would be awesome to be able to configure device overlays directly from this repo.
What is the best way to add some particular dts config? For example this one -
https://github.com/radxa/overlays/blob/main/arch/arm64/boot/dts/rockchip/overlays/rk3588-uart3-m1.dts
It would enable a second UART port on the Rock 5B Radxa board.

Could not find a way to use the first UART because it's busy by the kernel to show boot logs (I would need to modify kernel cmdline to prevent kernel from using uart1 or smth), that's why trying to use another serial/uart port.

Is here something like /boot/config.txt to set variables? I see it's present in rpi and in debian for rock5b but not in linux built with this repo.

@yrik
Copy link
Author

yrik commented Aug 30, 2023

For example, for meta-raspberrypi I can do the following settings in conf/machine/rpi4.conf:

 # prevent using serial for linux output
CMDLINE_SERIAL = ""
 # modify boot commands
CMDLINE:append = "..."
 # modify device overlays 
RPI_KERNEL_DEVICETREE_OVERLAYS:append = "overlays/tc358743-overlay.dtbo"

@neelsani
Copy link

I also have this question.

@Manu7788
Copy link

Manu7788 commented Oct 3, 2024

any solutions ?

@neelsani
Copy link

neelsani commented Oct 3, 2024

any solutions ?

I ended up creating a patch file in my yocto layer that patched the device tree for my device in the Linux kernel. I only wanted to enable a couple uart ports on my Radxa zero 3e so it was only ~3 lines I added to the end of it.

@neelsani
Copy link

neelsani commented Oct 3, 2024

any solutions ?

You can watch this: https://youtu.be/srM6u8e4tyw?si=bgAm4XxB_135UeJt

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants