LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 11-09-2020, 07:35 PM   #1
sheld
LQ Newbie
 
Registered: Mar 2020
Posts: 2

Rep: Reputation: Disabled
Smile "disagrees about version of symbol" after changing struct spi_device.


Hi,

I am studying SPI device driver using my RPi4.
I added a member variable in struct spi_device in spi.h to see
if the variable I added in .dts (Device Tree) comes in spi.c as intended:
***********************************************
struct spi_device {
struct device dev;
struct spi_controller *controller;
struct spi_controller *master;
u32 max_speed_hz;
u32 debug_sheld; // ---------> for testing

...
}
***********************************************

Then I compiled the kernel to see what happens in spi.c and spidev.c like this,
rebooted my RPi4, and tried to load spidev.ko module.
But, this error happens:
***********************************************

pi@raspberrypi:~/git_repository/Kernel/linux-5.4.59/drivers/spi $ sudo insmod spidev.ko
insmod: ERROR: could not insert module spidev.ko: Invalid parameters

***********************************************

I checked kernel log using dmesg :
***********************************************
[ 81.717199] spidev: disagrees about version of symbol spi_sync
[ 81.717211] spidev: Unknown symbol spi_sync (err -22)
[ 81.717248] spidev: disagrees about version of symbol spi_setup
[ 81.717257] spidev: Unknown symbol spi_setup (err -22)
[ 81.717278] spidev: disagrees about version of symbol __spi_register_driver
[ 81.717287] spidev: Unknown symbol __spi_register_driver (err -22)
[ 81.717311] spidev: disagrees about version of symbol spi_slave_abort
[ 81.717320] spidev: Unknown symbol spi_slave_abort (err -22)
[ 310.352225] spidev: disagrees about version of symbol spi_sync
[ 310.352237] spidev: Unknown symbol spi_sync (err -22)
[ 310.352274] spidev: disagrees about version of symbol spi_setup
[ 310.352283] spidev: Unknown symbol spi_setup (err -22)
[ 310.352305] spidev: disagrees about version of symbol __spi_register_driver
[ 310.352314] spidev: Unknown symbol __spi_register_driver (err -22)
[ 310.352338] spidev: disagrees about version of symbol spi_slave_abort
[ 310.352347] spidev: Unknown symbol spi_slave_abort (err -22)
[ 649.449228] spidev: disagrees about version of symbol spi_sync
[ 649.449244] spidev: Unknown symbol spi_sync (err -22)
[ 649.449291] spidev: disagrees about version of symbol spi_setup
[ 649.449303] spidev: Unknown symbol spi_setup (err -22)
[ 649.449332] spidev: disagrees about version of symbol __spi_register_driver
[ 649.449343] spidev: Unknown symbol __spi_register_driver (err -22)
[ 649.449375] spidev: disagrees about version of symbol spi_slave_abort
[ 649.449386] spidev: Unknown symbol spi_slave_abort (err -22)

***********************************************

There hasn't been any problem when I change something in spi.c or spidev.c,
but I don't know why it happens with a modification to struct spi_device.

Can somebody help me to solve this, please?

Thanks.

Last edited by sheld; 11-09-2020 at 07:42 PM.
 
  


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
insmod custom module fails with message : disagrees about version of symbol ... 915086731 Programming 2 10-18-2017 08:20 PM
First time module building on ARM: "disagrees about version of symbol module_layout" tzippy Linux - Kernel 1 06-02-2013 08:09 AM
zinFrameDriver: disagrees about version of symbol module_layout olexandr.klymenko Linux - Kernel 4 03-06-2012 06:31 AM
"disagrees about version of symbol struct_module" despite same vermagic pbmddt Linux - Kernel 2 05-09-2011 06:29 AM
Installer nvidia: disagrees about version of symbol module_layout? lugoteehalt Linux - Software 1 01-02-2010 04:59 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

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