LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices


Reply
  Search this Thread
Old 11-21-2020, 03:47 AM   #1
mansoorbabbar
LQ Newbie
 
Registered: Feb 2007
Location: Johannesburg
Posts: 5

Rep: Reputation: 0
how to load "CONFIG_SERIO_RAW=y" module to existing kernel?


I am using Debian Buster 10 and picked up that "CONFIG_SERIO_RAW" module is not loaded which actually support a PS/2 Controller for Touch Screen though if check lsmod | grep serio_raw module is loaded. I need to simply add this to kernel and compile it to so that I can able to make use of touch screen device.
I installed all the utilities required libncurses, linux-headers and etc.

Kernel Version:
Code:
Linux version 4.19.0-6-amd64 (debian-kernel@lists.debian.org) (gcc version 8.3.0 (Debian 8.3.0-6)) #1 SMP Debian 4.19.67-2+deb10u2 (2019-11-11)

==================================================================
Code:
root@s:/usr/src# ls -lah
total 24K
drwxr-xr-x  6 root root 4.0K Nov 21 10:46 .
drwxr-xr-x 13 root root 4.0K Oct  7  2019 ..
lrwxrwxrwx  1 root root   37 Nov 21 10:46 linux -> /usr/src/linux-headers-4.19.0-6-amd64
drwxr-xr-x  4 root root 4.0K Nov 20 21:07 linux-headers-4.19.0-12-amd64
drwxr-xr-x  4 root root 4.0K Nov 20 21:07 linux-headers-4.19.0-12-common
drwxr-xr-x  4 root root 4.0K Nov 20 15:40 linux-headers-4.19.0-6-amd64
drwxr-xr-x  4 root root 4.0K Nov 21 10:55 linux-headers-4.19.0-6-common
============================================================================
Code:
root@s:/lib/modules# ls -lh
total 8.0K
drwxr-xr-x 2 root root 4.0K Nov 20 21:07 4.19.0-12-amd64
drwxr-xr-x 3 root root 4.0K Nov 20 15:34 4.19.0-6-amd64
============================================================================
root@s:/lib/modules/4.19.0-6-amd64# ls -lh
total 4.4M
lrwxrwxrwx  1 root root   37 Nov 11  2019 build -> /usr/src/linux-headers-4.19.0-6-amd64
drwxr-xr-x 12 root root 4.0K Oct  7  2019 kernel
-rw-r--r--  1 root root 1.1M Nov 20 15:34 modules.alias
-rw-r--r--  1 root root 1.1M Nov 20 15:34 modules.alias.bin
-rw-r--r--  1 root root 4.8K Nov 11  2019 modules.builtin
-rw-r--r--  1 root root 6.0K Nov 20 15:34 modules.builtin.bin
-rw-r--r--  1 root root 424K Nov 20 15:34 modules.dep
-rw-r--r--  1 root root 578K Nov 20 15:34 modules.dep.bin
-rw-r--r--  1 root root  434 Nov 20 15:34 modules.devname
-rw-r--r--  1 root root 137K Nov 11  2019 modules.order
-rw-r--r--  1 root root  800 Nov 20 15:34 modules.softdep
-rw-r--r--  1 root root 494K Nov 20 15:34 modules.symbols
-rw-r--r--  1 root root 610K Nov 20 15:34 modules.symbols.bin
lrwxrwxrwx  1 root root   38 Nov 11  2019 source -> /usr/src/linux-headers-4.19.0-6-common
=================================================================
Code:
root@s:/lib/modules/4.19.0-6-amd64# cat /boot/config-4.19.0-6-amd64 | grep CONFIG_SERIO_RAW
CONFIG_SERIO_RAW=m
I just need to know how to load and compile this module in Debain and documents available on Debain is outdated.

I have also tried download latest kernel from kernel.org and ran "make menuconfig" and managed to add activate settings for CONFIG_SERIO_RAW on existing config but kernel panic error occurred and I had to revert back to previous working kernel.

Any assistance ins this regard will be highly appreciated.
 
Old 11-21-2020, 08:55 AM   #2
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 13,163
Blog Entries: 1

Rep: Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032
Quote:
root@s:/lib/modules/4.19.0-6-amd64# cat /boot/config-4.19.0-6-amd64 | grep CONFIG_SERIO_RAW
CONFIG_SERIO_RAW=m
From the above grep output, you see that the driver is already compiled as a kernel module.
Run as root the following command to load it into the kernel:
Code:
modprobe serio_raw
 
Old 11-21-2020, 11:41 AM   #3
mansoorbabbar
LQ Newbie
 
Registered: Feb 2007
Location: Johannesburg
Posts: 5

Original Poster
Rep: Reputation: 0
As I mentioned above in my post that module is already loaded.


root@ds:/lib/modules/4.19.0-6-amd64# lsmod | grep serio_raw
serio_raw 16384 0

Issue is that I can’t find the “/dev/serio_raw*” though module is loaded therefore I will have to load and compile kernel
with following module.

Device Driver>Input Device Support> Hardware I/O Ports>[*] raw access to serio ports
 
Old 11-21-2020, 12:31 PM   #4
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 13,163
Blog Entries: 1

Rep: Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032
Quote:
Originally Posted by mansoorbabbar View Post
As I mentioned above in my post that module is already loaded.


root@ds:/lib/modules/4.19.0-6-amd64# lsmod | grep serio_raw
serio_raw 16384 0

Issue is that I can’t find the “/dev/serio_raw*” though module is loaded therefore I will have to load and compile kernel
with following module.

Device Driver>Input Device Support> Hardware I/O Ports>[*] raw access to serio ports
According to module documentation you need something like:
Code:
echo -n "serio_raw" > /sys/bus/serio/devices/serioX/drvctl
 
Old 11-21-2020, 03:15 PM   #5
mansoorbabbar
LQ Newbie
 
Registered: Feb 2007
Location: Johannesburg
Posts: 5

Original Poster
Rep: Reputation: 0
I am also baffled see below please output.

root@s:/lib/modules# cat /sys/bus/serio/devices/serio
serio0/ serio1/

I am suspecting something is wrong with path or a bug.

I made an experiment and installed Ubuntu 10.04 Lucid Lynx and able to get it to work on same device and Touch Screen detected on PS/2 Controller and works without any issue but on Debain Buster 10 with Kernel above mentioned failing.
 
Old 12-02-2020, 12:31 AM   #6
mansoorbabbar
LQ Newbie
 
Registered: Feb 2007
Location: Johannesburg
Posts: 5

Original Poster
Rep: Reputation: 0
I have managed to resolve this issue.

I had to recompile debian kernel and load required modules using make menuconfig and copying existing .config.
Also I will have to create /debian/certs folder so that I dont get certificate error.

I had to download linux-image and all required libraries.

CONFIG_SERIO_RAW=y
PS/2 TOUCHKIT=y

make deb-pkg
sudo dpkg -i *.deb
sudo update-grub

I could understand that legacy device support is removed in latest kernels to make it more efficient and quicker.

Last edited by mansoorbabbar; 12-02-2020 at 12:33 AM.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
how to load "CONFIG_SERIO_RAW=y" module to existing kernel? mansoorbabbar Linux - Newbie 1 11-21-2020 08:19 AM
rt61pci kernel module fails to load in -current "Invalid module format" Interject Slackware 6 03-20-2010 01:48 AM
Compile and load kernel module automatically after boot? (Intel NIC module) touser Linux - Newbie 3 08-29-2009 08:45 PM
how to add existing files to existing imported kdevelop project?? santana Programming 1 05-22-2007 09:53 AM
Dual boot "merge" from existing 98 & existing Linux atsmith Linux - Newbie 4 07-13-2003 03:46 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware

All times are GMT -5. The time now is 04:42 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration