Thank you for your donation!


Cloudsmith graciously provides open-source package management and distribution for our project.


Solved: How to compile touchscreen driver as kernel module.
#1
Hello to all forum users.

I am a beginner user of moode audio. I have a problem with compiling the driver for the touch screen. It is built on the ilitek 2132 controller.

Here is the source file of the driver

https://github.com/torvalds/linux/blob/m...k_ts_i2c.c

I know that I need kernel headers to compile the module but I don't know how to download the appropriate ones that match the kernel.

All the examples of compiling modules that I find on the web are for the raspberry system. The commands that I enter in the console do not give the same results as in the examples.

Please help or give some tips.
Thank you
Reply
#2
You should post this type of question in the Advanced users section of the Raspberry Pi Forum.
https://forums.raspberrypi.com/viewforum...4be5e35c6d
Enjoy the Music!
moodeaudio.org | Mastodon Feed | GitHub
Reply
#3
(10-25-2024, 02:42 PM)Tim Curtis Wrote: You should post this type of question in the Advanced users section of the Raspberry Pi Forum.
https://forums.raspberrypi.com/viewforum...4be5e35c6d

Thank You for reply.

Maybe you're right but I created this topic here because it concerns the system image on which moode is installed. in stock raspbian there is no problem with downloading kernel headers. Maybe I'm doing something wrong. I don't know much about linux that's why I asked for help.
Reply
#4
Our image is built with the same pi-gen tooling thats used to make the official RaspiOS releases so you should be able to do things like install kernel headers same as you mentioned you did on an official RaspiOS image.
Enjoy the Music!
moodeaudio.org | Mastodon Feed | GitHub
Reply
#5
My problem has been solved. My previous attempts were made on an older version because I had trouble starting the display. I use a custom board with a CM4 module. I installed the latest version of Moode and the kernel headers were in the system. The driver compilation went smoothly. The touch panel works properly.
Reply
#6
Good to hear that :-)
Enjoy the Music!
moodeaudio.org | Mastodon Feed | GitHub
Reply


Forum Jump: