Hello…there are many ways to go about promoting a build of linux kernels and having access to the am335x on the Pocket Beagle.
- Buildroot
- Poky/Yocto
- CROSS_COMPILE from scratch
Those name a few ideas. I am not exactly sure how well the am335x will do with ONNX libraries but one can try. The Pocket Beagle and the BBB all use similar images. If you do not have a micro SD Card for the image, you may be out of luck.
You can use images from beagleboard.org or make your own. This is not a limitation.
Seth
P.S. I do not know who created the images for Pocket Beagle 2. Here are some images: Debian 12.x (Bookworm) - Monthly Snapshot - 2023-10-07
I know this is what you posted. Maybe try an updated image from here: rcn-ee.net or rcn-ee.com? From what I heard, there are some issues with the 6.1.x kernels and I have not tested them to completion. Those rcn-ee.com images are only testers and not official images. But, one can test away.
Also: Check this out when you have time:
https://docs.beagleboard.org/books/beaglebone-cookbook/07kernel/kernel.html