Ubuntu 14.04 Xenomai Install

This forum covers PCAN-Linux and Linux development issues concerning our products
Post Reply
benjamin_blumer
Posts: 1
Joined: Thu 23. Apr 2015, 02:52

Ubuntu 14.04 Xenomai Install

Post by benjamin_blumer » Thu 23. Apr 2015, 02:57

Hi there,

I'm trying to install the drivers on Ubuntu 14.04 with a Xenomai 2.6.4 patched 3.14.17 kernel. I'm using the two-channel PCI card.

It seems to build fine:

Code: Select all

$ make clean
rm -f src/*o src/*~ src/.*cmd *o *ko *~ .*cmd  pcan.mod.c
$ make RT=XENOMAI
***
*** Host machine kernel version=3.14.17-ap15.1215
*** Driver kernel version=3.14.17-ap17.1530
*** Path to kernel sources=/lib/modules/3.14.17-ap15.1215/build
*** use KBUILD=yes
***
--xeno-cflags is deprecated, use --skin=name --cflags instead
make -C /lib/modules/3.14.17-ap15.1215/build SUBDIRS=/home/benblumer/Desktop/peak-linux-driver-7.14/driver        EXTRA_CFLAGS="-I/home/benblumer/Desktop/peak-linux-driver-7.14/driver        -DNO_DEBUG -DMODVERSIONS -DPARPORT_SUBSYSTEM -DNO_USB_SUPPORT -DPCI_SUPPORT -DNO_PCIEC_SUPPORT -DISA_SUPPORT -DDONGLE_SUPPORT -DNO_PCCARD_SUPPORT -DNO_NETDEV_SUPPORT -DXENOMAI -I/usr/include/xenomai -D_GNU_SOURCE -D_REENTRANT -D__XENO__" V=0 modules
make[1]: Entering directory `/home/benblumer/xeno-install/linux-3.14.17'
  CC [M]  /home/benblumer/Desktop/peak-linux-driver-7.14/driver/src/pcan_main.o
  CC [M]  /home/benblumer/Desktop/peak-linux-driver-7.14/driver/src/pcan_fops.o
  CC [M]  /home/benblumer/Desktop/peak-linux-driver-7.14/driver/src/pcan_fifo.o
  CC [M]  /home/benblumer/Desktop/peak-linux-driver-7.14/driver/src/pcan_filter.o
  CC [M]  /home/benblumer/Desktop/peak-linux-driver-7.14/driver/src/pcan_parse.o
  CC [M]  /home/benblumer/Desktop/peak-linux-driver-7.14/driver/src/pcan_sja1000.o
/home/benblumer/Desktop/peak-linux-driver-7.14/driver/src/pcan_sja1000.c: In function ‘sja1000_irqhandler_common’:
/home/benblumer/Desktop/peak-linux-driver-7.14/driver/src/pcan_sja1000.c:696:2: warning: ISO C90 forbids mixed declarations and code [-Wdeclaration-after-statement]
  struct can_frame ef;
  ^
  CC [M]  /home/benblumer/Desktop/peak-linux-driver-7.14/driver/src/pcan_common.o
  CC [M]  /home/benblumer/Desktop/peak-linux-driver-7.14/driver/src/pcan_pci.o
  CC [M]  /home/benblumer/Desktop/peak-linux-driver-7.14/driver/src/pcan_isa.o
  CC [M]  /home/benblumer/Desktop/peak-linux-driver-7.14/driver/src/pcan_dongle.o
  LD [M]  /home/benblumer/Desktop/peak-linux-driver-7.14/driver/pcan.o
  Building modules, stage 2.
  MODPOST 1 modules
  CC      /home/benblumer/Desktop/peak-linux-driver-7.14/driver/pcan.mod.o
  LD [M]  /home/benblumer/Desktop/peak-linux-driver-7.14/driver/pcan.ko
make[1]: Leaving directory `/home/benblumer/xeno-install/linux-3.14.17'
I think the make install is working fine too:

Code: Select all

$ sudo make install
Info: /lib/modules/3.14.17-ap17.1530/misc exists.
Info: Left current 'pcan'-entry in /etc/modprobe.d/pcan.conf untouched.
Info: Copied 45-pcan.rules to /etc/udev/rules.d.
Info: mainline drivers removed and blacklisted in
      /etc/modprobe.d/blacklist-peak.conf
But I can't modprobe the driver:

Code: Select all

$ sudo modprobe pcan
modprobe: ERROR: ../libkmod/libkmod-module.c:809 kmod_module_insert_module() could not find module by name='pcan'
modprobe: ERROR: could not insert 'pcan': Function not implemented
modprobe: ERROR: ../libkmod/libkmod-module.c:959 command_do() Error running install command for pcan
modprobe: ERROR: could not insert 'pcan': Operation not permitted
Any ideas?

Thanks

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

Re: Ubuntu 14.04 Xenomai Install

Post by S.Grosjean » Thu 23. Apr 2015, 13:59

Hi,

Could you first try something for us:

Code: Select all

$ cd /home/benblumer/Desktop/peak-linux-driver-7.14/driver
$ sudo insmod pcan.ko
and tell us what happened.

Thanks,

Stéphane
— Stéphane

Post Reply