新闻  |   论坛  |   博客  |   在线研讨会
zynq网络不通的解决方法
lolo84 | 2016-12-28 11:41:44    阅读:4771   发布文章

我们的板子也是用2016.3的内核,网口不通,在论坛上找到的答案说是devicetree的问题,先记录下来,看看结果怎么样;

之前的devicetree结构:

        ethernet@e000b000 {
            compatible = "cdns,zynq-gem", "cdns,gem";
            reg = <0xe000b000 0x1000>;
            status = "okay";
            interrupts = <0x0 0x16 0x4>;
            clocks = <0x1 0x1e 0x1 0x1e 0x1 0xd>;
            clock-names = "pclk", "hclk", "tx_clk";
            #address-cells = <0x1>;
            #size-cells = <0x0>;
            local-mac-address = [00 0a 35 00 00 00];
            phy-mode = "rgmii-id";
            xlnx,ptp-enet-clock = <0x6750918>;
            phy-handle = <0x4>;

            mdio {
                #address-cells = <0x1>;
                #size-cells = <0x0>;

                phy@1 {
                    compatible = "realtek,RTL8211E";
                    device_type = "ethernet-phy";
                    reg = <0x1>;
                    linux,phandle = <0x4>;
                    phandle = <0x4>;
                };
            };
        };
更新后的devicetree结构


        ethernet@e000b000 {
            compatible = "cdns,zynq-gem", "cdns,gem";
            reg = <0xe000b000 0x1000>;
            status = "okay";
            interrupts = <0x0 0x16 0x4>;
            clocks = <0x1 0x1e 0x1 0x1e 0x1 0xd>;
            clock-names = "pclk", "hclk", "tx_clk";
            #address-cells = <0x1>;
            #size-cells = <0x0>;
            local-mac-address = [00 0a 35 00 00 00];
            phy-mode = "rgmii-id";
            xlnx,ptp-enet-clock = <0x6750918>;
            ethernet-phy@1 {
                compatible = "realtek,RTL8211E";
                device_type = "ethernet-phy";
                reg = <0x1>;
            };
        };

*博客内容为网友个人发布,仅代表博主个人观点,如有侵权请联系工作人员删除。

参与讨论
登录后参与讨论
推荐文章
最近访客