Most of the features work out of the box, but right now I’m trying to get the hardware to make a beep sound. Using this code http://www.johnath.com/beep/ and have ported it to my own golang project. When running the binary on the standard moxa os (some debian variant) the hardware makes a beep, but nothing happens when I run this on BalenaOS.
Looking at the code, it tries to write to /dev/console or /dev/tty0 with some ioctl function. Are these files wired differently in Balena?
So I built the kernel module pcspkr and loaded it in the host-os and the beep started working.
How is the best way to get this permanently into the host-os? Could I make some scripts that reside inside the /mnt/data folder that gets run on boot? Will this be there after a OS update from the Balena Cloud?