Building Debian 12 + Kernel 6.1.y with OpenCL for BeagleBoard-X15 (AM5728)

Hi everyone,

I’m trying to build a Debian 12 with Linux kernel 6.1.y for my BeagleBoard-X15 (AM5728), and I want to enable OpenCL support (using TI’s OpenCL runtime).

What I’ve done so far:

  • Followed a previous [Digi-Key Getting Started guide]Debian: Getting Started with the BeagleBoard-X15, which helped me boot Debian successfully.
  • Successfully built and booted the system, but OpenCL does not work or fails to detect DSP/EVE devices.
  • I have limited experience with kernel configurations, device trees, and OpenCL runtime setup.

My Goal:

To get OpenCL working (on the DSPs, like C66x) on Debian 12 with Linux 6.1.y kernel.

:red_question_mark: What I need help with:

  1. Kernel config: What specific config options are required to support OpenCL (e.g., TI-specific drivers or RPMsg support)?
  2. Device tree changes: Do I need to enable or modify anything to allow DSP/EVE access from Linux?
  3. OpenCL runtime: Do I need to install or rebuild any userspace OpenCL packages from TI?
  4. Validation: How do I check that OpenCL detects the DSPs (e.g., clinfo, dsplib_fft, etc.)?

Any clear guidance, or updated step-by-step for Debian 12 + kernel 6.1 + OpenCL on BB-X15 would be very helpful!

Thanks in advance!
– Tamilselvan

I haven’t had this working in years.. My last release with TI’s OpenCL stack is here: Debian 10.x (Buster) - Monthly Snapshot - 2023-07-01 - (FINAL) - #4 by RobertCNelson - FAQ - BeagleBoard

I never ported it to Debian 11 or Debian 12, it’s stuck on that old kernel release.

Here’s the list of the 12 projects i had to build on top of Debian 10 to make it work: GitHub - rcn-ee/repos-ti-sdk-opencl-debian-10

Porting CMEM was my blocker for newer stuff.

Regards,