PCAN on cubietruck driver installation issues
Re: PCAN on cubietruck driver installation issues
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
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
- S.Grosjean
- Software Development
- Posts: 358
- Joined: Wed 4. Jul 2012, 17:02
Re: PCAN on cubietruck driver installation issues
This is *NOT* normal ! You should get the path to the Kernel sources, that is something like: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
***
/lib/modules/3.4.79/build
(for example).
Moreover, your Make command confirms the Kernel sources directory issue:
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!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
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
Re: PCAN on cubietruck driver installation issues
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.
This is what I get in the peak-linux-driver directory:
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
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'
Re: PCAN on cubietruck driver installation issues
Hi,
do you see a pcan.ko in the /driver directory?
regards
Michael
do you see a pcan.ko in the /driver directory?
regards
Michael
Re: PCAN on cubietruck driver installation issues
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
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
Re: PCAN on cubietruck driver installation issues
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.
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.
Re: PCAN on cubietruck driver installation issues
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?
regards
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'
Re: PCAN on cubietruck driver installation issues
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
http://www.peak-system.com/forum/viewto ... t=10#p2015
regards
Michael
Re: PCAN on cubietruck driver installation issues
Thank you for your advice.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
That's what I get by typing "insmod pcan.ko" in /driver
Code: Select all
insmod: error inserting 'pcan.ko': -1 Invalid module format
Re: PCAN on cubietruck driver installation issues
looks like the driver was builded with kernel headers, which doesn´t fit to your installed kernel version.
regards
Michael
regards
Michael