Getting error " disagrees about version of symbol" when loading module

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Getting error " disagrees about version of symbol" when loading module

4,665 Views
jasonpowell_2
Contributor III

Hello Team,

I downloaded kernel source from 5.10.35 from https://cdn.kernel.org/pub/linux/kernel/v5.x/linux-5.10.35.tar.gz

I built this kernel (cross-compile) and obtained the driver module

panel-ilitek-ili9881c.ko.

I also downloaded 5.10.35 BSP from:

https://www.nxp.com/design/software/embedded-software/i-mx-software/embedded-linux-for-i-mx-applicat...

And uuu to my i.MX 8M Nano DDR4 EVK board successfully with:

uuu -b emmc_all imx-boot-imx8mnddr4evk-sd.bin-flash_ddr4_evk imx-image-multimedia-imx8mnevk.wic

Booted it ok. But when I tried to load the module panel-ilitek-ili9881c.ko I was getting these error messages:

[ 3478.914984] panel_ilitek_ili9881c: disagrees about version of symbol regulator_enable

[ 3478.922953] panel_ilitek_ili9881c: Unknown symbol regulator_enable (err -22)

[ 3478.930104] panel_ilitek_ili9881c: disagrees about version of symbol devm_regulator_get

[ 3478.938260] panel_ilitek_ili9881c: Unknown symbol devm_regulator_get (err -22)

[ 3478.945573] panel_ilitek_ili9881c: disagrees about version of symbol regulator_disable

[ 3478.953505] panel_ilitek_ili9881c: Unknown symbol regulator_disable (err -22)

insmod: ERROR: could not insert module panel-ilitek-ili9881c.ko: Invalid parameters

What do I need to do at this point in order to load my driver module panel-ilitek-ili9881c.ko successfully?

 

0 Kudos
3 Replies

4,632 Views
weidong_sun
NXP TechSupport
NXP TechSupport

Hi,

1. downloading linux documents

https://www.nxp.com/design/software/embedded-software/i-mx-software/embedded-linux-for-i-mx-applicat...

weidong_sun_0-1626914882472.png

2. decompressing it.

weidong_sun_1-1626914938414.png

3. Getting / compiling linux source code ( u-boot/kernel/rootfs)

According to i.MX_Yocto_Project_User's_Guide.pdf,  download yocto bsp and compile it.

 

Have a good day!

Regards,

weidong

0 Kudos

4,648 Views
weidong_sun
NXP TechSupport
NXP TechSupport

Hi,

5.10.35_2.0.0 kernel source should be downloaded by the command:

# git clone https://source.codeaurora.org/external/imx/linux-imx -b lf-5.10.35-2.0.0

You used the wrong kernel source code, so a driver loading error occurred.
 
try it again, please!
 
Have a good day!
Regards,
weidong
 
 
0 Kudos

4,636 Views
jasonpowell_2
Contributor III

Thanks weidong.

Can you kindly provide the link for the root file system (rootfs) that corresponds to the kernel you indicated in your reply:

5.10.35_2.0.0 kernel source

 

Regards,

JP

0 Kudos