Hi @bgo ,
You can use TorizonCore Builder to create a custom TorizonCore image with the PWM beeper driver as an external Kernel Module. Try following Approach 1 from this article: Building External Kernel Modules With Torizon | Toradex Developer Center.
In your case the contents of source-dir
should be:
- The driver source code (upstream branch), found here: pwm-beeper.c « misc « input « drivers - linux-toradex.git - Linux kernel for Apalis, Colibri and Verdin modules
- A Makefile with this content:
obj-m := pwm-beeper.o
SRC := $(shell pwd)
all:
$(MAKE) -C $(KERNEL_SRC) M=$(SRC) modules
clean:
$(MAKE) -C $(KERNEL_SRC) M=$(SRC) clean
Then create tcbuild.yaml
following the article, run torizoncore-builder build
and your custom image should be created with the kernel module included.
Let me know if this helps you.
Best regards,
Lucas Akira