Jump to content

Hans Heukenkamp

Members
  • Posts

    8
  • Joined

  • Last visited

Everything posted by Hans Heukenkamp

  1. Observe the same problem on a BananaPi M1 on Linux bananapi 5.8.5-sunxi #20.08.1 SMP Wed Sep 2 08:03:45 CEST 2020 armv7l GNU/Linux.
  2. Do you use a BananaPi M1? The prompt indicates otherwise.
  3. It looks like you would need to modify the actual DTB of your Armbian version on the M1. I suspect the overlay code cited here will not work with your Armbian version. It is a hint that the DTC compiler refuses to accept the dts file. You may want to check the CAN overlay that comes with exactly the Armbian version you run on your M1. That is certainly the best way to start.
  4. If you do not succeed compiling the overlay directly on the BananaPi M1, you may do it anywhere else, if you have a working dtc there. Any Linux box with a dtc installed will do.
  5. The dtc on my Bananapi did not complain about overlays. This is the version installed on my side: root@bananapi:~# dtc --version Version: DTC 1.4.7 Just try by hand to find out, what is going on: root@bananapi:~/dtb# dtc -I dts -O dtb -o sun7i-a20-can.dtbo sun7i-a20-can.dts
  6. @wollik: Sorry for the delay. Shikegis changes pointed me in the right direction. I wanted to express that. CAN is indeed working with the current stable Armbian version on BananaPi M1: root@bananapi:~/dtb# cat /etc/armbian-release # PLEASE DO NOT EDIT THIS FILE BOARD=bananapi BOARD_NAME="Banana Pi" BOARDFAMILY=sun7i BUILD_REPOSITORY_URL=https://github.com/armbian/build BUILD_REPOSITORY_COMMIT=eb9dad92 DISTRIBUTION_CODENAME=buster DISTRIBUTION_STATUS=supported VERSION=20.05.2 LINUXFAMILY=sunxi BRANCH=current ARCH=arm IMAGE_TYPE=stable BOARD_TYPE=conf INITRD_ARCH=arm KERNEL_IMAGE_TYPE=Image I have just changed the pins in the dtb overlay file, which looks like that now: root@bananapi:~/dtb# cat sun7i-a20-can.dts /dts-v1/; / { compatible = "allwinner,sun7i-a20"; fragment@0 { target = < 0xffffffff >; __overlay__ { pinctrl-names = "default"; pinctrl-0 = < 0xffffffff >; status = "okay"; }; }; __fixups__ { can0 = "/fragment@0:target:0"; can_ph_pins = "/fragment@0/__overlay__:pinctrl-0:0"; }; }; I have added this overlay as user overlay with armbian-add-overlay sun7i-a20-can.dts and rebooted. As my hardware requires a 500 kBit setting, I use this as setup: modprobe can_raw ip link set can0 type can bitrate 500000 triple-sampling on ifconfig can0 up Btw. dynamic loading of the overlay at runtime works as well.
  7. The current dev and next images (kernel 4.19 and 4.20, resp.) I have built using the armbian build system worked instantly with the BPi M2 Zero. Very nice! However, I could not get cpu frequency scaling to work. Is there a hint how to get it working?
×
×
  • Create New...

Important Information

Terms of Use - Privacy Policy - Guidelines