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

This forum covers PCAN-Linux and Linux development issues concerning our products
Post Reply
vijayendranss
Posts: 12
Joined: Thu 10. Sep 2020, 10:25

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

Post by vijayendranss » Fri 11. Sep 2020, 05:09

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 ?

vijayendranss
Posts: 12
Joined: Thu 10. Sep 2020, 10:25

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

Post by vijayendranss » Fri 11. Sep 2020, 06:46

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

User avatar
S.Grosjean
Software Development
Software Development
Posts: 357
Joined: Wed 4. Jul 2012, 17:02

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

Post by S.Grosjean » Fri 11. Sep 2020, 09:36

Hello,

Please check what are the missing symbols with:

Code: Select all

$ dmesg
— Stéphane

vijayendranss
Posts: 12
Joined: Thu 10. Sep 2020, 10:25

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

Post by vijayendranss » Fri 11. Sep 2020, 11:15

@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)

User avatar
S.Grosjean
Software Development
Software Development
Posts: 357
Joined: Wed 4. Jul 2012, 17:02

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

Post by S.Grosjean » Fri 11. Sep 2020, 11:35

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"...
— Stéphane

vijayendranss
Posts: 12
Joined: Thu 10. Sep 2020, 10:25

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

Post by vijayendranss » Fri 11. Sep 2020, 11:40

@ S.Grosjean

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

I followed as per the manual PEAK has provided.

User avatar
S.Grosjean
Software Development
Software Development
Posts: 357
Joined: Wed 4. Jul 2012, 17:02

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

Post by S.Grosjean » Fri 11. Sep 2020, 11:58

Of course:

Code: Select all

$ man modprobe
— Stéphane

Post Reply