PCAN on cubietruck driver installation issues

This forum covers PCAN-Linux and Linux development issues concerning our products
M.Maidhof
Support
Support
Posts: 1753
Joined: Wed 22. Sep 2010, 14:00

Re: PCAN on cubietruck driver installation issues

Post by M.Maidhof » Fri 14. Mar 2014, 09:41

Hi,

for me it looks like the used kernel headers are not correctly installed, or they will not fit to the used kernel version:

Host machine kernel version=3.4.79
Driver kernel version=3.4.79+

regards

Michael

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

Re: PCAN on cubietruck driver installation issues

Post by S.Grosjean » Mon 17. Mar 2014, 14:11

make[1]: Entering directory `/home/linaro/Desktop/peak-linux-driver-7.10/driver'
make[1]: *** No rule to make target `depend'. Stop.
make[1]: Leaving directory `/home/linaro/Desktop/peak-linux-driver-7.10/driver'
make[1]: Entering directory `/home/linaro/Desktop/peak-linux-driver-7.10/driver'
***
*** Host machine kernel version=3.4.79
*** Driver kernel version=3.4.79+
*** Path to kernel sources=
*** use KBUILD=yes
***
This is *NOT* normal ! You should get the path to the Kernel sources, that is something like:

/lib/modules/3.4.79/build

(for example).

Moreover, your Make command confirms the Kernel sources directory issue:
make -C SUBDIRS=/home/linaro/Desktop/peak-linux-driver-7.10/driver EXTRA_CFLAGS="-I/home/linaro/Desktop/peak-linux-driver-7.10/driver -DNO_DEBUG -DMODVERSIONS -DPARPORT_SUBSYSTEM -DUSB_SUPPORT -DPCI_SUPPORT -DPCIEC_SUPPORT -DISA_SUPPORT -DDONGLE_SUPPORT -DPCCARD_SUPPORT -DNETDEV_SUPPORT -DNO_RT " V=0 modules
The name of this Kernel directory SHOULD follow the "-C" option, before the variable "SUBDIRS"... But nothing in your case. This explains the "No such file or directory" issue since "SUBDIRS=xxx" is certainly not an existing directory!

This wants to say that the Makefile *ISNOT* able to locate this Kernel directory by itself... If you know it, you can edit the driver/Makefile by yourself and manually enter this location by filling the content of this variable:

KERNEL_LOCATION =

Regards,

Stéphane
— Stéphane

compauer
Posts: 11
Joined: Tue 4. Mar 2014, 11:05

Re: PCAN on cubietruck driver installation issues

Post by compauer » Tue 18. Mar 2014, 12:42

Thank you both for your answers! I fixed it and the "make" was succesfull in the */driver directory. Indeed it was a kernel sources problem. I fixed it by changing the Makefile.

After that I did "make install" in the */driver directory. Now I got a new error.

Code: Select all

root@cubietruck:~/Desktop/peak-linux-driver-7.10/driver# make install
Info: /lib/modules/3.4.79+/misc exists.
Info: Left current 'pcan'-entry in /etc/modprobe.d/pcan.conf untouched.
/bin/sh: 9: Syntax error: end of file unexpected (expecting "fi")
make: *** [install] Error 2
This is what I get in the peak-linux-driver directory:

Code: Select all

root@cubietruck:~/Desktop/peak-linux-driver-7.10# make install
Info: /lib/modules/3.4.79+/misc exists.
Info: Left current 'pcan'-entry in /etc/modprobe.d/pcan.conf untouched.
/bin/sh: 9: Syntax error: end of file unexpected (expecting "fi")
make[1]: *** [install] Error 2
make[1]: Leaving directory `/home/linaro/Desktop/peak-linux-driver-7.10/driver'
make[1]: Entering directory `/home/linaro/Desktop/peak-linux-driver-7.10/lib'
mkdir -p /usr/lib
cp libpcan.so.0.6 /usr/lib/libpcan.so.0.6
ln -sf /usr/lib/libpcan.so.0.6 /usr/lib/libpcan.so.0
ln -sf /usr/lib/libpcan.so.0 /usr/lib/libpcan.so
mkdir -p /usr/include
cp libpcan.h /usr/include/libpcan.h
chmod 644 /usr/include/libpcan.h
/sbin/ldconfig
make[1]: Leaving directory `/home/linaro/Desktop/peak-linux-driver-7.10/lib'
make[1]: Entering directory `/home/linaro/Desktop/peak-linux-driver-7.10/test'
cp receivetest /usr/local/bin
cp transmitest /usr/local/bin
cp bitratetest /usr/local/bin
cp filtertest /usr/local/bin
cp pcan-settings /usr/local/bin
cp: cannot stat `pcan-settings': No such file or directory
make[1]: *** [install] Error 1
make[1]: Leaving directory `/home/linaro/Desktop/peak-linux-driver-7.10/test'

M.Maidhof
Support
Support
Posts: 1753
Joined: Wed 22. Sep 2010, 14:00

Re: PCAN on cubietruck driver installation issues

Post by M.Maidhof » Tue 18. Mar 2014, 14:44

Hi,

do you see a pcan.ko in the /driver directory?

regards

Michael

compauer
Posts: 11
Joined: Tue 4. Mar 2014, 11:05

Re: PCAN on cubietruck driver installation issues

Post by compauer » Tue 18. Mar 2014, 15:19

Hi,

yes, pcan.ko is in the /driver directory.

regards

Edit: The pcan-settings does not exist in the */test directory
There is a "pcan-settings.c" int the */test/src directory

M.Maidhof
Support
Support
Posts: 1753
Joined: Wed 22. Sep 2010, 14:00

Re: PCAN on cubietruck driver installation issues

Post by M.Maidhof » Tue 18. Mar 2014, 16:31

Hi,

simply insmod the driver and see what will happen....

regards

Michael

BTW: please check for errors in your make process to see why pcan-settings was not builded on your system.

compauer
Posts: 11
Joined: Tue 4. Mar 2014, 11:05

Re: PCAN on cubietruck driver installation issues

Post by compauer » Wed 19. Mar 2014, 07:55

Hi,

Sorry did't see the Error while make process :/
The error is saying, there is missing an autoconf.h, but this file is for sure in the path.
What shall I "insmod" in driver?

Code: Select all

make NET=NO PCI=NO PAR=NO ISA=NO PCC=NO DNG=NO DBG=DEBUG
***
*** Host machine kernel version=3.4.79
*** Driver kernel version=3.4.79+
*** Path to kernel sources=/lib/modules/3.4.79+/build
*** use KBUILD=yes
***
make -C /lib/modules/3.4.79+/build SUBDIRS=/home/linaro/Desktop/peak-linux-driver-7.10/driver        EXTRA_CFLAGS="-I/home/linaro/Desktop/peak-linux-driver-7.10/driver        -DDEBUG -DMODVERSIONS -DNO -DUSB_SUPPORT -DNO -DNO_PCIEC_SUPPORT -DNO -DNO -DNO -DNO -DNO_RT " V=1 modules
make[1]: Entering directory `/home/linaro/linux-sunxi'
test -e include/generated/autoconf.h -a -e include/config/auto.conf || (	\
	echo;								\
	echo "  ERROR: Kernel configuration is invalid.";		\
	echo "         include/generated/autoconf.h or include/config/auto.conf are missing.";\
	echo "         Run 'make oldconfig && make prepare' on kernel src to fix it.";	\
	echo;								\
	/bin/false)
mkdir -p /home/linaro/Desktop/peak-linux-driver-7.10/driver/.tmp_versions ; rm -f /home/linaro/Desktop/peak-linux-driver-7.10/driver/.tmp_versions/*

  WARNING: Symbol version dump /home/linaro/linux-sunxi/Module.symvers
           is missing; modules will have no dependencies and modversions.

make -f scripts/Makefile.build obj=/home/linaro/Desktop/peak-linux-driver-7.10/driver
  gcc -Wp,-MD,/home/linaro/Desktop/peak-linux-driver-7.10/driver/src/.pcan_main.o.d  -nostdinc -isystem /usr/lib/gcc/arm-linux-gnueabihf/4.7/include -I/home/linaro/linux-sunxi/arch/arm/include -Iarch/arm/include/generated -Iinclude  -include /home/linaro/linux-sunxi/include/linux/kconfig.h -D__KERNEL__ -mlittle-endian -Iarch/arm/mach-sun7i/include -Iarch/arm/plat-sunxi/include -Wall -Wundef -Wstrict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common -Werror-implicit-function-declaration -Wno-format-security -fno-delete-null-pointer-checks -O2 -marm -fno-dwarf2-cfi-asm -fno-omit-frame-pointer -mapcs -mno-sched-prolog -fstack-protector -mabi=aapcs-linux -mno-thumb-interwork -D__LINUX_ARM_ARCH__=7 -march=armv7-a -msoft-float -Uarm -Wframe-larger-than=4096 -Wno-unused-but-set-variable -fno-omit-frame-pointer -fno-optimize-sibling-calls -Wdeclaration-after-statement -Wno-pointer-sign -fno-strict-overflow -fconserve-stack -DCC_HAVE_ASM_GOTO -I/home/linaro/Desktop/peak-linux-driver-7.10/driver -DDEBUG -DMODVERSIONS -DNO -DUSB_SUPPORT -DNO -DNO_PCIEC_SUPPORT -DNO -DNO -DNO -DNO -DNO_RT  -DMODULE  -D"KBUILD_STR(s)=#s" -D"KBUILD_BASENAME=KBUILD_STR(pcan_main)"  -D"KBUILD_MODNAME=KBUILD_STR(pcan)" -c -o /home/linaro/Desktop/peak-linux-driver-7.10/driver/src/.tmp_pcan_main.o /home/linaro/Desktop/peak-linux-driver-7.10/driver/src/pcan_main.c
  gcc -Wp,-MD,/home/linaro/Desktop/peak-linux-driver-7.10/driver/src/.pcan_fops.o.d  -nostdinc -isystem /usr/lib/gcc/arm-linux-gnueabihf/4.7/include -I/home/linaro/linux-sunxi/arch/arm/include -Iarch/arm/include/generated -Iinclude  -include /home/linaro/linux-sunxi/include/linux/kconfig.h -D__KERNEL__ -mlittle-endian -Iarch/arm/mach-sun7i/include -Iarch/arm/plat-sunxi/include -Wall -Wundef -Wstrict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common -Werror-implicit-function-declaration -Wno-format-security -fno-delete-null-pointer-checks -O2 -marm -fno-dwarf2-cfi-asm -fno-omit-frame-pointer -mapcs -mno-sched-prolog -fstack-protector -mabi=aapcs-linux -mno-thumb-interwork -D__LINUX_ARM_ARCH__=7 -march=armv7-a -msoft-float -Uarm -Wframe-larger-than=4096 -Wno-unused-but-set-variable -fno-omit-frame-pointer -fno-optimize-sibling-calls -Wdeclaration-after-statement -Wno-pointer-sign -fno-strict-overflow -fconserve-stack -DCC_HAVE_ASM_GOTO -I/home/linaro/Desktop/peak-linux-driver-7.10/driver -DDEBUG -DMODVERSIONS -DNO -DUSB_SUPPORT -DNO -DNO_PCIEC_SUPPORT -DNO -DNO -DNO -DNO -DNO_RT  -DMODULE  -D"KBUILD_STR(s)=#s" -D"KBUILD_BASENAME=KBUILD_STR(pcan_fops)"  -D"KBUILD_MODNAME=KBUILD_STR(pcan)" -c -o /home/linaro/Desktop/peak-linux-driver-7.10/driver/src/.tmp_pcan_fops.o /home/linaro/Desktop/peak-linux-driver-7.10/driver/src/pcan_fops.c
  gcc -Wp,-MD,/home/linaro/Desktop/peak-linux-driver-7.10/driver/src/.pcan_fifo.o.d  -nostdinc -isystem /usr/lib/gcc/arm-linux-gnueabihf/4.7/include -I/home/linaro/linux-sunxi/arch/arm/include -Iarch/arm/include/generated -Iinclude  -include /home/linaro/linux-sunxi/include/linux/kconfig.h -D__KERNEL__ -mlittle-endian -Iarch/arm/mach-sun7i/include -Iarch/arm/plat-sunxi/include -Wall -Wundef -Wstrict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common -Werror-implicit-function-declaration -Wno-format-security -fno-delete-null-pointer-checks -O2 -marm -fno-dwarf2-cfi-asm -fno-omit-frame-pointer -mapcs -mno-sched-prolog -fstack-protector -mabi=aapcs-linux -mno-thumb-interwork -D__LINUX_ARM_ARCH__=7 -march=armv7-a -msoft-float -Uarm -Wframe-larger-than=4096 -Wno-unused-but-set-variable -fno-omit-frame-pointer -fno-optimize-sibling-calls -Wdeclaration-after-statement -Wno-pointer-sign -fno-strict-overflow -fconserve-stack -DCC_HAVE_ASM_GOTO -I/home/linaro/Desktop/peak-linux-driver-7.10/driver -DDEBUG -DMODVERSIONS -DNO -DUSB_SUPPORT -DNO -DNO_PCIEC_SUPPORT -DNO -DNO -DNO -DNO -DNO_RT  -DMODULE  -D"KBUILD_STR(s)=#s" -D"KBUILD_BASENAME=KBUILD_STR(pcan_fifo)"  -D"KBUILD_MODNAME=KBUILD_STR(pcan)" -c -o /home/linaro/Desktop/peak-linux-driver-7.10/driver/src/.tmp_pcan_fifo.o /home/linaro/Desktop/peak-linux-driver-7.10/driver/src/pcan_fifo.c
  gcc -Wp,-MD,/home/linaro/Desktop/peak-linux-driver-7.10/driver/src/.pcan_filter.o.d  -nostdinc -isystem /usr/lib/gcc/arm-linux-gnueabihf/4.7/include -I/home/linaro/linux-sunxi/arch/arm/include -Iarch/arm/include/generated -Iinclude  -include /home/linaro/linux-sunxi/include/linux/kconfig.h -D__KERNEL__ -mlittle-endian -Iarch/arm/mach-sun7i/include -Iarch/arm/plat-sunxi/include -Wall -Wundef -Wstrict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common -Werror-implicit-function-declaration -Wno-format-security -fno-delete-null-pointer-checks -O2 -marm -fno-dwarf2-cfi-asm -fno-omit-frame-pointer -mapcs -mno-sched-prolog -fstack-protector -mabi=aapcs-linux -mno-thumb-interwork -D__LINUX_ARM_ARCH__=7 -march=armv7-a -msoft-float -Uarm -Wframe-larger-than=4096 -Wno-unused-but-set-variable -fno-omit-frame-pointer -fno-optimize-sibling-calls -Wdeclaration-after-statement -Wno-pointer-sign -fno-strict-overflow -fconserve-stack -DCC_HAVE_ASM_GOTO -I/home/linaro/Desktop/peak-linux-driver-7.10/driver -DDEBUG -DMODVERSIONS -DNO -DUSB_SUPPORT -DNO -DNO_PCIEC_SUPPORT -DNO -DNO -DNO -DNO -DNO_RT  -DMODULE  -D"KBUILD_STR(s)=#s" -D"KBUILD_BASENAME=KBUILD_STR(pcan_filter)"  -D"KBUILD_MODNAME=KBUILD_STR(pcan)" -c -o /home/linaro/Desktop/peak-linux-driver-7.10/driver/src/.tmp_pcan_filter.o /home/linaro/Desktop/peak-linux-driver-7.10/driver/src/pcan_filter.c
  gcc -Wp,-MD,/home/linaro/Desktop/peak-linux-driver-7.10/driver/src/.pcan_parse.o.d  -nostdinc -isystem /usr/lib/gcc/arm-linux-gnueabihf/4.7/include -I/home/linaro/linux-sunxi/arch/arm/include -Iarch/arm/include/generated -Iinclude  -include /home/linaro/linux-sunxi/include/linux/kconfig.h -D__KERNEL__ -mlittle-endian -Iarch/arm/mach-sun7i/include -Iarch/arm/plat-sunxi/include -Wall -Wundef -Wstrict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common -Werror-implicit-function-declaration -Wno-format-security -fno-delete-null-pointer-checks -O2 -marm -fno-dwarf2-cfi-asm -fno-omit-frame-pointer -mapcs -mno-sched-prolog -fstack-protector -mabi=aapcs-linux -mno-thumb-interwork -D__LINUX_ARM_ARCH__=7 -march=armv7-a -msoft-float -Uarm -Wframe-larger-than=4096 -Wno-unused-but-set-variable -fno-omit-frame-pointer -fno-optimize-sibling-calls -Wdeclaration-after-statement -Wno-pointer-sign -fno-strict-overflow -fconserve-stack -DCC_HAVE_ASM_GOTO -I/home/linaro/Desktop/peak-linux-driver-7.10/driver -DDEBUG -DMODVERSIONS -DNO -DUSB_SUPPORT -DNO -DNO_PCIEC_SUPPORT -DNO -DNO -DNO -DNO -DNO_RT  -DMODULE  -D"KBUILD_STR(s)=#s" -D"KBUILD_BASENAME=KBUILD_STR(pcan_parse)"  -D"KBUILD_MODNAME=KBUILD_STR(pcan)" -c -o /home/linaro/Desktop/peak-linux-driver-7.10/driver/src/.tmp_pcan_parse.o /home/linaro/Desktop/peak-linux-driver-7.10/driver/src/pcan_parse.c
  gcc -Wp,-MD,/home/linaro/Desktop/peak-linux-driver-7.10/driver/src/.pcan_sja1000.o.d  -nostdinc -isystem /usr/lib/gcc/arm-linux-gnueabihf/4.7/include -I/home/linaro/linux-sunxi/arch/arm/include -Iarch/arm/include/generated -Iinclude  -include /home/linaro/linux-sunxi/include/linux/kconfig.h -D__KERNEL__ -mlittle-endian -Iarch/arm/mach-sun7i/include -Iarch/arm/plat-sunxi/include -Wall -Wundef -Wstrict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common -Werror-implicit-function-declaration -Wno-format-security -fno-delete-null-pointer-checks -O2 -marm -fno-dwarf2-cfi-asm -fno-omit-frame-pointer -mapcs -mno-sched-prolog -fstack-protector -mabi=aapcs-linux -mno-thumb-interwork -D__LINUX_ARM_ARCH__=7 -march=armv7-a -msoft-float -Uarm -Wframe-larger-than=4096 -Wno-unused-but-set-variable -fno-omit-frame-pointer -fno-optimize-sibling-calls -Wdeclaration-after-statement -Wno-pointer-sign -fno-strict-overflow -fconserve-stack -DCC_HAVE_ASM_GOTO -I/home/linaro/Desktop/peak-linux-driver-7.10/driver -DDEBUG -DMODVERSIONS -DNO -DUSB_SUPPORT -DNO -DNO_PCIEC_SUPPORT -DNO -DNO -DNO -DNO -DNO_RT  -DMODULE  -D"KBUILD_STR(s)=#s" -D"KBUILD_BASENAME=KBUILD_STR(pcan_sja1000)"  -D"KBUILD_MODNAME=KBUILD_STR(pcan)" -c -o /home/linaro/Desktop/peak-linux-driver-7.10/driver/src/.tmp_pcan_sja1000.o /home/linaro/Desktop/peak-linux-driver-7.10/driver/src/pcan_sja1000.c
  gcc -Wp,-MD,/home/linaro/Desktop/peak-linux-driver-7.10/driver/src/.pcan_common.o.d  -nostdinc -isystem /usr/lib/gcc/arm-linux-gnueabihf/4.7/include -I/home/linaro/linux-sunxi/arch/arm/include -Iarch/arm/include/generated -Iinclude  -include /home/linaro/linux-sunxi/include/linux/kconfig.h -D__KERNEL__ -mlittle-endian -Iarch/arm/mach-sun7i/include -Iarch/arm/plat-sunxi/include -Wall -Wundef -Wstrict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common -Werror-implicit-function-declaration -Wno-format-security -fno-delete-null-pointer-checks -O2 -marm -fno-dwarf2-cfi-asm -fno-omit-frame-pointer -mapcs -mno-sched-prolog -fstack-protector -mabi=aapcs-linux -mno-thumb-interwork -D__LINUX_ARM_ARCH__=7 -march=armv7-a -msoft-float -Uarm -Wframe-larger-than=4096 -Wno-unused-but-set-variable -fno-omit-frame-pointer -fno-optimize-sibling-calls -Wdeclaration-after-statement -Wno-pointer-sign -fno-strict-overflow -fconserve-stack -DCC_HAVE_ASM_GOTO -I/home/linaro/Desktop/peak-linux-driver-7.10/driver -DDEBUG -DMODVERSIONS -DNO -DUSB_SUPPORT -DNO -DNO_PCIEC_SUPPORT -DNO -DNO -DNO -DNO -DNO_RT  -DMODULE  -D"KBUILD_STR(s)=#s" -D"KBUILD_BASENAME=KBUILD_STR(pcan_common)"  -D"KBUILD_MODNAME=KBUILD_STR(pcan)" -c -o /home/linaro/Desktop/peak-linux-driver-7.10/driver/src/.tmp_pcan_common.o /home/linaro/Desktop/peak-linux-driver-7.10/driver/src/pcan_common.c
  gcc -Wp,-MD,/home/linaro/Desktop/peak-linux-driver-7.10/driver/src/.pcan_usb_core.o.d  -nostdinc -isystem /usr/lib/gcc/arm-linux-gnueabihf/4.7/include -I/home/linaro/linux-sunxi/arch/arm/include -Iarch/arm/include/generated -Iinclude  -include /home/linaro/linux-sunxi/include/linux/kconfig.h -D__KERNEL__ -mlittle-endian -Iarch/arm/mach-sun7i/include -Iarch/arm/plat-sunxi/include -Wall -Wundef -Wstrict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common -Werror-implicit-function-declaration -Wno-format-security -fno-delete-null-pointer-checks -O2 -marm -fno-dwarf2-cfi-asm -fno-omit-frame-pointer -mapcs -mno-sched-prolog -fstack-protector -mabi=aapcs-linux -mno-thumb-interwork -D__LINUX_ARM_ARCH__=7 -march=armv7-a -msoft-float -Uarm -Wframe-larger-than=4096 -Wno-unused-but-set-variable -fno-omit-frame-pointer -fno-optimize-sibling-calls -Wdeclaration-after-statement -Wno-pointer-sign -fno-strict-overflow -fconserve-stack -DCC_HAVE_ASM_GOTO -I/home/linaro/Desktop/peak-linux-driver-7.10/driver -DDEBUG -DMODVERSIONS -DNO -DUSB_SUPPORT -DNO -DNO_PCIEC_SUPPORT -DNO -DNO -DNO -DNO -DNO_RT  -DMODULE  -D"KBUILD_STR(s)=#s" -D"KBUILD_BASENAME=KBUILD_STR(pcan_usb_core)"  -D"KBUILD_MODNAME=KBUILD_STR(pcan)" -c -o /home/linaro/Desktop/peak-linux-driver-7.10/driver/src/.tmp_pcan_usb_core.o /home/linaro/Desktop/peak-linux-driver-7.10/driver/src/pcan_usb_core.c
  gcc -Wp,-MD,/home/linaro/Desktop/peak-linux-driver-7.10/driver/src/.pcan_usb.o.d  -nostdinc -isystem /usr/lib/gcc/arm-linux-gnueabihf/4.7/include -I/home/linaro/linux-sunxi/arch/arm/include -Iarch/arm/include/generated -Iinclude  -include /home/linaro/linux-sunxi/include/linux/kconfig.h -D__KERNEL__ -mlittle-endian -Iarch/arm/mach-sun7i/include -Iarch/arm/plat-sunxi/include -Wall -Wundef -Wstrict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common -Werror-implicit-function-declaration -Wno-format-security -fno-delete-null-pointer-checks -O2 -marm -fno-dwarf2-cfi-asm -fno-omit-frame-pointer -mapcs -mno-sched-prolog -fstack-protector -mabi=aapcs-linux -mno-thumb-interwork -D__LINUX_ARM_ARCH__=7 -march=armv7-a -msoft-float -Uarm -Wframe-larger-than=4096 -Wno-unused-but-set-variable -fno-omit-frame-pointer -fno-optimize-sibling-calls -Wdeclaration-after-statement -Wno-pointer-sign -fno-strict-overflow -fconserve-stack -DCC_HAVE_ASM_GOTO -I/home/linaro/Desktop/peak-linux-driver-7.10/driver -DDEBUG -DMODVERSIONS -DNO -DUSB_SUPPORT -DNO -DNO_PCIEC_SUPPORT -DNO -DNO -DNO -DNO -DNO_RT  -DMODULE  -D"KBUILD_STR(s)=#s" -D"KBUILD_BASENAME=KBUILD_STR(pcan_usb)"  -D"KBUILD_MODNAME=KBUILD_STR(pcan)" -c -o /home/linaro/Desktop/peak-linux-driver-7.10/driver/src/.tmp_pcan_usb.o /home/linaro/Desktop/peak-linux-driver-7.10/driver/src/pcan_usb.c
  gcc -Wp,-MD,/home/linaro/Desktop/peak-linux-driver-7.10/driver/src/.pcan_usbpro.o.d  -nostdinc -isystem /usr/lib/gcc/arm-linux-gnueabihf/4.7/include -I/home/linaro/linux-sunxi/arch/arm/include -Iarch/arm/include/generated -Iinclude  -include /home/linaro/linux-sunxi/include/linux/kconfig.h -D__KERNEL__ -mlittle-endian -Iarch/arm/mach-sun7i/include -Iarch/arm/plat-sunxi/include -Wall -Wundef -Wstrict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common -Werror-implicit-function-declaration -Wno-format-security -fno-delete-null-pointer-checks -O2 -marm -fno-dwarf2-cfi-asm -fno-omit-frame-pointer -mapcs -mno-sched-prolog -fstack-protector -mabi=aapcs-linux -mno-thumb-interwork -D__LINUX_ARM_ARCH__=7 -march=armv7-a -msoft-float -Uarm -Wframe-larger-than=4096 -Wno-unused-but-set-variable -fno-omit-frame-pointer -fno-optimize-sibling-calls -Wdeclaration-after-statement -Wno-pointer-sign -fno-strict-overflow -fconserve-stack -DCC_HAVE_ASM_GOTO -I/home/linaro/Desktop/peak-linux-driver-7.10/driver -DDEBUG -DMODVERSIONS -DNO -DUSB_SUPPORT -DNO -DNO_PCIEC_SUPPORT -DNO -DNO -DNO -DNO -DNO_RT  -DMODULE  -D"KBUILD_STR(s)=#s" -D"KBUILD_BASENAME=KBUILD_STR(pcan_usbpro)"  -D"KBUILD_MODNAME=KBUILD_STR(pcan)" -c -o /home/linaro/Desktop/peak-linux-driver-7.10/driver/src/.tmp_pcan_usbpro.o /home/linaro/Desktop/peak-linux-driver-7.10/driver/src/pcan_usbpro.c
  gcc -Wp,-MD,/home/linaro/Desktop/peak-linux-driver-7.10/driver/src/.pcan_timing.o.d  -nostdinc -isystem /usr/lib/gcc/arm-linux-gnueabihf/4.7/include -I/home/linaro/linux-sunxi/arch/arm/include -Iarch/arm/include/generated -Iinclude  -include /home/linaro/linux-sunxi/include/linux/kconfig.h -D__KERNEL__ -mlittle-endian -Iarch/arm/mach-sun7i/include -Iarch/arm/plat-sunxi/include -Wall -Wundef -Wstrict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common -Werror-implicit-function-declaration -Wno-format-security -fno-delete-null-pointer-checks -O2 -marm -fno-dwarf2-cfi-asm -fno-omit-frame-pointer -mapcs -mno-sched-prolog -fstack-protector -mabi=aapcs-linux -mno-thumb-interwork -D__LINUX_ARM_ARCH__=7 -march=armv7-a -msoft-float -Uarm -Wframe-larger-than=4096 -Wno-unused-but-set-variable -fno-omit-frame-pointer -fno-optimize-sibling-calls -Wdeclaration-after-statement -Wno-pointer-sign -fno-strict-overflow -fconserve-stack -DCC_HAVE_ASM_GOTO -I/home/linaro/Desktop/peak-linux-driver-7.10/driver -DDEBUG -DMODVERSIONS -DNO -DUSB_SUPPORT -DNO -DNO_PCIEC_SUPPORT -DNO -DNO -DNO -DNO -DNO_RT  -DMODULE  -D"KBUILD_STR(s)=#s" -D"KBUILD_BASENAME=KBUILD_STR(pcan_timing)"  -D"KBUILD_MODNAME=KBUILD_STR(pcan)" -c -o /home/linaro/Desktop/peak-linux-driver-7.10/driver/src/.tmp_pcan_timing.o /home/linaro/Desktop/peak-linux-driver-7.10/driver/src/pcan_timing.c
  ld -EL    -r -o /home/linaro/Desktop/peak-linux-driver-7.10/driver/pcan.o /home/linaro/Desktop/peak-linux-driver-7.10/driver/src/pcan_main.o /home/linaro/Desktop/peak-linux-driver-7.10/driver/src/pcan_fops.o /home/linaro/Desktop/peak-linux-driver-7.10/driver/src/pcan_fifo.o /home/linaro/Desktop/peak-linux-driver-7.10/driver/src/pcan_filter.o /home/linaro/Desktop/peak-linux-driver-7.10/driver/src/pcan_parse.o /home/linaro/Desktop/peak-linux-driver-7.10/driver/src/pcan_sja1000.o /home/linaro/Desktop/peak-linux-driver-7.10/driver/src/pcan_common.o /home/linaro/Desktop/peak-linux-driver-7.10/driver/src/pcan_usb_core.o /home/linaro/Desktop/peak-linux-driver-7.10/driver/src/pcan_usb.o /home/linaro/Desktop/peak-linux-driver-7.10/driver/src/pcan_usbpro.o /home/linaro/Desktop/peak-linux-driver-7.10/driver/src/pcan_timing.o 
(cat /dev/null;   echo kernel//home/linaro/Desktop/peak-linux-driver-7.10/driver/pcan.ko;) > /home/linaro/Desktop/peak-linux-driver-7.10/driver/modules.order
make -f /home/linaro/linux-sunxi/scripts/Makefile.modpost
  scripts/mod/modpost -m  -i /home/linaro/linux-sunxi/Module.symvers -I /home/linaro/Desktop/peak-linux-driver-7.10/driver/Module.symvers  -o /home/linaro/Desktop/peak-linux-driver-7.10/driver/Module.symvers -S -w  -s
  gcc -Wp,-MD,/home/linaro/Desktop/peak-linux-driver-7.10/driver/.pcan.mod.o.d  -nostdinc -isystem /usr/lib/gcc/arm-linux-gnueabihf/4.7/include -I/home/linaro/linux-sunxi/arch/arm/include -Iarch/arm/include/generated -Iinclude  -include /home/linaro/linux-sunxi/include/linux/kconfig.h -D__KERNEL__ -mlittle-endian -Iarch/arm/mach-sun7i/include -Iarch/arm/plat-sunxi/include -Wall -Wundef -Wstrict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common -Werror-implicit-function-declaration -Wno-format-security -fno-delete-null-pointer-checks -O2 -marm -fno-dwarf2-cfi-asm -fno-omit-frame-pointer -mapcs -mno-sched-prolog -fstack-protector -mabi=aapcs-linux -mno-thumb-interwork -D__LINUX_ARM_ARCH__=7 -march=armv7-a -msoft-float -Uarm -Wframe-larger-than=4096 -Wno-unused-but-set-variable -fno-omit-frame-pointer -fno-optimize-sibling-calls -Wdeclaration-after-statement -Wno-pointer-sign -fno-strict-overflow -fconserve-stack -DCC_HAVE_ASM_GOTO -I/home/linaro/Desktop/peak-linux-driver-7.10/driver -DDEBUG -DMODVERSIONS -DNO -DUSB_SUPPORT -DNO -DNO_PCIEC_SUPPORT -DNO -DNO -DNO -DNO -DNO_RT  -D"KBUILD_STR(s)=#s" -D"KBUILD_BASENAME=KBUILD_STR(pcan.mod)"  -D"KBUILD_MODNAME=KBUILD_STR(pcan)" -DMODULE  -c -o /home/linaro/Desktop/peak-linux-driver-7.10/driver/pcan.mod.o /home/linaro/Desktop/peak-linux-driver-7.10/driver/pcan.mod.c
  ld -EL -r  -T /home/linaro/linux-sunxi/scripts/module-common.lds --build-id  -o /home/linaro/Desktop/peak-linux-driver-7.10/driver/pcan.ko /home/linaro/Desktop/peak-linux-driver-7.10/driver/pcan.o /home/linaro/Desktop/peak-linux-driver-7.10/driver/pcan.mod.o
make[1]: Leaving directory `/home/linaro/linux-sunxi'
regards

M.Maidhof
Support
Support
Posts: 1753
Joined: Wed 22. Sep 2010, 14:00

Re: PCAN on cubietruck driver installation issues

Post by M.Maidhof » Wed 19. Mar 2014, 10:34

please see Raspberry PI thread, there you will see how to "insmod" our driver:

http://www.peak-system.com/forum/viewto ... t=10#p2015

regards

Michael

compauer
Posts: 11
Joined: Tue 4. Mar 2014, 11:05

Re: PCAN on cubietruck driver installation issues

Post by compauer » Wed 19. Mar 2014, 11:30

M.Maidhof wrote:please see Raspberry PI thread, there you will see how to "insmod" our driver:

http://www.peak-system.com/forum/viewto ... t=10#p2015

regards

Michael
Thank you for your advice.
That's what I get by typing "insmod pcan.ko" in /driver

Code: Select all

insmod: error inserting 'pcan.ko': -1 Invalid module format
regards

M.Maidhof
Support
Support
Posts: 1753
Joined: Wed 22. Sep 2010, 14:00

Re: PCAN on cubietruck driver installation issues

Post by M.Maidhof » Wed 19. Mar 2014, 11:59

looks like the driver was builded with kernel headers, which doesn´t fit to your installed kernel version.

regards

Michael

Post Reply