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

Add initial support for BeagleBoard PocketBeagle2 #7897

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

Grippy98
Copy link

Hey All,

Let's try this again. Apologies for the last force push, I cleaned it up now so it's a CSC file only.

This PR adds support for the BeagleBoard PocketBeagle 2.
Features, schematics, and purchase links can be found on the board page[0].

Notable features:

  • 2x 64-bit Arm-Cortex A53 microprocessor
  • 512MB RAM
  • On-board ADC via a TI MSPM0L1105 Cortex-M0+ MCU
  • Onboard LiPo Battery charger
  • JST-SH 1.00mm UART debug port compatible with Pi Debug probe
  • Pre-soldered headers compatible with original PocketBeagle

Thanks! and especially many thanks to @glneo for his patience.

[0] https://www.beagleboard.org/boards/pocketbeagle-2

How Has This Been Tested?

Build/Boot tested Bookworm CLI/Minimal on Edge(v6.12) kernel
Build/Boot tested Noble CLI/Minimal on Edge(v6.12) kernel
UART works

Checklist:

My code follows the style guidelines of this project
I have performed a self-review of my own code
My changes generate no new warnings
Any dependent changes have been merged and published in downstream modules

@github-actions github-actions bot added size/small PR with less then 50 lines Needs review Seeking for review Hardware Hardware related like kernel, U-Boot, ... labels Feb 28, 2025
#Texas Instruments AM62 dual core 1GB USB2 DDR4

BOARD_NAME="PocketBeagle 2"
BOARDFAMILY="k3"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

k3 family...

TIBOOT3_BOOTCONFIG="am6232_pocketbeagle2_r5_defconfig"
TIBOOT3_FILE="tiboot3-am62x-hs-fs-evm.bin"
DEFAULT_CONSOLE="serial"
KERNEL_TARGET="edge"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

edge branch....

Comment on lines +21 to +23
declare -g KERNELSOURCE="https://github.com/beagleboard/linux" # BeagleBoard kernel
declare -g KERNEL_MAJOR_MINOR="6.12"
declare -g KERNELBRANCH="branch:v6.12.9-ti-arm64-r21"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

... changing the k3 edge family, for a specific board.

This can't be; it will cause multiple versions of the same kernel package to be produced.
This is "fine" for image builds, but once deployed to an apt repo it will cause mayhem.

Either:

  1. take only the exact patches needed for this board and patch the k3 family, making sure they don't impact the other boards
  2. create a specific branch (eg not edge or current) just for this board
  3. set a different LINUXFAMILY -- eg k3-pb2 -- in the hook. which will cause a completely separate kernel package. (I would do this for now).

Comment on lines +21 to +23
declare -g KERNELSOURCE="https://github.com/beagleboard/linux" # BeagleBoard kernel
declare -g KERNEL_MAJOR_MINOR="6.12"
declare -g KERNELBRANCH="branch:v6.12.9-ti-arm64-r21"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
declare -g KERNELSOURCE="https://github.com/beagleboard/linux" # BeagleBoard kernel
declare -g KERNEL_MAJOR_MINOR="6.12"
declare -g KERNELBRANCH="branch:v6.12.9-ti-arm64-r21"
declare -g KERNELSOURCE="https://github.com/beagleboard/linux" # BeagleBoard kernel
declare -g KERNEL_MAJOR_MINOR="6.12"
declare -g KERNELBRANCH="branch:v6.12.9-ti-arm64-r21"
declare -g LINUXFAMILY="k3-pb2" # Separate kernel package from the regular `k3` family

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks! For my own understanding, what's the benefit of declaring a kernel family branch like this? Is it for the CI caching when building for multiple boards?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Hardware Hardware related like kernel, U-Boot, ... Needs review Seeking for review size/small PR with less then 50 lines
Development

Successfully merging this pull request may close these issues.

2 participants