ROC_RK3588S_PC CAN 自行编译固件

固件类型:自行编译的固件
SDK包名称:firefly_rk3588_android12.0_git_20220311
SDK修改内容:如内容描述所示
Log日志:roc_rk3588s_pc_can.log

问题现象:can0无法读到数据。

自行编译ROM,ip link ls可以看到can0,candump any没有任何数据输出。(使用官方ROM:ROC-RK3588S-PC_Android12_HDMI_230315.img,candump any可以读到数据)

SDK修改内容:

— a/kernel-5.10/arch/arm64/boot/dts/rockchip/roc-rk3588s-pc.dts
+++ b/kernel-5.10/arch/arm64/boot/dts/rockchip/roc-rk3588s-pc.dts
@@ -7,7 +7,7 @@
/dts-v1/;

#include “roc-rk3588s-pc.dtsi”
-//#include “roc-rk3588s-pc-ext.dtsi”
+#include “roc-rk3588s-pc-ext.dtsi”

#include “rk3588-roc-pc-cam-8ms1m.dtsi”

根据文档内容对应确认(实际无修改)

kernel-5.10/arch/arm64/boot/dts/rockchip/rk3588s.dtsi

can0: can[b]@fea50000[/b] {            compatible = "rockchip,can-2.0";            reg = <0x0 0xfea50000 0x0 0x1000>;            interrupts = <GIC_SPI 341 IRQ_TYPE_LEVEL_HIGH>;            clocks = <&cru CLK_CAN0>, <&cru PCLK_CAN0>;            clock-names = "baudclk", "apb_pclk";            resets = <&cru SRST_CAN0>, <&cru SRST_P_CAN0>;            reset-names = "can", "can-apb";            pinctrl-names = "default";            pinctrl-0 = <&can0m0_pins>;            tx-fifo-depth = <1>;            rx-fifo-depth = <6>;            status = "disabled";    };    can1: can[b]@fea60000[/b] {            compatible = "rockchip,can-2.0";            reg = <0x0 0xfea60000 0x0 0x1000>;            interrupts = <GIC_SPI 342 IRQ_TYPE_LEVEL_HIGH>;            clocks = <&cru CLK_CAN1>, <&cru PCLK_CAN1>;            clock-names = "baudclk", "apb_pclk";            resets = <&cru SRST_CAN1>, <&cru SRST_P_CAN1>;            reset-names = "can", "can-apb";            pinctrl-names = "default";            pinctrl-0 = <&can1m0_pins>;            tx-fifo-depth = <1>;            rx-fifo-depth = <6>;            status = "disabled";    };    can2: can[b]@fea70000[/b] {            compatible = "rockchip,can-2.0";            reg = <0x0 0xfea70000 0x0 0x1000>;            interrupts = <GIC_SPI 343 IRQ_TYPE_LEVEL_HIGH>;            clocks = <&cru CLK_CAN2>, <&cru PCLK_CAN2>;            clock-names = "baudclk", "apb_pclk";            resets = <&cru SRST_CAN2>, <&cru SRST_P_CAN2>;            reset-names = "can", "can-apb";            pinctrl-names = "default";            pinctrl-0 = <&can2m0_pins>;            tx-fifo-depth = <1>;            rx-fifo-depth = <6>;            status = "disabled";    };

arch/arm64/boot/dts/rockchip/roc-rk3588s-pc-ext.dtsi&can2 { status = “okay”; pinctrl-names = “default”; pinctrl-0 = <&can2m0_pins>;};
tchip_askquestions
roc_rk3588s_pc_can.log (1.72 KB)

已解决

你好,我也遇到相同问题,您是怎么解决的?