Markus Plessing wrote: > Hi there, > > I'm trying to get the SocketCAN driver ems-usb running with > a kernel 2.6.31-19, but fail. > > I've updated my local version with the svn repository files > and compiled the socket can drivers against the running kernel > 2.6.31-19-generic on a ubuntu box. > > Running "make modules" and "make modules install" compiles all > the modules fine, modpostes 24 modules and installs them. Afterwards the > driver is found under > /lib/modules/2.6.31-19-generic/extra/drivers/net/can/usb/ems_usb.ko > > All fine, but if I try to load the driver, it is refused. > > # modprobe ems_usb > FATAL: Error inserting ems_usb > (/lib/modules/2.6.31-19-generic/extra/drivers/net/can/usb/ems_usb.ko): > Unknown symbol in module, or unknown parameter (see dmesg) > > # lsmod | grep can > can_dev 7004 0 > can_raw 7164 0 > can 23068 1 can_raw > > #tail -n 13 /var/log/messages > Jun 15 11:48:31 freya kernel: [ 1699.264333] can: controller area > network core (rev 20090105 abi 8) > Jun 15 11:48:31 freya kernel: [ 1699.264453] NET: Registered protocol > family 29 > Jun 15 11:48:47 freya kernel: [ 1714.986724] can: raw protocol (rev > 20090105) > Jun 15 11:49:03 freya kernel: [ 1730.878233] CAN device driver interface > Jun 15 11:49:03 freya kernel: [ 1730.879362] ems_usb: Unknown symbol > can_free_echo_skb > Jun 15 11:49:03 freya kernel: [ 1730.879574] ems_usb: disagrees about > version of symbol can_put_echo_skb > Jun 15 11:49:03 freya kernel: [ 1730.879581] ems_usb: Unknown symbol > can_put_echo_skb > Jun 15 11:49:03 freya kernel: [ 1730.880040] ems_usb: disagrees about > version of symbol can_get_echo_skb > Jun 15 11:49:03 freya kernel: [ 1730.880046] ems_usb: Unknown symbol > can_get_echo_skb > Jun 15 11:49:03 freya kernel: [ 1730.881232] ems_usb: Unknown symbol > alloc_can_skb > Jun 15 11:49:03 freya kernel: [ 1730.883261] ems_usb: disagrees about > version of symbol alloc_candev > Jun 15 11:49:03 freya kernel: [ 1730.883268] ems_usb: Unknown symbol > alloc_candev > Jun 15 11:49:03 freya kernel: [ 1730.883751] ems_usb: Unknown symbol > alloc_can_err_skb > > What I'm doing wrong?
I think you're using the ems driver from the svn repo, but the helper libraries from the kernel. Try to unload all socketcan related drivers and insmod can_dev and can_raw from /lib/modules/2.6.31-19-generic/extra, then try to load the ems driver. If this works, you may want to delete the can_dev and can_raw that come with the ubuntu kernel. > The ems_usb driver is in the mainline kernel for 2.6.32, also the > mentioned functioned are added for this kernel in drivers/net/can/dev.c > but they are there also within the socketcan repository. Aren't they > available afterwards? cheers, Marc -- Pengutronix e.K. | Marc Kleine-Budde | Industrial Linux Solutions | Phone: +49-231-2826-924 | Vertretung West/Dortmund | Fax: +49-5121-206917-5555 | Amtsgericht Hildesheim, HRA 2686 | http://www.pengutronix.de |
signature.asc
Description: OpenPGP digital signature
_______________________________________________ Socketcan-users mailing list [email protected] https://lists.berlios.de/mailman/listinfo/socketcan-users
