We would like to upgrade our system from BSP 2.8 to latest Torizon. One core feature of our product is giving acoustic feedback to the user through a buzzer that is soldered onto our inhouse carrier board. To enable the PWM beeper we added CONFIG_INPUT_PWM_BEEPER=y to the kernel config in BSP 2.8.
How can we achieve this with Torizon (TorizonCore Upstream 5.7.0+build.17) and the Torizoncore Builder without actually having to modify the kernel build itself?
Thank you for your guidance!
I was able to add the pwm-beeper kernel module (lsmod shows it in the list) - though I am still struggling to get our beep up working with Torizon. Maybe you can help me again?
I converted our device tree into a device tree overlay for the apalis imx6q and currently it looks like follows:
Initially I couldn’t find anything wrong with your overlay file. I tried creating an overlay that just adds the beeper node and updates pwm1’s status to be okay, but I got the same results as yours.
After doing some more research on Device Tree Overlays I found that in order to modify nodes which do not have a label such as / it is necessary to reference their absolute path in curly brackets. So the correct overlay should be something similar to this:
Hi @gclaudino.tx , I am fine, thanks, I hope you are well too?
Sadly I did not have time to continue working on the driver and library to make our beeper work again. Currently I see the driver up and running but using the library does not produce any sound. I will share my solution here (or ask further questions) once I get to work on it again.
Hi @lucas_a.tx , hi @gclaudino.tx ,
I hope you are all well!
Thanks again for your help! I tested the driver with another beep library that sends (writes) the “beep” event directly to /dev/input/event2 and it worked! So I cross-checked the Makefiles and found out I forgot to change CC=gcc to CC=arm-linux-gnueabihf-gcc. I recompiled the library and now everything is working! So now I am just looking for a way to deploy this library with torizoncore builder.
Best regards,