Page 14 of 16

Re: PEAK-Linux Driver on Raspberry Pi

Posted: Mon 12. Feb 2018, 12:32
by h9ADz
Dear PEAK-Support-Team,

I want to use PCAN Basic on my RPI3 - therefore I need to install the PCAN Linux Driver.
I downloaded both packages from your website - newest versions (PCAN Basic v4.2.0 and PEAK Linux v8.5.1).

Now I get an error, when I want to build the Linux Driver library with:

Code: Select all

make clean; make NET=NO_NETDEV_SUPPORT
Output of 2nd line is:

Code: Select all

Makefile:105: *** "Can't find /include/linux/version.h". [...]
I don't know how to proceed. Is this Problem connected to a not installed socketCAN - do I have to recompile the kernel with this option enabled?

Additional Information - "uname -a" gives the output:

Code: Select all

Linux raspberrypi 4.9.59-v7+ [...] armv71 [...]
Thanks for your help in advance,
Martin

Re: PEAK-Linux Driver on Raspberry Pi

Posted: Mon 12. Feb 2018, 14:32
by S.Grosjean
Hi,

You have to install the linux-headers package on your RPi3 to be able to compile any Kernel module.

If your distro is a Debian one, you can use:

Code: Select all

$ sudo apt-get install linux-headers
Regards,

Stéphane

Re: PEAK-Linux Driver on Raspberry Pi

Posted: Mon 12. Feb 2018, 17:48
by h9ADz
Hi Stéphane,

thanks a lot!

I have been able to install the PEAK Linux Driver, PCAN Basic and the PCAN Basic JNI. Unfortunately the command

Code: Select all

cat /proc/pcan
shows me nothing/errors.

I don't get a "can0" or similar, when I use "ifconfig".

EDIT: I uninstalled pcanjni, pcanbasic and the peak-linux driver.
After that I did:

Code: Select all

$ make clean
[...]
$ sudo make PCI=NO PCIEC=NO PCC=NO DNG=NO PAR=NO ISA=NO
[...]
$ sudo make install
[...]
$ sudo modprobe pcan
modprobe: ERROR: ../libkmod/libkmod-module.c:832 kmod_module_insert_module() could not find module by name='pcan'
modprobe: ERROR: could not insert 'pcan': Unknown symbol in module, or unknown parameter (see dmesg)
modprobe: ERROR: ../libkmod/libkmod-module.c:977 command_do() Error running install command for pcan
modprobe: ERROR: could not insert 'pcan': Operation not permitted
It seems like some settings of the kernel are wrong?

Thank you so much.

Regards,
Martin

Re: PEAK-Linux Driver on Raspberry Pi

Posted: Tue 13. Feb 2018, 09:52
by S.Grosjean
Hi,

Generally speaking, it can be very useful to give us the output of a command, even if you mind it shows nothing.

Moreover, you should have noticed that running PCAN-Basic over pcan driver needs pcan to be built in "chardev" mode. In that mode, you'll never have CAN channels with such a name "canX" as well as you won't be able to use the ifconfig command.

You don't have to build "pcan" with sudo. Please, rebuild pcan without sudo:

Code: Select all

$ make clean
$ make PCI=NO PCIEC=NO PCC=NO DNG=NO PAR=NO ISA=NO
$ sudo make install
The error message following "$ sudo modprobe pcan" indicates that some symbols are missing in your config. As said by the message, can you please give us the output of:

Code: Select all

$ dmesg
Thanks and regards,

Stéphane

Re: PEAK-Linux Driver on Raspberry Pi

Posted: Tue 13. Feb 2018, 10:16
by h9ADz
Hi Stéphane,

I am sorry for leaving out the outputs.
You don't have to build "pcan" with sudo. Please, rebuild pcan without sudo:
- I guess you meant the peak linux driver?

Here are the results for:

Code: Select all

$ make clean
$ make PCI=NO PCIEC=NO PCC=NO DNG=NO PAR=NO ISA=NO
$ sudo make install
$ dmesg
Output:

Code: Select all

pi@raspberrypi:~/Downloads/peak-linux-driver-8.5.1 $ make clean
make[1]: Verzeichnis „/home/pi/Downloads/peak-linux-driver-8.5.1/driver“ wird betreten
rm -f src/*o src/*~ src/.*cmd *o *ko *~ .*cmd  pcan.mod.c Module.symvers modules.order
make[1]: Verzeichnis „/home/pi/Downloads/peak-linux-driver-8.5.1/driver“ wird verlassen
make[1]: Verzeichnis „/home/pi/Downloads/peak-linux-driver-8.5.1/lib“ wird betreten
rm -f src/*~
rm -rf obj lib obj32 lib32
make[1]: Verzeichnis „/home/pi/Downloads/peak-linux-driver-8.5.1/lib“ wird verlassen
make[1]: Verzeichnis „/home/pi/Downloads/peak-linux-driver-8.5.1/test“ wird betreten
rm -f src/*~ src/*.o *~ receivetest transmitest bitratetest filtertest pcanfdtst pcan-settings
make[1]: Verzeichnis „/home/pi/Downloads/peak-linux-driver-8.5.1/test“ wird verlassen
pi@raspberrypi:~/Downloads/peak-linux-driver-8.5.1 $ make PCI=NO PCIEC=NO PCC=NO DNG=NO PAR=NO ISA=NO
make[1]: Verzeichnis „/home/pi/Downloads/peak-linux-driver-8.5.1/driver“ wird betreten
make[1]: Für das Ziel „depend“ ist nichts zu tun.
make[1]: Verzeichnis „/home/pi/Downloads/peak-linux-driver-8.5.1/driver“ wird verlassen
make[1]: Verzeichnis „/home/pi/Downloads/peak-linux-driver-8.5.1/driver“ wird betreten
***
*** Host machine kernel version=4.9.59-v7+
*** Driver kernel version=4.9.59-v7 (4.9.59)
*** Path to kernel sources=/usr/src/linux-headers-4.9.59-v7+
*** use KBUILD=yes
*** cc version=6.3.0
***
make -C /usr/src/linux-headers-4.9.59-v7+  SUBDIRS=/home/pi/Downloads/peak-linux-driver-8.5.1/driver        EXTRA_CFLAGS="-I/home/pi/Downloads/peak-linux-driver-8.5.1/driver        -DNO_DEBUG -DMODVERSIONS -DNO -DUSB_SUPPORT -DNO -DNO -DNO -DNO -DNO -DNO_NETDEV_SUPPORT	 -DNO_RT  -Wno-date-time" V=0 modules
make[2]: Verzeichnis „/usr/src/linux-headers-4.9.59-v7+“ wird betreten
  CC [M]  /home/pi/Downloads/peak-linux-driver-8.5.1/driver/src/pcan_main.o
  CC [M]  /home/pi/Downloads/peak-linux-driver-8.5.1/driver/src/pcan_fops.o
  CC [M]  /home/pi/Downloads/peak-linux-driver-8.5.1/driver/src/pcan_fifo.o
  CC [M]  /home/pi/Downloads/peak-linux-driver-8.5.1/driver/src/pcan_filter.o
  CC [M]  /home/pi/Downloads/peak-linux-driver-8.5.1/driver/src/pcan_parse.o
  CC [M]  /home/pi/Downloads/peak-linux-driver-8.5.1/driver/src/pcan_sja1000.o
  CC [M]  /home/pi/Downloads/peak-linux-driver-8.5.1/driver/src/pcan_common.o
  CC [M]  /home/pi/Downloads/peak-linux-driver-8.5.1/driver/src/pcan_timing.o
  CC [M]  /home/pi/Downloads/peak-linux-driver-8.5.1/driver/src/pcanfd_core.o
  CC [M]  /home/pi/Downloads/peak-linux-driver-8.5.1/driver/src/pcanfd_ucan.o
  CC [M]  /home/pi/Downloads/peak-linux-driver-8.5.1/driver/src/pcan_usb_core.o
  CC [M]  /home/pi/Downloads/peak-linux-driver-8.5.1/driver/src/pcan_usb.o
  CC [M]  /home/pi/Downloads/peak-linux-driver-8.5.1/driver/src/pcan_usbpro.o
  CC [M]  /home/pi/Downloads/peak-linux-driver-8.5.1/driver/src/pcanfd_usb.o
  LD [M]  /home/pi/Downloads/peak-linux-driver-8.5.1/driver/pcan.o
  Building modules, stage 2.
  MODPOST 1 modules
  CC      /home/pi/Downloads/peak-linux-driver-8.5.1/driver/pcan.mod.o
  LD [M]  /home/pi/Downloads/peak-linux-driver-8.5.1/driver/pcan.ko
make[2]: Verzeichnis „/usr/src/linux-headers-4.9.59-v7+“ wird verlassen
make[1]: Verzeichnis „/home/pi/Downloads/peak-linux-driver-8.5.1/driver“ wird verlassen
make[1]: Verzeichnis „/home/pi/Downloads/peak-linux-driver-8.5.1/lib“ wird betreten
cc -DNO_RT -I. -I../driver -fPIC -Wall -Wcast-align -Wredundant-decls  -DPCANFD_OLD_STYLE_API -c src/libpcan.c -o obj/libpcan.o
cc -shared -Wl,-soname,libpcan.so.0 -o lib/libpcan.so.0.6 obj/libpcan.o 
cd lib/; ln -sf libpcan.so.0.6 libpcan.so
cc -DNO_RT -I. -I../driver -fPIC -Wall -Wcast-align -Wredundant-decls  -DPCANFD_OLD_STYLE_API -c src/libpcanfd.c -o obj/libpcanfd.o
cc -shared -Wl,-soname,libpcanfd.so.0 -o lib/libpcanfd.so.0.1 obj/libpcanfd.o 
cd lib/; ln -sf libpcanfd.so.0.1 libpcanfd.so
ar rcs lib/libpcanfd.a obj/libpcanfd.o
make[1]: Verzeichnis „/home/pi/Downloads/peak-linux-driver-8.5.1/lib“ wird verlassen
make[1]: Verzeichnis „/home/pi/Downloads/peak-linux-driver-8.5.1/test“ wird betreten
cc -DNO_RT -g -I. -I../lib -I../driver    src/receivetest.c src/common.c -lpcanfd  -L../lib/lib   -o receivetest
cc -DNO_RT -g -I. -I../lib -I../driver    src/transmitest.cpp src/common.c src/parser.cpp -lpcanfd -lstdc++  -L../lib/lib   -o transmitest
cc -DNO_RT -g -I. -I../lib -I../driver    src/bitratetest.c src/common.c -lpcanfd  -L../lib/lib   -o bitratetest
cc -DNO_RT -g -I. -I../lib -I../driver    src/filtertest.cpp src/common.c -lpcanfd -lstdc++  -L../lib/lib   -o filtertest
cc -DNO_RT -g -I. -I../lib -I../driver    src/pcanfdtst.c -lpcanfd  -L../lib/lib   -o pcanfdtst
cc -DNO_RT -g -I. -I../lib -I../driver    src/pcan-settings.c -lpopt  -L../lib/lib   -g -o pcan-settings
make[1]: Verzeichnis „/home/pi/Downloads/peak-linux-driver-8.5.1/test“ wird verlassen
pi@raspberrypi:~/Downloads/peak-linux-driver-8.5.1 $ sudo make install 
make[1]: Verzeichnis „/home/pi/Downloads/peak-linux-driver-8.5.1/driver“ wird betreten
Info: /lib/modules/4.9.59-v7/misc exists.
Info: Copied 45-pcan.rules to /etc/udev/rules.d.
Info: mainline drivers removed and blacklisted in
      /etc/modprobe.d/blacklist-peak.conf
make[1]: Verzeichnis „/home/pi/Downloads/peak-linux-driver-8.5.1/driver“ wird verlassen
make[1]: Verzeichnis „/home/pi/Downloads/peak-linux-driver-8.5.1/lib“ wird betreten
mkdir -p /usr/lib
cp -d lib/* /usr/lib
if [ -d lib32 ]; then \
	mkdir -p /usr/lib32; \
	cp -d lib32/* /usr/lib32; \
fi
mkdir -p /usr/include
chmod 644 libpcan.h libpcanfd.h
cp libpcan.h libpcanfd.h /usr/include
/sbin/ldconfig
make[1]: Verzeichnis „/home/pi/Downloads/peak-linux-driver-8.5.1/lib“ wird verlassen
make[1]: Verzeichnis „/home/pi/Downloads/peak-linux-driver-8.5.1/test“ wird betreten
cp receivetest transmitest bitratetest filtertest pcanfdtst pcan-settings /usr/local/bin
make[1]: Verzeichnis „/home/pi/Downloads/peak-linux-driver-8.5.1/test“ wird verlassen
pi@raspberrypi:~/Downloads/peak-linux-driver-8.5.1 $ dmesg
[    0.000000] Booting Linux on physical CPU 0x0
[    0.000000] Linux version 4.9.59-v7+ (dc4@dc4-XPS13-9333) (gcc version 4.9.3 (crosstool-NG crosstool-ng-1.22.0-88-g8460611) ) #1047 SMP Sun Oct 29 12:19:23 GMT 2017
[    0.000000] CPU: ARMv7 Processor [410fd034] revision 4 (ARMv7), cr=10c5383d
[    0.000000] CPU: div instructions available: patching division code
[    0.000000] CPU: PIPT / VIPT nonaliasing data cache, VIPT aliasing instruction cache
[    0.000000] OF: fdt:Machine model: Raspberry Pi 3 Model B Rev 1.2
[    0.000000] cma: Reserved 8 MiB at 0x3a800000
[    0.000000] Memory policy: Data cache writealloc
[    0.000000] On node 0 totalpages: 241664
[    0.000000] free_area_init_node: node 0, pgdat 80c6f380, node_mem_map b9faa000
[    0.000000]   Normal zone: 2124 pages used for memmap
[    0.000000]   Normal zone: 0 pages reserved
[    0.000000]   Normal zone: 241664 pages, LIFO batch:31
[    0.000000] percpu: Embedded 14 pages/cpu @b9f64000 s25600 r8192 d23552 u57344
[    0.000000] pcpu-alloc: s25600 r8192 d23552 u57344 alloc=14*4096
[    0.000000] pcpu-alloc: [0] 0 [0] 1 [0] 2 [0] 3 
[    0.000000] Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 239540
[    0.000000] Kernel command line: 8250.nr_uarts=0 bcm2708_fb.fbwidth=1920 bcm2708_fb.fbheight=1200 bcm2708_fb.fbswap=1 vc_mem.mem_base=0x3dc00000 vc_mem.mem_size=0x3f000000  dwc_otg.lpm_enable=0 console=ttyS0,115200 console=tty1 root=/dev/mmcblk0p7 rootfstype=ext4 elevator=deadline fsck.repair=yes rootwait splash plymouth.ignore-serial-consoles
[    0.000000] PID hash table entries: 4096 (order: 2, 16384 bytes)
[    0.000000] Dentry cache hash table entries: 131072 (order: 7, 524288 bytes)
[    0.000000] Inode-cache hash table entries: 65536 (order: 6, 262144 bytes)
[    0.000000] Memory: 936304K/966656K available (7168K kernel code, 486K rwdata, 2012K rodata, 1024K init, 770K bss, 22160K reserved, 8192K cma-reserved)
[    0.000000] Virtual kernel memory layout:
                   vector  : 0xffff0000 - 0xffff1000   (   4 kB)
                   fixmap  : 0xffc00000 - 0xfff00000   (3072 kB)
                   vmalloc : 0xbb800000 - 0xff800000   (1088 MB)
                   lowmem  : 0x80000000 - 0xbb000000   ( 944 MB)
                   modules : 0x7f000000 - 0x80000000   (  16 MB)
                     .text : 0x80008000 - 0x80800000   (8160 kB)
                     .init : 0x80b00000 - 0x80c00000   (1024 kB)
                     .data : 0x80c00000 - 0x80c79834   ( 487 kB)
                      .bss : 0x80c7b000 - 0x80d3b964   ( 771 kB)
[    0.000000] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=4, Nodes=1
[    0.000000] Hierarchical RCU implementation.
[    0.000000] 	Build-time adjustment of leaf fanout to 32.
[    0.000000] NR_IRQS:16 nr_irqs:16 16
[    0.000000] arm_arch_timer: Architected cp15 timer(s) running at 19.20MHz (phys).
[    0.000000] clocksource: arch_sys_counter: mask: 0xffffffffffffff max_cycles: 0x46d987e47, max_idle_ns: 440795202767 ns
[    0.000007] sched_clock: 56 bits at 19MHz, resolution 52ns, wraps every 4398046511078ns
[    0.000023] Switching to timer-based delay loop, resolution 52ns
[    0.000302] Console: colour dummy device 80x30
[    0.001212] console [tty1] enabled
[    0.001256] Calibrating delay loop (skipped), value calculated using timer frequency.. 38.40 BogoMIPS (lpj=192000)
[    0.001324] pid_max: default: 32768 minimum: 301
[    0.001655] Mount-cache hash table entries: 2048 (order: 1, 8192 bytes)
[    0.001697] Mountpoint-cache hash table entries: 2048 (order: 1, 8192 bytes)
[    0.002737] Disabling memory control group subsystem
[    0.002840] CPU: Testing write buffer coherency: ok
[    0.002902] ftrace: allocating 22392 entries in 66 pages
[    0.049993] CPU0: update cpu_capacity 1024
[    0.050044] CPU0: thread -1, cpu 0, socket 0, mpidr 80000000
[    0.050105] Setting up static identity map for 0x100000 - 0x100034
[    0.051985] CPU1: update cpu_capacity 1024
[    0.051992] CPU1: thread -1, cpu 1, socket 0, mpidr 80000001
[    0.052680] CPU2: update cpu_capacity 1024
[    0.052686] CPU2: thread -1, cpu 2, socket 0, mpidr 80000002
[    0.053357] CPU3: update cpu_capacity 1024
[    0.053364] CPU3: thread -1, cpu 3, socket 0, mpidr 80000003
[    0.053452] Brought up 4 CPUs
[    0.053626] SMP: Total of 4 processors activated (153.60 BogoMIPS).
[    0.053656] CPU: All CPU(s) started in HYP mode.
[    0.053682] CPU: Virtualization extensions available.
[    0.054501] devtmpfs: initialized
[    0.065927] VFP support v0.3: implementor 41 architecture 3 part 40 variant 3 rev 4
[    0.066244] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[    0.066306] futex hash table entries: 1024 (order: 4, 65536 bytes)
[    0.066861] pinctrl core: initialized pinctrl subsystem
[    0.067792] NET: Registered protocol family 16
[    0.070140] DMA: preallocated 1024 KiB pool for atomic coherent allocations
[    0.079124] hw-breakpoint: found 5 (+1 reserved) breakpoint and 4 watchpoint registers.
[    0.079173] hw-breakpoint: maximum watchpoint size is 8 bytes.
[    0.079336] Serial: AMBA PL011 UART driver
[    0.081264] bcm2835-mbox 3f00b880.mailbox: mailbox enabled
[    0.081817] uart-pl011 3f201000.serial: could not find pctldev for node /soc/gpio@7e200000/uart0_pins, deferring probe
[    0.150830] bcm2835-dma 3f007000.dma: DMA legacy API manager at bb80f000, dmachans=0x1
[    0.152694] SCSI subsystem initialized
[    0.152872] usbcore: registered new interface driver usbfs
[    0.152973] usbcore: registered new interface driver hub
[    0.153089] usbcore: registered new device driver usb
[    0.159799] raspberrypi-firmware soc:firmware: Attached to firmware from 2017-10-24 17:09
[    0.161316] clocksource: Switched to clocksource arch_sys_counter
[    0.208397] VFS: Disk quotas dquot_6.6.0
[    0.208507] VFS: Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
[    0.208739] FS-Cache: Loaded
[    0.209010] CacheFiles: Loaded
[    0.221159] NET: Registered protocol family 2
[    0.222087] TCP established hash table entries: 8192 (order: 3, 32768 bytes)
[    0.222224] TCP bind hash table entries: 8192 (order: 4, 65536 bytes)
[    0.222435] TCP: Hash tables configured (established 8192 bind 8192)
[    0.222546] UDP hash table entries: 512 (order: 2, 16384 bytes)
[    0.222613] UDP-Lite hash table entries: 512 (order: 2, 16384 bytes)
[    0.222844] NET: Registered protocol family 1
[    0.223280] RPC: Registered named UNIX socket transport module.
[    0.223312] RPC: Registered udp transport module.
[    0.223340] RPC: Registered tcp transport module.
[    0.223367] RPC: Registered tcp NFSv4.1 backchannel transport module.
[    0.224418] hw perfevents: enabled with armv7_cortex_a7 PMU driver, 7 counters available
[    0.226752] workingset: timestamp_bits=14 max_order=18 bucket_order=4
[    0.242826] FS-Cache: Netfs 'nfs' registered for caching
[    0.243834] NFS: Registering the id_resolver key type
[    0.243884] Key type id_resolver registered
[    0.243912] Key type id_legacy registered
[    0.246330] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 251)
[    0.246476] io scheduler noop registered
[    0.246507] io scheduler deadline registered (default)
[    0.246803] io scheduler cfq registered
[    0.252471] BCM2708FB: allocated DMA memory fa910000
[    0.252525] BCM2708FB: allocated DMA channel 0 @ bb80f000
[    0.317254] Console: switching to colour frame buffer device 240x75
[    0.357057] bcm2835-rng 3f104000.rng: hwrng registered
[    0.357325] vc-mem: phys_addr:0x00000000 mem_base=0x3dc00000 mem_size:0x3f000000(1008 MiB)
[    0.358104] vc-sm: Videocore shared memory driver
[    0.373385] brd: module loaded
[    0.382524] loop: module loaded
[    0.382661] Loading iSCSI transport class v2.0-870.
[    0.383352] usbcore: registered new interface driver smsc95xx
[    0.383535] dwc_otg: version 3.00a 10-AUG-2012 (platform bus)
[    0.611788] Core Release: 2.80a
[    0.611898] Setting default values for core params
[    0.612068] Finished setting default values for core params
[    0.812627] Using Buffer DMA mode
[    0.812735] Periodic Transfer Interrupt Enhancement - disabled
[    0.812903] Multiprocessor Interrupt Enhancement - disabled
[    0.813065] OTG VER PARAM: 0, OTG VER FLAG: 0
[    0.813206] Dedicated Tx FIFOs mode
[    0.813690] WARN::dwc_otg_hcd_init:1032: FIQ DMA bounce buffers: virt = 0xba904000 dma = 0xfa904000 len=9024
[    0.813990] FIQ FSM acceleration enabled for :
               Non-periodic Split Transactions
               Periodic Split Transactions
               High-Speed Isochronous Endpoints
               Interrupt/Control Split Transaction hack enabled
[    0.814596] dwc_otg: Microframe scheduler enabled
[    0.814649] WARN::hcd_init_fiq:459: FIQ on core 1 at 0x8058f5b0
[    0.814829] WARN::hcd_init_fiq:460: FIQ ASM at 0x8058f920 length 36
[    0.815016] WARN::hcd_init_fiq:486: MPHI regs_base at 0xbb87a000
[    0.815246] dwc_otg 3f980000.usb: DWC OTG Controller
[    0.815426] dwc_otg 3f980000.usb: new USB bus registered, assigned bus number 1
[    0.815664] dwc_otg 3f980000.usb: irq 62, io mem 0x00000000
[    0.815869] Init: Port Power? op_state=1
[    0.815988] Init: Power Port (0)
[    0.816300] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002
[    0.816502] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    0.816711] usb usb1: Product: DWC OTG Controller
[    0.816853] usb usb1: Manufacturer: Linux 4.9.59-v7+ dwc_otg_hcd
[    0.817028] usb usb1: SerialNumber: 3f980000.usb
[    0.818011] hub 1-0:1.0: USB hub found
[    0.818163] hub 1-0:1.0: 1 port detected
[    0.819000] dwc_otg: FIQ enabled
[    0.819005] dwc_otg: NAK holdoff enabled
[    0.819009] dwc_otg: FIQ split-transaction FSM enabled
[    0.819022] Module dwc_common_port init
[    0.819262] usbcore: registered new interface driver usb-storage
[    0.819690] mousedev: PS/2 mouse device common for all mice
[    0.820846] bcm2835-wdt 3f100000.watchdog: Broadcom BCM2835 watchdog timer
[    0.829879] bcm2835-cpufreq: min=600000 max=1200000
[    0.838883] sdhci: Secure Digital Host Controller Interface driver
[    0.847524] sdhci: Copyright(c) Pierre Ossman
[    0.856452] sdhost-bcm2835 3f202000.sdhost: could not get clk, deferring probe
[    0.867430] mmc-bcm2835 3f300000.mmc: could not get clk, deferring probe
[    0.876295] sdhci-pltfm: SDHCI platform and OF driver helper
[    0.887696] ledtrig-cpu: registered to indicate activity on CPUs
[    0.896676] hidraw: raw HID events driver (C) Jiri Kosina
[    0.905640] usbcore: registered new interface driver usbhid
[    0.914375] usbhid: USB HID core driver
[    0.924035] vchiq: vchiq_init_state: slot_zero = 0xba980000, is_master = 0
[    0.934349] [vc_sm_connected_init]: start
[    0.944798] [vc_sm_connected_init]: end - returning 0
[    0.954025] Initializing XFRM netlink socket
[    0.962878] NET: Registered protocol family 17
[    0.971750] Key type dns_resolver registered
[    0.980911] Registering SWP/SWPB emulation handler
[    0.990292] registered taskstats version 1
[    1.005281] uart-pl011 3f201000.serial: cts_event_workaround enabled
[    1.014117] 3f201000.serial: ttyAMA0 at MMIO 0x3f201000 (irq = 87, base_baud = 0) is a PL011 rev2
[    1.024654] sdhost: log_buf @ ba907000 (fa907000)
[    1.054062] Indeed it is in host mode hprt0 = 00021501
[    1.150557] random: fast init done
[    1.181346] mmc0: sdhost-bcm2835 loaded - DMA enabled (>1)
[    1.192389] mmc-bcm2835 3f300000.mmc: mmc_debug:0 mmc_debug2:0
[    1.201229] mmc-bcm2835 3f300000.mmc: DMA channel allocated
[    1.261455] of_cfs_init
[    1.270408] of_cfs_init: OK
[    1.271350] usb 1-1: new high-speed USB device number 2 using dwc_otg
[    1.271510] Indeed it is in host mode hprt0 = 00001101
[    1.297452] Waiting for root device /dev/mmcblk0p7...
[    1.339194] mmc0: host does not support reading read-only switch, assuming write-enable
[    1.349284] mmc1: queuing unknown CIS tuple 0x80 (2 bytes)
[    1.358262] mmc0: new high speed SDXC card at address 1234
[    1.367949] mmcblk0: mmc0:1234 SA64G 57.7 GiB
[    1.377133] mmc1: queuing unknown CIS tuple 0x80 (3 bytes)
[    1.387678] mmc1: queuing unknown CIS tuple 0x80 (3 bytes)
[    1.399287] mmc1: queuing unknown CIS tuple 0x80 (7 bytes)
[    1.407991]  mmcblk0: p1 p2 < p5 p6 p7 >
[    1.446121] EXT4-fs (mmcblk0p7): mounted filesystem with ordered data mode. Opts: (null)
[    1.455182] VFS: Mounted root (ext4 filesystem) readonly on device 179:7.
[    1.470823] devtmpfs: mounted
[    1.481643] Freeing unused kernel memory: 1024K
[    1.508711] mmc1: new high speed SDIO card at address 0001
[    1.518018] usb 1-1: New USB device found, idVendor=0424, idProduct=9514
[    1.527046] usb 1-1: New USB device strings: Mfr=0, Product=0, SerialNumber=0
[    1.537255] hub 1-1:1.0: USB hub found
[    1.546197] hub 1-1:1.0: 5 ports detected
[    1.871369] usb 1-1.1: new high-speed USB device number 3 using dwc_otg
[    1.978930] systemd[1]: System time before build time, advancing clock.
[    2.001684] usb 1-1.1: New USB device found, idVendor=0424, idProduct=ec00
[    2.010649] usb 1-1.1: New USB device strings: Mfr=0, Product=0, SerialNumber=0
[    2.022622] smsc95xx v1.0.5
[    2.114731] NET: Registered protocol family 10
[    2.125569] smsc95xx 1-1.1:1.0 eth0: register 'smsc95xx' at usb-3f980000.usb-1.1, smsc95xx USB 2.0 Ethernet, b8:27:eb:7f:8f:3d
[    2.137863] ip_tables: (C) 2000-2006 Netfilter Core Team
[    2.173620] systemd[1]: systemd 232 running in system mode. (+PAM +AUDIT +SELINUX +IMA +APPARMOR +SMACK +SYSVINIT +UTMP +LIBCRYPTSETUP +GCRYPT +GNUTLS +ACL +XZ +LZ4 +SECCOMP +BLKID +ELFUTILS +KMOD +IDN)
[    2.184172] systemd[1]: Detected architecture arm.
[    2.231368] usb 1-1.2: new full-speed USB device number 4 using dwc_otg
[    2.259543] systemd[1]: Set hostname to <raspberrypi>.
[    2.363847] usb 1-1.2: New USB device found, idVendor=0c72, idProduct=000c
[    2.374978] usb 1-1.2: New USB device strings: Mfr=10, Product=4, SerialNumber=0
[    2.386286] usb 1-1.2: Product: PCAN-USB
[    2.396720] usb 1-1.2: Manufacturer: PEAK-System Technik GmbH
[    2.701386] usb 1-1.4: new full-speed USB device number 5 using dwc_otg
[    2.795142] systemd[1]: Listening on udev Kernel Socket.
[    2.817515] systemd[1]: Set up automount Arbitrary Executable File Formats File System Automount Point.
[    2.839316] systemd[1]: Listening on /dev/initctl Compatibility Named Pipe.
[    2.861230] systemd[1]: Listening on Journal Socket (/dev/log).
[    2.875977] usb 1-1.4: New USB device found, idVendor=046a, idProduct=00a1
[    2.875987] usb 1-1.4: New USB device strings: Mfr=1, Product=2, SerialNumber=0
[    2.875993] usb 1-1.4: Product: KC 1000 SC
[    2.875999] usb 1-1.4: Manufacturer: Cherry
[    2.914199] input: Cherry KC 1000 SC as /devices/platform/soc/3f980000.usb/usb1/1-1/1-1.4/1-1.4:1.0/0003:046A:00A1.0001/input/input0
[    2.959482] systemd[1]: Listening on udev Control Socket.
[    2.982605] hid-generic 0003:046A:00A1.0001: input,hidraw0: USB HID v1.11 Keyboard [Cherry KC 1000 SC] on usb-3f980000.usb-1.4/input0
[    2.982712] systemd[1]: Created slice User and Session Slice.
[    3.017483] systemd[1]: Created slice System Slice.
[    3.018717] input: Cherry KC 1000 SC as /devices/platform/soc/3f980000.usb/usb1/1-1/1-1.4/1-1.4:1.1/0003:046A:00A1.0002/input/input1
[    3.081845] hid-generic 0003:046A:00A1.0002: input,hidraw1: USB HID v1.11 Device [Cherry KC 1000 SC] on usb-3f980000.usb-1.4/input1
[    3.181427] usb 1-1.5: new low-speed USB device number 6 using dwc_otg
[    3.291436] i2c /dev entries driver
[    3.337152] usb 1-1.5: New USB device found, idVendor=046d, idProduct=c077
[    3.337162] usb 1-1.5: New USB device strings: Mfr=1, Product=2, SerialNumber=0
[    3.337169] usb 1-1.5: Product: USB Optical Mouse
[    3.337176] usb 1-1.5: Manufacturer: Logitech
[    3.390530] input: Logitech USB Optical Mouse as /devices/platform/soc/3f980000.usb/usb1/1-1/1-1.5/1-1.5:1.0/0003:046D:C077.0003/input/input2
[    3.403556] hid-generic 0003:046D:C077.0003: input,hidraw2: USB HID v1.11 Mouse [Logitech USB Optical Mouse] on usb-3f980000.usb-1.5/input0
[   14.018583] EXT4-fs (mmcblk0p7): re-mounted. Opts: (null)
[   14.153910] systemd-journald[123]: Received request to flush runtime journal from PID 1
[   14.409293] gpiomem-bcm2835 3f200000.gpiomem: Initialised: Registers at 0x3f200000
[   14.690087] brcmfmac: F1 signature read @0x18000000=0x1541a9a6
[   14.700712] usbcore: registered new interface driver brcmfmac
[   14.870489] random: crng init done
[   14.989811] brcmfmac: Firmware version = wl0: Oct 23 2017 03:55:53 version 7.45.98.38 (r674442 CY) FWID 01-e58d219f
[   14.990710] brcmfmac: brcmf_c_preinit_dcmds: CLM version = API: 12.2 Data: 7.11.15 Compiler: 1.24.2 ClmImport: 1.24.1 Creation: 2014-05-26 10:53:55 Inc Data: 9.10.39 Inc Compiler: 1.29.4 Inc ClmImport: 1.36.3 Creation: 2017-10-23 03:47:14 
[   16.055445] uart-pl011 3f201000.serial: no DMA platform data
[   16.687410] IPv6: ADDRCONF(NETDEV_UP): wlan0: link is not ready
[   16.687445] brcmfmac: power management disabled
[   17.274560] smsc95xx 1-1.1:1.0 eth0: hardware isn't capable of remote wakeup
[   17.274921] IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready
[   17.760997] IPv6: ADDRCONF(NETDEV_CHANGE): wlan0: link becomes ready
[   18.513682] Adding 102396k swap on /var/swap.  Priority:-1 extents:1 across:102396k SSFS
[   21.286415] Bluetooth: Core ver 2.22
[   21.286474] NET: Registered protocol family 31
[   21.286478] Bluetooth: HCI device and connection manager initialized
[   21.286503] Bluetooth: HCI socket layer initialized
[   21.286522] Bluetooth: L2CAP socket layer initialized
[   21.286553] Bluetooth: SCO socket layer initialized
[   21.308990] Bluetooth: HCI UART driver ver 2.3
[   21.308998] Bluetooth: HCI UART protocol H4 registered
[   21.309002] Bluetooth: HCI UART protocol Three-wire (H5) registered
[   21.309180] Bluetooth: HCI UART protocol Broadcom registered
[   21.540884] Bluetooth: BNEP (Ethernet Emulation) ver 1.3
[   21.540890] Bluetooth: BNEP filters: protocol multicast
[   21.540901] Bluetooth: BNEP socket layer initialized
[   21.600913] Bluetooth: RFCOMM TTY layer initialized
[   21.600940] Bluetooth: RFCOMM socket layer initialized
[   21.600958] Bluetooth: RFCOMM ver 1.11
[   26.858710] fuse init (API version 7.26)
[   32.769966] EXT4-fs (mmcblk0p5): mounted filesystem with ordered data mode. Opts: (null)
[ 4036.333212] usb 1-1.2: USB disconnect, device number 4
Is everything right so far?

Thanks again and best regards,
Martin

Re: PEAK-Linux Driver on Raspberry Pi

Posted: Tue 13. Feb 2018, 10:42
by S.Grosjean
Hi,

Thanks for the outputs, but:
Is everything right so far?
Nope! :-)

Please do the "dmesg" after "sudo modprobe pcan".

Regards,

Stéphane

Re: PEAK-Linux Driver on Raspberry Pi

Posted: Tue 20. Feb 2018, 15:20
by h9ADz
Hi Stéphane,

please excuse the late replay - a colleague wanted to help me and was not successful - I had to restart with a blank os.

I think I am now at the same point as before. Please check the output

Code: Select all

$ dmesg
[    0.000000] Booting Linux on physical CPU 0x0
[    0.000000] Linux version 4.9.59-v7+ (dc4@dc4-XPS13-9333) (gcc version 4.9.3 (crosstool-NG crosstool-ng-1.22.0-88-g8460611) ) #1047 SMP Sun Oct 29 12:19:23 GMT 2017
[    0.000000] CPU: ARMv7 Processor [410fd034] revision 4 (ARMv7), cr=10c5383d
[    0.000000] CPU: div instructions available: patching division code
[    0.000000] CPU: PIPT / VIPT nonaliasing data cache, VIPT aliasing instruction cache
[    0.000000] OF: fdt:Machine model: Raspberry Pi 3 Model B Rev 1.2
[    0.000000] cma: Reserved 8 MiB at 0x3ac00000
[    0.000000] Memory policy: Data cache writealloc
[    0.000000] On node 0 totalpages: 242688
[    0.000000] free_area_init_node: node 0, pgdat 80c6f380, node_mem_map ba3a1000
[    0.000000]   Normal zone: 2133 pages used for memmap
[    0.000000]   Normal zone: 0 pages reserved
[    0.000000]   Normal zone: 242688 pages, LIFO batch:31
[    0.000000] percpu: Embedded 14 pages/cpu @ba35b000 s25600 r8192 d23552 u57344
[    0.000000] pcpu-alloc: s25600 r8192 d23552 u57344 alloc=14*4096
[    0.000000] pcpu-alloc: [0] 0 [0] 1 [0] 2 [0] 3 
[    0.000000] Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 240555
[    0.000000] Kernel command line: 8250.nr_uarts=0 bcm2708_fb.fbwidth=1920 bcm2708_fb.fbheight=1200 bcm2708_fb.fbswap=1 vc_mem.mem_base=0x3ec00000 vc_mem.mem_size=0x40000000  dwc_otg.lpm_enable=0 console=ttyS0,115200 console=tty1 root=PARTUUID=193393f3-02 rootfstype=ext4 elevator=deadline fsck.repair=yes rootwait quiet splash plymouth.ignore-serial-consoles
[    0.000000] PID hash table entries: 4096 (order: 2, 16384 bytes)
[    0.000000] Dentry cache hash table entries: 131072 (order: 7, 524288 bytes)
[    0.000000] Inode-cache hash table entries: 65536 (order: 6, 262144 bytes)
[    0.000000] Memory: 940364K/970752K available (7168K kernel code, 486K rwdata, 2012K rodata, 1024K init, 770K bss, 22196K reserved, 8192K cma-reserved)
[    0.000000] Virtual kernel memory layout:
                   vector  : 0xffff0000 - 0xffff1000   (   4 kB)
                   fixmap  : 0xffc00000 - 0xfff00000   (3072 kB)
                   vmalloc : 0xbb800000 - 0xff800000   (1088 MB)
                   lowmem  : 0x80000000 - 0xbb400000   ( 948 MB)
                   modules : 0x7f000000 - 0x80000000   (  16 MB)
                     .text : 0x80008000 - 0x80800000   (8160 kB)
                     .init : 0x80b00000 - 0x80c00000   (1024 kB)
                     .data : 0x80c00000 - 0x80c79834   ( 487 kB)
                      .bss : 0x80c7b000 - 0x80d3b964   ( 771 kB)
[    0.000000] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=4, Nodes=1
[    0.000000] Hierarchical RCU implementation.
[    0.000000] 	Build-time adjustment of leaf fanout to 32.
[    0.000000] NR_IRQS:16 nr_irqs:16 16
[    0.000000] arm_arch_timer: Architected cp15 timer(s) running at 19.20MHz (phys).
[    0.000000] clocksource: arch_sys_counter: mask: 0xffffffffffffff max_cycles: 0x46d987e47, max_idle_ns: 440795202767 ns
[    0.000007] sched_clock: 56 bits at 19MHz, resolution 52ns, wraps every 4398046511078ns
[    0.000018] Switching to timer-based delay loop, resolution 52ns
[    0.000295] Console: colour dummy device 80x30
[    0.000311] console [tty1] enabled
[    0.000330] Calibrating delay loop (skipped), value calculated using timer frequency.. 38.40 BogoMIPS (lpj=192000)
[    0.000346] pid_max: default: 32768 minimum: 301
[    0.000651] Mount-cache hash table entries: 2048 (order: 1, 8192 bytes)
[    0.000660] Mountpoint-cache hash table entries: 2048 (order: 1, 8192 bytes)
[    0.001659] Disabling memory control group subsystem
[    0.001731] CPU: Testing write buffer coherency: ok
[    0.001764] ftrace: allocating 22392 entries in 66 pages
[    0.048829] CPU0: update cpu_capacity 1024
[    0.048844] CPU0: thread -1, cpu 0, socket 0, mpidr 80000000
[    0.048879] Setting up static identity map for 0x100000 - 0x100034
[    0.050741] CPU1: update cpu_capacity 1024
[    0.050749] CPU1: thread -1, cpu 1, socket 0, mpidr 80000001
[    0.051432] CPU2: update cpu_capacity 1024
[    0.051438] CPU2: thread -1, cpu 2, socket 0, mpidr 80000002
[    0.052109] CPU3: update cpu_capacity 1024
[    0.052116] CPU3: thread -1, cpu 3, socket 0, mpidr 80000003
[    0.052203] Brought up 4 CPUs
[    0.052213] SMP: Total of 4 processors activated (153.60 BogoMIPS).
[    0.052217] CPU: All CPU(s) started in HYP mode.
[    0.052221] CPU: Virtualization extensions available.
[    0.053014] devtmpfs: initialized
[    0.064447] VFP support v0.3: implementor 41 architecture 3 part 40 variant 3 rev 4
[    0.064715] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[    0.064732] futex hash table entries: 1024 (order: 4, 65536 bytes)
[    0.065267] pinctrl core: initialized pinctrl subsystem
[    0.066174] NET: Registered protocol family 16
[    0.068520] DMA: preallocated 1024 KiB pool for atomic coherent allocations
[    0.077498] hw-breakpoint: found 5 (+1 reserved) breakpoint and 4 watchpoint registers.
[    0.077504] hw-breakpoint: maximum watchpoint size is 8 bytes.
[    0.077644] Serial: AMBA PL011 UART driver
[    0.079550] bcm2835-mbox 3f00b880.mailbox: mailbox enabled
[    0.080074] uart-pl011 3f201000.serial: could not find pctldev for node /soc/gpio@7e200000/uart0_pins, deferring probe
[    0.149659] bcm2835-dma 3f007000.dma: DMA legacy API manager at bb80f000, dmachans=0x1
[    0.151473] SCSI subsystem initialized
[    0.151624] usbcore: registered new interface driver usbfs
[    0.151699] usbcore: registered new interface driver hub
[    0.151788] usbcore: registered new device driver usb
[    0.158628] raspberrypi-firmware soc:firmware: Attached to firmware from 2017-10-24 17:09
[    0.160106] clocksource: Switched to clocksource arch_sys_counter
[    0.207178] VFS: Disk quotas dquot_6.6.0
[    0.207254] VFS: Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
[    0.207458] FS-Cache: Loaded
[    0.207706] CacheFiles: Loaded
[    0.219828] NET: Registered protocol family 2
[    0.220729] TCP established hash table entries: 8192 (order: 3, 32768 bytes)
[    0.220838] TCP bind hash table entries: 8192 (order: 4, 65536 bytes)
[    0.221022] TCP: Hash tables configured (established 8192 bind 8192)
[    0.221111] UDP hash table entries: 512 (order: 2, 16384 bytes)
[    0.221153] UDP-Lite hash table entries: 512 (order: 2, 16384 bytes)
[    0.221358] NET: Registered protocol family 1
[    0.221765] RPC: Registered named UNIX socket transport module.
[    0.221770] RPC: Registered udp transport module.
[    0.221774] RPC: Registered tcp transport module.
[    0.221779] RPC: Registered tcp NFSv4.1 backchannel transport module.
[    0.222831] hw perfevents: enabled with armv7_cortex_a7 PMU driver, 7 counters available
[    0.225125] workingset: timestamp_bits=14 max_order=18 bucket_order=4
[    0.241156] FS-Cache: Netfs 'nfs' registered for caching
[    0.242128] NFS: Registering the id_resolver key type
[    0.242152] Key type id_resolver registered
[    0.242157] Key type id_legacy registered
[    0.244559] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 251)
[    0.244675] io scheduler noop registered
[    0.244681] io scheduler deadline registered (default)
[    0.244952] io scheduler cfq registered
[    0.250575] BCM2708FB: allocated DMA memory fad10000
[    0.250598] BCM2708FB: allocated DMA channel 0 @ bb80f000
[    0.315425] Console: switching to colour frame buffer device 240x75
[    0.355078] bcm2835-rng 3f104000.rng: hwrng registered
[    0.355192] vc-mem: phys_addr:0x00000000 mem_base=0x3ec00000 mem_size:0x40000000(1024 MiB)
[    0.355743] vc-sm: Videocore shared memory driver
[    0.370935] brd: module loaded
[    0.379887] loop: module loaded
[    0.379900] Loading iSCSI transport class v2.0-870.
[    0.380525] usbcore: registered new interface driver smsc95xx
[    0.380542] dwc_otg: version 3.00a 10-AUG-2012 (platform bus)
[    0.608636] Core Release: 2.80a
[    0.608646] Setting default values for core params
[    0.608677] Finished setting default values for core params
[    0.809069] Using Buffer DMA mode
[    0.809075] Periodic Transfer Interrupt Enhancement - disabled
[    0.809080] Multiprocessor Interrupt Enhancement - disabled
[    0.809085] OTG VER PARAM: 0, OTG VER FLAG: 0
[    0.809102] Dedicated Tx FIFOs mode
[    0.809479] WARN::dwc_otg_hcd_init:1032: FIQ DMA bounce buffers: virt = 0xbad04000 dma = 0xfad04000 len=9024
[    0.809506] FIQ FSM acceleration enabled for :
               Non-periodic Split Transactions
               Periodic Split Transactions
               High-Speed Isochronous Endpoints
               Interrupt/Control Split Transaction hack enabled
[    0.809514] dwc_otg: Microframe scheduler enabled
[    0.809565] WARN::hcd_init_fiq:459: FIQ on core 1 at 0x8058f5b0
[    0.809575] WARN::hcd_init_fiq:460: FIQ ASM at 0x8058f920 length 36
[    0.809588] WARN::hcd_init_fiq:486: MPHI regs_base at 0xbb87a000
[    0.809645] dwc_otg 3f980000.usb: DWC OTG Controller
[    0.809681] dwc_otg 3f980000.usb: new USB bus registered, assigned bus number 1
[    0.809713] dwc_otg 3f980000.usb: irq 62, io mem 0x00000000
[    0.809760] Init: Port Power? op_state=1
[    0.809764] Init: Power Port (0)
[    0.809978] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002
[    0.809988] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    0.809995] usb usb1: Product: DWC OTG Controller
[    0.810003] usb usb1: Manufacturer: Linux 4.9.59-v7+ dwc_otg_hcd
[    0.810012] usb usb1: SerialNumber: 3f980000.usb
[    0.810878] hub 1-0:1.0: USB hub found
[    0.810918] hub 1-0:1.0: 1 port detected
[    0.811623] dwc_otg: FIQ enabled
[    0.811627] dwc_otg: NAK holdoff enabled
[    0.811633] dwc_otg: FIQ split-transaction FSM enabled
[    0.811648] Module dwc_common_port init
[    0.811894] usbcore: registered new interface driver usb-storage
[    0.812142] mousedev: PS/2 mouse device common for all mice
[    0.813154] bcm2835-wdt 3f100000.watchdog: Broadcom BCM2835 watchdog timer
[    0.813436] bcm2835-cpufreq: min=600000 max=1200000
[    0.813833] sdhci: Secure Digital Host Controller Interface driver
[    0.813837] sdhci: Copyright(c) Pierre Ossman
[    0.814124] sdhost-bcm2835 3f202000.sdhost: could not get clk, deferring probe
[    0.816306] mmc-bcm2835 3f300000.mmc: could not get clk, deferring probe
[    0.816406] sdhci-pltfm: SDHCI platform and OF driver helper
[    0.819044] ledtrig-cpu: registered to indicate activity on CPUs
[    0.819231] hidraw: raw HID events driver (C) Jiri Kosina
[    0.819428] usbcore: registered new interface driver usbhid
[    0.819432] usbhid: USB HID core driver
[    0.820321] vchiq: vchiq_init_state: slot_zero = 0xbad80000, is_master = 0
[    0.822325] [vc_sm_connected_init]: start
[    0.832148] [vc_sm_connected_init]: end - returning 0
[    0.832519] Initializing XFRM netlink socket
[    0.832540] NET: Registered protocol family 17
[    0.832652] Key type dns_resolver registered
[    0.833159] Registering SWP/SWPB emulation handler
[    0.833859] registered taskstats version 1
[    0.840227] uart-pl011 3f201000.serial: cts_event_workaround enabled
[    0.840301] 3f201000.serial: ttyAMA0 at MMIO 0x3f201000 (irq = 87, base_baud = 0) is a PL011 rev2
[    0.841941] sdhost: log_buf @ bad07000 (fad07000)
[    0.920139] mmc0: sdhost-bcm2835 loaded - DMA enabled (>1)
[    0.922364] mmc-bcm2835 3f300000.mmc: mmc_debug:0 mmc_debug2:0
[    0.922373] mmc-bcm2835 3f300000.mmc: DMA channel allocated
[    0.980245] of_cfs_init
[    0.980345] of_cfs_init: OK
[    0.980884] Waiting for root device PARTUUID=193393f3-02...
[    0.991571] mmc0: host does not support reading read-only switch, assuming write-enable
[    0.994044] mmc0: new high speed SDXC card at address 1234
[    0.994753] mmcblk0: mmc0:1234 SA64G 57.7 GiB
[    0.996511]  mmcblk0: p1 p2
[    0.999833] mmc1: queuing unknown CIS tuple 0x80 (2 bytes)
[    1.001388] mmc1: queuing unknown CIS tuple 0x80 (3 bytes)
[    1.002934] mmc1: queuing unknown CIS tuple 0x80 (3 bytes)
[    1.005714] mmc1: queuing unknown CIS tuple 0x80 (7 bytes)
[    1.030215] Indeed it is in host mode hprt0 = 00021501
[    1.097372] random: fast init done
[    1.119250] EXT4-fs (mmcblk0p2): mounted filesystem with ordered data mode. Opts: (null)
[    1.119303] VFS: Mounted root (ext4 filesystem) readonly on device 179:2.
[    1.120858] devtmpfs: mounted
[    1.122800] Freeing unused kernel memory: 1024K
[    1.156619] mmc1: new high speed SDIO card at address 0001
[    1.230173] usb 1-1: new high-speed USB device number 2 using dwc_otg
[    1.230323] Indeed it is in host mode hprt0 = 00001101
[    1.460487] usb 1-1: New USB device found, idVendor=0424, idProduct=9514
[    1.460500] usb 1-1: New USB device strings: Mfr=0, Product=0, SerialNumber=0
[    1.461388] hub 1-1:1.0: USB hub found
[    1.461492] hub 1-1:1.0: 5 ports detected
[    1.588096] systemd[1]: System time before build time, advancing clock.
[    1.724512] NET: Registered protocol family 10
[    1.746116] ip_tables: (C) 2000-2006 Netfilter Core Team
[    1.771608] systemd[1]: systemd 232 running in system mode. (+PAM +AUDIT +SELINUX +IMA +APPARMOR +SMACK +SYSVINIT +UTMP +LIBCRYPTSETUP +GCRYPT +GNUTLS +ACL +XZ +LZ4 +SECCOMP +BLKID +ELFUTILS +KMOD +IDN)
[    1.772204] systemd[1]: Detected architecture arm.
[    1.773874] systemd[1]: Set hostname to <raspberrypi>.
[    1.780164] usb 1-1.1: new high-speed USB device number 3 using dwc_otg
[    1.920511] usb 1-1.1: New USB device found, idVendor=0424, idProduct=ec00
[    1.920529] usb 1-1.1: New USB device strings: Mfr=0, Product=0, SerialNumber=0
[    1.923386] smsc95xx v1.0.5
[    2.024005] smsc95xx 1-1.1:1.0 eth0: register 'smsc95xx' at usb-3f980000.usb-1.1, smsc95xx USB 2.0 Ethernet, b8:27:eb:7f:8f:3d
[    2.295830] systemd[1]: Listening on /dev/initctl Compatibility Named Pipe.
[    2.296278] systemd[1]: Listening on udev Kernel Socket.
[    2.296391] systemd[1]: Reached target Swap.
[    2.297153] systemd[1]: Created slice User and Session Slice.
[    2.297702] systemd[1]: Created slice System Slice.
[    2.300933] systemd[1]: Mounting POSIX Message Queue File System...
[    2.301160] systemd[1]: Reached target Slices.
[    2.320235] usb 1-1.2: new high-speed USB device number 4 using dwc_otg
[    2.398578] i2c /dev entries driver
[    2.465978] usb 1-1.2: New USB device found, idVendor=8564, idProduct=1000
[    2.465994] usb 1-1.2: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[    2.466003] usb 1-1.2: Product: Mass Storage Device
[    2.466010] usb 1-1.2: Manufacturer: JetFlash
[    2.466018] usb 1-1.2: SerialNumber: 859GOACPI40FRQ9U
[    2.467679] usb-storage 1-1.2:1.0: USB Mass Storage device detected
[    2.468690] scsi host0: usb-storage 1-1.2:1.0
[    2.570238] usb 1-1.4: new full-speed USB device number 5 using dwc_otg
[    2.724687] usb 1-1.4: New USB device found, idVendor=046d, idProduct=c049
[    2.724706] usb 1-1.4: New USB device strings: Mfr=1, Product=2, SerialNumber=0
[    2.724715] usb 1-1.4: Product: USB Gaming Mouse
[    2.724723] usb 1-1.4: Manufacturer: Logitech
[    2.733749] input: Logitech USB Gaming Mouse as /devices/platform/soc/3f980000.usb/usb1/1-1/1-1.4/1-1.4:1.0/0003:046D:C049.0001/input/input0
[    2.734253] hid-generic 0003:046D:C049.0001: input,hidraw0: USB HID v1.11 Mouse [Logitech USB Gaming Mouse] on usb-3f980000.usb-1.4/input0
[    2.742922] hid-generic 0003:046D:C049.0002: hiddev0,hidraw1: USB HID v1.11 Device [Logitech USB Gaming Mouse] on usb-3f980000.usb-1.4/input1
[    3.050290] usb 1-1.5: new low-speed USB device number 6 using dwc_otg
[    3.058878] EXT4-fs (mmcblk0p2): re-mounted. Opts: (null)
[    3.176503] systemd-journald[117]: Received request to flush runtime journal from PID 1
[    3.336014] usb 1-1.5: New USB device found, idVendor=04d9, idProduct=1702
[    3.336032] usb 1-1.5: New USB device strings: Mfr=1, Product=2, SerialNumber=0
[    3.336041] usb 1-1.5: Product: USB Keyboard
[    3.336050] usb 1-1.5: Manufacturer:  
[    3.396739] input:   USB Keyboard as /devices/platform/soc/3f980000.usb/usb1/1-1/1-1.5/1-1.5:1.0/0003:04D9:1702.0003/input/input1
[    3.471339] hid-generic 0003:04D9:1702.0003: input,hidraw2: USB HID v1.10 Keyboard [  USB Keyboard] on usb-3f980000.usb-1.5/input0
[    3.569418] input:   USB Keyboard as /devices/platform/soc/3f980000.usb/usb1/1-1/1-1.5/1-1.5:1.1/0003:04D9:1702.0004/input/input2
[    3.631806] hid-generic 0003:04D9:1702.0004: input,hidraw3: USB HID v1.10 Device [  USB Keyboard] on usb-3f980000.usb-1.5/input1
[    3.869497] scsi 0:0:0:0: Direct-Access     JetFlash Transcend 32GB   1100 PQ: 0 ANSI: 6
[    3.872510] sd 0:0:0:0: [sda] 61702144 512-byte logical blocks: (31.6 GB/29.4 GiB)
[    3.873088] sd 0:0:0:0: [sda] Write Protect is off
[    3.873103] sd 0:0:0:0: [sda] Mode Sense: 43 00 00 00
[    3.873672] sd 0:0:0:0: [sda] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA
[    3.883054]  sda: sda1
[    3.886093] sd 0:0:0:0: [sda] Attached SCSI removable disk
[    4.055782] gpiomem-bcm2835 3f200000.gpiomem: Initialised: Registers at 0x3f200000
[    4.297520] brcmfmac: F1 signature read @0x18000000=0x1541a9a6
[    4.305294] usbcore: registered new interface driver brcmfmac
[    4.326219] sd 0:0:0:0: Attached scsi generic sg0 type 0
[    4.571533] brcmfmac: Firmware version = wl0: Aug  7 2017 00:46:29 version 7.45.41.46 (r666254 CY) FWID 01-f8a78378
[    4.573686] brcmfmac: brcmf_c_preinit_dcmds: CLM version = API: 12.2 Data: 7.11.15 Compiler: 1.24.2 ClmImport: 1.24.1 Creation: 2014-05-26 10:53:55 Inc Data: 9.10.41 Inc Compiler: 1.29.4 Inc ClmImport: 1.36.3 Creation: 2017-08-07 00:37:47 
[    6.732930] random: crng init done
[    7.389533] uart-pl011 3f201000.serial: no DMA platform data
[    8.108359] IPv6: ADDRCONF(NETDEV_UP): wlan0: link is not ready
[    8.108419] brcmfmac: power management disabled
[    8.130184] Adding 102396k swap on /var/swap.  Priority:-1 extents:1 across:102396k SSFS
[   11.961360] smsc95xx 1-1.1:1.0 eth0: hardware isn't capable of remote wakeup
[   11.961528] IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready
[   12.064368] Bluetooth: Core ver 2.22
[   12.064466] NET: Registered protocol family 31
[   12.064469] Bluetooth: HCI device and connection manager initialized
[   12.065440] Bluetooth: HCI socket layer initialized
[   12.065458] Bluetooth: L2CAP socket layer initialized
[   12.065490] Bluetooth: SCO socket layer initialized
[   12.074878] Bluetooth: HCI UART driver ver 2.3
[   12.074891] Bluetooth: HCI UART protocol H4 registered
[   12.074894] Bluetooth: HCI UART protocol Three-wire (H5) registered
[   12.075006] Bluetooth: HCI UART protocol Broadcom registered
[   12.529801] IPv6: ADDRCONF(NETDEV_CHANGE): wlan0: link becomes ready
[   12.783622] Bluetooth: BNEP (Ethernet Emulation) ver 1.3
[   12.783628] Bluetooth: BNEP filters: protocol multicast
[   12.783647] Bluetooth: BNEP socket layer initialized
[   12.880464] Bluetooth: RFCOMM TTY layer initialized
[   12.880491] Bluetooth: RFCOMM socket layer initialized
[   12.880524] Bluetooth: RFCOMM ver 1.11
[   18.247166] fuse init (API version 7.26)
[  244.620409] CAN device driver interface
[  244.642319] pcan: loading out-of-tree module taints kernel.
[  244.646719] pcan: Release_20171027_n (le)
[  244.646730] pcan: driver config [mod] [isa] [dng] [usb] [net] 
[  244.646932] usbcore: registered new interface driver pcan
[  244.646950] pcan: major 243.
[ 6684.130522] usbcore: deregistering interface driver pcan
[ 6684.132075] pcan: removed.
[ 6948.951924] pcan: Release_20171027_n (le)
[ 6948.951934] pcan: driver config [mod] [dng] [usb] [net] 
[ 6948.952152] usbcore: registered new interface driver pcan
[ 6948.952171] pcan: major 243.
[10384.757485] can: controller area network core (rev 20120528 abi 9)
[10384.757553] NET: Registered protocol family 29
[10384.762001] can: raw protocol (rev 20120528)
[11574.334942] usbcore: deregistering interface driver pcan
[11574.335156] pcan: removed.
[11589.025835] pcan: Release_20171027_n (le)
[11589.025848] pcan: driver config [mod] [dng] [usb] [net] 
[11589.025995] usbcore: registered new interface driver pcan
[11589.026013] pcan: major 243.
Is it normal to have no entry in

Code: Select all

$ cat /proc/pcan

*------------- PEAK-System CAN interfaces (www.peak-system.com) -------------
*------------- Release_20171027_n (8.5.1) Feb 20 2018 12:46:24 --------------
*------------------------- [mod] [dng] [usb] [net] --------------------------
*--------------------- 0 interfaces @ major 243 found -----------------------
*n -type- -ndev- --base-- irq --btr- --read-- --write- --irqs-- -errors- status
Kind regards,
Martin

Re: PEAK-Linux Driver on Raspberry Pi

Posted: Tue 20. Feb 2018, 15:40
by S.Grosjean
Hi Martin,

Please type:

Code: Select all

$ lsusb -d c72:
and send us the output.

Regards,

Stéphane

Re: PEAK-Linux Driver on Raspberry Pi

Posted: Tue 20. Feb 2018, 16:24
by h9ADz
Hi,

currently I have nothing connected via USB, except mouse and keyboard.

Code: Select all

$ lsusb -d c72:
is empty.

Kind regards,
Martin

Re: PEAK-Linux Driver on Raspberry Pi

Posted: Wed 21. Feb 2018, 09:40
by S.Grosjean
Hi Martin,

If the lsusb is empty, then the PCAN-USB is not seen by the Kernel. That's the explanation why the driver can't see it.
Look at your dmesg ouput since the reboot: You'll see things like that:

Code: Select all

[    0.809978] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002
[    0.809988] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    0.809995] usb usb1: Product: DWC OTG Controller
[    0.810003] usb usb1: Manufacturer: Linux 4.9.59-v7+ dwc_otg_hcd
[    0.810012] usb usb1: SerialNumber: 3f980000.usb
[    0.810878] hub 1-0:1.0: USB hub found
You should also see the same thing but with "idVendor=0c72". How is the LED of the PCAN-USB?

Regards,

Stéphane