Firefly开源社区
标题:
ROC_RK3588S_PC CAN 自行编译固件
[打印本页]
作者:
suoshui_t
时间:
2023-5-23 12:11
标题:
ROC_RK3588S_PC CAN 自行编译固件
问题现象: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
@fea50000
{ 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
@fea60000
{ 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
@fea70000
{ 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
2023-5-23 12:11 上传
点击文件名下载附件
下载积分: 灯泡 -1 , 经验 -1
1.72 KB, 下载次数: 2, 下载积分: 灯泡 -1 , 经验 -1
作者:
suoshui_t
时间:
2023-5-24 15:10
已解决
作者:
雨碎江南
时间:
2023-6-27 13:07
你好,我也遇到相同问题,您是怎么解决的?
欢迎光临 Firefly开源社区 (https://dev.t-firefly.com/)
Powered by Discuz! X3.1