Page 1 of 16

PEAK-Linux Driver on Raspberry Pi

Posted: Mon 26. Mar 2012, 16:06
by thaberkern
Has anyone tried to compile and use the driver on a raspberry pi (http://www.raspberrypi.org)?

It contains a ARM11 CPU (Broadcom BCM2835). Fedora Linux is running well on this "machines"

Re: PEAK-Linux Driver on Raspberry Pi

Posted: Tue 27. Mar 2012, 09:47
by M.Maidhof
Hi,

which CAN hardware from PEAK do you like to use on such a board? Do you already own such a board, or do you want to check upfront if it will be possible or not?

best regards

Michael

Re: PEAK-Linux Driver on Raspberry Pi

Posted: Tue 27. Mar 2012, 10:09
by thaberkern
I was thinking about using PCAN-USB Adapter. I'm not owning a Raspberry Pi at the moment. I was hoping to get some info first before buying the adapter an the Pi :)

If there is a chance to get it running I would buy both and invest some time to test.

Re: PEAK-Linux Driver on Raspberry Pi

Posted: Tue 27. Mar 2012, 15:18
by M.Maidhof
Hi,

unfortunately we never heard about that board before. But when it has a USB host and the kernel source is available, I see no problem to use the PCAN-USB on an ARM device with our Linux driver. Some other users already used our linux drivers on different ARM based systems in the past (BeagleBoeard etc.)

regards

Michael

Re: PEAK-Linux Driver on Raspberry Pi

Posted: Fri 7. Dec 2012, 09:28
by nagilode
Hi,

I tried to compile the driver 7.7 on a raspberry without success.

Code: Select all

Linux raspberrypi 3.2.27+ #250 PREEMPT Thu Oct 18 19:03:02 BST 2012 armv6l GNU/Linux
gcc (Debian 4.6.3-12+rpi1) 4.6.3
Copyright (C) 2011 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE

The compilation process showed:

Code: Select all

root@raspberrypi:~/peak-linux-driver-7.7# make KERNEL_LOCATION=/usr/src/linux PCC=NO_PCCARD_SUPPORT ISA=NO_ISA_SUPPORT PCI=NO_PCI_SUPPORT PCIEC=NO_PCIEC_SUPPORT PAR=NO_PARPORT_SUBSYSTEM VERBOSE=1
make[1]: Entering directory `/root/peak-linux-driver-7.7/driver'
make[1]: *** No rule to make target `depend'.  Stop.
make[1]: Leaving directory `/root/peak-linux-driver-7.7/driver'
make[1]: Entering directory `/root/peak-linux-driver-7.7/driver'
***
*** Host machine kernel version=3.2.27+
*** Driver kernel version=3.2.21
*** Path to kernel sources=/usr/src/linux
*** use KBUILD=yes
***
make -C /usr/src/linux SUBDIRS=/root/peak-linux-driver-7.7/driver        EXTRA_CFLAGS="-I/root/peak-linux-driver-7.7/driver        -DNO_DEBUG -DMODVERSIONS -DNO_PARPORT_SUBSYSTEM -DUSB_SUPPORT -DNO_PCI_SUPPORT -DNO_PCIEC_SUPPORT -DNO_ISA_SUPPORT -DDONGLE_SUPPORT -DNO_PCCARD_SUPPORT -DNETDEV_SUPPORT -DNO_RT " V=1 modules
make[2]: Entering directory `/usr/src/linux-source-3.2'
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 /root/peak-linux-driver-7.7/driver/.tmp_versions ; rm -f /root/peak-linux-driver-7.7/driver/.tmp_versions/*

  WARNING: Symbol version dump /usr/src/linux-source-3.2/Module.symvers
           is missing; modules will have no dependencies and modversions.

make -f scripts/Makefile.build obj=/root/peak-linux-driver-7.7/driver
  gcc -Wp,-MD,/root/peak-linux-driver-7.7/driver/src/.pcan_main.o.d  -nostdinc -isystem /usr/lib/gcc/arm-linux-gnueabihf/4.6/include -I/usr/src/linux-source-3.2/arch/arm/include -Iarch/arm/include/generated -Iinclude  -include /usr/src/linux-source-3.2/include/linux/kconfig.h -D__KERNEL__ -mlittle-endian -Iarch/arm/mach-versatile/include -Iarch/arm/plat-versatile/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 -mabi=apcs-gnu -mno-thumb-interwork -D__LINUX_ARM_ARCH__=5 -march=armv5te -mtune=arm9tdmi -msoft-float -Uarm -Wframe-larger-than=1024 -fno-stack-protector -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/root/peak-linux-driver-7.7/driver -DNO_DEBUG -DMODVERSIONS -DNO_PARPORT_SUBSYSTEM -DUSB_SUPPORT -DNO_PCI_SUPPORT -DNO_PCIEC_SUPPORT -DNO_ISA_SUPPORT -DDONGLE_SUPPORT -DNO_PCCARD_SUPPORT -DNETDEV_SUPPORT -DNO_RT  -DMODULE  -D"KBUILD_STR(s)=#s" -D"KBUILD_BASENAME=KBUILD_STR(pcan_main)"  -D"KBUILD_MODNAME=KBUILD_STR(pcan)" -c -o /root/peak-linux-driver-7.7/driver/src/pcan_main.o /root/peak-linux-driver-7.7/driver/src/pcan_main.c
  gcc -Wp,-MD,/root/peak-linux-driver-7.7/driver/src/.pcan_fops.o.d  -nostdinc -isystem /usr/lib/gcc/arm-linux-gnueabihf/4.6/include -I/usr/src/linux-source-3.2/arch/arm/include -Iarch/arm/include/generated -Iinclude  -include /usr/src/linux-source-3.2/include/linux/kconfig.h -D__KERNEL__ -mlittle-endian -Iarch/arm/mach-versatile/include -Iarch/arm/plat-versatile/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 -mabi=apcs-gnu -mno-thumb-interwork -D__LINUX_ARM_ARCH__=5 -march=armv5te -mtune=arm9tdmi -msoft-float -Uarm -Wframe-larger-than=1024 -fno-stack-protector -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/root/peak-linux-driver-7.7/driver -DNO_DEBUG -DMODVERSIONS -DNO_PARPORT_SUBSYSTEM -DUSB_SUPPORT -DNO_PCI_SUPPORT -DNO_PCIEC_SUPPORT -DNO_ISA_SUPPORT -DDONGLE_SUPPORT -DNO_PCCARD_SUPPORT -DNETDEV_SUPPORT -DNO_RT  -DMODULE  -D"KBUILD_STR(s)=#s" -D"KBUILD_BASENAME=KBUILD_STR(pcan_fops)"  -D"KBUILD_MODNAME=KBUILD_STR(pcan)" -c -o /root/peak-linux-driver-7.7/driver/src/pcan_fops.o /root/peak-linux-driver-7.7/driver/src/pcan_fops.c
  gcc -Wp,-MD,/root/peak-linux-driver-7.7/driver/src/.pcan_usb_core.o.d  -nostdinc -isystem /usr/lib/gcc/arm-linux-gnueabihf/4.6/include -I/usr/src/linux-source-3.2/arch/arm/include -Iarch/arm/include/generated -Iinclude  -include /usr/src/linux-source-3.2/include/linux/kconfig.h -D__KERNEL__ -mlittle-endian -Iarch/arm/mach-versatile/include -Iarch/arm/plat-versatile/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 -mabi=apcs-gnu -mno-thumb-interwork -D__LINUX_ARM_ARCH__=5 -march=armv5te -mtune=arm9tdmi -msoft-float -Uarm -Wframe-larger-than=1024 -fno-stack-protector -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/root/peak-linux-driver-7.7/driver -DNO_DEBUG -DMODVERSIONS -DNO_PARPORT_SUBSYSTEM -DUSB_SUPPORT -DNO_PCI_SUPPORT -DNO_PCIEC_SUPPORT -DNO_ISA_SUPPORT -DDONGLE_SUPPORT -DNO_PCCARD_SUPPORT -DNETDEV_SUPPORT -DNO_RT  -DMODULE  -D"KBUILD_STR(s)=#s" -D"KBUILD_BASENAME=KBUILD_STR(pcan_usb_core)"  -D"KBUILD_MODNAME=KBUILD_STR(pcan)" -c -o /root/peak-linux-driver-7.7/driver/src/pcan_usb_core.o /root/peak-linux-driver-7.7/driver/src/pcan_usb_core.c
In file included from /root/peak-linux-driver-7.7/driver/src/pcan_usb_core.c:57:0:
/root/peak-linux-driver-7.7/driver/src/pcan_usbpro.h:69:29: warning: âstruct pcan_usb_interfaceâ declared inside parameter list [enabled by default]
/root/peak-linux-driver-7.7/driver/src/pcan_usbpro.h:69:29: warning: its scope is only this definition or declaration, which is probably not what you want [enabled by default]
/root/peak-linux-driver-7.7/driver/src/pcan_usb_core.c: In function âpcan_usb_write_notifyâ:
/root/peak-linux-driver-7.7/driver/src/pcan_usb_core.c:146:47: error: âunion <anonymous>â has no member named âusbâ
/root/peak-linux-driver-7.7/driver/src/pcan_usb_core.c:156:2: error: dereferencing pointer to incomplete type
/root/peak-linux-driver-7.7/driver/src/pcan_usb_core.c: In function âpcan_usb_read_notifyâ:
/root/peak-linux-driver-7.7/driver/src/pcan_usb_core.c:198:31: error: dereferencing pointer to incomplete type
/root/peak-linux-driver-7.7/driver/src/pcan_usb_core.c:206:2: error: dereferencing pointer to incomplete type
/root/peak-linux-driver-7.7/driver/src/pcan_usb_core.c:216:33: error: dereferencing pointer to incomplete type
/root/peak-linux-driver-7.7/driver/src/pcan_usb_core.c:218:4: error: dereferencing pointer to incomplete type
/root/peak-linux-driver-7.7/driver/src/pcan_usb_core.c:218:4: error: dereferencing pointer to incomplete type
/root/peak-linux-driver-7.7/driver/src/pcan_usb_core.c:218:4: error: dereferencing pointer to incomplete type
/root/peak-linux-driver-7.7/driver/src/pcan_usb_core.c:218:4: error: dereferencing pointer to incomplete type
/root/peak-linux-driver-7.7/driver/src/pcan_usb_core.c:218:4: error: dereferencing pointer to incomplete type
/root/peak-linux-driver-7.7/driver/src/pcan_usb_core.c:226:4: error: dereferencing pointer to incomplete type
/root/peak-linux-driver-7.7/driver/src/pcan_usb_core.c:226:4: error: dereferencing pointer to incomplete type
/root/peak-linux-driver-7.7/driver/src/pcan_usb_core.c:226:4: error: dereferencing pointer to incomplete type
/root/peak-linux-driver-7.7/driver/src/pcan_usb_core.c:226:4: error: dereferencing pointer to incomplete type
/root/peak-linux-driver-7.7/driver/src/pcan_usb_core.c:226:4: error: dereferencing pointer to incomplete type
/root/peak-linux-driver-7.7/driver/src/pcan_usb_core.c:243:4: error: dereferencing pointer to incomplete type
/root/peak-linux-driver-7.7/driver/src/pcan_usb_core.c:257:16: error: dereferencing pointer to incomplete type
/root/peak-linux-driver-7.7/driver/src/pcan_usb_core.c:259:42: error: dereferencing pointer to incomplete type
/root/peak-linux-driver-7.7/driver/src/pcan_usb_core.c:271:30: error: dereferencing pointer to incomplete type
/root/peak-linux-driver-7.7/driver/src/pcan_usb_core.c:272:30: error: dereferencing pointer to incomplete type
/root/peak-linux-driver-7.7/driver/src/pcan_usb_core.c: In function âpcan_usb_writeâ:
/root/peak-linux-driver-7.7/driver/src/pcan_usb_core.c:298:2: error: unknown type name âUSB_PORTâ
/root/peak-linux-driver-7.7/driver/src/pcan_usb_core.c:298:26: error: âunion <anonymous>â has no member named âusbâ
/root/peak-linux-driver-7.7/driver/src/pcan_usb_core.c:299:39: error: request for member âusb_ifâ in something not a structure or union
/root/peak-linux-driver-7.7/driver/src/pcan_usb_core.c:302:32: error: request for member âwrite_buffer_addrâ in something not a structure or union
/root/peak-linux-driver-7.7/driver/src/pcan_usb_core.c:313:49: error: request for member âwrite_buffer_sizeâ in something not a structure or union
/root/peak-linux-driver-7.7/driver/src/pcan_usb_core.c:315:24: error: request for member âwrite_packet_sizeâ in something not a structure or union
/root/peak-linux-driver-7.7/driver/src/pcan_usb_core.c:316:15: error: dereferencing pointer to incomplete type
/root/peak-linux-driver-7.7/driver/src/pcan_usb_core.c:343:25: error: request for member âwrite_packet_sizeâ in something not a structure or union
/root/peak-linux-driver-7.7/driver/src/pcan_usb_core.c:344:25: error: request for member âwrite_packet_sizeâ in something not a structure or union
/root/peak-linux-driver-7.7/driver/src/pcan_usb_core.c:354:3: error: request for member âwrite_dataâ in something not a structure or union
/root/peak-linux-driver-7.7/driver/src/pcan_usb_core.c:354:3: error: dereferencing pointer to incomplete type
/root/peak-linux-driver-7.7/driver/src/pcan_usb_core.c:354:3: error: dereferencing pointer to incomplete type
/root/peak-linux-driver-7.7/driver/src/pcan_usb_core.c:354:3: error: request for member âpipe_writeâ in something not a structure or union
/root/peak-linux-driver-7.7/driver/src/pcan_usb_core.c:354:3: error: request for member âwrite_buffer_addrâ in something not a structure or union
/root/peak-linux-driver-7.7/driver/src/pcan_usb_core.c:360:14: error: request for member âwrite_dataâ in something not a structure or union
/root/peak-linux-driver-7.7/driver/src/pcan_usb_core.c:370:4: error: dereferencing pointer to incomplete type
/root/peak-linux-driver-7.7/driver/src/pcan_usb_core.c: At top level:
/root/peak-linux-driver-7.7/driver/src/pcan_usb_core.c:427:47: warning: âstruct pcan_usb_interfaceâ declared inside parameter list [enabled by default]
/root/peak-linux-driver-7.7/driver/src/pcan_usb_core.c: In function âpcan_usb_allocate_resourcesâ:
/root/peak-linux-driver-7.7/driver/src/pcan_usb_core.c:430:2: error: unknown type name âUSB_PORTâ
/root/peak-linux-driver-7.7/driver/src/pcan_usb_core.c:437:22: error: dereferencing pointer to incomplete type
/root/peak-linux-driver-7.7/driver/src/pcan_usb_core.c:438:22: error: dereferencing pointer to incomplete type
/root/peak-linux-driver-7.7/driver/src/pcan_usb_core.c:442:16: error: dereferencing pointer to incomplete type
/root/peak-linux-driver-7.7/driver/src/pcan_usb_core.c:452:13: error: dereferencing pointer to incomplete type
/root/peak-linux-driver-7.7/driver/src/pcan_usb_core.c:454:10: error: dereferencing pointer to incomplete type
/root/peak-linux-driver-7.7/driver/src/pcan_usb_core.c:455:10: error: dereferencing pointer to incomplete type
/root/peak-linux-driver-7.7/driver/src/pcan_usb_core.c:456:13: error: dereferencing pointer to incomplete type
/root/peak-linux-driver-7.7/driver/src/pcan_usb_core.c:460:10: error: dereferencing pointer to incomplete type
/root/peak-linux-driver-7.7/driver/src/pcan_usb_core.c:461:10: error: dereferencing pointer to incomplete type
/root/peak-linux-driver-7.7/driver/src/pcan_usb_core.c:462:13: error: dereferencing pointer to incomplete type
/root/peak-linux-driver-7.7/driver/src/pcan_usb_core.c:466:9: error: dereferencing pointer to incomplete type
/root/peak-linux-driver-7.7/driver/src/pcan_usb_core.c:475:9: error: dereferencing pointer to incomplete type
/root/peak-linux-driver-7.7/driver/src/pcan_usb_core.c:476:40: error: dereferencing pointer to incomplete type
/root/peak-linux-driver-7.7/driver/src/pcan_usb_core.c:477:9: error: dereferencing pointer to incomplete type
/root/peak-linux-driver-7.7/driver/src/pcan_usb_core.c:478:40: error: dereferencing pointer to incomplete type
/root/peak-linux-driver-7.7/driver/src/pcan_usb_core.c:485:13: error: dereferencing pointer to incomplete type
/root/peak-linux-driver-7.7/driver/src/pcan_usb_core.c:487:10: error: dereferencing pointer to incomplete type
/root/peak-linux-driver-7.7/driver/src/pcan_usb_core.c:488:10: error: dereferencing pointer to incomplete type
/root/peak-linux-driver-7.7/driver/src/pcan_usb_core.c:489:10: error: dereferencing pointer to incomplete type
/root/peak-linux-driver-7.7/driver/src/pcan_usb_core.c:490:12: error: dereferencing pointer to incomplete type
/root/peak-linux-driver-7.7/driver/src/pcan_usb_core.c:494:9: error: dereferencing pointer to incomplete type
/root/peak-linux-driver-7.7/driver/src/pcan_usb_core.c:495:9: error: dereferencing pointer to incomplete type
/root/peak-linux-driver-7.7/driver/src/pcan_usb_core.c:497:9: error: dereferencing pointer to incomplete type
/root/peak-linux-driver-7.7/driver/src/pcan_usb_core.c:498:9: error: dereferencing pointer to incomplete type
/root/peak-linux-driver-7.7/driver/src/pcan_usb_core.c:502:15: error: dereferencing pointer to incomplete type
/root/peak-linux-driver-7.7/driver/src/pcan_usb_core.c:503:22: error: dereferencing pointer to incomplete type
/root/peak-linux-driver-7.7/driver/src/pcan_usb_core.c:505:17: error: âunion <anonymous>â has no member named âusbâ
/root/peak-linux-driver-7.7/driver/src/pcan_usb_core.c:507:4: error: request for member âwrite_buffer_addrâ in something not a structure or union
/root/peak-linux-driver-7.7/driver/src/pcan_usb_core.c:507:35: error: request for member âwrite_buffer_sizeâ in something not a structure or union
/root/peak-linux-driver-7.7/driver/src/pcan_usb_core.c:508:9: error: request for member âwrite_buffer_addrâ in something not a structure or union
/root/peak-linux-driver-7.7/driver/src/pcan_usb_core.c:518:18: error: request for member âwrite_dataâ in something not a structure or union
/root/peak-linux-driver-7.7/driver/src/pcan_usb_core.c:522:8: error: dereferencing pointer to incomplete type
/root/peak-linux-driver-7.7/driver/src/pcan_usb_core.c:523:42: error: dereferencing pointer to incomplete type
/root/peak-linux-driver-7.7/driver/src/pcan_usb_core.c:524:13: error: dereferencing pointer to incomplete type
/root/peak-linux-driver-7.7/driver/src/pcan_usb_core.c:533:8: error: dereferencing pointer to incomplete type
/root/peak-linux-driver-7.7/driver/src/pcan_usb_core.c:533:38: error: dereferencing pointer to incomplete type
/root/peak-linux-driver-7.7/driver/src/pcan_usb_core.c:534:38: error: dereferencing pointer to incomplete type
/root/peak-linux-driver-7.7/driver/src/pcan_usb_core.c:537:22: error: dereferencing pointer to incomplete type
/root/peak-linux-driver-7.7/driver/src/pcan_usb_core.c: In function âpcan_usb_stopâ:
/root/peak-linux-driver-7.7/driver/src/pcan_usb_core.c:599:2: error: unknown type name âUSB_PORTâ
/root/peak-linux-driver-7.7/driver/src/pcan_usb_core.c:599:26: error: âunion <anonymous>â has no member named âusbâ
/root/peak-linux-driver-7.7/driver/src/pcan_usb_core.c:600:39: error: request for member âusb_ifâ in something not a structure or union
/root/peak-linux-driver-7.7/driver/src/pcan_usb_core.c:605:12: error: dereferencing pointer to incomplete type
/root/peak-linux-driver-7.7/driver/src/pcan_usb_core.c:606:15: error: dereferencing pointer to incomplete type
/root/peak-linux-driver-7.7/driver/src/pcan_usb_core.c:608:14: error: dereferencing pointer to incomplete type
/root/peak-linux-driver-7.7/driver/src/pcan_usb_core.c:617:23: error: request for member âwrite_dataâ in something not a structure or union
/root/peak-linux-driver-7.7/driver/src/pcan_usb_core.c: In function âpcan_usb_cleanupâ:
/root/peak-linux-driver-7.7/driver/src/pcan_usb_core.c:630:2: error: unknown type name âUSB_PORTâ
/root/peak-linux-driver-7.7/driver/src/pcan_usb_core.c:630:26: error: âunion <anonymous>â has no member named âusbâ
/root/peak-linux-driver-7.7/driver/src/pcan_usb_core.c:637:10: error: request for member âwrite_buffer_addrâ in something not a structure or union
/root/peak-linux-driver-7.7/driver/src/pcan_usb_core.c: In function âpcan_usb_device_openâ:
/root/peak-linux-driver-7.7/driver/src/pcan_usb_core.c:701:2: error: unknown type name âUSB_PORTâ
/root/peak-linux-driver-7.7/driver/src/pcan_usb_core.c:701:26: error: âunion <anonymous>â has no member named âusbâ
/root/peak-linux-driver-7.7/driver/src/pcan_usb_core.c:712:19: error: request for member âusb_ifâ in something not a structure or union
/root/peak-linux-driver-7.7/driver/src/pcan_usb_core.c:715:2: error: request for member âusb_timeâ in something not a structure or union
/root/peak-linux-driver-7.7/driver/src/pcan_usb_core.c:715:2: error: âPCAN_USB_TIMEâ undeclared (first use in this function)
/root/peak-linux-driver-7.7/driver/src/pcan_usb_core.c:715:2: note: each undeclared identifier is reported only once for each function it appears in
/root/peak-linux-driver-7.7/driver/src/pcan_usb_core.c:723:14: error: request for member âusb_ifâ in something not a structure or union
/root/peak-linux-driver-7.7/driver/src/pcan_usb_core.c:739:14: error: request for member âusb_ifâ in something not a structure or union
/root/peak-linux-driver-7.7/driver/src/pcan_usb_core.c: In function âpcan_usb_device_paramsâ:
/root/peak-linux-driver-7.7/driver/src/pcan_usb_core.c:772:2: error: unknown type name âUSB_PORTâ
/root/peak-linux-driver-7.7/driver/src/pcan_usb_core.c:772:26: error: âunion <anonymous>â has no member named âusbâ
/root/peak-linux-driver-7.7/driver/src/pcan_usb_core.c:780:10: error: request for member âusb_ifâ in something not a structure or union
/root/peak-linux-driver-7.7/driver/src/pcan_usb_core.c:780:36: error: request for member âusb_ifâ in something not a structure or union
/root/peak-linux-driver-7.7/driver/src/pcan_usb_core.c:783:10: error: request for member âusb_ifâ in something not a structure or union
/root/peak-linux-driver-7.7/driver/src/pcan_usb_core.c:783:36: error: request for member âusb_ifâ in something not a structure or union
/root/peak-linux-driver-7.7/driver/src/pcan_usb_core.c:787:10: error: request for member âusb_ifâ in something not a structure or union
/root/peak-linux-driver-7.7/driver/src/pcan_usb_core.c:793:10: error: request for member âusb_ifâ in something not a structure or union
/root/peak-linux-driver-7.7/driver/src/pcan_usb_core.c:795:18: error: request for member âucHardcodedDevNrâ in something not a structure or union
/root/peak-linux-driver-7.7/driver/src/pcan_usb_core.c: At top level:
/root/peak-linux-driver-7.7/driver/src/pcan_usb_core.c:861:32: warning: âstruct pcan_usb_interfaceâ declared inside parameter list [enabled by default]
/root/peak-linux-driver-7.7/driver/src/pcan_usb_core.c: In function âpcan_usb_create_devâ:
/root/peak-linux-driver-7.7/driver/src/pcan_usb_core.c:865:37: error: dereferencing pointer to incomplete type
/root/peak-linux-driver-7.7/driver/src/pcan_usb_core.c:866:2: error: unknown type name âUSB_PORTâ
/root/peak-linux-driver-7.7/driver/src/pcan_usb_core.c:869:33: error: dereferencing pointer to incomplete type
/root/peak-linux-driver-7.7/driver/src/pcan_usb_core.c:871:16: error: âunion <anonymous>â has no member named âusbâ
/root/peak-linux-driver-7.7/driver/src/pcan_usb_core.c:872:3: error: request for member âusb_ifâ in something not a structure or union
/root/peak-linux-driver-7.7/driver/src/pcan_usb_core.c:873:3: error: request for member âdev_ctrl_indexâ in something not a structure or union
/root/peak-linux-driver-7.7/driver/src/pcan_usb_core.c:915:15: error: dereferencing pointer to incomplete type
/root/peak-linux-driver-7.7/driver/src/pcan_usb_core.c:931:29: error: dereferencing pointer to incomplete type
/root/peak-linux-driver-7.7/driver/src/pcan_usb_core.c:935:8: error: dereferencing pointer to incomplete type
/root/peak-linux-driver-7.7/driver/src/pcan_usb_core.c:936:36: error: dereferencing pointer to incomplete type
/root/peak-linux-driver-7.7/driver/src/pcan_usb_core.c:941:26: error: dereferencing pointer to incomplete type
/root/peak-linux-driver-7.7/driver/src/pcan_usb_core.c:945:22: error: dereferencing pointer to incomplete type
/root/peak-linux-driver-7.7/driver/src/pcan_usb_core.c:949:8: error: dereferencing pointer to incomplete type
/root/peak-linux-driver-7.7/driver/src/pcan_usb_core.c:952:8: error: dereferencing pointer to incomplete type
/root/peak-linux-driver-7.7/driver/src/pcan_usb_core.c:952:40: error: dereferencing pointer to incomplete type
/root/peak-linux-driver-7.7/driver/src/pcan_usb_core.c:959:15: error: dereferencing pointer to incomplete type
/root/peak-linux-driver-7.7/driver/src/pcan_usb_core.c:962:5: error: request for member âucHardcodedDevNrâ in something not a structure or union
/root/peak-linux-driver-7.7/driver/src/pcan_usb_core.c:968:12: error: dereferencing pointer to incomplete type
/root/peak-linux-driver-7.7/driver/src/pcan_usb_core.c:970:15: error: dereferencing pointer to incomplete type
/root/peak-linux-driver-7.7/driver/src/pcan_usb_core.c: In function âpcan_usb_pluginâ:
/root/peak-linux-driver-7.7/driver/src/pcan_usb_core.c:1068:15: warning: assignment from incompatible pointer type [enabled by default]
/root/peak-linux-driver-7.7/driver/src/pcan_usb_core.c:1075:17: error: âpcan_usb_initâ undeclared (first use in this function)
/root/peak-linux-driver-7.7/driver/src/pcan_usb_core.c:1084:21: error: invalid application of âsizeofâ to incomplete type âstruct pcan_usb_interfaceâ 
/root/peak-linux-driver-7.7/driver/src/pcan_usb_core.c:1097:8: error: dereferencing pointer to incomplete type
/root/peak-linux-driver-7.7/driver/src/pcan_usb_core.c:1098:8: error: dereferencing pointer to incomplete type
/root/peak-linux-driver-7.7/driver/src/pcan_usb_core.c:1099:8: error: dereferencing pointer to incomplete type
/root/peak-linux-driver-7.7/driver/src/pcan_usb_core.c:1102:2: error: dereferencing pointer to incomplete type
/root/peak-linux-driver-7.7/driver/src/pcan_usb_core.c:1103:2: error: dereferencing pointer to incomplete type
/root/peak-linux-driver-7.7/driver/src/pcan_usb_core.c:1106:2: error: dereferencing pointer to incomplete type
/root/peak-linux-driver-7.7/driver/src/pcan_usb_core.c:1108:2: error: dereferencing pointer to incomplete type
/root/peak-linux-driver-7.7/driver/src/pcan_usb_core.c:1132:3: error: unknown type name âPCAN_ENDPOINTâ
/root/peak-linux-driver-7.7/driver/src/pcan_usb_core.c:1143:23: error: dereferencing pointer to incomplete type
/root/peak-linux-driver-7.7/driver/src/pcan_usb_core.c:1147:23: error: dereferencing pointer to incomplete type
/root/peak-linux-driver-7.7/driver/src/pcan_usb_core.c:1158:24: error: dereferencing pointer to incomplete type
/root/peak-linux-driver-7.7/driver/src/pcan_usb_core.c:1164:23: error: dereferencing pointer to incomplete type
/root/peak-linux-driver-7.7/driver/src/pcan_usb_core.c:1172:24: error: dereferencing pointer to incomplete type
/root/peak-linux-driver-7.7/driver/src/pcan_usb_core.c:1189:13: error: request for member âucNumberâ in something not a structure or union
/root/peak-linux-driver-7.7/driver/src/pcan_usb_core.c:1190:13: error: request for member âwDataSzâ in something not a structure or union
/root/peak-linux-driver-7.7/driver/src/pcan_usb_core.c:1200:8: error: dereferencing pointer to incomplete type
/root/peak-linux-driver-7.7/driver/src/pcan_usb_core.c:1200:45: error: dereferencing pointer to incomplete type
/root/peak-linux-driver-7.7/driver/src/pcan_usb_core.c:1201:8: error: dereferencing pointer to incomplete type
/root/peak-linux-driver-7.7/driver/src/pcan_usb_core.c:1201:39: error: dereferencing pointer to incomplete type
/root/peak-linux-driver-7.7/driver/src/pcan_usb_core.c:1211:2: warning: passing argument 1 of âpcan_usb_allocate_resourcesâ from incompatible pointer type [enabled by default]
/root/peak-linux-driver-7.7/driver/src/pcan_usb_core.c:427:12: note: expected âstruct pcan_usb_interface *â but argument is of type âstruct pcan_usb_interface *â
/root/peak-linux-driver-7.7/driver/src/pcan_usb_core.c:1220:7: error: dereferencing pointer to incomplete type
/root/peak-linux-driver-7.7/driver/src/pcan_usb_core.c:1222:3: error: dereferencing pointer to incomplete type
/root/peak-linux-driver-7.7/driver/src/pcan_usb_core.c:1222:3: error: dereferencing pointer to incomplete type
/root/peak-linux-driver-7.7/driver/src/pcan_usb_core.c:1222:3: error: dereferencing pointer to incomplete type
/root/peak-linux-driver-7.7/driver/src/pcan_usb_core.c:1222:3: error: dereferencing pointer to incomplete type
/root/peak-linux-driver-7.7/driver/src/pcan_usb_core.c:1222:3: error: dereferencing pointer to incomplete type
/root/peak-linux-driver-7.7/driver/src/pcan_usb_core.c:1222:3: error: dereferencing pointer to incomplete type
/root/peak-linux-driver-7.7/driver/src/pcan_usb_core.c:1229:14: error: dereferencing pointer to incomplete type
/root/peak-linux-driver-7.7/driver/src/pcan_usb_core.c:1236:3: error: dereferencing pointer to incomplete type
/root/peak-linux-driver-7.7/driver/src/pcan_usb_core.c:1240:22: error: dereferencing pointer to incomplete type
/root/peak-linux-driver-7.7/driver/src/pcan_usb_core.c:1242:3: warning: passing argument 1 of âpcan_usb_create_devâ from incompatible pointer type [enabled by default]
/root/peak-linux-driver-7.7/driver/src/pcan_usb_core.c:860:12: note: expected âstruct pcan_usb_interface *â but argument is of type âstruct pcan_usb_interface *â
/root/peak-linux-driver-7.7/driver/src/pcan_usb_core.c: In function âpcan_usb_plugoutâ:
/root/peak-linux-driver-7.7/driver/src/pcan_usb_core.c:1411:19: error: dereferencing pointer to incomplete type
/root/peak-linux-driver-7.7/driver/src/pcan_usb_core.c:1411:41: error: dereferencing pointer to incomplete type
/root/peak-linux-driver-7.7/driver/src/pcan_usb_core.c:1427:33: error: âunion <anonymous>â has no member named âusbâ
/root/peak-linux-driver-7.7/driver/src/pcan_usb_core.c:1433:29: error: dereferencing pointer to incomplete type
/root/peak-linux-driver-7.7/driver/src/pcan_usb_core.c:1434:29: error: dereferencing pointer to incomplete type
/root/peak-linux-driver-7.7/driver/src/pcan_usb_core.c:1435:29: error: dereferencing pointer to incomplete type
/root/peak-linux-driver-7.7/driver/src/pcan_usb_core.c:1437:15: error: dereferencing pointer to incomplete type
/root/peak-linux-driver-7.7/driver/src/pcan_usb_core.c:1439:13: error: dereferencing pointer to incomplete type
/root/peak-linux-driver-7.7/driver/src/pcan_usb_core.c:1440:10: error: dereferencing pointer to incomplete type
/root/peak-linux-driver-7.7/driver/src/pcan_usb_core.c:1442:26: error: dereferencing pointer to incomplete type
/root/peak-linux-driver-7.7/driver/src/pcan_usb_core.c: In function âpcan_usb_core_initâ:
/root/peak-linux-driver-7.7/driver/src/pcan_usb_core.c:1480:2: error: âstruct driverobjâ has no member named âusbdrvâ
/root/peak-linux-driver-7.7/driver/src/pcan_usb_core.c:1480:2: error: âstruct driverobjâ has no member named âusbdrvâ
/root/peak-linux-driver-7.7/driver/src/pcan_usb_core.c:1486:10: error: âstruct driverobjâ has no member named âusbdrvâ
/root/peak-linux-driver-7.7/driver/src/pcan_usb_core.c:1487:10: error: âstruct driverobjâ has no member named âusbdrvâ
/root/peak-linux-driver-7.7/driver/src/pcan_usb_core.c:1488:10: error: âstruct driverobjâ has no member named âusbdrvâ
/root/peak-linux-driver-7.7/driver/src/pcan_usb_core.c:1489:10: error: âstruct driverobjâ has no member named âusbdrvâ
/root/peak-linux-driver-7.7/driver/src/pcan_usb_core.c:1491:9: error: âstruct driverobjâ has no member named âusbdrvâ
/root/peak-linux-driver-7.7/driver/src/pcan_usb_core.c: In function âpcan_usb_do_cleanupâ:
/root/peak-linux-driver-7.7/driver/src/pcan_usb_core.c:1507:19: error: dereferencing pointer to incomplete type
/root/peak-linux-driver-7.7/driver/src/pcan_usb_core.c:1507:41: error: dereferencing pointer to incomplete type
/root/peak-linux-driver-7.7/driver/src/pcan_usb_core.c:1512:14: error: dereferencing pointer to incomplete type
/root/peak-linux-driver-7.7/driver/src/pcan_usb_core.c:1513:11: error: dereferencing pointer to incomplete type
/root/peak-linux-driver-7.7/driver/src/pcan_usb_core.c: In function âpcan_usb_deinitâ:
/root/peak-linux-driver-7.7/driver/src/pcan_usb_core.c:1523:14: error: âstruct driverobjâ has no member named âusbdrvâ
/root/peak-linux-driver-7.7/driver/src/pcan_usb_core.c:1527:45: error: âstruct driverobjâ has no member named âusbdrvâ
/root/peak-linux-driver-7.7/driver/src/pcan_usb_core.c:1541:27: error: âstruct driverobjâ has no member named âusbdrvâ
/root/peak-linux-driver-7.7/driver/src/pcan_usb_core.c: In function âpcan_usb_core_initâ:
/root/peak-linux-driver-7.7/driver/src/pcan_usb_core.c:1492:1: warning: control reaches end of non-void function [-Wreturn-type]
make[3]: *** [/root/peak-linux-driver-7.7/driver/src/pcan_usb_core.o] Error 1
make[2]: *** [_module_/root/peak-linux-driver-7.7/driver] Error 2
make[2]: Leaving directory `/usr/src/linux-source-3.2'
make[1]: *** [all] Error 2
make[1]: Leaving directory `/root/peak-linux-driver-7.7/driver'
make[1]: Entering directory `/root/peak-linux-driver-7.7/lib'
make[1]: Nothing to be done for `all'.
make[1]: Leaving directory `/root/peak-linux-driver-7.7/lib'
make[1]: Entering directory `/root/peak-linux-driver-7.7/test'
make[1]: Nothing to be done for `all'.
make[1]: Leaving directory `/root/peak-linux-driver-7.7/test'

Re: PEAK-Linux Driver on Raspberry Pi

Posted: Fri 7. Dec 2012, 16:28
by M.Maidhof
Hi,

did you modify the source of our driver?
what will lsusb show when you connect the PCAN-USB to your rhasberry Pi?

regards

Michael

Re: PEAK-Linux Driver on Raspberry Pi

Posted: Mon 10. Dec 2012, 11:01
by nagilode
Hello,

thanks for your fast reply.

I reverted all modifications, used the clean tar ball from the peak website

64872ea3a301f5097eba242886ac5484 peak-linux-driver-7.7.tar.gz

and compiled again. Same problem. (Output attached)

The usb-can adapter is ordered but not here yet so I cannot tell what lsusb would show -- I do immediately if I have the adapter.

Yours
Norbert

PS: It seems that somehow USB_SUPPORT is not defined. This would at least explain the first warning:

/root/peak-linux-driver-7.7/driver/src/pcan_usbpro.h:69:29: warning: âstruct pcan_usb_interfaceâ declared inside parameter list [enabled by default]
/root/peak-linux-driver-7.7/driver/src/pcan_usbpro.h:69:29: warning: its scope is only this definition or declaration, which is probably not what you want [enabled by default]

Code: Select all

root@raspberrypi:~/peak-linux-driver-7.7# make KERNEL_LOCATION=/root/linux/ PCC=NO_PCCARD_SUPPORT ISA=NO_ISA_SUPPORT PCI=NO_PCI_SUPPORT PCIEC=NO_PCIEC_SUPPORT PAR=NO_PARPORT_SUBSYSTEM VERBOSE=1
make[1]: Entering directory `/root/peak-linux-driver-7.7/driver'
make[1]: *** No rule to make target `depend'.  Stop.
make[1]: Leaving directory `/root/peak-linux-driver-7.7/driver'
make[1]: Entering directory `/root/peak-linux-driver-7.7/driver'
***
*** Host machine kernel version=3.2.27+
*** Driver kernel version=3.2.27-gada8b44
*** Path to kernel sources=/root/linux/
*** use KBUILD=yes
***
make -C /root/linux/ SUBDIRS=/root/peak-linux-driver-7.7/driver        EXTRA_CFLAGS="-I/root/peak-linux-driver-7.7/driver        -DNO_DEBUG -DMODVERSIONS -DNO_PARPORT_SUBSYSTEM -DUSB_SUPPORT -DNO_PCI_SUPPORT -DNO_PCIEC_SUPPORT -DNO_ISA_SUPPORT -DDONGLE_SUPPORT -DNO_PCCARD_SUPPORT -DNETDEV_SUPPORT -DNO_RT " V=1 modules
make[2]: Entering directory `/root/linux'
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 /root/peak-linux-driver-7.7/driver/.tmp_versions ; rm -f /root/peak-linux-driver-7.7/driver/.tmp_versions/*

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

make -f scripts/Makefile.build obj=/root/peak-linux-driver-7.7/driver
  gcc -Wp,-MD,/root/peak-linux-driver-7.7/driver/src/.pcan_main.o.d  -nostdinc -isystem /usr/lib/gcc/arm-linux-gnueabihf/4.6/include -I/root/linux/arch/arm/include -Iarch/arm/include/generated -Iinclude  -include /root/linux/include/linux/kconfig.h -D__KERNEL__ -mlittle-endian -Iarch/arm/mach-versatile/include -Iarch/arm/plat-versatile/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 -mabi=apcs-gnu -mno-thumb-interwork -D__LINUX_ARM_ARCH__=5 -march=armv5te -mtune=arm9tdmi -msoft-float -Uarm -Wframe-larger-than=1024 -fno-stack-protector -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/root/peak-linux-driver-7.7/driver -DNO_DEBUG -DMODVERSIONS -DNO_PARPORT_SUBSYSTEM -DUSB_SUPPORT -DNO_PCI_SUPPORT -DNO_PCIEC_SUPPORT -DNO_ISA_SUPPORT -DDONGLE_SUPPORT -DNO_PCCARD_SUPPORT -DNETDEV_SUPPORT -DNO_RT  -DMODULE  -D"KBUILD_STR(s)=#s" -D"KBUILD_BASENAME=KBUILD_STR(pcan_main)"  -D"KBUILD_MODNAME=KBUILD_STR(pcan)" -c -o /root/peak-linux-driver-7.7/driver/src/pcan_main.o /root/peak-linux-driver-7.7/driver/src/pcan_main.c
  gcc -Wp,-MD,/root/peak-linux-driver-7.7/driver/src/.pcan_fops.o.d  -nostdinc -isystem /usr/lib/gcc/arm-linux-gnueabihf/4.6/include -I/root/linux/arch/arm/include -Iarch/arm/include/generated -Iinclude  -include /root/linux/include/linux/kconfig.h -D__KERNEL__ -mlittle-endian -Iarch/arm/mach-versatile/include -Iarch/arm/plat-versatile/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 -mabi=apcs-gnu -mno-thumb-interwork -D__LINUX_ARM_ARCH__=5 -march=armv5te -mtune=arm9tdmi -msoft-float -Uarm -Wframe-larger-than=1024 -fno-stack-protector -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/root/peak-linux-driver-7.7/driver -DNO_DEBUG -DMODVERSIONS -DNO_PARPORT_SUBSYSTEM -DUSB_SUPPORT -DNO_PCI_SUPPORT -DNO_PCIEC_SUPPORT -DNO_ISA_SUPPORT -DDONGLE_SUPPORT -DNO_PCCARD_SUPPORT -DNETDEV_SUPPORT -DNO_RT  -DMODULE  -D"KBUILD_STR(s)=#s" -D"KBUILD_BASENAME=KBUILD_STR(pcan_fops)"  -D"KBUILD_MODNAME=KBUILD_STR(pcan)" -c -o /root/peak-linux-driver-7.7/driver/src/pcan_fops.o /root/peak-linux-driver-7.7/driver/src/pcan_fops.c
  gcc -Wp,-MD,/root/peak-linux-driver-7.7/driver/src/.pcan_fifo.o.d  -nostdinc -isystem /usr/lib/gcc/arm-linux-gnueabihf/4.6/include -I/root/linux/arch/arm/include -Iarch/arm/include/generated -Iinclude  -include /root/linux/include/linux/kconfig.h -D__KERNEL__ -mlittle-endian -Iarch/arm/mach-versatile/include -Iarch/arm/plat-versatile/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 -mabi=apcs-gnu -mno-thumb-interwork -D__LINUX_ARM_ARCH__=5 -march=armv5te -mtune=arm9tdmi -msoft-float -Uarm -Wframe-larger-than=1024 -fno-stack-protector -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/root/peak-linux-driver-7.7/driver -DNO_DEBUG -DMODVERSIONS -DNO_PARPORT_SUBSYSTEM -DUSB_SUPPORT -DNO_PCI_SUPPORT -DNO_PCIEC_SUPPORT -DNO_ISA_SUPPORT -DDONGLE_SUPPORT -DNO_PCCARD_SUPPORT -DNETDEV_SUPPORT -DNO_RT  -DMODULE  -D"KBUILD_STR(s)=#s" -D"KBUILD_BASENAME=KBUILD_STR(pcan_fifo)"  -D"KBUILD_MODNAME=KBUILD_STR(pcan)" -c -o /root/peak-linux-driver-7.7/driver/src/pcan_fifo.o /root/peak-linux-driver-7.7/driver/src/pcan_fifo.c
  gcc -Wp,-MD,/root/peak-linux-driver-7.7/driver/src/.pcan_filter.o.d  -nostdinc -isystem /usr/lib/gcc/arm-linux-gnueabihf/4.6/include -I/root/linux/arch/arm/include -Iarch/arm/include/generated -Iinclude  -include /root/linux/include/linux/kconfig.h -D__KERNEL__ -mlittle-endian -Iarch/arm/mach-versatile/include -Iarch/arm/plat-versatile/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 -mabi=apcs-gnu -mno-thumb-interwork -D__LINUX_ARM_ARCH__=5 -march=armv5te -mtune=arm9tdmi -msoft-float -Uarm -Wframe-larger-than=1024 -fno-stack-protector -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/root/peak-linux-driver-7.7/driver -DNO_DEBUG -DMODVERSIONS -DNO_PARPORT_SUBSYSTEM -DUSB_SUPPORT -DNO_PCI_SUPPORT -DNO_PCIEC_SUPPORT -DNO_ISA_SUPPORT -DDONGLE_SUPPORT -DNO_PCCARD_SUPPORT -DNETDEV_SUPPORT -DNO_RT  -DMODULE  -D"KBUILD_STR(s)=#s" -D"KBUILD_BASENAME=KBUILD_STR(pcan_filter)"  -D"KBUILD_MODNAME=KBUILD_STR(pcan)" -c -o /root/peak-linux-driver-7.7/driver/src/pcan_filter.o /root/peak-linux-driver-7.7/driver/src/pcan_filter.c
  gcc -Wp,-MD,/root/peak-linux-driver-7.7/driver/src/.pcan_parse.o.d  -nostdinc -isystem /usr/lib/gcc/arm-linux-gnueabihf/4.6/include -I/root/linux/arch/arm/include -Iarch/arm/include/generated -Iinclude  -include /root/linux/include/linux/kconfig.h -D__KERNEL__ -mlittle-endian -Iarch/arm/mach-versatile/include -Iarch/arm/plat-versatile/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 -mabi=apcs-gnu -mno-thumb-interwork -D__LINUX_ARM_ARCH__=5 -march=armv5te -mtune=arm9tdmi -msoft-float -Uarm -Wframe-larger-than=1024 -fno-stack-protector -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/root/peak-linux-driver-7.7/driver -DNO_DEBUG -DMODVERSIONS -DNO_PARPORT_SUBSYSTEM -DUSB_SUPPORT -DNO_PCI_SUPPORT -DNO_PCIEC_SUPPORT -DNO_ISA_SUPPORT -DDONGLE_SUPPORT -DNO_PCCARD_SUPPORT -DNETDEV_SUPPORT -DNO_RT  -DMODULE  -D"KBUILD_STR(s)=#s" -D"KBUILD_BASENAME=KBUILD_STR(pcan_parse)"  -D"KBUILD_MODNAME=KBUILD_STR(pcan)" -c -o /root/peak-linux-driver-7.7/driver/src/pcan_parse.o /root/peak-linux-driver-7.7/driver/src/pcan_parse.c
  gcc -Wp,-MD,/root/peak-linux-driver-7.7/driver/src/.pcan_sja1000.o.d  -nostdinc -isystem /usr/lib/gcc/arm-linux-gnueabihf/4.6/include -I/root/linux/arch/arm/include -Iarch/arm/include/generated -Iinclude  -include /root/linux/include/linux/kconfig.h -D__KERNEL__ -mlittle-endian -Iarch/arm/mach-versatile/include -Iarch/arm/plat-versatile/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 -mabi=apcs-gnu -mno-thumb-interwork -D__LINUX_ARM_ARCH__=5 -march=armv5te -mtune=arm9tdmi -msoft-float -Uarm -Wframe-larger-than=1024 -fno-stack-protector -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/root/peak-linux-driver-7.7/driver -DNO_DEBUG -DMODVERSIONS -DNO_PARPORT_SUBSYSTEM -DUSB_SUPPORT -DNO_PCI_SUPPORT -DNO_PCIEC_SUPPORT -DNO_ISA_SUPPORT -DDONGLE_SUPPORT -DNO_PCCARD_SUPPORT -DNETDEV_SUPPORT -DNO_RT  -DMODULE  -D"KBUILD_STR(s)=#s" -D"KBUILD_BASENAME=KBUILD_STR(pcan_sja1000)"  -D"KBUILD_MODNAME=KBUILD_STR(pcan)" -c -o /root/peak-linux-driver-7.7/driver/src/pcan_sja1000.o /root/peak-linux-driver-7.7/driver/src/pcan_sja1000.c
  gcc -Wp,-MD,/root/peak-linux-driver-7.7/driver/src/.pcan_common.o.d  -nostdinc -isystem /usr/lib/gcc/arm-linux-gnueabihf/4.6/include -I/root/linux/arch/arm/include -Iarch/arm/include/generated -Iinclude  -include /root/linux/include/linux/kconfig.h -D__KERNEL__ -mlittle-endian -Iarch/arm/mach-versatile/include -Iarch/arm/plat-versatile/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 -mabi=apcs-gnu -mno-thumb-interwork -D__LINUX_ARM_ARCH__=5 -march=armv5te -mtune=arm9tdmi -msoft-float -Uarm -Wframe-larger-than=1024 -fno-stack-protector -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/root/peak-linux-driver-7.7/driver -DNO_DEBUG -DMODVERSIONS -DNO_PARPORT_SUBSYSTEM -DUSB_SUPPORT -DNO_PCI_SUPPORT -DNO_PCIEC_SUPPORT -DNO_ISA_SUPPORT -DDONGLE_SUPPORT -DNO_PCCARD_SUPPORT -DNETDEV_SUPPORT -DNO_RT  -DMODULE  -D"KBUILD_STR(s)=#s" -D"KBUILD_BASENAME=KBUILD_STR(pcan_common)"  -D"KBUILD_MODNAME=KBUILD_STR(pcan)" -c -o /root/peak-linux-driver-7.7/driver/src/pcan_common.o /root/peak-linux-driver-7.7/driver/src/pcan_common.c
  gcc -Wp,-MD,/root/peak-linux-driver-7.7/driver/src/.pcan_dongle.o.d  -nostdinc -isystem /usr/lib/gcc/arm-linux-gnueabihf/4.6/include -I/root/linux/arch/arm/include -Iarch/arm/include/generated -Iinclude  -include /root/linux/include/linux/kconfig.h -D__KERNEL__ -mlittle-endian -Iarch/arm/mach-versatile/include -Iarch/arm/plat-versatile/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 -mabi=apcs-gnu -mno-thumb-interwork -D__LINUX_ARM_ARCH__=5 -march=armv5te -mtune=arm9tdmi -msoft-float -Uarm -Wframe-larger-than=1024 -fno-stack-protector -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/root/peak-linux-driver-7.7/driver -DNO_DEBUG -DMODVERSIONS -DNO_PARPORT_SUBSYSTEM -DUSB_SUPPORT -DNO_PCI_SUPPORT -DNO_PCIEC_SUPPORT -DNO_ISA_SUPPORT -DDONGLE_SUPPORT -DNO_PCCARD_SUPPORT -DNETDEV_SUPPORT -DNO_RT  -DMODULE  -D"KBUILD_STR(s)=#s" -D"KBUILD_BASENAME=KBUILD_STR(pcan_dongle)"  -D"KBUILD_MODNAME=KBUILD_STR(pcan)" -c -o /root/peak-linux-driver-7.7/driver/src/pcan_dongle.o /root/peak-linux-driver-7.7/driver/src/pcan_dongle.c
  gcc -Wp,-MD,/root/peak-linux-driver-7.7/driver/src/.pcan_usb_core.o.d  -nostdinc -isystem /usr/lib/gcc/arm-linux-gnueabihf/4.6/include -I/root/linux/arch/arm/include -Iarch/arm/include/generated -Iinclude  -include /root/linux/include/linux/kconfig.h -D__KERNEL__ -mlittle-endian -Iarch/arm/mach-versatile/include -Iarch/arm/plat-versatile/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 -mabi=apcs-gnu -mno-thumb-interwork -D__LINUX_ARM_ARCH__=5 -march=armv5te -mtune=arm9tdmi -msoft-float -Uarm -Wframe-larger-than=1024 -fno-stack-protector -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/root/peak-linux-driver-7.7/driver -DNO_DEBUG -DMODVERSIONS -DNO_PARPORT_SUBSYSTEM -DUSB_SUPPORT -DNO_PCI_SUPPORT -DNO_PCIEC_SUPPORT -DNO_ISA_SUPPORT -DDONGLE_SUPPORT -DNO_PCCARD_SUPPORT -DNETDEV_SUPPORT -DNO_RT  -DMODULE  -D"KBUILD_STR(s)=#s" -D"KBUILD_BASENAME=KBUILD_STR(pcan_usb_core)"  -D"KBUILD_MODNAME=KBUILD_STR(pcan)" -c -o /root/peak-linux-driver-7.7/driver/src/pcan_usb_core.o /root/peak-linux-driver-7.7/driver/src/pcan_usb_core.c
In file included from /root/peak-linux-driver-7.7/driver/src/pcan_usb_core.c:57:0:
/root/peak-linux-driver-7.7/driver/src/pcan_usbpro.h:69:29: warning: âstruct pcan_usb_interfaceâ declared inside parameter list [enabled by default]
/root/peak-linux-driver-7.7/driver/src/pcan_usbpro.h:69:29: warning: its scope is only this definition or declaration, which is probably not what you want [enabled by default]
/root/peak-linux-driver-7.7/driver/src/pcan_usb_core.c:118:16: error: âPCAN_USB_MINOR_BASEâ undeclared here (not in a function)
/root/peak-linux-driver-7.7/driver/src/pcan_usb_core.c: In function âpcan_usb_write_notifyâ:
/root/peak-linux-driver-7.7/driver/src/pcan_usb_core.c:146:47: error: âunion <anonymous>â has no member named âusbâ
/root/peak-linux-driver-7.7/driver/src/pcan_usb_core.c:156:2: error: dereferencing pointer to incomplete type
/root/peak-linux-driver-7.7/driver/src/pcan_usb_core.c: In function âpcan_usb_read_notifyâ:
/root/peak-linux-driver-7.7/driver/src/pcan_usb_core.c:198:31: error: dereferencing pointer to incomplete type
/root/peak-linux-driver-7.7/driver/src/pcan_usb_core.c:206:2: error: dereferencing pointer to incomplete type
/root/peak-linux-driver-7.7/driver/src/pcan_usb_core.c:216:33: error: dereferencing pointer to incomplete type
/root/peak-linux-driver-7.7/driver/src/pcan_usb_core.c:218:4: error: dereferencing pointer to incomplete type
/root/peak-linux-driver-7.7/driver/src/pcan_usb_core.c:218:4: error: dereferencing pointer to incomplete type
/root/peak-linux-driver-7.7/driver/src/pcan_usb_core.c:218:4: error: dereferencing pointer to incomplete type
/root/peak-linux-driver-7.7/driver/src/pcan_usb_core.c:218:4: error: dereferencing pointer to incomplete type
/root/peak-linux-driver-7.7/driver/src/pcan_usb_core.c:218:4: error: dereferencing pointer to incomplete type
/root/peak-linux-driver-7.7/driver/src/pcan_usb_core.c:226:4: error: dereferencing pointer to incomplete type
/root/peak-linux-driver-7.7/driver/src/pcan_usb_core.c:226:4: error: dereferencing pointer to incomplete type
/root/peak-linux-driver-7.7/driver/src/pcan_usb_core.c:226:4: error: dereferencing pointer to incomplete type
/root/peak-linux-driver-7.7/driver/src/pcan_usb_core.c:226:4: error: dereferencing pointer to incomplete type
/root/peak-linux-driver-7.7/driver/src/pcan_usb_core.c:226:4: error: dereferencing pointer to incomplete type
/root/peak-linux-driver-7.7/driver/src/pcan_usb_core.c:243:4: error: dereferencing pointer to incomplete type
/root/peak-linux-driver-7.7/driver/src/pcan_usb_core.c:257:16: error: dereferencing pointer to incomplete type
/root/peak-linux-driver-7.7/driver/src/pcan_usb_core.c:259:42: error: dereferencing pointer to incomplete type
/root/peak-linux-driver-7.7/driver/src/pcan_usb_core.c:271:30: error: dereferencing pointer to incomplete type
/root/peak-linux-driver-7.7/driver/src/pcan_usb_core.c:272:30: error: dereferencing pointer to incomplete type
/root/peak-linux-driver-7.7/driver/src/pcan_usb_core.c: In function âpcan_usb_writeâ:
/root/peak-linux-driver-7.7/driver/src/pcan_usb_core.c:298:2: error: unknown type name âUSB_PORTâ
/root/peak-linux-driver-7.7/driver/src/pcan_usb_core.c:298:26: error: âunion <anonymous>â has no member named âusbâ
/root/peak-linux-driver-7.7/driver/src/pcan_usb_core.c:299:39: error: request for member âusb_ifâ in something not a structure or union
/root/peak-linux-driver-7.7/driver/src/pcan_usb_core.c:302:32: error: request for member âwrite_buffer_addrâ in something not a structure or union
/root/peak-linux-driver-7.7/driver/src/pcan_usb_core.c:313:49: error: request for member âwrite_buffer_sizeâ in something not a structure or union
/root/peak-linux-driver-7.7/driver/src/pcan_usb_core.c:315:24: error: request for member âwrite_packet_sizeâ in something not a structure or union
/root/peak-linux-driver-7.7/driver/src/pcan_usb_core.c:316:15: error: dereferencing pointer to incomplete type
/root/peak-linux-driver-7.7/driver/src/pcan_usb_core.c:343:25: error: request for member âwrite_packet_sizeâ in something not a structure or union
/root/peak-linux-driver-7.7/driver/src/pcan_usb_core.c:344:25: error: request for member âwrite_packet_sizeâ in something not a structure or union
/root/peak-linux-driver-7.7/driver/src/pcan_usb_core.c:354:3: error: request for member âwrite_dataâ in something not a structure or union
/root/peak-linux-driver-7.7/driver/src/pcan_usb_core.c:354:3: error: dereferencing pointer to incomplete type
/root/peak-linux-driver-7.7/driver/src/pcan_usb_core.c:354:3: error: dereferencing pointer to incomplete type
/root/peak-linux-driver-7.7/driver/src/pcan_usb_core.c:354:3: error: request for member âpipe_writeâ in something not a structure or union
/root/peak-linux-driver-7.7/driver/src/pcan_usb_core.c:354:3: error: request for member âwrite_buffer_addrâ in something not a structure or union
/root/peak-linux-driver-7.7/driver/src/pcan_usb_core.c:360:14: error: request for member âwrite_dataâ in something not a structure or union
/root/peak-linux-driver-7.7/driver/src/pcan_usb_core.c:370:4: error: dereferencing pointer to incomplete type
/root/peak-linux-driver-7.7/driver/src/pcan_usb_core.c: At top level:
/root/peak-linux-driver-7.7/driver/src/pcan_usb_core.c:427:47: warning: âstruct pcan_usb_interfaceâ declared inside parameter list [enabled by default]
/root/peak-linux-driver-7.7/driver/src/pcan_usb_core.c: In function âpcan_usb_allocate_resourcesâ:
/root/peak-linux-driver-7.7/driver/src/pcan_usb_core.c:430:2: error: unknown type name âUSB_PORTâ
/root/peak-linux-driver-7.7/driver/src/pcan_usb_core.c:437:22: error: dereferencing pointer to incomplete type
/root/peak-linux-driver-7.7/driver/src/pcan_usb_core.c:438:22: error: dereferencing pointer to incomplete type
/root/peak-linux-driver-7.7/driver/src/pcan_usb_core.c:442:16: error: dereferencing pointer to incomplete type
/root/peak-linux-driver-7.7/driver/src/pcan_usb_core.c:452:13: error: dereferencing pointer to incomplete type
/root/peak-linux-driver-7.7/driver/src/pcan_usb_core.c:454:10: error: dereferencing pointer to incomplete type
/root/peak-linux-driver-7.7/driver/src/pcan_usb_core.c:455:10: error: dereferencing pointer to incomplete type
/root/peak-linux-driver-7.7/driver/src/pcan_usb_core.c:456:13: error: dereferencing pointer to incomplete type
/root/peak-linux-driver-7.7/driver/src/pcan_usb_core.c:460:10: error: dereferencing pointer to incomplete type
/root/peak-linux-driver-7.7/driver/src/pcan_usb_core.c:461:10: error: dereferencing pointer to incomplete type
/root/peak-linux-driver-7.7/driver/src/pcan_usb_core.c:462:13: error: dereferencing pointer to incomplete type
/root/peak-linux-driver-7.7/driver/src/pcan_usb_core.c:466:9: error: dereferencing pointer to incomplete type
/root/peak-linux-driver-7.7/driver/src/pcan_usb_core.c:475:9: error: dereferencing pointer to incomplete type
/root/peak-linux-driver-7.7/driver/src/pcan_usb_core.c:476:40: error: dereferencing pointer to incomplete type
/root/peak-linux-driver-7.7/driver/src/pcan_usb_core.c:477:9: error: dereferencing pointer to incomplete type
/root/peak-linux-driver-7.7/driver/src/pcan_usb_core.c:478:40: error: dereferencing pointer to incomplete type
/root/peak-linux-driver-7.7/driver/src/pcan_usb_core.c:485:13: error: dereferencing pointer to incomplete type
/root/peak-linux-driver-7.7/driver/src/pcan_usb_core.c:487:10: error: dereferencing pointer to incomplete type
/root/peak-linux-driver-7.7/driver/src/pcan_usb_core.c:488:10: error: dereferencing pointer to incomplete type
/root/peak-linux-driver-7.7/driver/src/pcan_usb_core.c:489:10: error: dereferencing pointer to incomplete type
/root/peak-linux-driver-7.7/driver/src/pcan_usb_core.c:490:12: error: dereferencing pointer to incomplete type
/root/peak-linux-driver-7.7/driver/src/pcan_usb_core.c:494:9: error: dereferencing pointer to incomplete type
/root/peak-linux-driver-7.7/driver/src/pcan_usb_core.c:495:9: error: dereferencing pointer to incomplete type
/root/peak-linux-driver-7.7/driver/src/pcan_usb_core.c:497:9: error: dereferencing pointer to incomplete type
/root/peak-linux-driver-7.7/driver/src/pcan_usb_core.c:498:9: error: dereferencing pointer to incomplete type
/root/peak-linux-driver-7.7/driver/src/pcan_usb_core.c:502:15: error: dereferencing pointer to incomplete type
/root/peak-linux-driver-7.7/driver/src/pcan_usb_core.c:503:22: error: dereferencing pointer to incomplete type
/root/peak-linux-driver-7.7/driver/src/pcan_usb_core.c:505:17: error: âunion <anonymous>â has no member named âusbâ
/root/peak-linux-driver-7.7/driver/src/pcan_usb_core.c:507:4: error: request for member âwrite_buffer_addrâ in something not a structure or union
/root/peak-linux-driver-7.7/driver/src/pcan_usb_core.c:507:35: error: request for member âwrite_buffer_sizeâ in something not a structure or union
/root/peak-linux-driver-7.7/driver/src/pcan_usb_core.c:508:9: error: request for member âwrite_buffer_addrâ in something not a structure or union
/root/peak-linux-driver-7.7/driver/src/pcan_usb_core.c:518:18: error: request for member âwrite_dataâ in something not a structure or union
/root/peak-linux-driver-7.7/driver/src/pcan_usb_core.c:522:8: error: dereferencing pointer to incomplete type
/root/peak-linux-driver-7.7/driver/src/pcan_usb_core.c:523:42: error: dereferencing pointer to incomplete type
/root/peak-linux-driver-7.7/driver/src/pcan_usb_core.c:524:13: error: dereferencing pointer to incomplete type
/root/peak-linux-driver-7.7/driver/src/pcan_usb_core.c:533:8: error: dereferencing pointer to incomplete type
/root/peak-linux-driver-7.7/driver/src/pcan_usb_core.c:533:38: error: dereferencing pointer to incomplete type
/root/peak-linux-driver-7.7/driver/src/pcan_usb_core.c:534:38: error: dereferencing pointer to incomplete type
/root/peak-linux-driver-7.7/driver/src/pcan_usb_core.c:537:22: error: dereferencing pointer to incomplete type
/root/peak-linux-driver-7.7/driver/src/pcan_usb_core.c: In function âpcan_usb_stopâ:
/root/peak-linux-driver-7.7/driver/src/pcan_usb_core.c:599:2: error: unknown type name âUSB_PORTâ
/root/peak-linux-driver-7.7/driver/src/pcan_usb_core.c:599:26: error: âunion <anonymous>â has no member named âusbâ
/root/peak-linux-driver-7.7/driver/src/pcan_usb_core.c:600:39: error: request for member âusb_ifâ in something not a structure or union
/root/peak-linux-driver-7.7/driver/src/pcan_usb_core.c:605:12: error: dereferencing pointer to incomplete type
/root/peak-linux-driver-7.7/driver/src/pcan_usb_core.c:606:15: error: dereferencing pointer to incomplete type
/root/peak-linux-driver-7.7/driver/src/pcan_usb_core.c:608:14: error: dereferencing pointer to incomplete type
/root/peak-linux-driver-7.7/driver/src/pcan_usb_core.c:617:23: error: request for member âwrite_dataâ in something not a structure or union
/root/peak-linux-driver-7.7/driver/src/pcan_usb_core.c: In function âpcan_usb_cleanupâ:
/root/peak-linux-driver-7.7/driver/src/pcan_usb_core.c:630:2: error: unknown type name âUSB_PORTâ
/root/peak-linux-driver-7.7/driver/src/pcan_usb_core.c:630:26: error: âunion <anonymous>â has no member named âusbâ
/root/peak-linux-driver-7.7/driver/src/pcan_usb_core.c:637:10: error: request for member âwrite_buffer_addrâ in something not a structure or union
/root/peak-linux-driver-7.7/driver/src/pcan_usb_core.c: In function âpcan_usb_device_openâ:
/root/peak-linux-driver-7.7/driver/src/pcan_usb_core.c:701:2: error: unknown type name âUSB_PORTâ
/root/peak-linux-driver-7.7/driver/src/pcan_usb_core.c:701:26: error: âunion <anonymous>â has no member named âusbâ
/root/peak-linux-driver-7.7/driver/src/pcan_usb_core.c:712:19: error: request for member âusb_ifâ in something not a structure or union
/root/peak-linux-driver-7.7/driver/src/pcan_usb_core.c:715:2: error: request for member âusb_timeâ in something not a structure or union
/root/peak-linux-driver-7.7/driver/src/pcan_usb_core.c:715:2: error: âPCAN_USB_TIMEâ undeclared (first use in this function)
/root/peak-linux-driver-7.7/driver/src/pcan_usb_core.c:715:2: note: each undeclared identifier is reported only once for each function it appears in
/root/peak-linux-driver-7.7/driver/src/pcan_usb_core.c:723:14: error: request for member âusb_ifâ in something not a structure or union
/root/peak-linux-driver-7.7/driver/src/pcan_usb_core.c:739:14: error: request for member âusb_ifâ in something not a structure or union
/root/peak-linux-driver-7.7/driver/src/pcan_usb_core.c: In function âpcan_usb_device_paramsâ:
/root/peak-linux-driver-7.7/driver/src/pcan_usb_core.c:772:2: error: unknown type name âUSB_PORTâ
/root/peak-linux-driver-7.7/driver/src/pcan_usb_core.c:772:26: error: âunion <anonymous>â has no member named âusbâ
/root/peak-linux-driver-7.7/driver/src/pcan_usb_core.c:780:10: error: request for member âusb_ifâ in something not a structure or union
/root/peak-linux-driver-7.7/driver/src/pcan_usb_core.c:780:36: error: request for member âusb_ifâ in something not a structure or union
/root/peak-linux-driver-7.7/driver/src/pcan_usb_core.c:783:10: error: request for member âusb_ifâ in something not a structure or union
/root/peak-linux-driver-7.7/driver/src/pcan_usb_core.c:783:36: error: request for member âusb_ifâ in something not a structure or union
/root/peak-linux-driver-7.7/driver/src/pcan_usb_core.c:787:10: error: request for member âusb_ifâ in something not a structure or union
/root/peak-linux-driver-7.7/driver/src/pcan_usb_core.c:793:10: error: request for member âusb_ifâ in something not a structure or union
/root/peak-linux-driver-7.7/driver/src/pcan_usb_core.c:795:18: error: request for member âucHardcodedDevNrâ in something not a structure or union
/root/peak-linux-driver-7.7/driver/src/pcan_usb_core.c: At top level:
/root/peak-linux-driver-7.7/driver/src/pcan_usb_core.c:861:32: warning: âstruct pcan_usb_interfaceâ declared inside parameter list [enabled by default]
/root/peak-linux-driver-7.7/driver/src/pcan_usb_core.c: In function âpcan_usb_create_devâ:
/root/peak-linux-driver-7.7/driver/src/pcan_usb_core.c:865:37: error: dereferencing pointer to incomplete type
/root/peak-linux-driver-7.7/driver/src/pcan_usb_core.c:866:2: error: unknown type name âUSB_PORTâ
/root/peak-linux-driver-7.7/driver/src/pcan_usb_core.c:869:33: error: dereferencing pointer to incomplete type
/root/peak-linux-driver-7.7/driver/src/pcan_usb_core.c:871:16: error: âunion <anonymous>â has no member named âusbâ
/root/peak-linux-driver-7.7/driver/src/pcan_usb_core.c:872:3: error: request for member âusb_ifâ in something not a structure or union
/root/peak-linux-driver-7.7/driver/src/pcan_usb_core.c:873:3: error: request for member âdev_ctrl_indexâ in something not a structure or union
/root/peak-linux-driver-7.7/driver/src/pcan_usb_core.c:915:15: error: dereferencing pointer to incomplete type
/root/peak-linux-driver-7.7/driver/src/pcan_usb_core.c:931:29: error: dereferencing pointer to incomplete type
/root/peak-linux-driver-7.7/driver/src/pcan_usb_core.c:935:8: error: dereferencing pointer to incomplete type
/root/peak-linux-driver-7.7/driver/src/pcan_usb_core.c:936:36: error: dereferencing pointer to incomplete type
/root/peak-linux-driver-7.7/driver/src/pcan_usb_core.c:941:26: error: dereferencing pointer to incomplete type
/root/peak-linux-driver-7.7/driver/src/pcan_usb_core.c:945:22: error: dereferencing pointer to incomplete type
/root/peak-linux-driver-7.7/driver/src/pcan_usb_core.c:949:8: error: dereferencing pointer to incomplete type
/root/peak-linux-driver-7.7/driver/src/pcan_usb_core.c:952:8: error: dereferencing pointer to incomplete type
/root/peak-linux-driver-7.7/driver/src/pcan_usb_core.c:952:40: error: dereferencing pointer to incomplete type
/root/peak-linux-driver-7.7/driver/src/pcan_usb_core.c:959:15: error: dereferencing pointer to incomplete type
/root/peak-linux-driver-7.7/driver/src/pcan_usb_core.c:962:5: error: request for member âucHardcodedDevNrâ in something not a structure or union
/root/peak-linux-driver-7.7/driver/src/pcan_usb_core.c:968:12: error: dereferencing pointer to incomplete type
/root/peak-linux-driver-7.7/driver/src/pcan_usb_core.c:970:15: error: dereferencing pointer to incomplete type
/root/peak-linux-driver-7.7/driver/src/pcan_usb_core.c: In function âpcan_usb_pluginâ:
/root/peak-linux-driver-7.7/driver/src/pcan_usb_core.c:1068:15: warning: assignment from incompatible pointer type [enabled by default]
/root/peak-linux-driver-7.7/driver/src/pcan_usb_core.c:1075:17: error: âpcan_usb_initâ undeclared (first use in this function)
/root/peak-linux-driver-7.7/driver/src/pcan_usb_core.c:1084:21: error: invalid application of âsizeofâ to incomplete type âstruct pcan_usb_interfaceâ 
/root/peak-linux-driver-7.7/driver/src/pcan_usb_core.c:1097:8: error: dereferencing pointer to incomplete type
/root/peak-linux-driver-7.7/driver/src/pcan_usb_core.c:1098:8: error: dereferencing pointer to incomplete type
/root/peak-linux-driver-7.7/driver/src/pcan_usb_core.c:1099:8: error: dereferencing pointer to incomplete type
/root/peak-linux-driver-7.7/driver/src/pcan_usb_core.c:1102:2: error: dereferencing pointer to incomplete type
/root/peak-linux-driver-7.7/driver/src/pcan_usb_core.c:1103:2: error: dereferencing pointer to incomplete type
/root/peak-linux-driver-7.7/driver/src/pcan_usb_core.c:1106:2: error: dereferencing pointer to incomplete type
/root/peak-linux-driver-7.7/driver/src/pcan_usb_core.c:1108:2: error: dereferencing pointer to incomplete type
/root/peak-linux-driver-7.7/driver/src/pcan_usb_core.c:1132:3: error: unknown type name âPCAN_ENDPOINTâ
/root/peak-linux-driver-7.7/driver/src/pcan_usb_core.c:1143:23: error: dereferencing pointer to incomplete type
/root/peak-linux-driver-7.7/driver/src/pcan_usb_core.c:1147:23: error: dereferencing pointer to incomplete type
/root/peak-linux-driver-7.7/driver/src/pcan_usb_core.c:1158:24: error: dereferencing pointer to incomplete type
/root/peak-linux-driver-7.7/driver/src/pcan_usb_core.c:1164:23: error: dereferencing pointer to incomplete type
/root/peak-linux-driver-7.7/driver/src/pcan_usb_core.c:1172:24: error: dereferencing pointer to incomplete type
/root/peak-linux-driver-7.7/driver/src/pcan_usb_core.c:1189:13: error: request for member âucNumberâ in something not a structure or union
/root/peak-linux-driver-7.7/driver/src/pcan_usb_core.c:1190:13: error: request for member âwDataSzâ in something not a structure or union
/root/peak-linux-driver-7.7/driver/src/pcan_usb_core.c:1200:8: error: dereferencing pointer to incomplete type
/root/peak-linux-driver-7.7/driver/src/pcan_usb_core.c:1200:45: error: dereferencing pointer to incomplete type
/root/peak-linux-driver-7.7/driver/src/pcan_usb_core.c:1201:8: error: dereferencing pointer to incomplete type
/root/peak-linux-driver-7.7/driver/src/pcan_usb_core.c:1201:39: error: dereferencing pointer to incomplete type
/root/peak-linux-driver-7.7/driver/src/pcan_usb_core.c:1211:2: warning: passing argument 1 of âpcan_usb_allocate_resourcesâ from incompatible pointer type [enabled by default]
/root/peak-linux-driver-7.7/driver/src/pcan_usb_core.c:427:12: note: expected âstruct pcan_usb_interface *â but argument is of type âstruct pcan_usb_interface *â
/root/peak-linux-driver-7.7/driver/src/pcan_usb_core.c:1220:7: error: dereferencing pointer to incomplete type
/root/peak-linux-driver-7.7/driver/src/pcan_usb_core.c:1222:3: error: dereferencing pointer to incomplete type
/root/peak-linux-driver-7.7/driver/src/pcan_usb_core.c:1222:3: error: dereferencing pointer to incomplete type
/root/peak-linux-driver-7.7/driver/src/pcan_usb_core.c:1222:3: error: dereferencing pointer to incomplete type
/root/peak-linux-driver-7.7/driver/src/pcan_usb_core.c:1222:3: error: dereferencing pointer to incomplete type
/root/peak-linux-driver-7.7/driver/src/pcan_usb_core.c:1222:3: error: dereferencing pointer to incomplete type
/root/peak-linux-driver-7.7/driver/src/pcan_usb_core.c:1222:3: error: dereferencing pointer to incomplete type
/root/peak-linux-driver-7.7/driver/src/pcan_usb_core.c:1229:14: error: dereferencing pointer to incomplete type
/root/peak-linux-driver-7.7/driver/src/pcan_usb_core.c:1236:3: error: dereferencing pointer to incomplete type
/root/peak-linux-driver-7.7/driver/src/pcan_usb_core.c:1240:22: error: dereferencing pointer to incomplete type
/root/peak-linux-driver-7.7/driver/src/pcan_usb_core.c:1242:3: warning: passing argument 1 of âpcan_usb_create_devâ from incompatible pointer type [enabled by default]
/root/peak-linux-driver-7.7/driver/src/pcan_usb_core.c:860:12: note: expected âstruct pcan_usb_interface *â but argument is of type âstruct pcan_usb_interface *â
/root/peak-linux-driver-7.7/driver/src/pcan_usb_core.c: In function âpcan_usb_plugoutâ:
/root/peak-linux-driver-7.7/driver/src/pcan_usb_core.c:1411:19: error: dereferencing pointer to incomplete type
/root/peak-linux-driver-7.7/driver/src/pcan_usb_core.c:1411:41: error: dereferencing pointer to incomplete type
/root/peak-linux-driver-7.7/driver/src/pcan_usb_core.c:1427:33: error: âunion <anonymous>â has no member named âusbâ
/root/peak-linux-driver-7.7/driver/src/pcan_usb_core.c:1433:29: error: dereferencing pointer to incomplete type
/root/peak-linux-driver-7.7/driver/src/pcan_usb_core.c:1434:29: error: dereferencing pointer to incomplete type
/root/peak-linux-driver-7.7/driver/src/pcan_usb_core.c:1435:29: error: dereferencing pointer to incomplete type
/root/peak-linux-driver-7.7/driver/src/pcan_usb_core.c:1437:15: error: dereferencing pointer to incomplete type
/root/peak-linux-driver-7.7/driver/src/pcan_usb_core.c:1439:13: error: dereferencing pointer to incomplete type
/root/peak-linux-driver-7.7/driver/src/pcan_usb_core.c:1440:10: error: dereferencing pointer to incomplete type
/root/peak-linux-driver-7.7/driver/src/pcan_usb_core.c:1442:26: error: dereferencing pointer to incomplete type
/root/peak-linux-driver-7.7/driver/src/pcan_usb_core.c: In function âpcan_usb_core_initâ:
/root/peak-linux-driver-7.7/driver/src/pcan_usb_core.c:1480:2: error: âstruct driverobjâ has no member named âusbdrvâ
/root/peak-linux-driver-7.7/driver/src/pcan_usb_core.c:1480:2: error: âstruct driverobjâ has no member named âusbdrvâ
/root/peak-linux-driver-7.7/driver/src/pcan_usb_core.c:1486:10: error: âstruct driverobjâ has no member named âusbdrvâ
/root/peak-linux-driver-7.7/driver/src/pcan_usb_core.c:1487:10: error: âstruct driverobjâ has no member named âusbdrvâ
/root/peak-linux-driver-7.7/driver/src/pcan_usb_core.c:1488:10: error: âstruct driverobjâ has no member named âusbdrvâ
/root/peak-linux-driver-7.7/driver/src/pcan_usb_core.c:1489:10: error: âstruct driverobjâ has no member named âusbdrvâ
/root/peak-linux-driver-7.7/driver/src/pcan_usb_core.c:1491:9: error: âstruct driverobjâ has no member named âusbdrvâ
/root/peak-linux-driver-7.7/driver/src/pcan_usb_core.c: In function âpcan_usb_do_cleanupâ:
/root/peak-linux-driver-7.7/driver/src/pcan_usb_core.c:1507:19: error: dereferencing pointer to incomplete type
/root/peak-linux-driver-7.7/driver/src/pcan_usb_core.c:1507:41: error: dereferencing pointer to incomplete type
/root/peak-linux-driver-7.7/driver/src/pcan_usb_core.c:1512:14: error: dereferencing pointer to incomplete type
/root/peak-linux-driver-7.7/driver/src/pcan_usb_core.c:1513:11: error: dereferencing pointer to incomplete type
/root/peak-linux-driver-7.7/driver/src/pcan_usb_core.c: In function âpcan_usb_deinitâ:
/root/peak-linux-driver-7.7/driver/src/pcan_usb_core.c:1523:14: error: âstruct driverobjâ has no member named âusbdrvâ
/root/peak-linux-driver-7.7/driver/src/pcan_usb_core.c:1527:45: error: âstruct driverobjâ has no member named âusbdrvâ
/root/peak-linux-driver-7.7/driver/src/pcan_usb_core.c:1541:27: error: âstruct driverobjâ has no member named âusbdrvâ
/root/peak-linux-driver-7.7/driver/src/pcan_usb_core.c: In function âpcan_usb_core_initâ:
/root/peak-linux-driver-7.7/driver/src/pcan_usb_core.c:1492:1: warning: control reaches end of non-void function [-Wreturn-type]
make[3]: *** [/root/peak-linux-driver-7.7/driver/src/pcan_usb_core.o] Error 1
make[2]: *** [_module_/root/peak-linux-driver-7.7/driver] Error 2
make[2]: Leaving directory `/root/linux'
make[1]: *** [all] Error 2
make[1]: Leaving directory `/root/peak-linux-driver-7.7/driver'
make[1]: Entering directory `/root/peak-linux-driver-7.7/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 `/root/peak-linux-driver-7.7/lib'
make[1]: Entering directory `/root/peak-linux-driver-7.7/test'
cc src/receivetest.c src/common.c -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 -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 -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 -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 -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 `/root/peak-linux-driver-7.7/test'

Re: PEAK-Linux Driver on Raspberry Pi

Posted: Mon 10. Dec 2012, 15:45
by M.Maidhof
Hi,

please use the original driver source with no modification, otherwise we can´t help you. (would have been nice to got that info about the modified code in your last post!)

regards

Michael

Re: PEAK-Linux Driver on Raspberry Pi

Posted: Mon 10. Dec 2012, 16:09
by nagilode
Hi,

there is a misunderstanding.

As mentioned I used the ORIGINAL CODE (even sent you the md5sum to be sure) without modifications and the output is the same.

By the way -- the modifications I did were not related to the compilation.

Yours
Norbert

Re: PEAK-Linux Driver on Raspberry Pi

Posted: Tue 11. Dec 2012, 14:11
by M.Maidhof
Hi,

the only explanation we see now, could be related to the following:

$ grep USB_SUPPORT src/pcan_common.h
#if !defined(CONFIG_USB_MODULE) && !defined(CONFIG_USB) && defined(USB_SUPPORT)
#undef USB_SUPPORT

=>it looks like the support of USB is not set in the Kernel you are using on your board.

please send us the output of the following command:

$ grep -e "^CONFIG_USB=" /boot/config-`uname -r`

(we don't know where the Fedora system stores the current Kernel config file, so modify the command to your system requests)

you should get this:

CONFIG_USB=y

Otherwise, the USB support is not set and you have to enable it in your system first, to use our PCAN-USB driver.

best regards

Michael