diff mbox series

[master,6/6] pocketbeagle2: add configs for new PocketBeagle2 platform

Message ID 20250517005430.3648211-6-denis@denix.org
State Under Review
Delegated to: Ryan Eatmon
Headers show
Series [master,1/6] linux-bb.org: bump to the latest 6.6 | expand

Commit Message

Denys Dmytriyenko May 17, 2025, 12:54 a.m. UTC
From: Denys Dmytriyenko <denys@konsulko.com>

Add configuration files for the new PocketBeagle2 platform.

U-boot support for this platform is still in its own branch.

Adjust U-boot bootcmd, since EFI boot doesn't seem to work.

Signed-off-by: Denys Dmytriyenko <denys@konsulko.com>
---
 .../conf/machine/pocketbeagle2-k3r5.conf      | 12 ++++++++
 meta-beagle/conf/machine/pocketbeagle2.conf   | 28 +++++++++++++++++++
 .../u-boot/u-boot-bb.org_2025.04.bb           |  9 +++++-
 .../recipes-kernel/linux/linux-bb.org_6.12.bb |  2 +-
 4 files changed, 49 insertions(+), 2 deletions(-)
 create mode 100644 meta-beagle/conf/machine/pocketbeagle2-k3r5.conf
 create mode 100644 meta-beagle/conf/machine/pocketbeagle2.conf

Comments

Chirag Shilwant May 23, 2025, 11:53 a.m. UTC | #1
+ Dhruva from beagleboard.org

Looks like Beagle-board.org just released Rev A1 which
makes it quad-core A53 plus GPU [0]

Dhruva,

Any idea if beagleboard/u-boot will do s/am6232/am6254 in [1]

[0]: 
https://www.hackster.io/news/beagleboard-org-releases-a-surprise-pocketbeagle-2-refresh-doubles-the-cores-and-adds-a-gpu-286c3fe8ccd3

[1]: 
https://github.com/beagleboard/u-boot/commit/f7439516453b7728bda496ff6496ef6f1411aae3 


--
Chirag


On 17/05/25 06:24, Denys Dmytriyenko wrote:
> From: Denys Dmytriyenko <denys@konsulko.com>
>
> Add configuration files for the new PocketBeagle2 platform.
>
> U-boot support for this platform is still in its own branch.
>
> Adjust U-boot bootcmd, since EFI boot doesn't seem to work.
>
> Signed-off-by: Denys Dmytriyenko <denys@konsulko.com>
> ---
>   .../conf/machine/pocketbeagle2-k3r5.conf      | 12 ++++++++
>   meta-beagle/conf/machine/pocketbeagle2.conf   | 28 +++++++++++++++++++
>   .../u-boot/u-boot-bb.org_2025.04.bb           |  9 +++++-
>   .../recipes-kernel/linux/linux-bb.org_6.12.bb |  2 +-
>   4 files changed, 49 insertions(+), 2 deletions(-)
>   create mode 100644 meta-beagle/conf/machine/pocketbeagle2-k3r5.conf
>   create mode 100644 meta-beagle/conf/machine/pocketbeagle2.conf
>
> diff --git a/meta-beagle/conf/machine/pocketbeagle2-k3r5.conf b/meta-beagle/conf/machine/pocketbeagle2-k3r5.conf
> new file mode 100644
> index 00000000..32e40312
> --- /dev/null
> +++ b/meta-beagle/conf/machine/pocketbeagle2-k3r5.conf
> @@ -0,0 +1,12 @@
> +#@TYPE: Machine
> +#@NAME: PocketBeagle2 (R5F)
> +#@DESCRIPTION: Machine configuration for the PocketBeagle2 (R5F core)
> +
> +require conf/machine/include/k3r5.inc
> +require conf/machine/include/beagle-bsp.inc
> +
> +SYSFW_SOC = "am62x"
> +SYSFW_CONFIG = "evm"
> +SYSFW_SUFFIX = "hs-fs"
> +
> +UBOOT_MACHINE = "am6232_pocketbeagle2_r5_defconfig"
> diff --git a/meta-beagle/conf/machine/pocketbeagle2.conf b/meta-beagle/conf/machine/pocketbeagle2.conf
> new file mode 100644
> index 00000000..3d9651bd
> --- /dev/null
> +++ b/meta-beagle/conf/machine/pocketbeagle2.conf
> @@ -0,0 +1,28 @@
> +#@TYPE: Machine
> +#@NAME: PocketBeagle2 (A53)
> +#@DESCRIPTION: Machine configuration for the PocketBeagle2 board (A53 core)
> +
> +require conf/machine/include/k3.inc
> +require conf/machine/include/mc_k3r5.inc
> +
> +require conf/machine/include/beagle-bsp.inc
> +
> +SOC_FAMILY:append = ":am62xx"
> +
> +SERIAL_CONSOLES = "115200;ttyS2"
> +
> +TFA_BOARD = "lite"
> +TFA_K3_SYSTEM_SUSPEND = "1"
> +
> +OPTEEMACHINE = "k3-am62x"
> +
> +UBOOT_MACHINE = "am6232_pocketbeagle2_a53_defconfig"
> +
> +KERNEL_DEVICETREE_PREFIX = " \
> +    ti/k3-am6232 \
> +"
> +
> +KERNEL_DEVICETREE = " \
> +    ti/k3-am6232-pocketbeagle2.dtb \
> +    ti/k3-am6232-pocketbeagle2-techlab-cape.dtbo \
> +"
> diff --git a/meta-beagle/recipes-bsp/u-boot/u-boot-bb.org_2025.04.bb b/meta-beagle/recipes-bsp/u-boot/u-boot-bb.org_2025.04.bb
> index 9fc4015e..aa825d99 100644
> --- a/meta-beagle/recipes-bsp/u-boot/u-boot-bb.org_2025.04.bb
> +++ b/meta-beagle/recipes-bsp/u-boot/u-boot-bb.org_2025.04.bb
> @@ -2,7 +2,7 @@ require recipes-bsp/u-boot/u-boot-ti.inc
>   
>   SUMMARY = "BeagleBoard.org U-Boot"
>   
> -COMPATIBLE_MACHINE = "beagle.*"
> +COMPATIBLE_MACHINE = "pocketbeagle2|beagle.*"
>   
>   PV = "2025.04"
>   
> @@ -17,3 +17,10 @@ SRCREV:beagley-ai = "cc376f9faef201670c7bb1734f42f5475c73f85d"
>   SRCREV:beagley-ai-k3r5 = "cc376f9faef201670c7bb1734f42f5475c73f85d"
>   
>   SRC_URI:append:beagley-ai = " file://bootcmd-ti-mmc.cfg"
> +
> +BRANCH:pocketbeagle2 = "v2025.04-pocketbeagle2"
> +BRANCH:pocketbeagle2-k3r5 = "v2025.04-pocketbeagle2"
> +SRCREV:pocketbeagle2 = "f7439516453b7728bda496ff6496ef6f1411aae3"
> +SRCREV:pocketbeagle2-k3r5 = "f7439516453b7728bda496ff6496ef6f1411aae3"
> +
> +SRC_URI:append:pocketbeagle2 = " file://bootcmd-ti-mmc.cfg"
> diff --git a/meta-beagle/recipes-kernel/linux/linux-bb.org_6.12.bb b/meta-beagle/recipes-kernel/linux/linux-bb.org_6.12.bb
> index 2ef82e0c..bdfd4646 100644
> --- a/meta-beagle/recipes-kernel/linux/linux-bb.org_6.12.bb
> +++ b/meta-beagle/recipes-kernel/linux/linux-bb.org_6.12.bb
> @@ -6,7 +6,7 @@ SUMMARY = "BeagleBoard.org Linux kernel"
>   LICENSE = "GPL-2.0-only"
>   LIC_FILES_CHKSUM = "file://COPYING;md5=6bc538ed5bd9a7fc9398086aedcd7e46"
>   
> -COMPATIBLE_MACHINE = "beagle.*"
> +COMPATIBLE_MACHINE = "pocketbeagle2|beagle.*"
>   
>   inherit kernel
>   
>
> -=-=-=-=-=-=-=-=-=-=-=-
> Links: You receive all messages sent to this group.
> View/Reply Online (#18569): https://lists.yoctoproject.org/g/meta-ti/message/18569
> Mute This Topic: https://lists.yoctoproject.org/mt/113155505/7030289
> Group Owner: meta-ti+owner@lists.yoctoproject.org
> Unsubscribe: https://lists.yoctoproject.org/g/meta-ti/unsub [c-shilwant@ti.com]
> -=-=-=-=-=-=-=-=-=-=-=-
>
Dhruva Gole May 23, 2025, 6:52 p.m. UTC | #2
Hi Chirag,

On May 23, 2025 at 17:23:01 +0530, Chirag Shilwant wrote:
> + Dhruva from beagleboard.org
> 
> Looks like Beagle-board.org just released Rev A1 which
> makes it quad-core A53 plus GPU [0]

Yes that's right.

> 
> Dhruva,
> 
> Any idea if beagleboard/u-boot will do s/am6232/am6254 in [1]

I checked with Robert on discord, looks like he'll be the one making
these decisions.
Adding him to this thread.

> 
> [0]: https://www.hackster.io/news/beagleboard-org-releases-a-surprise-pocketbeagle-2-refresh-doubles-the-cores-and-adds-a-gpu-286c3fe8ccd3
> 
> [1]: https://github.com/beagleboard/u-boot/commit/f7439516453b7728bda496ff6496ef6f1411aae3
> 
> 
> --
> Chirag
> 
> 
> On 17/05/25 06:24, Denys Dmytriyenko wrote:
> > From: Denys Dmytriyenko <denys@konsulko.com>
> > 
> > Add configuration files for the new PocketBeagle2 platform.
> > 
> > U-boot support for this platform is still in its own branch.
> > 
> > Adjust U-boot bootcmd, since EFI boot doesn't seem to work.
> > 
> > Signed-off-by: Denys Dmytriyenko <denys@konsulko.com>
> > ---
> >   .../conf/machine/pocketbeagle2-k3r5.conf      | 12 ++++++++
> >   meta-beagle/conf/machine/pocketbeagle2.conf   | 28 +++++++++++++++++++
> >   .../u-boot/u-boot-bb.org_2025.04.bb           |  9 +++++-
> >   .../recipes-kernel/linux/linux-bb.org_6.12.bb |  2 +-
> >   4 files changed, 49 insertions(+), 2 deletions(-)
> >   create mode 100644 meta-beagle/conf/machine/pocketbeagle2-k3r5.conf
> >   create mode 100644 meta-beagle/conf/machine/pocketbeagle2.conf
> > 
> > diff --git a/meta-beagle/conf/machine/pocketbeagle2-k3r5.conf b/meta-beagle/conf/machine/pocketbeagle2-k3r5.conf
> > new file mode 100644
> > index 00000000..32e40312
> > --- /dev/null
> > +++ b/meta-beagle/conf/machine/pocketbeagle2-k3r5.conf
> > @@ -0,0 +1,12 @@
> > +#@TYPE: Machine
> > +#@NAME: PocketBeagle2 (R5F)
> > +#@DESCRIPTION: Machine configuration for the PocketBeagle2 (R5F core)
> > +
> > +require conf/machine/include/k3r5.inc
> > +require conf/machine/include/beagle-bsp.inc
> > +
> > +SYSFW_SOC = "am62x"
> > +SYSFW_CONFIG = "evm"
> > +SYSFW_SUFFIX = "hs-fs"
> > +
> > +UBOOT_MACHINE = "am6232_pocketbeagle2_r5_defconfig"
> > diff --git a/meta-beagle/conf/machine/pocketbeagle2.conf b/meta-beagle/conf/machine/pocketbeagle2.conf
> > new file mode 100644
> > index 00000000..3d9651bd
> > --- /dev/null
> > +++ b/meta-beagle/conf/machine/pocketbeagle2.conf
> > @@ -0,0 +1,28 @@
> > +#@TYPE: Machine
> > +#@NAME: PocketBeagle2 (A53)
> > +#@DESCRIPTION: Machine configuration for the PocketBeagle2 board (A53 core)
> > +
> > +require conf/machine/include/k3.inc
> > +require conf/machine/include/mc_k3r5.inc
> > +
> > +require conf/machine/include/beagle-bsp.inc
> > +
> > +SOC_FAMILY:append = ":am62xx"
> > +
> > +SERIAL_CONSOLES = "115200;ttyS2"
> > +
> > +TFA_BOARD = "lite"
> > +TFA_K3_SYSTEM_SUSPEND = "1"
> > +
> > +OPTEEMACHINE = "k3-am62x"
> > +
> > +UBOOT_MACHINE = "am6232_pocketbeagle2_a53_defconfig"
> > +
> > +KERNEL_DEVICETREE_PREFIX = " \
> > +    ti/k3-am6232 \
> > +"
> > +
> > +KERNEL_DEVICETREE = " \
> > +    ti/k3-am6232-pocketbeagle2.dtb \
> > +    ti/k3-am6232-pocketbeagle2-techlab-cape.dtbo \
> > +"
> > diff --git a/meta-beagle/recipes-bsp/u-boot/u-boot-bb.org_2025.04.bb b/meta-beagle/recipes-bsp/u-boot/u-boot-bb.org_2025.04.bb
> > index 9fc4015e..aa825d99 100644
> > --- a/meta-beagle/recipes-bsp/u-boot/u-boot-bb.org_2025.04.bb
> > +++ b/meta-beagle/recipes-bsp/u-boot/u-boot-bb.org_2025.04.bb
> > @@ -2,7 +2,7 @@ require recipes-bsp/u-boot/u-boot-ti.inc
> >   SUMMARY = "BeagleBoard.org U-Boot"
> > -COMPATIBLE_MACHINE = "beagle.*"
> > +COMPATIBLE_MACHINE = "pocketbeagle2|beagle.*"
> >   PV = "2025.04"
> > @@ -17,3 +17,10 @@ SRCREV:beagley-ai = "cc376f9faef201670c7bb1734f42f5475c73f85d"
> >   SRCREV:beagley-ai-k3r5 = "cc376f9faef201670c7bb1734f42f5475c73f85d"
> >   SRC_URI:append:beagley-ai = " file://bootcmd-ti-mmc.cfg"
> > +
> > +BRANCH:pocketbeagle2 = "v2025.04-pocketbeagle2"
> > +BRANCH:pocketbeagle2-k3r5 = "v2025.04-pocketbeagle2"
> > +SRCREV:pocketbeagle2 = "f7439516453b7728bda496ff6496ef6f1411aae3"
> > +SRCREV:pocketbeagle2-k3r5 = "f7439516453b7728bda496ff6496ef6f1411aae3"
> > +
> > +SRC_URI:append:pocketbeagle2 = " file://bootcmd-ti-mmc.cfg"
> > diff --git a/meta-beagle/recipes-kernel/linux/linux-bb.org_6.12.bb b/meta-beagle/recipes-kernel/linux/linux-bb.org_6.12.bb
> > index 2ef82e0c..bdfd4646 100644
> > --- a/meta-beagle/recipes-kernel/linux/linux-bb.org_6.12.bb
> > +++ b/meta-beagle/recipes-kernel/linux/linux-bb.org_6.12.bb
> > @@ -6,7 +6,7 @@ SUMMARY = "BeagleBoard.org Linux kernel"
> >   LICENSE = "GPL-2.0-only"
> >   LIC_FILES_CHKSUM = "file://COPYING;md5=6bc538ed5bd9a7fc9398086aedcd7e46"
> > -COMPATIBLE_MACHINE = "beagle.*"
> > +COMPATIBLE_MACHINE = "pocketbeagle2|beagle.*"
> >   inherit kernel
> > 
> > -=-=-=-=-=-=-=-=-=-=-=-
> > Links: You receive all messages sent to this group.
> > View/Reply Online (#18569): https://lists.yoctoproject.org/g/meta-ti/message/18569
> > Mute This Topic: https://lists.yoctoproject.org/mt/113155505/7030289
> > Group Owner: meta-ti+owner@lists.yoctoproject.org
> > Unsubscribe: https://lists.yoctoproject.org/g/meta-ti/unsub [c-shilwant@ti.com]
> > -=-=-=-=-=-=-=-=-=-=-=-
> >
Robert Nelson May 23, 2025, 7:18 p.m. UTC | #3
On Fri, May 23, 2025 at 1:52 PM Dhruva Gole <d-gole@ti.com> wrote:
>
> Hi Chirag,
>
> On May 23, 2025 at 17:23:01 +0530, Chirag Shilwant wrote:
> > + Dhruva from beagleboard.org
> >
> > Looks like Beagle-board.org just released Rev A1 which
> > makes it quad-core A53 plus GPU [0]
>
> Yes that's right.
>
> >
> > Dhruva,
> >
> > Any idea if beagleboard/u-boot will do s/am6232/am6254 in [1]
>
> I checked with Robert on discord, looks like he'll be the one making
> these decisions.
> Adding him to this thread.

Oh it's worse.. I'm going to do... s/am6232-/am62- ...

I blame TI. ;) for giving Jason the quad core..

So I'm going to do it in my `v2025.07` branch..

I still need to make all prior u-boot installs work for all our end
users, so I'm going to have a mess of Device Tree files:
am6232-pocket... am62-pocket...

The good news, am62-pocket* device tree is in mainline kernel, so
that's one piece in stone today..

Regards,
diff mbox series

Patch

diff --git a/meta-beagle/conf/machine/pocketbeagle2-k3r5.conf b/meta-beagle/conf/machine/pocketbeagle2-k3r5.conf
new file mode 100644
index 00000000..32e40312
--- /dev/null
+++ b/meta-beagle/conf/machine/pocketbeagle2-k3r5.conf
@@ -0,0 +1,12 @@ 
+#@TYPE: Machine
+#@NAME: PocketBeagle2 (R5F)
+#@DESCRIPTION: Machine configuration for the PocketBeagle2 (R5F core)
+
+require conf/machine/include/k3r5.inc
+require conf/machine/include/beagle-bsp.inc
+
+SYSFW_SOC = "am62x"
+SYSFW_CONFIG = "evm"
+SYSFW_SUFFIX = "hs-fs"
+
+UBOOT_MACHINE = "am6232_pocketbeagle2_r5_defconfig"
diff --git a/meta-beagle/conf/machine/pocketbeagle2.conf b/meta-beagle/conf/machine/pocketbeagle2.conf
new file mode 100644
index 00000000..3d9651bd
--- /dev/null
+++ b/meta-beagle/conf/machine/pocketbeagle2.conf
@@ -0,0 +1,28 @@ 
+#@TYPE: Machine
+#@NAME: PocketBeagle2 (A53)
+#@DESCRIPTION: Machine configuration for the PocketBeagle2 board (A53 core)
+
+require conf/machine/include/k3.inc
+require conf/machine/include/mc_k3r5.inc
+
+require conf/machine/include/beagle-bsp.inc
+
+SOC_FAMILY:append = ":am62xx"
+
+SERIAL_CONSOLES = "115200;ttyS2"
+
+TFA_BOARD = "lite"
+TFA_K3_SYSTEM_SUSPEND = "1"
+
+OPTEEMACHINE = "k3-am62x"
+
+UBOOT_MACHINE = "am6232_pocketbeagle2_a53_defconfig"
+
+KERNEL_DEVICETREE_PREFIX = " \
+    ti/k3-am6232 \
+"
+
+KERNEL_DEVICETREE = " \
+    ti/k3-am6232-pocketbeagle2.dtb \
+    ti/k3-am6232-pocketbeagle2-techlab-cape.dtbo \
+"
diff --git a/meta-beagle/recipes-bsp/u-boot/u-boot-bb.org_2025.04.bb b/meta-beagle/recipes-bsp/u-boot/u-boot-bb.org_2025.04.bb
index 9fc4015e..aa825d99 100644
--- a/meta-beagle/recipes-bsp/u-boot/u-boot-bb.org_2025.04.bb
+++ b/meta-beagle/recipes-bsp/u-boot/u-boot-bb.org_2025.04.bb
@@ -2,7 +2,7 @@  require recipes-bsp/u-boot/u-boot-ti.inc
 
 SUMMARY = "BeagleBoard.org U-Boot"
 
-COMPATIBLE_MACHINE = "beagle.*"
+COMPATIBLE_MACHINE = "pocketbeagle2|beagle.*"
 
 PV = "2025.04"
 
@@ -17,3 +17,10 @@  SRCREV:beagley-ai = "cc376f9faef201670c7bb1734f42f5475c73f85d"
 SRCREV:beagley-ai-k3r5 = "cc376f9faef201670c7bb1734f42f5475c73f85d"
 
 SRC_URI:append:beagley-ai = " file://bootcmd-ti-mmc.cfg"
+
+BRANCH:pocketbeagle2 = "v2025.04-pocketbeagle2"
+BRANCH:pocketbeagle2-k3r5 = "v2025.04-pocketbeagle2"
+SRCREV:pocketbeagle2 = "f7439516453b7728bda496ff6496ef6f1411aae3"
+SRCREV:pocketbeagle2-k3r5 = "f7439516453b7728bda496ff6496ef6f1411aae3"
+
+SRC_URI:append:pocketbeagle2 = " file://bootcmd-ti-mmc.cfg"
diff --git a/meta-beagle/recipes-kernel/linux/linux-bb.org_6.12.bb b/meta-beagle/recipes-kernel/linux/linux-bb.org_6.12.bb
index 2ef82e0c..bdfd4646 100644
--- a/meta-beagle/recipes-kernel/linux/linux-bb.org_6.12.bb
+++ b/meta-beagle/recipes-kernel/linux/linux-bb.org_6.12.bb
@@ -6,7 +6,7 @@  SUMMARY = "BeagleBoard.org Linux kernel"
 LICENSE = "GPL-2.0-only"
 LIC_FILES_CHKSUM = "file://COPYING;md5=6bc538ed5bd9a7fc9398086aedcd7e46"
 
-COMPATIBLE_MACHINE = "beagle.*"
+COMPATIBLE_MACHINE = "pocketbeagle2|beagle.*"
 
 inherit kernel