Page 1 of 1

Luckfox Lyra Ultra CAN的问题

Posted: 2026-04-27 2:31
by chuming666
Luckfox Lyra Ultra 的CAN怎么使能?
使用luckfox-config, 都无法启动

Re: Luckfox Lyra Ultra CAN的问题

Posted: 2026-04-27 3:11
by Crocodile
luckfox-config 使能后使用 ifconfig -a 命令检查有没有 can0 或 can1 ,默认是关闭的使用ifconfig 没有显示,如果没有can0/can1 网络设备提供一下dmesg的日志信息

Re: Luckfox Lyra Ultra CAN的问题

Posted: 2026-04-27 4:53
by chuming666
1. 使用的Ubuntu_Luckfox_Lyra_Ultra_eMMC_250417版本的镜像, 内置的luckfox-config 是没有CAN的设置选择项的。
2. 使用其他版本的镜像 Ubuntu_Luckfox_Lyra_Pi_A_eMMC_251209内拷贝过来的 luckfox-config,有CAN的设置项目,但无法设置

Re: Luckfox Lyra Ultra CAN的问题

Posted: 2026-04-27 4:56
by chuming666
root@luckfox:~# dmesg | grep -i can
[ 2.529921] CAN device driver interface
[ 2.657908] can: controller area network core
[ 2.658086] NET: Registered PF_CAN protocol family
[ 2.658125] can: raw protocol
[ 2.658150] can: broadcast manager protocol
[ 2.658180] can: netlink gateway - max_hops=1
[ 13.578794] rk_gmac-dwmac ff4d0000.ethernet: Can not read property: tx_delay.
[ 13.588593] rk_gmac-dwmac ff4d0000.ethernet: Can not read property: rx_delay.
[ 13.608735] rk_gmac-dwmac ff4d0000.ethernet: cannot get clock mac_clk_rx
[ 13.618601] rk_gmac-dwmac ff4d0000.ethernet: cannot get clock mac_clk_tx
[ 13.626611] rk_gmac-dwmac ff4d0000.ethernet: cannot get clock clk_mac_ref
[ 13.638618] rk_gmac-dwmac ff4d0000.ethernet: cannot get clock clk_mac_refout
[ 13.652721] rk_gmac-dwmac ff4d0000.ethernet: cannot get clock clk_mac_speed
root@luckfox:~#

Re: Luckfox Lyra Ultra CAN的问题

Posted: 2026-04-27 9:00
by Crocodile
ubuntu 的镜像我们因为授权问题已经不维护了,luckfox-config 理论上不会多要求内核配置,无法设置的时候有提示什么内容吗?建议先使用buildroot把功能确定完毕,再把buildroot里的luckfox-config 提取出来,buildroot里的luckfox-config 是最新版的