Daniel

  • Posts

    3
  • Joined

  • Last visited

Recent Profile Visitors

511 profile views

Daniel's Achievements

  1. Hello, I just tested the compiled kernel and CAN is working. Thanks for all your hints. Daniel
  2. Hello Eric, I tested my hardware using Can4Linux, which you can get easily running on the banana pi so I know, everything is working well. Just reading your replay and the one of Gerd i'm trying to compile the latest 4.4.x kernel. Gerd, your patches seem to include all needed information, but cannot be directly applied to the latest kernel any more. Only using the one patch from Eric is missing some information, but when I download all 3 patches from that site: "https://github.com/GBert/sunxi-can-driver",to userpatches/kernel/sunxi-next the kernel compiles. I hope to find some time within the next week to install the kernel and test can. I will post an update. Daniel
  3. Hello, I want to use SocketCan on the Banana Pi / Allwinner A20 with the internal CAN interface. I have tested my hardware in the past using can4linux and also have some experience with Socketcan and other interfaces. Configuarion: Armbian root@bananapi:/# uname -r 4.4.1-sunxi loaded the can driver with "modprobe sun4i_can" results in "lsmod": Module Size Used by sun4i_can 5810 0 can_dev 8307 1 sun4i_can And dmesg states: [ 2632.582992] CAN device driver interface But I do not get the can0 device up: root@bananapi:~# ip link set can0 up type can bitrate 500000 Cannot find device "can0" There seems to be no can device detected by the sun4i_can: root@bananapi:~# cat /proc/net/dev Inter-| Receive | Transmit face |bytes packets errs drop fifo frame compressed multicast|bytes packets errs drop fifo colls carrier compressed lo: 4307 60 0 0 0 0 0 0 4307 60 0 0 0 0 0 0 eth0: 929191 13067 0 0 0 0 0 0 871467 4282 0 0 0 0 0 0 bond0: 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 Did someone else try canbus and got it running? Thanks, Daniel