![]() |
[SOLVED] How to compile touchscreen driver as kernel module. - Printable Version +- Moode Forum (https://moodeaudio.org/forum) +-- Forum: moOde audio player (https://moodeaudio.org/forum/forumdisplay.php?fid=3) +--- Forum: Support (https://moodeaudio.org/forum/forumdisplay.php?fid=7) +--- Thread: [SOLVED] How to compile touchscreen driver as kernel module. (/showthread.php?tid=7034) |
How to compile touchscreen driver as kernel module. - brewka87 - 10-25-2024 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/master/drivers/input/touchscreen/ilitek_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 RE: How to compile touchscreen driver as kernel module. - Tim Curtis - 10-25-2024 You should post this type of question in the Advanced users section of the Raspberry Pi Forum. https://forums.raspberrypi.com/viewforum.php?f=29&sid=d2fcfb82353f5ad1c1e1844be5e35c6d RE: How to compile touchscreen driver as kernel module. - brewka87 - 10-25-2024 (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. 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. RE: How to compile touchscreen driver as kernel module. - Tim Curtis - 10-25-2024 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. RE: How to compile touchscreen driver as kernel module. - brewka87 - 10-30-2024 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. RE: How to compile touchscreen driver as kernel module. - Tim Curtis - 10-30-2024 Good to hear that :-) |