Page 1 of 1

[PCAN Driver for Linux v8]"Unknown symbol in module" error when insmod is used instead of modprobe

Posted: Fri 11. Sep 2020, 05:09
by vijayendranss
I use PCAN Driver for Linux v8.

By seeing the manual, i completed till

Code: Select all

sudo modprobe pcan 
When no devices connected to my PC, i execute

Code: Select all

lspcan -T -t -a
No devices are displayed.

In this stage, i dont want to use modprobe command.
Instead, i want to use insmod command.

Reason for this i am asking is because, i want virtually install(display) the devices under /dev regardless of the actual devices connected or not.

I tried using another different LKM (Linux Kernel Module) application which gives the output as XX.ko.
Purpose of this LKM is to install the devices virtually.
I tried loading the ko file of this LKM. It installed succesfully.

Hence i want to use insmod for our PCAN Driver too. I am thinking it will get loaded.
I tried using as below

Code: Select all

root@rosmaster:/home/usr/work/peak-linux-driver-8.10.2/driver#insmod pcan.ko
insmod: ERROR: could not insert module pcan.ko: Unknown symbol in module
I understand pcan.ko is dependent on other modules like
  • pcmcia,
    parport,
    i2c-algo-bit
Please suggest me how to solve this issue ?

Or is there any way to virtually load the devices using probemode itself ?

Re: [PCAN Driver for Linux v8]"Unknown symbol in module" error when insmod is used instead of modprobe

Posted: Fri 11. Sep 2020, 06:46
by vijayendranss
I tried as below given in the manual also.. But same error..

Code: Select all

root@rosmastar:/home/ams_user/work/vijay/peak-linux-driver-8.10.2/driver# modinfo pcan.ko | grep -e "^depends:"
depends:        pcmcia,parport,i2c-algo-bit
root@rosmastar:/home/ams_user/work/vijay/peak-linux-driver-8.10.2/driver# modprobe pcmcia parport i2c-algo-bit
root@rosmastar:/home/ams_user/work/vijay/peak-linux-driver-8.10.2/driver# insmod pcan.ko
insmod: ERROR: could not insert module pcan.ko: Unknown symbol in module

Re: [PCAN Driver for Linux v8]"Unknown symbol in module" error when insmod is used instead of modprobe

Posted: Fri 11. Sep 2020, 09:36
by S.Grosjean
Hello,

Please check what are the missing symbols with:

Code: Select all

$ dmesg

Re: [PCAN Driver for Linux v8]"Unknown symbol in module" error when insmod is used instead of modprobe

Posted: Fri 11. Sep 2020, 11:15
by vijayendranss
@S.Grosjean
This is the output of dmesg..

[15454.116955] pcan: Unknown symbol pcmcia_disable_device (err -2)
[15454.116972] pcan: Unknown symbol i2c_bit_add_bus (err -2)
[15454.116987] pcan: Unknown symbol pcmcia_unregister_driver (err -2)
[15454.117031] pcan: Unknown symbol pcmcia_loop_config (err -2)
[15454.117072] pcan: Unknown symbol pcmcia_request_io (err -2)
[15454.117101] pcan: Unknown symbol pcmcia_register_driver (err -2)
[15454.117111] pcan: Unknown symbol pcmcia_enable_device (err -2)
[15454.117123] pcan: Unknown symbol pcmcia_dev_present (err -2)


[13961.278298] pcmcia: unknown parameter 'parport' ignored
[13961.278299] pcmcia: unknown parameter 'i2c-algo-bit' ignored
[13972.657876] pcan: Unknown symbol i2c_bit_add_bus (err -2)
[13994.485964] pcan: Unknown symbol i2c_bit_add_bus (err -2)
[14611.501569] pcan: Unknown symbol i2c_bit_add_bus (err -2)

Re: [PCAN Driver for Linux v8]"Unknown symbol in module" error when insmod is used instead of modprobe

Posted: Fri 11. Sep 2020, 11:35
by S.Grosjean
As said by dmesg:

Code: Select all

[13961.278298] pcmcia: unknown parameter 'parport' ignored
[13961.278299] pcmcia: unknown parameter 'i2c-algo-bit' ignored
parport and i2c-algo-bit are handled as *PARAMETERS* to pcmcia module, which is coherent with your erroneous command line:

Code: Select all

root@rosmastar:/home/ams_user/work/vijay/peak-linux-driver-8.10.2/driver# modprobe pcmcia parport i2c-algo-bit
So, truth is definitively in "man modprobe"...

Re: [PCAN Driver for Linux v8]"Unknown symbol in module" error when insmod is used instead of modprobe

Posted: Fri 11. Sep 2020, 11:40
by vijayendranss
@ S.Grosjean

Thanks...
Can you suggest me solution if possible..

I followed as per the manual PEAK has provided.

Re: [PCAN Driver for Linux v8]"Unknown symbol in module" error when insmod is used instead of modprobe

Posted: Fri 11. Sep 2020, 11:58
by S.Grosjean
Of course:

Code: Select all

$ man modprobe