Hi Michael,
Am new here, but I have finally my peak pcan-usb interface working on raspberry. There were some strange issues. Hope it helps with further driver development.
I use already
peak-linux-driver-7.8 on xubuntu desktop with kernel (
3.2.0-57-generic) without any problem, so I wasn't expecting any troubles on raspberry.
My raspberry comes with raspbian (uname -r =>
3.10.25+ ) but there are no linux-headers for this kernel,
which cause that the make was unable to locate the
version.h file.
I updated linux-image and linux-headers to version
3.10-3-rpi. After that I get strange error from make file:
arithmetic expression: expecting EOF: "3*10000+3.10-3-rpi*100+3.10-3-rpi"
Code: Select all
make clean
/bin/sh: 1: arithmetic expression: expecting EOF: "3*10000+3.10-3-rpi*100+3.10-3-rpi"
make[1]: Entering directory `/home/pi/Downloads/peak-linux-driver-7.10/driver'
rm -f src/*o src/*~ src/.*cmd *o *ko *~ .*cmd pcan.mod.c
make[1]: Leaving directory `/home/pi/Downloads/peak-linux-driver-7.10/driver'
make[1]: Entering directory `/home/pi/Downloads/peak-linux-driver-7.10/lib'
rm -f src/*~ src/*.o *~ *.so.*
make[1]: Leaving directory `/home/pi/Downloads/peak-linux-driver-7.10/lib'
make[1]: Entering directory `/home/pi/Downloads/peak-linux-driver-7.10/test'
rm -f src/*~ src/*.o *~ receivetest transmitest bitratetest filtertest pcan-settings
make[1]: Leaving directory `/home/pi/Downloads/peak-linux-driver-7.10/test'
Code: Select all
make NET=NO PCI=NO PAR=NO ISA=NO PCC=NO DNG=NO DBG=DEBUG
/bin/sh: 1: arithmetic expression: expecting EOF: "3*10000+3.10-3-rpi*100+3.10-3-rpi"
make[1]: Entering directory `/home/pi/Downloads/peak-linux-driver-7.10/driver'
make[1]: *** No rule to make target `depend'. Stop.
make[1]: Leaving directory `/home/pi/Downloads/peak-linux-driver-7.10/driver'
/bin/sh: 1: arithmetic expression: expecting EOF: "3*10000+3.10-3-rpi*100+3.10-3-rpi"
make[1]: Entering directory `/home/pi/Downloads/peak-linux-driver-7.10/driver'
***
*** Host machine kernel version=3.10-3-rpi
*** Driver kernel version=3.10-3-rpi
*** Path to kernel sources=/lib/modules/3.10-3-rpi/build
*** use KBUILD=yes
***
make -C /lib/modules/3.10-3-rpi/build SUBDIRS=/home/pi/Downloads/peak-linux-driver-7.10/driver EXTRA_CFLAGS="-I/home/pi/Downloads/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[2]: Entering directory `/usr/src/linux-headers-3.10-3-rpi'
make -C /usr/src/linux-headers-3.10-3-rpi \
KBUILD_SRC=/usr/src/linux-headers-3.10-3-common \
KBUILD_EXTMOD="/home/pi/Downloads/peak-linux-driver-7.10/driver" -f /usr/src/linux-headers-3.10-3-common/Makefile \
modules
test -e include/generated/autoconf.h -a -e include/config/auto.conf || ( \
echo >&2; \
echo >&2 " ERROR: Kernel configuration is invalid."; \
echo >&2 " include/generated/autoconf.h or include/config/auto.conf are missing.";\
echo >&2 " Run 'make oldconfig && make prepare' on kernel src to fix it."; \
echo >&2 ; \
/bin/false)
mkdir -p /home/pi/Downloads/peak-linux-driver-7.10/driver/.tmp_versions ; rm -f /home/pi/Downloads/peak-linux-driver-7.10/driver/.tmp_versions/*
make -f /usr/src/linux-headers-3.10-3-common/scripts/Makefile.build obj=/home/pi/Downloads/peak-linux-driver-7.10/driver
/bin/sh: 1: arithmetic expression: expecting EOF: "3*10000+3.10-3-rpi*100+3.10-3-rpi"
gcc-4.7 -Wp,-MD,/home/pi/Downloads/peak-linux-driver-7.10/driver/src/.pcan_main.o.d -nostdinc -isystem /usr/lib/gcc/arm-linux-gnueabihf/4.7/include -I/usr/src/linux-headers-3.10-3-common/arch/arm/include -Iarch/arm/include/generated -I/usr/src/linux-headers-3.10-3-common/include -Iinclude -I/usr/src/linux-headers-3.10-3-common/arch/arm/include/uapi -Iarch/arm/include/generated/uapi -I/usr/src/linux-headers-3.10-3-common/include/uapi -Iinclude/generated/uapi -include /usr/src/linux-headers-3.10-3-common/include/linux/kconfig.h -I/home/pi/Downloads/peak-linux-driver-7.10/driver -D__KERNEL__ -mlittle-endian -I/usr/src/linux-headers-3.10-3-common/arch/arm/mach-bcm2708/include -Wall -Wundef -Wstrict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common -Werror-implicit-function-declaration -Wno-format-security -fno-delete-null-pointer-checks -Os -Wno-maybe-uninitialized -fno-dwarf2-cfi-asm -mabi=aapcs-linux -mno-thumb-interwork -funwind-tables -marm -D__LINUX_ARM_ARCH__=6 -march=armv6 -mtune=arm1136j-s -msoft-float -Uarm -Wframe-larger-than=1024 -fno-stack-protector -Wno-unused-but-set-variable -fomit-frame-pointer -Wdeclaration-after-statement -Wno-pointer-sign -fno-strict-overflow -fconserve-stack -DCC_HAVE_ASM_GOTO -I/home/pi/Downloads/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/pi/Downloads/peak-linux-driver-7.10/driver/src/.tmp_pcan_main.o /home/pi/Downloads/peak-linux-driver-7.10/driver/src/pcan_main.c
gcc-4.7 -Wp,-MD,/home/pi/Downloads/peak-linux-driver-7.10/driver/src/.pcan_fops.o.d -nostdinc -isystem /usr/lib/gcc/arm-linux-gnueabihf/4.7/include -I/usr/src/linux-headers-3.10-3-common/arch/arm/include -Iarch/arm/include/generated -I/usr/src/linux-headers-3.10-3-common/include -Iinclude -I/usr/src/linux-headers-3.10-3-common/arch/arm/include/uapi -Iarch/arm/include/generated/uapi -I/usr/src/linux-headers-3.10-3-common/include/uapi -Iinclude/generated/uapi -include /usr/src/linux-headers-3.10-3-common/include/linux/kconfig.h -I/home/pi/Downloads/peak-linux-driver-7.10/driver -D__KERNEL__ -mlittle-endian -I/usr/src/linux-headers-3.10-3-common/arch/arm/mach-bcm2708/include -Wall -Wundef -Wstrict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common -Werror-implicit-function-declaration -Wno-format-security -fno-delete-null-pointer-checks -Os -Wno-maybe-uninitialized -fno-dwarf2-cfi-asm -mabi=aapcs-linux -mno-thumb-interwork -funwind-tables -marm -D__LINUX_ARM_ARCH__=6 -march=armv6 -mtune=arm1136j-s -msoft-float -Uarm -Wframe-larger-than=1024 -fno-stack-protector -Wno-unused-but-set-variable -fomit-frame-pointer -Wdeclaration-after-statement -Wno-pointer-sign -fno-strict-overflow -fconserve-stack -DCC_HAVE_ASM_GOTO -I/home/pi/Downloads/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/pi/Downloads/peak-linux-driver-7.10/driver/src/.tmp_pcan_fops.o /home/pi/Downloads/peak-linux-driver-7.10/driver/src/pcan_fops.c
gcc-4.7 -Wp,-MD,/home/pi/Downloads/peak-linux-driver-7.10/driver/src/.pcan_fifo.o.d -nostdinc -isystem /usr/lib/gcc/arm-linux-gnueabihf/4.7/include -I/usr/src/linux-headers-3.10-3-common/arch/arm/include -Iarch/arm/include/generated -I/usr/src/linux-headers-3.10-3-common/include -Iinclude -I/usr/src/linux-headers-3.10-3-common/arch/arm/include/uapi -Iarch/arm/include/generated/uapi -I/usr/src/linux-headers-3.10-3-common/include/uapi -Iinclude/generated/uapi -include /usr/src/linux-headers-3.10-3-common/include/linux/kconfig.h -I/home/pi/Downloads/peak-linux-driver-7.10/driver -D__KERNEL__ -mlittle-endian -I/usr/src/linux-headers-3.10-3-common/arch/arm/mach-bcm2708/include -Wall -Wundef -Wstrict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common -Werror-implicit-function-declaration -Wno-format-security -fno-delete-null-pointer-checks -Os -Wno-maybe-uninitialized -fno-dwarf2-cfi-asm -mabi=aapcs-linux -mno-thumb-interwork -funwind-tables -marm -D__LINUX_ARM_ARCH__=6 -march=armv6 -mtune=arm1136j-s -msoft-float -Uarm -Wframe-larger-than=1024 -fno-stack-protector -Wno-unused-but-set-variable -fomit-frame-pointer -Wdeclaration-after-statement -Wno-pointer-sign -fno-strict-overflow -fconserve-stack -DCC_HAVE_ASM_GOTO -I/home/pi/Downloads/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/pi/Downloads/peak-linux-driver-7.10/driver/src/.tmp_pcan_fifo.o /home/pi/Downloads/peak-linux-driver-7.10/driver/src/pcan_fifo.c
gcc-4.7 -Wp,-MD,/home/pi/Downloads/peak-linux-driver-7.10/driver/src/.pcan_filter.o.d -nostdinc -isystem /usr/lib/gcc/arm-linux-gnueabihf/4.7/include -I/usr/src/linux-headers-3.10-3-common/arch/arm/include -Iarch/arm/include/generated -I/usr/src/linux-headers-3.10-3-common/include -Iinclude -I/usr/src/linux-headers-3.10-3-common/arch/arm/include/uapi -Iarch/arm/include/generated/uapi -I/usr/src/linux-headers-3.10-3-common/include/uapi -Iinclude/generated/uapi -include /usr/src/linux-headers-3.10-3-common/include/linux/kconfig.h -I/home/pi/Downloads/peak-linux-driver-7.10/driver -D__KERNEL__ -mlittle-endian -I/usr/src/linux-headers-3.10-3-common/arch/arm/mach-bcm2708/include -Wall -Wundef -Wstrict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common -Werror-implicit-function-declaration -Wno-format-security -fno-delete-null-pointer-checks -Os -Wno-maybe-uninitialized -fno-dwarf2-cfi-asm -mabi=aapcs-linux -mno-thumb-interwork -funwind-tables -marm -D__LINUX_ARM_ARCH__=6 -march=armv6 -mtune=arm1136j-s -msoft-float -Uarm -Wframe-larger-than=1024 -fno-stack-protector -Wno-unused-but-set-variable -fomit-frame-pointer -Wdeclaration-after-statement -Wno-pointer-sign -fno-strict-overflow -fconserve-stack -DCC_HAVE_ASM_GOTO -I/home/pi/Downloads/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/pi/Downloads/peak-linux-driver-7.10/driver/src/.tmp_pcan_filter.o /home/pi/Downloads/peak-linux-driver-7.10/driver/src/pcan_filter.c
gcc-4.7 -Wp,-MD,/home/pi/Downloads/peak-linux-driver-7.10/driver/src/.pcan_parse.o.d -nostdinc -isystem /usr/lib/gcc/arm-linux-gnueabihf/4.7/include -I/usr/src/linux-headers-3.10-3-common/arch/arm/include -Iarch/arm/include/generated -I/usr/src/linux-headers-3.10-3-common/include -Iinclude -I/usr/src/linux-headers-3.10-3-common/arch/arm/include/uapi -Iarch/arm/include/generated/uapi -I/usr/src/linux-headers-3.10-3-common/include/uapi -Iinclude/generated/uapi -include /usr/src/linux-headers-3.10-3-common/include/linux/kconfig.h -I/home/pi/Downloads/peak-linux-driver-7.10/driver -D__KERNEL__ -mlittle-endian -I/usr/src/linux-headers-3.10-3-common/arch/arm/mach-bcm2708/include -Wall -Wundef -Wstrict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common -Werror-implicit-function-declaration -Wno-format-security -fno-delete-null-pointer-checks -Os -Wno-maybe-uninitialized -fno-dwarf2-cfi-asm -mabi=aapcs-linux -mno-thumb-interwork -funwind-tables -marm -D__LINUX_ARM_ARCH__=6 -march=armv6 -mtune=arm1136j-s -msoft-float -Uarm -Wframe-larger-than=1024 -fno-stack-protector -Wno-unused-but-set-variable -fomit-frame-pointer -Wdeclaration-after-statement -Wno-pointer-sign -fno-strict-overflow -fconserve-stack -DCC_HAVE_ASM_GOTO -I/home/pi/Downloads/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/pi/Downloads/peak-linux-driver-7.10/driver/src/.tmp_pcan_parse.o /home/pi/Downloads/peak-linux-driver-7.10/driver/src/pcan_parse.c
gcc-4.7 -Wp,-MD,/home/pi/Downloads/peak-linux-driver-7.10/driver/src/.pcan_sja1000.o.d -nostdinc -isystem /usr/lib/gcc/arm-linux-gnueabihf/4.7/include -I/usr/src/linux-headers-3.10-3-common/arch/arm/include -Iarch/arm/include/generated -I/usr/src/linux-headers-3.10-3-common/include -Iinclude -I/usr/src/linux-headers-3.10-3-common/arch/arm/include/uapi -Iarch/arm/include/generated/uapi -I/usr/src/linux-headers-3.10-3-common/include/uapi -Iinclude/generated/uapi -include /usr/src/linux-headers-3.10-3-common/include/linux/kconfig.h -I/home/pi/Downloads/peak-linux-driver-7.10/driver -D__KERNEL__ -mlittle-endian -I/usr/src/linux-headers-3.10-3-common/arch/arm/mach-bcm2708/include -Wall -Wundef -Wstrict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common -Werror-implicit-function-declaration -Wno-format-security -fno-delete-null-pointer-checks -Os -Wno-maybe-uninitialized -fno-dwarf2-cfi-asm -mabi=aapcs-linux -mno-thumb-interwork -funwind-tables -marm -D__LINUX_ARM_ARCH__=6 -march=armv6 -mtune=arm1136j-s -msoft-float -Uarm -Wframe-larger-than=1024 -fno-stack-protector -Wno-unused-but-set-variable -fomit-frame-pointer -Wdeclaration-after-statement -Wno-pointer-sign -fno-strict-overflow -fconserve-stack -DCC_HAVE_ASM_GOTO -I/home/pi/Downloads/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/pi/Downloads/peak-linux-driver-7.10/driver/src/.tmp_pcan_sja1000.o /home/pi/Downloads/peak-linux-driver-7.10/driver/src/pcan_sja1000.c
gcc-4.7 -Wp,-MD,/home/pi/Downloads/peak-linux-driver-7.10/driver/src/.pcan_common.o.d -nostdinc -isystem /usr/lib/gcc/arm-linux-gnueabihf/4.7/include -I/usr/src/linux-headers-3.10-3-common/arch/arm/include -Iarch/arm/include/generated -I/usr/src/linux-headers-3.10-3-common/include -Iinclude -I/usr/src/linux-headers-3.10-3-common/arch/arm/include/uapi -Iarch/arm/include/generated/uapi -I/usr/src/linux-headers-3.10-3-common/include/uapi -Iinclude/generated/uapi -include /usr/src/linux-headers-3.10-3-common/include/linux/kconfig.h -I/home/pi/Downloads/peak-linux-driver-7.10/driver -D__KERNEL__ -mlittle-endian -I/usr/src/linux-headers-3.10-3-common/arch/arm/mach-bcm2708/include -Wall -Wundef -Wstrict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common -Werror-implicit-function-declaration -Wno-format-security -fno-delete-null-pointer-checks -Os -Wno-maybe-uninitialized -fno-dwarf2-cfi-asm -mabi=aapcs-linux -mno-thumb-interwork -funwind-tables -marm -D__LINUX_ARM_ARCH__=6 -march=armv6 -mtune=arm1136j-s -msoft-float -Uarm -Wframe-larger-than=1024 -fno-stack-protector -Wno-unused-but-set-variable -fomit-frame-pointer -Wdeclaration-after-statement -Wno-pointer-sign -fno-strict-overflow -fconserve-stack -DCC_HAVE_ASM_GOTO -I/home/pi/Downloads/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/pi/Downloads/peak-linux-driver-7.10/driver/src/.tmp_pcan_common.o /home/pi/Downloads/peak-linux-driver-7.10/driver/src/pcan_common.c
gcc-4.7 -Wp,-MD,/home/pi/Downloads/peak-linux-driver-7.10/driver/src/.pcan_usb_core.o.d -nostdinc -isystem /usr/lib/gcc/arm-linux-gnueabihf/4.7/include -I/usr/src/linux-headers-3.10-3-common/arch/arm/include -Iarch/arm/include/generated -I/usr/src/linux-headers-3.10-3-common/include -Iinclude -I/usr/src/linux-headers-3.10-3-common/arch/arm/include/uapi -Iarch/arm/include/generated/uapi -I/usr/src/linux-headers-3.10-3-common/include/uapi -Iinclude/generated/uapi -include /usr/src/linux-headers-3.10-3-common/include/linux/kconfig.h -I/home/pi/Downloads/peak-linux-driver-7.10/driver -D__KERNEL__ -mlittle-endian -I/usr/src/linux-headers-3.10-3-common/arch/arm/mach-bcm2708/include -Wall -Wundef -Wstrict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common -Werror-implicit-function-declaration -Wno-format-security -fno-delete-null-pointer-checks -Os -Wno-maybe-uninitialized -fno-dwarf2-cfi-asm -mabi=aapcs-linux -mno-thumb-interwork -funwind-tables -marm -D__LINUX_ARM_ARCH__=6 -march=armv6 -mtune=arm1136j-s -msoft-float -Uarm -Wframe-larger-than=1024 -fno-stack-protector -Wno-unused-but-set-variable -fomit-frame-pointer -Wdeclaration-after-statement -Wno-pointer-sign -fno-strict-overflow -fconserve-stack -DCC_HAVE_ASM_GOTO -I/home/pi/Downloads/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/pi/Downloads/peak-linux-driver-7.10/driver/src/.tmp_pcan_usb_core.o /home/pi/Downloads/peak-linux-driver-7.10/driver/src/pcan_usb_core.c
gcc-4.7 -Wp,-MD,/home/pi/Downloads/peak-linux-driver-7.10/driver/src/.pcan_usb.o.d -nostdinc -isystem /usr/lib/gcc/arm-linux-gnueabihf/4.7/include -I/usr/src/linux-headers-3.10-3-common/arch/arm/include -Iarch/arm/include/generated -I/usr/src/linux-headers-3.10-3-common/include -Iinclude -I/usr/src/linux-headers-3.10-3-common/arch/arm/include/uapi -Iarch/arm/include/generated/uapi -I/usr/src/linux-headers-3.10-3-common/include/uapi -Iinclude/generated/uapi -include /usr/src/linux-headers-3.10-3-common/include/linux/kconfig.h -I/home/pi/Downloads/peak-linux-driver-7.10/driver -D__KERNEL__ -mlittle-endian -I/usr/src/linux-headers-3.10-3-common/arch/arm/mach-bcm2708/include -Wall -Wundef -Wstrict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common -Werror-implicit-function-declaration -Wno-format-security -fno-delete-null-pointer-checks -Os -Wno-maybe-uninitialized -fno-dwarf2-cfi-asm -mabi=aapcs-linux -mno-thumb-interwork -funwind-tables -marm -D__LINUX_ARM_ARCH__=6 -march=armv6 -mtune=arm1136j-s -msoft-float -Uarm -Wframe-larger-than=1024 -fno-stack-protector -Wno-unused-but-set-variable -fomit-frame-pointer -Wdeclaration-after-statement -Wno-pointer-sign -fno-strict-overflow -fconserve-stack -DCC_HAVE_ASM_GOTO -I/home/pi/Downloads/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/pi/Downloads/peak-linux-driver-7.10/driver/src/.tmp_pcan_usb.o /home/pi/Downloads/peak-linux-driver-7.10/driver/src/pcan_usb.c
gcc-4.7 -Wp,-MD,/home/pi/Downloads/peak-linux-driver-7.10/driver/src/.pcan_usbpro.o.d -nostdinc -isystem /usr/lib/gcc/arm-linux-gnueabihf/4.7/include -I/usr/src/linux-headers-3.10-3-common/arch/arm/include -Iarch/arm/include/generated -I/usr/src/linux-headers-3.10-3-common/include -Iinclude -I/usr/src/linux-headers-3.10-3-common/arch/arm/include/uapi -Iarch/arm/include/generated/uapi -I/usr/src/linux-headers-3.10-3-common/include/uapi -Iinclude/generated/uapi -include /usr/src/linux-headers-3.10-3-common/include/linux/kconfig.h -I/home/pi/Downloads/peak-linux-driver-7.10/driver -D__KERNEL__ -mlittle-endian -I/usr/src/linux-headers-3.10-3-common/arch/arm/mach-bcm2708/include -Wall -Wundef -Wstrict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common -Werror-implicit-function-declaration -Wno-format-security -fno-delete-null-pointer-checks -Os -Wno-maybe-uninitialized -fno-dwarf2-cfi-asm -mabi=aapcs-linux -mno-thumb-interwork -funwind-tables -marm -D__LINUX_ARM_ARCH__=6 -march=armv6 -mtune=arm1136j-s -msoft-float -Uarm -Wframe-larger-than=1024 -fno-stack-protector -Wno-unused-but-set-variable -fomit-frame-pointer -Wdeclaration-after-statement -Wno-pointer-sign -fno-strict-overflow -fconserve-stack -DCC_HAVE_ASM_GOTO -I/home/pi/Downloads/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/pi/Downloads/peak-linux-driver-7.10/driver/src/.tmp_pcan_usbpro.o /home/pi/Downloads/peak-linux-driver-7.10/driver/src/pcan_usbpro.c
gcc-4.7 -Wp,-MD,/home/pi/Downloads/peak-linux-driver-7.10/driver/src/.pcan_timing.o.d -nostdinc -isystem /usr/lib/gcc/arm-linux-gnueabihf/4.7/include -I/usr/src/linux-headers-3.10-3-common/arch/arm/include -Iarch/arm/include/generated -I/usr/src/linux-headers-3.10-3-common/include -Iinclude -I/usr/src/linux-headers-3.10-3-common/arch/arm/include/uapi -Iarch/arm/include/generated/uapi -I/usr/src/linux-headers-3.10-3-common/include/uapi -Iinclude/generated/uapi -include /usr/src/linux-headers-3.10-3-common/include/linux/kconfig.h -I/home/pi/Downloads/peak-linux-driver-7.10/driver -D__KERNEL__ -mlittle-endian -I/usr/src/linux-headers-3.10-3-common/arch/arm/mach-bcm2708/include -Wall -Wundef -Wstrict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common -Werror-implicit-function-declaration -Wno-format-security -fno-delete-null-pointer-checks -Os -Wno-maybe-uninitialized -fno-dwarf2-cfi-asm -mabi=aapcs-linux -mno-thumb-interwork -funwind-tables -marm -D__LINUX_ARM_ARCH__=6 -march=armv6 -mtune=arm1136j-s -msoft-float -Uarm -Wframe-larger-than=1024 -fno-stack-protector -Wno-unused-but-set-variable -fomit-frame-pointer -Wdeclaration-after-statement -Wno-pointer-sign -fno-strict-overflow -fconserve-stack -DCC_HAVE_ASM_GOTO -I/home/pi/Downloads/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/pi/Downloads/peak-linux-driver-7.10/driver/src/.tmp_pcan_timing.o /home/pi/Downloads/peak-linux-driver-7.10/driver/src/pcan_timing.c
ld -EL -r -o /home/pi/Downloads/peak-linux-driver-7.10/driver/pcan.o /home/pi/Downloads/peak-linux-driver-7.10/driver/src/pcan_main.o /home/pi/Downloads/peak-linux-driver-7.10/driver/src/pcan_fops.o /home/pi/Downloads/peak-linux-driver-7.10/driver/src/pcan_fifo.o /home/pi/Downloads/peak-linux-driver-7.10/driver/src/pcan_filter.o /home/pi/Downloads/peak-linux-driver-7.10/driver/src/pcan_parse.o /home/pi/Downloads/peak-linux-driver-7.10/driver/src/pcan_sja1000.o /home/pi/Downloads/peak-linux-driver-7.10/driver/src/pcan_common.o /home/pi/Downloads/peak-linux-driver-7.10/driver/src/pcan_usb_core.o /home/pi/Downloads/peak-linux-driver-7.10/driver/src/pcan_usb.o /home/pi/Downloads/peak-linux-driver-7.10/driver/src/pcan_usbpro.o /home/pi/Downloads/peak-linux-driver-7.10/driver/src/pcan_timing.o
(cat /dev/null; echo kernel//home/pi/Downloads/peak-linux-driver-7.10/driver/pcan.ko;) > /home/pi/Downloads/peak-linux-driver-7.10/driver/modules.order
make -f /usr/src/linux-headers-3.10-3-common/scripts/Makefile.modpost
/bin/sh: 1: arithmetic expression: expecting EOF: "3*10000+3.10-3-rpi*100+3.10-3-rpi"
find /home/pi/Downloads/peak-linux-driver-7.10/driver/.tmp_versions -name '*.mod' | xargs -r grep -h '\.ko$' | sort -u | sed 's/\.ko$/.o/' | scripts/mod/modpost -m -i /usr/src/linux-headers-3.10-3-rpi/Module.symvers -I /home/pi/Downloads/peak-linux-driver-7.10/driver/Module.symvers -o /home/pi/Downloads/peak-linux-driver-7.10/driver/Module.symvers -S -w -s -T -
gcc-4.7 -Wp,-MD,/home/pi/Downloads/peak-linux-driver-7.10/driver/.pcan.mod.o.d -nostdinc -isystem /usr/lib/gcc/arm-linux-gnueabihf/4.7/include -I/usr/src/linux-headers-3.10-3-common/arch/arm/include -Iarch/arm/include/generated -I/usr/src/linux-headers-3.10-3-common/include -Iinclude -I/usr/src/linux-headers-3.10-3-common/arch/arm/include/uapi -Iarch/arm/include/generated/uapi -I/usr/src/linux-headers-3.10-3-common/include/uapi -Iinclude/generated/uapi -include /usr/src/linux-headers-3.10-3-common/include/linux/kconfig.h -I/home/pi/Downloads/peak-linux-driver-7.10/driver -D__KERNEL__ -mlittle-endian -I/usr/src/linux-headers-3.10-3-common/arch/arm/mach-bcm2708/include -Wall -Wundef -Wstrict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common -Werror-implicit-function-declaration -Wno-format-security -fno-delete-null-pointer-checks -Os -Wno-maybe-uninitialized -fno-dwarf2-cfi-asm -mabi=aapcs-linux -mno-thumb-interwork -funwind-tables -marm -D__LINUX_ARM_ARCH__=6 -march=armv6 -mtune=arm1136j-s -msoft-float -Uarm -Wframe-larger-than=1024 -fno-stack-protector -Wno-unused-but-set-variable -fomit-frame-pointer -Wdeclaration-after-statement -Wno-pointer-sign -fno-strict-overflow -fconserve-stack -DCC_HAVE_ASM_GOTO -I/home/pi/Downloads/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/pi/Downloads/peak-linux-driver-7.10/driver/pcan.mod.o /home/pi/Downloads/peak-linux-driver-7.10/driver/pcan.mod.c
ld -EL -r -T /usr/src/linux-headers-3.10-3-common/scripts/module-common.lds --build-id -o /home/pi/Downloads/peak-linux-driver-7.10/driver/pcan.ko /home/pi/Downloads/peak-linux-driver-7.10/driver/pcan.o /home/pi/Downloads/peak-linux-driver-7.10/driver/pcan.mod.o
make[2]: Leaving directory `/usr/src/linux-headers-3.10-3-rpi'
make[1]: Leaving directory `/home/pi/Downloads/peak-linux-driver-7.10/driver'
make[1]: Entering directory `/home/pi/Downloads/peak-linux-driver-7.10/lib'
# ln -sf ../driver/pcan.h pcan.h
cc src/libpcan.c -fPIC -shared -O2 -Wall -Wl,-soname,libpcan.so.0 -lc -I. -I../driver -DNO_RT -o libpcan.so.0.6
ln -sf libpcan.so.0.6 libpcan.so
make[1]: Leaving directory `/home/pi/Downloads/peak-linux-driver-7.10/lib'
make[1]: Entering directory `/home/pi/Downloads/peak-linux-driver-7.10/test'
cc src/receivetest.c src/common.c -g -I. -I../lib -I../driver -L../lib -L/lib -L/usr/lib -L/usr/local/lib -o receivetest -lpcan -DNO_RT
cc src/transmitest.cpp src/common.c src/parser.cpp -g -I. -I../lib -I../driver -L../lib -L/lib -L/usr/lib -L/usr/local/lib -o transmitest -lpcan -lstdc++ -DNO_RT
cc src/bitratetest.c src/common.c -g -I. -I../lib -I../driver -L../lib -L/lib -L/usr/lib -L/usr/local/lib -o bitratetest -lpcan -DNO_RT
cc src/filtertest.cpp src/common.c -g -I. -I../lib -I../driver -L../lib -L/lib -L/usr/lib -L/usr/local/lib -o filtertest -lpcan -lstdc++ -DNO_RT
cc src/pcan-settings.c -g -I. -I../lib -I../driver -L../lib -L/lib -L/usr/lib -L/usr/local/lib -o pcan-settings -lpopt -g
make[1]: Leaving directory `/home/pi/Downloads/peak-linux-driver-7.10/test'
make install works without error but the device not.
As a final experiment I downloaded kernel
3.2.0-4-rpi (linux-image-3.2.0-4-rpi @ linux-headers-3.2.0-4-rpi),
after that the installation of peak-pcan-driver works without any problems (I tried both 7.8. and 7.10).
I gues there can be a problem with the kernel name ?
It is possible that the make file is wrong when to try to parse the kernel version from name
3.10-3-rpi ?
(in comparison with
3.2.0-4-rpi)
Anyway, pcan-usb is a great device (I use also win version, it is great too), thank you that you develop it:-)
Regards,
Stan