* [PATCH 0/2] conf: machine: Add machine for BeagleBone Green Eco board
@ 2025-07-15 11:34 Miguel Gazquez
2025-07-15 11:34 ` [PATCH 1/2] conf: machine: add BeagleBone Green Eco to KERNEL_DEVICETREE Miguel Gazquez
2025-07-15 11:34 ` [PATCH 2/2] conf: machine: add new BeagleBone Green Eco machine Miguel Gazquez
0 siblings, 2 replies; 13+ messages in thread
From: Miguel Gazquez @ 2025-07-15 11:34 UTC (permalink / raw)
To: meta-ti
Cc: thomas.petazzoni, praneeth, romain.gantois, kory.maincent,
thomas.bonnefille, denys, reatmon, robertcnelson, Miguel Gazquez
This series add support for the BeagleBone Green Eco board in the
meta-ti-bsp layer.
Ethernet support in u-boot is still on ti-u-boot-2025.01-next, but it
seems that update to the revision used for u-boot is done automatically,
so I didn't change it.
As I added the bbge device tree in the KERNEL_DEVICETREE list in `ti33x.inc`,
the machine works even without specifying the exact device-tree in
beaglebonegreen-eco-ti.conf, but I thought that it is not necessary to
compile all others devicetrees if we know the one we are going to need.
I previously sent this by mistake to linux-patch-review@list.ti.com, I
just changed the capitalization of the BeagleBone Green Eco.
To: meta-ti@lists.yoctoproject.org
Cc: thomas.petazzoni@bootlin.com
Cc: praneeth@ti.com
Cc: romain.gantois@bootlin.com
Cc: kory.maincent@bootlin.com
Cc: thomas.bonnefille@bootlin.com
Cc: denys@konsulko.com
Cc: reatmon@ti.com
Cc: robertcnelson@gmail.com
Signed-off-by: Miguel Gazquez <miguel.gazquez@bootlin.com>
---
Miguel Gazquez (2):
conf: machine: add BeagleBone Green Eco to KERNEL_DEVICETREE
conf: machine: add new BeagleBone Green Eco machine
meta-ti-bsp/conf/machine/beaglebonegreen-eco-ti.conf | 9 +++++++++
meta-ti-bsp/conf/machine/include/ti33x.inc | 1 +
2 files changed, 10 insertions(+)
---
base-commit: 5edda0fa24819e8a9122143732db6fc91786431e
change-id: 20250711-bbg_eco_machine-5b2c295ddb7c
Best regards,
--
Miguel Gazquez <miguel.gazquez@bootlin.com>
^ permalink raw reply [flat|nested] 13+ messages in thread
* [PATCH 1/2] conf: machine: add BeagleBone Green Eco to KERNEL_DEVICETREE
2025-07-15 11:34 [PATCH 0/2] conf: machine: Add machine for BeagleBone Green Eco board Miguel Gazquez
@ 2025-07-15 11:34 ` Miguel Gazquez
2025-07-15 13:52 ` Ryan Eatmon
2025-07-15 11:34 ` [PATCH 2/2] conf: machine: add new BeagleBone Green Eco machine Miguel Gazquez
1 sibling, 1 reply; 13+ messages in thread
From: Miguel Gazquez @ 2025-07-15 11:34 UTC (permalink / raw)
To: meta-ti
Cc: thomas.petazzoni, praneeth, romain.gantois, kory.maincent,
thomas.bonnefille, denys, reatmon, robertcnelson, Miguel Gazquez
Add am335x-bonegreen-eco devicetree to KERNEL_DEVICETREE in ti33x.inc
Signed-off-by: Miguel Gazquez <miguel.gazquez@bootlin.com>
---
meta-ti-bsp/conf/machine/include/ti33x.inc | 1 +
1 file changed, 1 insertion(+)
diff --git a/meta-ti-bsp/conf/machine/include/ti33x.inc b/meta-ti-bsp/conf/machine/include/ti33x.inc
index 7e9eb48c52737e74750565e639956334162432e2..0a0730eae104371d65548588b3333839857a3a50 100644
--- a/meta-ti-bsp/conf/machine/include/ti33x.inc
+++ b/meta-ti-bsp/conf/machine/include/ti33x.inc
@@ -28,6 +28,7 @@ KERNEL_DEVICETREE = " \
ti/omap/am335x-boneblack.dtb \
ti/omap/am335x-boneblue.dtb \
ti/omap/am335x-bonegreen-wireless.dtb \
+ ti/omap/am335x-bonegreen-eco.dtb \
ti/omap/am335x-bonegreen.dtb \
ti/omap/am335x-chiliboard.dtb \
ti/omap/am335x-cm-t335.dtb \
--
2.50.0
^ permalink raw reply related [flat|nested] 13+ messages in thread
* [PATCH 2/2] conf: machine: add new BeagleBone Green Eco machine
2025-07-15 11:34 [PATCH 0/2] conf: machine: Add machine for BeagleBone Green Eco board Miguel Gazquez
2025-07-15 11:34 ` [PATCH 1/2] conf: machine: add BeagleBone Green Eco to KERNEL_DEVICETREE Miguel Gazquez
@ 2025-07-15 11:34 ` Miguel Gazquez
2025-07-15 13:52 ` Ryan Eatmon
1 sibling, 1 reply; 13+ messages in thread
From: Miguel Gazquez @ 2025-07-15 11:34 UTC (permalink / raw)
To: meta-ti
Cc: thomas.petazzoni, praneeth, romain.gantois, kory.maincent,
thomas.bonnefille, denys, reatmon, robertcnelson, Miguel Gazquez
Add a new machine file for the BeagleBone Green Eco board.
`ti33x.inc` takes care of much of the configuration, so not much is
needed in this file.
Signed-off-by: Miguel Gazquez <miguel.gazquez@bootlin.com>
---
meta-ti-bsp/conf/machine/beaglebonegreen-eco-ti.conf | 9 +++++++++
1 file changed, 9 insertions(+)
diff --git a/meta-ti-bsp/conf/machine/beaglebonegreen-eco-ti.conf b/meta-ti-bsp/conf/machine/beaglebonegreen-eco-ti.conf
new file mode 100644
index 0000000000000000000000000000000000000000..c0756b53690a492c44c1289f045587d91264ce05
--- /dev/null
+++ b/meta-ti-bsp/conf/machine/beaglebonegreen-eco-ti.conf
@@ -0,0 +1,9 @@
+#@TYPE: Machine
+#@NAME: BeagleBone Green Eco
+#@DESCRIPTION: Machine configuration for the BeagleBone Green Eco board
+
+require conf/machine/include/ti33x.inc
+
+SERIAL_CONSOLES = "115200;ttyS0"
+
+KERNEL_DEVICETREE = "ti/omap/am335x-bonegreen-eco.dtb"
--
2.50.0
^ permalink raw reply related [flat|nested] 13+ messages in thread
* Re: [PATCH 1/2] conf: machine: add BeagleBone Green Eco to KERNEL_DEVICETREE
2025-07-15 11:34 ` [PATCH 1/2] conf: machine: add BeagleBone Green Eco to KERNEL_DEVICETREE Miguel Gazquez
@ 2025-07-15 13:52 ` Ryan Eatmon
2025-07-15 20:12 ` Thomas Petazzoni
2025-07-17 17:55 ` Miguel Gazquez
0 siblings, 2 replies; 13+ messages in thread
From: Ryan Eatmon @ 2025-07-15 13:52 UTC (permalink / raw)
To: Miguel Gazquez, meta-ti
Cc: thomas.petazzoni, praneeth, romain.gantois, kory.maincent,
thomas.bonnefille, denys, robertcnelson
On 7/15/2025 6:34 AM, Miguel Gazquez wrote:
> Add am335x-bonegreen-eco devicetree to KERNEL_DEVICETREE in ti33x.inc
>
> Signed-off-by: Miguel Gazquez <miguel.gazquez@bootlin.com>
> ---
> meta-ti-bsp/conf/machine/include/ti33x.inc | 1 +
> 1 file changed, 1 insertion(+)
>
> diff --git a/meta-ti-bsp/conf/machine/include/ti33x.inc b/meta-ti-bsp/conf/machine/include/ti33x.inc
> index 7e9eb48c52737e74750565e639956334162432e2..0a0730eae104371d65548588b3333839857a3a50 100644
> --- a/meta-ti-bsp/conf/machine/include/ti33x.inc
> +++ b/meta-ti-bsp/conf/machine/include/ti33x.inc
> @@ -28,6 +28,7 @@ KERNEL_DEVICETREE = " \
> ti/omap/am335x-boneblack.dtb \
> ti/omap/am335x-boneblue.dtb \
> ti/omap/am335x-bonegreen-wireless.dtb \
> + ti/omap/am335x-bonegreen-eco.dtb \
> ti/omap/am335x-bonegreen.dtb \
> ti/omap/am335x-chiliboard.dtb \
> ti/omap/am335x-cm-t335.dtb \
NAK. As has been mentioned several times on this list, we do not update
KERNEL_DEVICETREE directly. As we support multiple kernel versions with
each branch, we cannot have a single KERNEL_DEVICETREE that works for
all kernel versions.
To that end we setup the KERNEL_DEVICETREE_PREFIX variable that will
pattern match and change the value for KERNEL_DEVICETREE based on the
available matching DTBs in the given kernel. The only kernel version
that uses KERNEL_DEVICETREE is the mainline (aka latest stable) kernel.
And the value for this variable is automatically updated to include all
of the available DTBs in the mainline kernel at the time we update the
recipe to that version.
As the KERNEL_DEVICETREE_PREFIX already has an entry that will pick up
this new DTB when it is available, this change is not needed.
Right now this new DTB is only available on linux-next and has not made
it into any released kernels.
--
Ryan Eatmon reatmon@ti.com
-----------------------------------------
Texas Instruments, Inc. - LCPD - MGTS
^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: [PATCH 2/2] conf: machine: add new BeagleBone Green Eco machine
2025-07-15 11:34 ` [PATCH 2/2] conf: machine: add new BeagleBone Green Eco machine Miguel Gazquez
@ 2025-07-15 13:52 ` Ryan Eatmon
0 siblings, 0 replies; 13+ messages in thread
From: Ryan Eatmon @ 2025-07-15 13:52 UTC (permalink / raw)
To: Miguel Gazquez, meta-ti
Cc: thomas.petazzoni, praneeth, romain.gantois, kory.maincent,
thomas.bonnefille, denys, robertcnelson
On 7/15/2025 6:34 AM, Miguel Gazquez wrote:
> Add a new machine file for the BeagleBone Green Eco board.
> `ti33x.inc` takes care of much of the configuration, so not much is
> needed in this file.
>
> Signed-off-by: Miguel Gazquez <miguel.gazquez@bootlin.com>
> ---
> meta-ti-bsp/conf/machine/beaglebonegreen-eco-ti.conf | 9 +++++++++
> 1 file changed, 9 insertions(+)
>
> diff --git a/meta-ti-bsp/conf/machine/beaglebonegreen-eco-ti.conf b/meta-ti-bsp/conf/machine/beaglebonegreen-eco-ti.conf
> new file mode 100644
> index 0000000000000000000000000000000000000000..c0756b53690a492c44c1289f045587d91264ce05
> --- /dev/null
> +++ b/meta-ti-bsp/conf/machine/beaglebonegreen-eco-ti.conf
> @@ -0,0 +1,9 @@
> +#@TYPE: Machine
> +#@NAME: BeagleBone Green Eco
> +#@DESCRIPTION: Machine configuration for the BeagleBone Green Eco board
> +
> +require conf/machine/include/ti33x.inc
> +
> +SERIAL_CONSOLES = "115200;ttyS0"
> +
> +KERNEL_DEVICETREE = "ti/omap/am335x-bonegreen-eco.dtb"
I'm not sure this machine is needed since the am335x-evm machine covers
this (and all beaglebone machines). We tend to not like targeted
special machines like this as it increases the amount of builds/tests
that we would need to do to ensure that nothing breaks.
Will the am335x-evm machine not work for you?
--
Ryan Eatmon reatmon@ti.com
-----------------------------------------
Texas Instruments, Inc. - LCPD - MGTS
^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: [PATCH 1/2] conf: machine: add BeagleBone Green Eco to KERNEL_DEVICETREE
2025-07-15 13:52 ` Ryan Eatmon
@ 2025-07-15 20:12 ` Thomas Petazzoni
2025-07-17 17:55 ` Miguel Gazquez
1 sibling, 0 replies; 13+ messages in thread
From: Thomas Petazzoni @ 2025-07-15 20:12 UTC (permalink / raw)
To: Ryan Eatmon
Cc: Miguel Gazquez, meta-ti, praneeth, romain.gantois, kory.maincent,
thomas.bonnefille, denys, robertcnelson
Hello Ryan,
Thanks for your review!
On Tue, 15 Jul 2025 08:52:03 -0500
Ryan Eatmon <reatmon@ti.com> wrote:
> NAK. As has been mentioned several times on this list, we do not update
> KERNEL_DEVICETREE directly. As we support multiple kernel versions with
> each branch, we cannot have a single KERNEL_DEVICETREE that works for
> all kernel versions.
>
> To that end we setup the KERNEL_DEVICETREE_PREFIX variable that will
> pattern match and change the value for KERNEL_DEVICETREE based on the
> available matching DTBs in the given kernel. The only kernel version
> that uses KERNEL_DEVICETREE is the mainline (aka latest stable) kernel.
> And the value for this variable is automatically updated to include all
> of the available DTBs in the mainline kernel at the time we update the
> recipe to that version.
>
> As the KERNEL_DEVICETREE_PREFIX already has an entry that will pick up
> this new DTB when it is available, this change is not needed.
>
> Right now this new DTB is only available on linux-next and has not made
> it into any released kernels.
This DTB has also been backported into linux-ti, which is really what
we're interested in for now. Though probably that doesn't change
anything to your feedback, but I thought it was worth mentioning.
Thomas
--
Thomas Petazzoni, co-owner and CEO, Bootlin
Embedded Linux and Kernel engineering and training
https://bootlin.com
^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: [PATCH 1/2] conf: machine: add BeagleBone Green Eco to KERNEL_DEVICETREE
2025-07-15 13:52 ` Ryan Eatmon
2025-07-15 20:12 ` Thomas Petazzoni
@ 2025-07-17 17:55 ` Miguel Gazquez
2025-07-17 18:01 ` Ryan Eatmon
1 sibling, 1 reply; 13+ messages in thread
From: Miguel Gazquez @ 2025-07-17 17:55 UTC (permalink / raw)
To: Ryan Eatmon, meta-ti
Cc: thomas.petazzoni, praneeth, romain.gantois, kory.maincent,
thomas.bonnefille, denys, robertcnelson
Le 15/07/2025 à 15:52, Ryan Eatmon a écrit :
>
>
> On 7/15/2025 6:34 AM, Miguel Gazquez wrote:
>> Add am335x-bonegreen-eco devicetree to KERNEL_DEVICETREE in ti33x.inc
>>
>> Signed-off-by: Miguel Gazquez <miguel.gazquez@bootlin.com>
>> ---
>> meta-ti-bsp/conf/machine/include/ti33x.inc | 1 +
>> 1 file changed, 1 insertion(+)
>>
>> diff --git a/meta-ti-bsp/conf/machine/include/ti33x.inc b/meta-ti-bsp/
>> conf/machine/include/ti33x.inc
>> index
>> 7e9eb48c52737e74750565e639956334162432e2..0a0730eae104371d65548588b3333839857a3a50 100644
>> --- a/meta-ti-bsp/conf/machine/include/ti33x.inc
>> +++ b/meta-ti-bsp/conf/machine/include/ti33x.inc
>> @@ -28,6 +28,7 @@ KERNEL_DEVICETREE = " \
>> ti/omap/am335x-boneblack.dtb \
>> ti/omap/am335x-boneblue.dtb \
>> ti/omap/am335x-bonegreen-wireless.dtb \
>> + ti/omap/am335x-bonegreen-eco.dtb \
>> ti/omap/am335x-bonegreen.dtb \
>> ti/omap/am335x-chiliboard.dtb \
>> ti/omap/am335x-cm-t335.dtb \
>
> NAK. As has been mentioned several times on this list, we do not update
> KERNEL_DEVICETREE directly. As we support multiple kernel versions with
> each branch, we cannot have a single KERNEL_DEVICETREE that works for
> all kernel versions.
>
> To that end we setup the KERNEL_DEVICETREE_PREFIX variable that will
> pattern match and change the value for KERNEL_DEVICETREE based on the
> available matching DTBs in the given kernel. The only kernel version
> that uses KERNEL_DEVICETREE is the mainline (aka latest stable) kernel.
> And the value for this variable is automatically updated to include all
> of the available DTBs in the mainline kernel at the time we update the
> recipe to that version.
>
> As the KERNEL_DEVICETREE_PREFIX already has an entry that will pick up
> this new DTB when it is available, this change is not needed.
When building for the am335x_evm without this patch, the devicetree for
the beaglebone green eco is not included in the wic image, so the kernel
can't boot.
As you said, in the linux-ti-staging recipe, KERNEL_DEVICETREE does
contains the dtb for the bbg eco.
But core-image-minimal (which create the wic image) uses the value of
KERNEL_DEVICETREE from ti33x.inc, and not the one generated from
KERNEL_DEVICETREE_PREFIX, so it doesn't contains the devicetree for the
bbge. This can be checked with `bitbake-getvar -r core-image-minimal
KERNEL_DEVICETREE`.
It probably works for others boards because, apart from the bbge, there
isn't any board supported in ti-linux-6.12.y but not in mainline.
If we can't modify KERNEL_DEVICETREE here, what should I do to include
the devicetree into the final image ?
>
> Right now this new DTB is only available on linux-next and has not made
> it into any released kernels.
>
>
--
Miguel Gazquez, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com
^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: [PATCH 1/2] conf: machine: add BeagleBone Green Eco to KERNEL_DEVICETREE
2025-07-17 17:55 ` Miguel Gazquez
@ 2025-07-17 18:01 ` Ryan Eatmon
2025-07-18 9:54 ` Miguel Gazquez
0 siblings, 1 reply; 13+ messages in thread
From: Ryan Eatmon @ 2025-07-17 18:01 UTC (permalink / raw)
To: Miguel Gazquez, meta-ti
Cc: thomas.petazzoni, praneeth, romain.gantois, kory.maincent,
thomas.bonnefille, denys, robertcnelson
On 7/17/2025 12:55 PM, Miguel Gazquez wrote:
>
>
> Le 15/07/2025 à 15:52, Ryan Eatmon a écrit :
>>
>>
>> On 7/15/2025 6:34 AM, Miguel Gazquez wrote:
>>> Add am335x-bonegreen-eco devicetree to KERNEL_DEVICETREE in ti33x.inc
>>>
>>> Signed-off-by: Miguel Gazquez <miguel.gazquez@bootlin.com>
>>> ---
>>> meta-ti-bsp/conf/machine/include/ti33x.inc | 1 +
>>> 1 file changed, 1 insertion(+)
>>>
>>> diff --git a/meta-ti-bsp/conf/machine/include/ti33x.inc
>>> b/meta-ti-bsp/ conf/machine/include/ti33x.inc
>>> index
>>> 7e9eb48c52737e74750565e639956334162432e2..0a0730eae104371d65548588b3333839857a3a50 100644
>>> --- a/meta-ti-bsp/conf/machine/include/ti33x.inc
>>> +++ b/meta-ti-bsp/conf/machine/include/ti33x.inc
>>> @@ -28,6 +28,7 @@ KERNEL_DEVICETREE = " \
>>> ti/omap/am335x-boneblack.dtb \
>>> ti/omap/am335x-boneblue.dtb \
>>> ti/omap/am335x-bonegreen-wireless.dtb \
>>> + ti/omap/am335x-bonegreen-eco.dtb \
>>> ti/omap/am335x-bonegreen.dtb \
>>> ti/omap/am335x-chiliboard.dtb \
>>> ti/omap/am335x-cm-t335.dtb \
>>
>> NAK. As has been mentioned several times on this list, we do not
>> update KERNEL_DEVICETREE directly. As we support multiple kernel
>> versions with each branch, we cannot have a single KERNEL_DEVICETREE
>> that works for all kernel versions.
>>
>> To that end we setup the KERNEL_DEVICETREE_PREFIX variable that will
>> pattern match and change the value for KERNEL_DEVICETREE based on the
>> available matching DTBs in the given kernel. The only kernel version
>> that uses KERNEL_DEVICETREE is the mainline (aka latest stable)
>> kernel. And the value for this variable is automatically updated to
>> include all of the available DTBs in the mainline kernel at the time
>> we update the recipe to that version.
>>
>> As the KERNEL_DEVICETREE_PREFIX already has an entry that will pick up
>> this new DTB when it is available, this change is not needed.
>
> When building for the am335x_evm without this patch, the devicetree for
> the beaglebone green eco is not included in the wic image, so the kernel
> can't boot.
>
> As you said, in the linux-ti-staging recipe, KERNEL_DEVICETREE does
> contains the dtb for the bbg eco.
>
> But core-image-minimal (which create the wic image) uses the value of
> KERNEL_DEVICETREE from ti33x.inc, and not the one generated from
> KERNEL_DEVICETREE_PREFIX, so it doesn't contains the devicetree for the
> bbge. This can be checked with `bitbake-getvar -r core-image-minimal
> KERNEL_DEVICETREE`.
>
> It probably works for others boards because, apart from the bbge, there
> isn't any board supported in ti-linux-6.12.y but not in mainline.
>
> If we can't modify KERNEL_DEVICETREE here, what should I do to include
> the devicetree into the final image ?
Are you talking about a poky build with a poky kernel? Or a poky build
with the TI kernel?
If you are talking about the TI kernel, then the mainline recipe does
not point to a kernel that has this DTB. So are you trying to use the
mainline recipe but change the SRCREV to point a commit that does
contain this new DTB file?
>>
>> Right now this new DTB is only available on linux-next and has not
>> made it into any released kernels.
>>
>>
>
--
Ryan Eatmon reatmon@ti.com
-----------------------------------------
Texas Instruments, Inc. - LCPD - MGTS
^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: [PATCH 1/2] conf: machine: add BeagleBone Green Eco to KERNEL_DEVICETREE
2025-07-17 18:01 ` Ryan Eatmon
@ 2025-07-18 9:54 ` Miguel Gazquez
2025-07-18 14:35 ` Ryan Eatmon
0 siblings, 1 reply; 13+ messages in thread
From: Miguel Gazquez @ 2025-07-18 9:54 UTC (permalink / raw)
To: Ryan Eatmon, meta-ti
Cc: thomas.petazzoni, praneeth, romain.gantois, kory.maincent,
thomas.bonnefille, denys, robertcnelson
Le 17/07/2025 à 20:01, Ryan Eatmon a écrit :
>
>
> On 7/17/2025 12:55 PM, Miguel Gazquez wrote:
>>
>>
>> Le 15/07/2025 à 15:52, Ryan Eatmon a écrit :
>>>
>>>
>>> On 7/15/2025 6:34 AM, Miguel Gazquez wrote:
>>>> Add am335x-bonegreen-eco devicetree to KERNEL_DEVICETREE in ti33x.inc
>>>>
>>>> Signed-off-by: Miguel Gazquez <miguel.gazquez@bootlin.com>
>>>> ---
>>>> meta-ti-bsp/conf/machine/include/ti33x.inc | 1 +
>>>> 1 file changed, 1 insertion(+)
>>>>
>>>> diff --git a/meta-ti-bsp/conf/machine/include/ti33x.inc b/meta-ti-
>>>> bsp/ conf/machine/include/ti33x.inc
>>>> index
>>>> 7e9eb48c52737e74750565e639956334162432e2..0a0730eae104371d65548588b3333839857a3a50 100644
>>>> --- a/meta-ti-bsp/conf/machine/include/ti33x.inc
>>>> +++ b/meta-ti-bsp/conf/machine/include/ti33x.inc
>>>> @@ -28,6 +28,7 @@ KERNEL_DEVICETREE = " \
>>>> ti/omap/am335x-boneblack.dtb \
>>>> ti/omap/am335x-boneblue.dtb \
>>>> ti/omap/am335x-bonegreen-wireless.dtb \
>>>> + ti/omap/am335x-bonegreen-eco.dtb \
>>>> ti/omap/am335x-bonegreen.dtb \
>>>> ti/omap/am335x-chiliboard.dtb \
>>>> ti/omap/am335x-cm-t335.dtb \
>>>
>>> NAK. As has been mentioned several times on this list, we do not
>>> update KERNEL_DEVICETREE directly. As we support multiple kernel
>>> versions with each branch, we cannot have a single KERNEL_DEVICETREE
>>> that works for all kernel versions.
>>>
>>> To that end we setup the KERNEL_DEVICETREE_PREFIX variable that will
>>> pattern match and change the value for KERNEL_DEVICETREE based on the
>>> available matching DTBs in the given kernel. The only kernel version
>>> that uses KERNEL_DEVICETREE is the mainline (aka latest stable)
>>> kernel. And the value for this variable is automatically updated to
>>> include all of the available DTBs in the mainline kernel at the time
>>> we update the recipe to that version.
>>>
>>> As the KERNEL_DEVICETREE_PREFIX already has an entry that will pick
>>> up this new DTB when it is available, this change is not needed.
>>
>> When building for the am335x_evm without this patch, the devicetree
>> for the beaglebone green eco is not included in the wic image, so the
>> kernel can't boot.
>>
>> As you said, in the linux-ti-staging recipe, KERNEL_DEVICETREE does
>> contains the dtb for the bbg eco.
>>
>> But core-image-minimal (which create the wic image) uses the value of
>> KERNEL_DEVICETREE from ti33x.inc, and not the one generated from
>> KERNEL_DEVICETREE_PREFIX, so it doesn't contains the devicetree for
>> the bbge. This can be checked with `bitbake-getvar -r core-image-
>> minimal KERNEL_DEVICETREE`.
>>
>> It probably works for others boards because, apart from the bbge,
>> there isn't any board supported in ti-linux-6.12.y but not in mainline.
>>
>> If we can't modify KERNEL_DEVICETREE here, what should I do to include
>> the devicetree into the final image ?
>
> Are you talking about a poky build with a poky kernel? Or a poky build
> with the TI kernel?
>
> If you are talking about the TI kernel, then the mainline recipe does
> not point to a kernel that has this DTB. So are you trying to use the
> mainline recipe but change the SRCREV to point a commit that does
> contain this new DTB file?
I'm using a poky build with the TI kernel, which by default uses the
branch "ti-linux-6.12.y", with the SRCREV equal to
"78e6abff322081d53c5a685d927476086c9b2846" (on the scarthgap branch, I
forgot to mention it). And on this branch there is the commit
"ab7f0d695e9a3268deb760dcd0fa58812a614cd8" adding the devicetree for the
beaglebone green eco.
>>>
>>> Right now this new DTB is only available on linux-next and has not
>>> made it into any released kernels.
>>>
>>>
>>
>
--
Miguel Gazquez, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com
^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: [PATCH 1/2] conf: machine: add BeagleBone Green Eco to KERNEL_DEVICETREE
2025-07-18 9:54 ` Miguel Gazquez
@ 2025-07-18 14:35 ` Ryan Eatmon
2025-07-18 15:48 ` Miguel Gazquez
0 siblings, 1 reply; 13+ messages in thread
From: Ryan Eatmon @ 2025-07-18 14:35 UTC (permalink / raw)
To: Miguel Gazquez, meta-ti
Cc: thomas.petazzoni, praneeth, romain.gantois, kory.maincent,
thomas.bonnefille, denys, robertcnelson
On 7/18/2025 4:54 AM, Miguel Gazquez wrote:
>
>
> Le 17/07/2025 à 20:01, Ryan Eatmon a écrit :
>>
>>
>> On 7/17/2025 12:55 PM, Miguel Gazquez wrote:
>>>
>>>
>>> Le 15/07/2025 à 15:52, Ryan Eatmon a écrit :
>>>>
>>>>
>>>> On 7/15/2025 6:34 AM, Miguel Gazquez wrote:
>>>>> Add am335x-bonegreen-eco devicetree to KERNEL_DEVICETREE in ti33x.inc
>>>>>
>>>>> Signed-off-by: Miguel Gazquez <miguel.gazquez@bootlin.com>
>>>>> ---
>>>>> meta-ti-bsp/conf/machine/include/ti33x.inc | 1 +
>>>>> 1 file changed, 1 insertion(+)
>>>>>
>>>>> diff --git a/meta-ti-bsp/conf/machine/include/ti33x.inc b/meta-ti-
>>>>> bsp/ conf/machine/include/ti33x.inc
>>>>> index
>>>>> 7e9eb48c52737e74750565e639956334162432e2..0a0730eae104371d65548588b3333839857a3a50 100644
>>>>> --- a/meta-ti-bsp/conf/machine/include/ti33x.inc
>>>>> +++ b/meta-ti-bsp/conf/machine/include/ti33x.inc
>>>>> @@ -28,6 +28,7 @@ KERNEL_DEVICETREE = " \
>>>>> ti/omap/am335x-boneblack.dtb \
>>>>> ti/omap/am335x-boneblue.dtb \
>>>>> ti/omap/am335x-bonegreen-wireless.dtb \
>>>>> + ti/omap/am335x-bonegreen-eco.dtb \
>>>>> ti/omap/am335x-bonegreen.dtb \
>>>>> ti/omap/am335x-chiliboard.dtb \
>>>>> ti/omap/am335x-cm-t335.dtb \
>>>>
>>>> NAK. As has been mentioned several times on this list, we do not
>>>> update KERNEL_DEVICETREE directly. As we support multiple kernel
>>>> versions with each branch, we cannot have a single KERNEL_DEVICETREE
>>>> that works for all kernel versions.
>>>>
>>>> To that end we setup the KERNEL_DEVICETREE_PREFIX variable that will
>>>> pattern match and change the value for KERNEL_DEVICETREE based on
>>>> the available matching DTBs in the given kernel. The only kernel
>>>> version that uses KERNEL_DEVICETREE is the mainline (aka latest
>>>> stable) kernel. And the value for this variable is automatically
>>>> updated to include all of the available DTBs in the mainline kernel
>>>> at the time we update the recipe to that version.
>>>>
>>>> As the KERNEL_DEVICETREE_PREFIX already has an entry that will pick
>>>> up this new DTB when it is available, this change is not needed.
>>>
>>> When building for the am335x_evm without this patch, the devicetree
>>> for the beaglebone green eco is not included in the wic image, so the
>>> kernel can't boot.
>>>
>>> As you said, in the linux-ti-staging recipe, KERNEL_DEVICETREE does
>>> contains the dtb for the bbg eco.
>>>
>>> But core-image-minimal (which create the wic image) uses the value of
>>> KERNEL_DEVICETREE from ti33x.inc, and not the one generated from
>>> KERNEL_DEVICETREE_PREFIX, so it doesn't contains the devicetree for
>>> the bbge. This can be checked with `bitbake-getvar -r core-image-
>>> minimal KERNEL_DEVICETREE`.
>>>
>>> It probably works for others boards because, apart from the bbge,
>>> there isn't any board supported in ti-linux-6.12.y but not in mainline.
>>>
>>> If we can't modify KERNEL_DEVICETREE here, what should I do to
>>> include the devicetree into the final image ?
>>
>> Are you talking about a poky build with a poky kernel? Or a poky
>> build with the TI kernel?
>>
>> If you are talking about the TI kernel, then the mainline recipe does
>> not point to a kernel that has this DTB. So are you trying to use the
>> mainline recipe but change the SRCREV to point a commit that does
>> contain this new DTB file?
>
> I'm using a poky build with the TI kernel, which by default uses the
> branch "ti-linux-6.12.y", with the SRCREV equal to
> "78e6abff322081d53c5a685d927476086c9b2846" (on the scarthgap branch, I
> forgot to mention it). And on this branch there is the commit
> "ab7f0d695e9a3268deb760dcd0fa58812a614cd8" adding the devicetree for the
> beaglebone green eco.
If you are on scarthgap and using linux-ti-staging_6.12, then you should
just need to point to the appropriate SRCREV for the patch you want and
build am335x-evm. That should build the deploy the dtb you are looking
for. It is in our nightly builds.
In fact, we just promoted our CICD and I can see the file of interest in
our build. So you should not even need to change the SRCREV if you use
the latest scarthgap.
>
>>>>
>>>> Right now this new DTB is only available on linux-next and has not
>>>> made it into any released kernels.
>>>>
>>>>
>>>
>>
>
--
Ryan Eatmon reatmon@ti.com
-----------------------------------------
Texas Instruments, Inc. - LCPD - MGTS
^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: [PATCH 1/2] conf: machine: add BeagleBone Green Eco to KERNEL_DEVICETREE
2025-07-18 14:35 ` Ryan Eatmon
@ 2025-07-18 15:48 ` Miguel Gazquez
2025-07-21 16:49 ` Ryan Eatmon
0 siblings, 1 reply; 13+ messages in thread
From: Miguel Gazquez @ 2025-07-18 15:48 UTC (permalink / raw)
To: Ryan Eatmon, meta-ti
Cc: thomas.petazzoni, praneeth, romain.gantois, kory.maincent,
thomas.bonnefille, denys, robertcnelson
Le 18/07/2025 à 16:35, Ryan Eatmon a écrit :
>
>
> On 7/18/2025 4:54 AM, Miguel Gazquez wrote:
>>
>>
>> Le 17/07/2025 à 20:01, Ryan Eatmon a écrit :
>>>
>>>
>>> On 7/17/2025 12:55 PM, Miguel Gazquez wrote:
>>>>
>>>>
>>>> Le 15/07/2025 à 15:52, Ryan Eatmon a écrit :
>>>>>
>>>>>
>>>>> On 7/15/2025 6:34 AM, Miguel Gazquez wrote:
>>>>>> Add am335x-bonegreen-eco devicetree to KERNEL_DEVICETREE in ti33x.inc
>>>>>>
>>>>>> Signed-off-by: Miguel Gazquez <miguel.gazquez@bootlin.com>
>>>>>> ---
>>>>>> meta-ti-bsp/conf/machine/include/ti33x.inc | 1 +
>>>>>> 1 file changed, 1 insertion(+)
>>>>>>
>>>>>> diff --git a/meta-ti-bsp/conf/machine/include/ti33x.inc b/meta-ti-
>>>>>> bsp/ conf/machine/include/ti33x.inc
>>>>>> index
>>>>>> 7e9eb48c52737e74750565e639956334162432e2..0a0730eae104371d65548588b3333839857a3a50 100644
>>>>>> --- a/meta-ti-bsp/conf/machine/include/ti33x.inc
>>>>>> +++ b/meta-ti-bsp/conf/machine/include/ti33x.inc
>>>>>> @@ -28,6 +28,7 @@ KERNEL_DEVICETREE = " \
>>>>>> ti/omap/am335x-boneblack.dtb \
>>>>>> ti/omap/am335x-boneblue.dtb \
>>>>>> ti/omap/am335x-bonegreen-wireless.dtb \
>>>>>> + ti/omap/am335x-bonegreen-eco.dtb \
>>>>>> ti/omap/am335x-bonegreen.dtb \
>>>>>> ti/omap/am335x-chiliboard.dtb \
>>>>>> ti/omap/am335x-cm-t335.dtb \
>>>>>
>>>>> NAK. As has been mentioned several times on this list, we do not
>>>>> update KERNEL_DEVICETREE directly. As we support multiple kernel
>>>>> versions with each branch, we cannot have a single
>>>>> KERNEL_DEVICETREE that works for all kernel versions.
>>>>>
>>>>> To that end we setup the KERNEL_DEVICETREE_PREFIX variable that
>>>>> will pattern match and change the value for KERNEL_DEVICETREE based
>>>>> on the available matching DTBs in the given kernel. The only
>>>>> kernel version that uses KERNEL_DEVICETREE is the mainline (aka
>>>>> latest stable) kernel. And the value for this variable is
>>>>> automatically updated to include all of the available DTBs in the
>>>>> mainline kernel at the time we update the recipe to that version.
>>>>>
>>>>> As the KERNEL_DEVICETREE_PREFIX already has an entry that will pick
>>>>> up this new DTB when it is available, this change is not needed.
>>>>
>>>> When building for the am335x_evm without this patch, the devicetree
>>>> for the beaglebone green eco is not included in the wic image, so
>>>> the kernel can't boot.
>>>>
>>>> As you said, in the linux-ti-staging recipe, KERNEL_DEVICETREE does
>>>> contains the dtb for the bbg eco.
>>>>
>>>> But core-image-minimal (which create the wic image) uses the value
>>>> of KERNEL_DEVICETREE from ti33x.inc, and not the one generated from
>>>> KERNEL_DEVICETREE_PREFIX, so it doesn't contains the devicetree for
>>>> the bbge. This can be checked with `bitbake-getvar -r core-image-
>>>> minimal KERNEL_DEVICETREE`.
>>>>
>>>> It probably works for others boards because, apart from the bbge,
>>>> there isn't any board supported in ti-linux-6.12.y but not in mainline.
>>>>
>>>> If we can't modify KERNEL_DEVICETREE here, what should I do to
>>>> include the devicetree into the final image ?
>>>
>>> Are you talking about a poky build with a poky kernel? Or a poky
>>> build with the TI kernel?
>>>
>>> If you are talking about the TI kernel, then the mainline recipe does
>>> not point to a kernel that has this DTB. So are you trying to use
>>> the mainline recipe but change the SRCREV to point a commit that does
>>> contain this new DTB file?
>>
>> I'm using a poky build with the TI kernel, which by default uses the
>> branch "ti-linux-6.12.y", with the SRCREV equal to
>> "78e6abff322081d53c5a685d927476086c9b2846" (on the scarthgap branch, I
>> forgot to mention it). And on this branch there is the commit
>> "ab7f0d695e9a3268deb760dcd0fa58812a614cd8" adding the devicetree for
>> the beaglebone green eco.
>
> If you are on scarthgap and using linux-ti-staging_6.12, then you should
> just need to point to the appropriate SRCREV for the patch you want and
> build am335x-evm. That should build the deploy the dtb you are looking
> for. It is in our nightly builds.
>
> In fact, we just promoted our CICD and I can see the file of interest in
> our build. So you should not even need to change the SRCREV if you use
> the latest scarthgap.
Indeed, the dtb is build and deployed in the kernel workdir. However,
it's not present in the final wic image.
I checked the image from your CICD [0], and the dtb doesn't seem to be
there either.
IIUC, the list of dtbs deployed into the final image depends on
KERNEL_DEVICETREE, and it seems like the recipe building the wic file
uses the value hardcoded in ti33x.inc.
[0]
https://software-dl.ti.com/cicd-report/linux/index.html?section=snapshot&platform=am335x&snapshot=cicd.scarthgap.202507051251
>>>>>
>>>>> Right now this new DTB is only available on linux-next and has not
>>>>> made it into any released kernels.
>>>>>
Please let me know what you think,
Thanks,
--
Miguel Gazquez, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com
^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: [PATCH 1/2] conf: machine: add BeagleBone Green Eco to KERNEL_DEVICETREE
2025-07-18 15:48 ` Miguel Gazquez
@ 2025-07-21 16:49 ` Ryan Eatmon
2025-07-30 13:13 ` Miguel Gazquez
0 siblings, 1 reply; 13+ messages in thread
From: Ryan Eatmon @ 2025-07-21 16:49 UTC (permalink / raw)
To: Miguel Gazquez, meta-ti
Cc: thomas.petazzoni, praneeth, romain.gantois, kory.maincent,
thomas.bonnefille, denys, robertcnelson
On 7/18/2025 10:48 AM, Miguel Gazquez wrote:
>
>
> Le 18/07/2025 à 16:35, Ryan Eatmon a écrit :
>>
>>
>> On 7/18/2025 4:54 AM, Miguel Gazquez wrote:
>>>
>>>
>>> Le 17/07/2025 à 20:01, Ryan Eatmon a écrit :
>>>>
>>>>
>>>> On 7/17/2025 12:55 PM, Miguel Gazquez wrote:
>>>>>
>>>>>
>>>>> Le 15/07/2025 à 15:52, Ryan Eatmon a écrit :
>>>>>>
>>>>>>
>>>>>> On 7/15/2025 6:34 AM, Miguel Gazquez wrote:
>>>>>>> Add am335x-bonegreen-eco devicetree to KERNEL_DEVICETREE in
>>>>>>> ti33x.inc
>>>>>>>
>>>>>>> Signed-off-by: Miguel Gazquez <miguel.gazquez@bootlin.com>
>>>>>>> ---
>>>>>>> meta-ti-bsp/conf/machine/include/ti33x.inc | 1 +
>>>>>>> 1 file changed, 1 insertion(+)
>>>>>>>
>>>>>>> diff --git a/meta-ti-bsp/conf/machine/include/ti33x.inc
>>>>>>> b/meta-ti- bsp/ conf/machine/include/ti33x.inc
>>>>>>> index
>>>>>>> 7e9eb48c52737e74750565e639956334162432e2..0a0730eae104371d65548588b3333839857a3a50 100644
>>>>>>> --- a/meta-ti-bsp/conf/machine/include/ti33x.inc
>>>>>>> +++ b/meta-ti-bsp/conf/machine/include/ti33x.inc
>>>>>>> @@ -28,6 +28,7 @@ KERNEL_DEVICETREE = " \
>>>>>>> ti/omap/am335x-boneblack.dtb \
>>>>>>> ti/omap/am335x-boneblue.dtb \
>>>>>>> ti/omap/am335x-bonegreen-wireless.dtb \
>>>>>>> + ti/omap/am335x-bonegreen-eco.dtb \
>>>>>>> ti/omap/am335x-bonegreen.dtb \
>>>>>>> ti/omap/am335x-chiliboard.dtb \
>>>>>>> ti/omap/am335x-cm-t335.dtb \
>>>>>>
>>>>>> NAK. As has been mentioned several times on this list, we do not
>>>>>> update KERNEL_DEVICETREE directly. As we support multiple kernel
>>>>>> versions with each branch, we cannot have a single
>>>>>> KERNEL_DEVICETREE that works for all kernel versions.
>>>>>>
>>>>>> To that end we setup the KERNEL_DEVICETREE_PREFIX variable that
>>>>>> will pattern match and change the value for KERNEL_DEVICETREE
>>>>>> based on the available matching DTBs in the given kernel. The
>>>>>> only kernel version that uses KERNEL_DEVICETREE is the mainline
>>>>>> (aka latest stable) kernel. And the value for this variable is
>>>>>> automatically updated to include all of the available DTBs in the
>>>>>> mainline kernel at the time we update the recipe to that version.
>>>>>>
>>>>>> As the KERNEL_DEVICETREE_PREFIX already has an entry that will
>>>>>> pick up this new DTB when it is available, this change is not needed.
>>>>>
>>>>> When building for the am335x_evm without this patch, the devicetree
>>>>> for the beaglebone green eco is not included in the wic image, so
>>>>> the kernel can't boot.
>>>>>
>>>>> As you said, in the linux-ti-staging recipe, KERNEL_DEVICETREE does
>>>>> contains the dtb for the bbg eco.
>>>>>
>>>>> But core-image-minimal (which create the wic image) uses the value
>>>>> of KERNEL_DEVICETREE from ti33x.inc, and not the one generated from
>>>>> KERNEL_DEVICETREE_PREFIX, so it doesn't contains the devicetree for
>>>>> the bbge. This can be checked with `bitbake-getvar -r core-image-
>>>>> minimal KERNEL_DEVICETREE`.
>>>>>
>>>>> It probably works for others boards because, apart from the bbge,
>>>>> there isn't any board supported in ti-linux-6.12.y but not in
>>>>> mainline.
>>>>>
>>>>> If we can't modify KERNEL_DEVICETREE here, what should I do to
>>>>> include the devicetree into the final image ?
>>>>
>>>> Are you talking about a poky build with a poky kernel? Or a poky
>>>> build with the TI kernel?
>>>>
>>>> If you are talking about the TI kernel, then the mainline recipe
>>>> does not point to a kernel that has this DTB. So are you trying to
>>>> use the mainline recipe but change the SRCREV to point a commit that
>>>> does contain this new DTB file?
>>>
>>> I'm using a poky build with the TI kernel, which by default uses the
>>> branch "ti-linux-6.12.y", with the SRCREV equal to
>>> "78e6abff322081d53c5a685d927476086c9b2846" (on the scarthgap branch,
>>> I forgot to mention it). And on this branch there is the commit
>>> "ab7f0d695e9a3268deb760dcd0fa58812a614cd8" adding the devicetree for
>>> the beaglebone green eco.
>>
>> If you are on scarthgap and using linux-ti-staging_6.12, then you
>> should just need to point to the appropriate SRCREV for the patch you
>> want and build am335x-evm. That should build the deploy the dtb you
>> are looking for. It is in our nightly builds.
>>
>> In fact, we just promoted our CICD and I can see the file of interest
>> in our build. So you should not even need to change the SRCREV if you
>> use the latest scarthgap.
>
> Indeed, the dtb is build and deployed in the kernel workdir. However,
> it's not present in the final wic image.
> I checked the image from your CICD [0], and the dtb doesn't seem to be
> there either.
>
> IIUC, the list of dtbs deployed into the final image depends on
> KERNEL_DEVICETREE, and it seems like the recipe building the wic file
> uses the value hardcoded in ti33x.inc.
Good point. We don't do any automated nightly testing with the wic
image at the moment. Most of our testing is done over the UART.
I sent two patches to the meta-ti mailing list and on scarthgap-wip that
correctly handle setting KERNEL_DEVICETREE for the Poky and Arago images
so that the .wic files have the correct files in the boot partition.
We will work on getting this patch through our CICD, but in the meantime
you can point to the scarthgap-wip branch for your testing. I'll send
reply to this thread once this is on on scarthgap proper.
>
> [0]
> https://software-dl.ti.com/cicd-report/linux/index.html?section=snapshot&platform=am335x&snapshot=cicd.scarthgap.202507051251
>>>>>>
>>>>>> Right now this new DTB is only available on linux-next and has not
>>>>>> made it into any released kernels.
>>>>>>
>
> Please let me know what you think,
>
> Thanks,
>
--
Ryan Eatmon reatmon@ti.com
-----------------------------------------
Texas Instruments, Inc. - LCPD - MGTS
^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: [PATCH 1/2] conf: machine: add BeagleBone Green Eco to KERNEL_DEVICETREE
2025-07-21 16:49 ` Ryan Eatmon
@ 2025-07-30 13:13 ` Miguel Gazquez
0 siblings, 0 replies; 13+ messages in thread
From: Miguel Gazquez @ 2025-07-30 13:13 UTC (permalink / raw)
To: Ryan Eatmon, meta-ti
Cc: thomas.petazzoni, praneeth, romain.gantois, kory.maincent,
thomas.bonnefille, denys, robertcnelson
Le 21/07/2025 à 18:49, Ryan Eatmon a écrit :
>
>
> On 7/18/2025 10:48 AM, Miguel Gazquez wrote:
>>
>>
>> Le 18/07/2025 à 16:35, Ryan Eatmon a écrit :
>>>
>>>
>>> On 7/18/2025 4:54 AM, Miguel Gazquez wrote:
>>>>
>>>>
>>>> Le 17/07/2025 à 20:01, Ryan Eatmon a écrit :
>>>>>
>>>>>
>>>>> On 7/17/2025 12:55 PM, Miguel Gazquez wrote:
>>>>>>
>>>>>>
>>>>>> Le 15/07/2025 à 15:52, Ryan Eatmon a écrit :
>>>>>>>
>>>>>>>
>>>>>>> On 7/15/2025 6:34 AM, Miguel Gazquez wrote:
>>>>>>>> Add am335x-bonegreen-eco devicetree to KERNEL_DEVICETREE in
>>>>>>>> ti33x.inc
>>>>>>>>
>>>>>>>> Signed-off-by: Miguel Gazquez <miguel.gazquez@bootlin.com>
>>>>>>>> ---
>>>>>>>> meta-ti-bsp/conf/machine/include/ti33x.inc | 1 +
>>>>>>>> 1 file changed, 1 insertion(+)
>>>>>>>>
>>>>>>>> diff --git a/meta-ti-bsp/conf/machine/include/ti33x.inc b/meta-
>>>>>>>> ti- bsp/ conf/machine/include/ti33x.inc
>>>>>>>> index
>>>>>>>> 7e9eb48c52737e74750565e639956334162432e2..0a0730eae104371d65548588b3333839857a3a50 100644
>>>>>>>> --- a/meta-ti-bsp/conf/machine/include/ti33x.inc
>>>>>>>> +++ b/meta-ti-bsp/conf/machine/include/ti33x.inc
>>>>>>>> @@ -28,6 +28,7 @@ KERNEL_DEVICETREE = " \
>>>>>>>> ti/omap/am335x-boneblack.dtb \
>>>>>>>> ti/omap/am335x-boneblue.dtb \
>>>>>>>> ti/omap/am335x-bonegreen-wireless.dtb \
>>>>>>>> + ti/omap/am335x-bonegreen-eco.dtb \
>>>>>>>> ti/omap/am335x-bonegreen.dtb \
>>>>>>>> ti/omap/am335x-chiliboard.dtb \
>>>>>>>> ti/omap/am335x-cm-t335.dtb \
>>>>>>>
>>>>>>> NAK. As has been mentioned several times on this list, we do not
>>>>>>> update KERNEL_DEVICETREE directly. As we support multiple kernel
>>>>>>> versions with each branch, we cannot have a single
>>>>>>> KERNEL_DEVICETREE that works for all kernel versions.
>>>>>>>
>>>>>>> To that end we setup the KERNEL_DEVICETREE_PREFIX variable that
>>>>>>> will pattern match and change the value for KERNEL_DEVICETREE
>>>>>>> based on the available matching DTBs in the given kernel. The
>>>>>>> only kernel version that uses KERNEL_DEVICETREE is the mainline
>>>>>>> (aka latest stable) kernel. And the value for this variable is
>>>>>>> automatically updated to include all of the available DTBs in the
>>>>>>> mainline kernel at the time we update the recipe to that version.
>>>>>>>
>>>>>>> As the KERNEL_DEVICETREE_PREFIX already has an entry that will
>>>>>>> pick up this new DTB when it is available, this change is not
>>>>>>> needed.
>>>>>>
>>>>>> When building for the am335x_evm without this patch, the
>>>>>> devicetree for the beaglebone green eco is not included in the wic
>>>>>> image, so the kernel can't boot.
>>>>>>
>>>>>> As you said, in the linux-ti-staging recipe, KERNEL_DEVICETREE
>>>>>> does contains the dtb for the bbg eco.
>>>>>>
>>>>>> But core-image-minimal (which create the wic image) uses the value
>>>>>> of KERNEL_DEVICETREE from ti33x.inc, and not the one generated
>>>>>> from KERNEL_DEVICETREE_PREFIX, so it doesn't contains the
>>>>>> devicetree for the bbge. This can be checked with `bitbake-getvar
>>>>>> -r core-image- minimal KERNEL_DEVICETREE`.
>>>>>>
>>>>>> It probably works for others boards because, apart from the bbge,
>>>>>> there isn't any board supported in ti-linux-6.12.y but not in
>>>>>> mainline.
>>>>>>
>>>>>> If we can't modify KERNEL_DEVICETREE here, what should I do to
>>>>>> include the devicetree into the final image ?
>>>>>
>>>>> Are you talking about a poky build with a poky kernel? Or a poky
>>>>> build with the TI kernel?
>>>>>
>>>>> If you are talking about the TI kernel, then the mainline recipe
>>>>> does not point to a kernel that has this DTB. So are you trying to
>>>>> use the mainline recipe but change the SRCREV to point a commit
>>>>> that does contain this new DTB file?
>>>>
>>>> I'm using a poky build with the TI kernel, which by default uses the
>>>> branch "ti-linux-6.12.y", with the SRCREV equal to
>>>> "78e6abff322081d53c5a685d927476086c9b2846" (on the scarthgap branch,
>>>> I forgot to mention it). And on this branch there is the commit
>>>> "ab7f0d695e9a3268deb760dcd0fa58812a614cd8" adding the devicetree for
>>>> the beaglebone green eco.
>>>
>>> If you are on scarthgap and using linux-ti-staging_6.12, then you
>>> should just need to point to the appropriate SRCREV for the patch you
>>> want and build am335x-evm. That should build the deploy the dtb you
>>> are looking for. It is in our nightly builds.
>>>
>>> In fact, we just promoted our CICD and I can see the file of interest
>>> in our build. So you should not even need to change the SRCREV if
>>> you use the latest scarthgap.
>>
>> Indeed, the dtb is build and deployed in the kernel workdir. However,
>> it's not present in the final wic image.
>> I checked the image from your CICD [0], and the dtb doesn't seem to be
>> there either.
>>
>> IIUC, the list of dtbs deployed into the final image depends on
>> KERNEL_DEVICETREE, and it seems like the recipe building the wic file
>> uses the value hardcoded in ti33x.inc.
>
>
> Good point. We don't do any automated nightly testing with the wic
> image at the moment. Most of our testing is done over the UART.
>
> I sent two patches to the meta-ti mailing list and on scarthgap-wip that
> correctly handle setting KERNEL_DEVICETREE for the Poky and Arago images
> so that the .wic files have the correct files in the boot partition.
>
> We will work on getting this patch through our CICD, but in the meantime
> you can point to the scarthgap-wip branch for your testing. I'll send
> reply to this thread once this is on on scarthgap proper.
I tested using the scarthgap-wip branch, and it works perfectly, I can
boot the BeagleBone Green Eco with the am335x_evm image without any issues.
Thanks !
>
>>
>> [0] https://software-dl.ti.com/cicd-report/linux/index.html?
>> section=snapshot&platform=am335x&snapshot=cicd.scarthgap.202507051251
>>>>>>>
>>>>>>> Right now this new DTB is only available on linux-next and has
>>>>>>> not made it into any released kernels.
>>>>>>>
>>
>> Please let me know what you think,
>>
>> Thanks,
>>
>
--
Miguel Gazquez, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com
^ permalink raw reply [flat|nested] 13+ messages in thread
end of thread, other threads:[~2025-07-30 13:14 UTC | newest]
Thread overview: 13+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-07-15 11:34 [PATCH 0/2] conf: machine: Add machine for BeagleBone Green Eco board Miguel Gazquez
2025-07-15 11:34 ` [PATCH 1/2] conf: machine: add BeagleBone Green Eco to KERNEL_DEVICETREE Miguel Gazquez
2025-07-15 13:52 ` Ryan Eatmon
2025-07-15 20:12 ` Thomas Petazzoni
2025-07-17 17:55 ` Miguel Gazquez
2025-07-17 18:01 ` Ryan Eatmon
2025-07-18 9:54 ` Miguel Gazquez
2025-07-18 14:35 ` Ryan Eatmon
2025-07-18 15:48 ` Miguel Gazquez
2025-07-21 16:49 ` Ryan Eatmon
2025-07-30 13:13 ` Miguel Gazquez
2025-07-15 11:34 ` [PATCH 2/2] conf: machine: add new BeagleBone Green Eco machine Miguel Gazquez
2025-07-15 13:52 ` Ryan Eatmon
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.