How to configure mcp2515 CAN module on khadas edge v platfrom

@ramesh ,
The clock frequency configuration of MCP2515 refers to the device tree file I sent you earlier

16M/2 = 8M

@ramesh
Also, make sure that the pins are not multiplexed! ! !

diff --git a/arch/arm64/boot/dts/rockchip/overlays/edgev/i2s0.dts b/arch/arm64/boot/dts/rockchip/overlays/edgev/i2s0.dts
index d2f69206eaca..4ee771d38771 100644
--- a/arch/arm64/boot/dts/rockchip/overlays/edgev/i2s0.dts
+++ b/arch/arm64/boot/dts/rockchip/overlays/edgev/i2s0.dts
@@ -5,7 +5,7 @@
        fragment@0 {
                target = <&i2s0>;
                __overlay__ {
-                       status = "okay";
+                       status = "disabled";
                };
        };
 };

tried that also can0 is not showing .
is any other patch or changes required…?

@ramesh
There’s nothing . I don’t know what’s wrong with you. I’ve tried my best to help you.
It’s normal for me.
Again, only checking the wiring is recommended

hi jack.zhao…,
while recompiling fenix ,every time it compiling the uboot and rootfs and kernel .it taking long time…
I need to recompile only kernel Image.?
after recompiling kernel we get update image.
how to use that update kernel image in already builded fenix image…?
is there any way to boot update kernel image.?

@ramesh hi,
Fenix directory:
Create first .ignore-update.

touch  .ignore-update

Then, you can single compile.

view help:

make  help

for example, I modified the kernel:

make kernel

make kernel-deb
make image

Or directly copy the DEB package to the board and install it with the dpkg -i command:
For example, installing the kernel:
Deb package path:
fenix/build/images/debs/1.0.10/Edge

After copying to the board:

sudo dpkg -i linux-headers-rockchip-4.4_ 1.0.10_ arm64.deb

sudo dpkg -i linux-image-rockchip-4.4_ 1.0.10_ arm64.deb

sudo dpkg -i linux-dtb-rockchip-4.4_ 1.0.10_ arm64.deb

If you like it, please give me a like!!!
The follow-up will provide you with better service.
Thank you! :smile:

2 Likes

I see this isn’t closed yet.

I can also confirm the patches linked by @jack.zhao are correct and tested on my setup.