You could simply add your overlay in one of the conf files, such as 
local.conf:

KERNEL_DEVICETREE += "your-overlay.dtbo"

Check the existing machine conf files for examples.


On Thu, Dec 21, 2023 at 08:51:49PM +0000, Lukasz Przenioslo wrote:
> Hi Jon,
> I guess the first option is more feasible, as I would not like to
> modify any files provided by the Poky repo, but rather create my own
> recipe that would somehow cover the default settings during the
> build. There is still a lot ahead for me to understand though...
> 
> Thank you for the useful links.
> 
> --
> Łukasz Przeniosło
> 
> 
> ------ Original Message ------
> From "Jon Cormier" <[email protected]>
> To "Bremenpl" <[email protected]>
> Cc [email protected]
> Date 2023-12-21 16:17:38
> Subject Re: [meta-ti] Custom device tree overlay for BBB
> 
> >This solution seems like a good place to start. I haven't tried it
> >myself but it looks clean and easy to implement.
> >https://stackoverflow.com/a/68650774
> >
> >The alternative would be to bbappend the kernel and patch your
> >overlay into the correct folder.
> >https://stackoverflow.com/a/39343720
> >
> >On Thu, Dec 21, 2023 at 10:03 AM Bremenpl <[email protected]> wrote:
> >>Hi and thank you for the answer Jonathan!
> >>
> >>Do you happen to also know a good reference on how to
> >>incorporate an overlay into the yocto build?
> >>
> >>On December 21, 2023 15:58:56 Jon Cormier
> >><[email protected]> wrote:
> >>
> >>>Here is a possible example overlay that configures pinmuxes
> >>>with the expectation that the pru's will use them.  There is
> >>>likely a similar example in that long list of overlays that
> >>>disables hdmi.
> >>>
> >>>https://github.com/beagleboard/bb.org-overlays/blob/master/src/arm/AM335X-PRU-RPROC-4-19-TI-PRUCAPE-00A0.dts
> >>>
> >>>Note its entirely possible these examples won't build or apply
> >>>correctly on a different kernel version, but they should still
> >>>be a decent starting point.
> >>>
> >>>On Thu, Dec 21, 2023 at 6:34 AM Lukasz Przenioslo
> >>><[email protected]> wrote:
> >>>>Hello there,
> >>>>
> >>>>I was able to compile the Poky image (Dunfell) with meta-ti
> >>>>included for the BBB. I am working on an open source project
> >>>>intended for home automation based on the BBB:
> >>>>https://github.com/Beaglenode/BeagleNodeHW
> >>>>
> >>>>The next step I am trying to make is to prepare a proper
> >>>>device tree overlay that would align with the HW
> >>>>requirements of this project (or "cape"). I need to:
> >>>>- Disable the HDMI pins,
> >>>>- configure multiple pins as either PRU0 or PRU1 controlled.
> >>>>
> >>>>For that I thought the best approach would be to prepare a
> >>>>DTO, instead of modifying the default one for BBB. I don't
> >>>>know how to prepare that DTO yet and I don't know how to
> >>>>include it in my build. I would like to ask for some help in
> >>>>this manner, especially the prior part (how to load the
> >>>>custom DTO). Right now I am still modifying everything in
> >>>>the local.conf, as I do not have the knowledge yet to build
> >>>>my own distro for this device (that's the end plan).
> >>>>
> >>>>I would appreciate all help!
> >>>>
> >>>>
-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#17368): 
https://lists.yoctoproject.org/g/meta-ti/message/17368
Mute This Topic: https://lists.yoctoproject.org/mt/103298715/21656
Group Owner: [email protected]
Unsubscribe: 
https://lists.yoctoproject.org/g/meta-ti/leave/6695321/21656/1393940836/xyzzy 
[[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-

Reply via email to