LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware > Linux - Embedded & Single-board computer
User Name
Password
Linux - Embedded & Single-board computer This forum is for the discussion of Linux on both embedded devices and single-board computers (such as the Raspberry Pi, BeagleBoard and PandaBoard). Discussions involving Arduino, plug computers and other micro-controller like devices are also welcome.

Notices


Reply
  Search this Thread
Old 02-24-2022, 05:51 AM   #1
Alex F
LQ Newbie
 
Registered: Feb 2022
Posts: 2

Rep: Reputation: 0
Unknown symbol devm_input_allocate_polled_device


I am trying to load kernel module on Raspberry Pi 4.

Quote:
root@raspberrypi:/home/pi# uname -r
5.4.79-v7l+
root@raspberrypi:/home/pi# insmod i2c_rpi4_accel.ko
insmod: ERROR: could not insert module i2c_rpi4_accel.ko: Unknown symbol in module
Trace (dmesg):

Quote:
[ 85.132241] i2c_rpi4_accel: Unknown symbol devm_input_allocate_polled_device (err -2)
[ 85.132328] i2c_rpi4_accel: Unknown symbol input_register_polled_device (err -2)
[ 85.132398] i2c_rpi4_accel: Unknown symbol input_unregister_polled_device (err -2)
Kernel module contains these API calls. How to solve this problem? Probably something in the kernel configuration, but I don't know what parameter exactly to change.

Google search gives 2 links regarding INPUT_POLLDEV configuration parameter, this is what I have in the kernel tree directory:

Code:
alex@alex-21:~/linux_rpi4/linux$ cat .config | grep INPUT_POLLDEV
CONFIG_INPUT_POLLDEV=y
 
Old 02-25-2022, 06:38 AM   #2
Alex F
LQ Newbie
 
Registered: Feb 2022
Posts: 2

Original Poster
Rep: Reputation: 0
Kind of solution: Find file input-polldev.ko in Linux device tree and copy it to the board.

Quote:
root@raspberrypi:/home/pi# ls
i2c_rpi4_accel.ko input-polldev.ko
root@raspberrypi:/home/pi# insmod input-polldev.ko
root@raspberrypi:/home/pi# insmod i2c_rpi4_accel.ko
 
  


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
What are the differences between the normal symbol table, the dynamic symbol table, and the debugging symbol table? watchintv Linux - Software 5 10-22-2016 08:38 AM
UNDEFINED SYMBOL!! though the symbol defined in System.map raklo Programming 3 01-05-2011 02:52 AM
symbol lookup error: /usr/lib/libgtk-x11.2.0.so.0: undefined symbol:... IamI Slackware 17 02-29-2008 11:10 AM
./firefox-bin: symbol lookup error: /usr/lib/libpango-1.0.so.0: undefined symbol: g_s cb8100 Slackware 3 10-05-2006 10:55 AM
snort failed: snort: symbol lookup error: undefined symbol: usmAES192PrivProtocol Emmanuel_uk Linux - Security 1 07-10-2005 10:29 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware > Linux - Embedded & Single-board computer

All times are GMT -5. The time now is 12:14 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