Hi!
I want to connect a Microchip MCP2515 CAN interface using the SPI interface on the VIM3L. What I’ve done so far:
Enable SPI on 40-pin header
I got the SPI showing up using the forum post “vim3-gpio-wiringpi-spi/5893” (no link, because new user are only allowed to add two links…) by modifying /fenix/build/linux/arch/arm64/boot/dts/amlogic/kvim3l_linux.dts
:
&pwm_ef {
status = "okay";
pinctrl-names = "default";
pinctrl-0 = <&pwm_f_pins1>;
};
...
&spicc1 {
status = "enable";
pinctrl-names = "default";
pinctrl-0 = <&spicc1_pins>;
cs-gpios = <&gpio GPIOH_6 0>;
...
and changing the overlays line in /boot/env.txt
to: overlays=spi1 watchdog
Load mcp251x driver (<= here is the Problem)
Now I want to add the Linux mcp251x driver modul to the linux build. I’ve tried using the post Enabling kernel drivers:
$ cd build/linux
$ make ARCH=arm64 kvim_defconfig
$ make ARCH=arm64 menuconfig
In menuconfig
I’m changing the following settings:
-
Networking support
-
CAN bus subsystem support
(<= setting this to<*>
)-
CAN device Drivers
-
CAN SPI interfaces
-
Microchip MCP251x and MCP25625 SPI CAN controllers (NEW)
(<= setting this to<M>
)
-
-
-
-
Then using < Save >
to the default file name .config
.
$ make ARCH=arm64 savedefconfig
$ mv defconfig arch/arm64/configs/kvim_defconfig
$ cd ../../ #Back to fenix dir
$ make kernel && make deb && make
But the driver module won’t show up on the VIM.
Also tried make kernel-config:
# need only 1st time) can break by Ctrl+C after downloading kernel source
make kernel
# after can run it already
make kernel-config
But still the mcp251x.ko
-file is still missing.
What am I doing wrong? Does somebody has already managed to get the MCP2515 work on the VIM?