Creating an updated image for the Pocket Beagle (NOT Pocket Beagle 2)

Hi,
The latest image for the PocketBeagle is from 2020 and it uses older libraries that are not compatible with Onnx (high-performance inference engine for machine learning models).
There is a newer image that supports Onnx ( [AM335x 12.2 2023-10-07 4GB microSD IoT] but not the PocketBeagle.

  1. Do you know what it would take to change this image to support (only) the PocketBeagle?
  2. Who created the images for the PocketBeagle2?
  3. I assume there are specific file that define/configure the peripherals on the specific HW? Do you know what they are?

Thank you,
Ilan

Hello…there are many ways to go about promoting a build of linux kernels and having access to the am335x on the Pocket Beagle.

  1. Buildroot
  2. Poky/Yocto
  3. 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

What makes you state that?

Regards,

Seth, thank you for the detailed response. I may need to ping you again as I go about promoting the the older kernel image (I have the SD card version of the hardware).

Robert, thanks as well for the response. we built a docker container with the newer BBB image that supports Onnx runtime. I couldn’t run it on the (older) hardware because the newer image runtime libs collide (i.e. incompatible) with the older image. Updating just the offending libs was unsuccessful, hence my questions above.

Best,
Ilan

No issue. whenever. I am around. @IlanT1 , if you ping and I reply too quickly, it is because I sit in front of this desktop usually just pretending to know things! Sometimes, I actually fix stuff too.

1 Like

Many thanks, Seth!
Ilan

That’s not what you said or asked.

That image (AM335x 12.2 2023-10-07 4GB microSD IoT) supports both am335x devices, beaglebone black and pocketbeagle.

Regards,

Robert, are you sure about that?

My code to open and use the serial port (successfully) on the PocketBeagle with bone-debian-10.3-iot-armhf-2020-04-06-4gb.img.xz image fails to work with the am335x-debian-12.2-iot-armhf-2023-10-07-4gb.img.xz image.

Also, in the description of the am335x-debian-12.2-iot-armhf-2023-10-07-4gb.img.xz, it says BeagleBone Black and not Pocketbeagle, whereas in the description of the bone-debian-10.3-iot-armhf-2020-04-06-4gb.img.xz it lists both the BBB and PB.

Thank you,
Ilan

How are you opening the serial port?
Depending on version it could be /dev/ttyOx or /dev/ttySx

Newer kernels are ttySx, but older images used ttyOx

That’s probably the problem…I’m using ttyO2.
I’ll try ttyS2 in the morning and let you (and everyone following) if it works.

Thank you,
Ilan

Using ttyS2 (instead of ttyO2) and selecting the correct file to configure UART2 (uboot_overlay_addr4=/lib/linux-image-5.10.168-ti-r72/overlays/BB-UART2-00A0.dtbo) in uEnv.txt did the trick and I’m able to use UART2 now!

Thank you all for your support,
Ilan

1 Like