嵌入式爱好者

查看: 504|回复: 0

[Linux] linux rk3588烧内核网口配置失败

[复制链接]

1

主题

2

帖子

7

积分

扫一扫,手机访问本帖
发表于 2024-7-22 17:50:44 | 显示全部楼层 |阅读模式
本帖最后由 Mood8 于 2024-7-22 17:54 编辑

dmesg打印的log
[   66.589515] rk_gmac-dwmac fe1c0000.ethernet eth0: no phy at addr -1
[   66.589525] rk_gmac-dwmac fe1c0000.ethernet eth0: stmmac_open: Cannot attach to PHY (error: -19)
[   67.112948] rk3x-i2c feaa0000.i2c: timeout, ipd: 0x00, state: 3
[   68.129616] rk3x-i2c feaa0000.i2c: timeout, ipd: 0x00, state: 3
[   69.139626] rk3x-i2c feaa0000.i2c: timeout, ipd: 0x00, state: 3
[   70.152889] rk3x-i2c feaa0000.i2c: timeout, ipd: 0x00, state: 3
[   71.166280] rk3x-i2c feaa0000.i2c: timeout, ipd: 0x00, state: 3
[   72.179844] rk3x-i2c feaa0000.i2c: timeout, ipd: 0x00, state: 3
[   73.193180] rk3x-i2c feaa0000.i2c: timeout, ipd: 0x00, state: 3
[   74.206505] rk3x-i2c feaa0000.i2c: timeout, ipd: 0x00, state: 3
[   75.219612] rk3x-i2c feaa0000.i2c: timeout, ipd: 0x00, state: 3
设备树配置&gmac0 {
        /* Use rgmii-rxid mode to disable rx delay inside Soc */
        phy-mode = "rgmii-rxid";
        clock_in_out = "output";

        snps,reset-gpio = <&gpio0 RK_PB0 GPIO_ACTIVE_LOW>;
        snps,reset-active-low;
        /* Reset time is 20ms, 100ms for rtl8211f */
        snps,reset-delays-us = <0 20000 100000>;

        pinctrl-names = "default";
        pinctrl-0 = <&gmac0_miim
                     &gmac0_tx_bus2
                     &gmac0_rx_bus2
                     &gmac0_rgmii_clk
                     &gmac0_rgmii_bus>;

        tx_delay = <0x44>;
        /* rx_delay = <0x4f>; */

        /*phy-handle = <&rgmii_phy0>;*/
       fix-link = <1000>;
        status = "okay";
};

官方给的demo能够ping通底板,按照教程烧录的新内核不行。


回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

QQ|小黑屋| 飞凌嵌入式 ( 冀ICP备12004394号-1 )

GMT+8, 2024-10-12 07:43

Powered by Discuz! X3.4

© 2001-2013 Comsenz Inc.

快速回复 返回顶部 返回列表