radxa / meta-rockchip

Yocto BSP layer for the Rockchip SOC boards
MIT License
23 stars 14 forks source link

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

Open yrik opened 12 months ago

yrik commented 12 months ago

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 commented 12 months ago

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 commented 2 days ago

I also have this question.