Navigation

    全志在线开发者论坛

    • Register
    • Login
    • Search
    • Categories
    • Tags
    • 在线文档
    • 社区主页

    关于H616 kernel网卡驱动编译问题

    H/F/TV Series
    4
    6
    3545
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • CWEIB
      CWEIB LV 4 last edited by

      想请教一下在kernel编译中,是不是只需要在menuconfig中打开下面的配置,编译就能使用吗?

      PHY Device support and infrastructure  --->
            <*>   Realtek PHYs
      

      在设备树中添加了相关信息:

      &emac0 {
      	pinctrl-names = "default";
      	pinctrl-0 = <&ext_rgmii_pins>;
      	phy-mode = "rgmii";
      	phy-handle = <&ext_rgmii_phy>;
      	allwinner,rx-delay-ps = <1800>;
      	allwinner,tx-delay-ps = <700>;
      	status = "okay";
      };
      
      &mdio0 {
      	ext_rgmii_phy: ethernet-phy@1 {
      		compatible = "ethernet-phy-ieee802.3-c22";
      		reg = <1>;
      	};
      };
      

      我在添加了上面的两部分后使用ifconfig -a只有lo,其他都没有显示,使用 ifconfig eth0 up 后显示的是

      ifconfig: SIOCGIFFLAGS: No such device
      
      CWEIB 2 Replies Last reply Reply Quote Share 2
      • CWEIB
        CWEIB LV 4 @CWEIB last edited by

        在Uboot中是正常的,能识别也能ping通

        1 Reply Last reply Reply Quote Share 0
        • CWEIB
          CWEIB LV 4 @CWEIB last edited by

          在mdio_bus下能看到已经网卡的相关信息,但是在ifconfig -a中还是没有显示eth0
          222.png

          A 1 Reply Last reply Reply Quote Share 0
          • K
            kevin_allwinner LV 5 last edited by

            请问搞了吗?能分享下不,谢谢

            1 Reply Last reply Reply Quote Share 0
            • A
              aaabbb222 LV 4 @CWEIB last edited by

              @cweib
              同问,请问最后怎么解决了? 我的是启动了ch310驱动后,网络就废了。

              1 Reply Last reply Reply Quote Share 0
              • W
                weilin LV 2 last edited by

                -> Device Drivers │
                │ -> Network device support (NETDEVICES [=y]) │
                │ -> Ethernet driver support (ETHERNET [=y]) │
                │ -> STMicroelectronics devices (NET_VENDOR_STMICRO [=y]) │
                │ (1) -> STMicroelectronics Multi-Gigabit Ethernet driver (STMMAC_ETH [=y])

                -> Device Drivers │
                │ -> Network device support (NETDEVICES [=y]) │
                │ -> Ethernet driver support (ETHERNET [=y]) │
                │ -> STMicroelectronics devices (NET_VENDOR_STMICRO [=y]) │
                │ -> STMicroelectronics Multi-Gigabit Ethernet driver (STMMAC_ETH [=m]) │
                │ (3) -> STMMAC Platform bus support (STMMAC_PLATFORM [=m])

                -> Device Drivers │
                │ -> Network device support (NETDEVICES [=y]) │
                │ -> Ethernet driver support (ETHERNET [=y]) │
                │ -> STMicroelectronics devices (NET_VENDOR_STMICRO [=y]) │
                │ -> STMicroelectronics Multi-Gigabit Ethernet driver (STMMAC_ETH [=y]) │
                │ -> STMMAC Platform bus support (STMMAC_PLATFORM [=y]) │
                │ (1) -> Allwinner sun8i GMAC support (DWMAC_SUN8I [=m])

                -> Device Drivers │
                │ -> Network device support (NETDEVICES [=y]) │
                │ -> Ethernet driver support (ETHERNET [=y]) │
                │ -> STMicroelectronics devices (NET_VENDOR_STMICRO [=y]) │
                │ -> STMicroelectronics Multi-Gigabit Ethernet driver (STMMAC_ETH [=y]) │
                │ (1) -> STMMAC Platform bus support (STMMAC_PLATFORM [=y])

                Symbol: PCS_XPCS [=y] │
                │ Type : tristate │
                │ Defined at drivers/net/pcs/Kconfig:8 │
                │ Depends on: NETDEVICES [=y] │
                │ Selects: PHYLINK [=y] │
                │ Selected by [y]: │
                │ - STMMAC_ETH [=y] && NETDEVICES [=y] && ETHERNET [=y] && NET_VENDOR_STMICRO [=y] && HAS_IOMEM [=y] && HAS_DMA [=y] && PTP_1588_CLOCK_OPTIONAL [=y] │
                │ Selected by [n]: │
                │ - NET_DSA_SJA1105 [=n] && NETDEVICES [=y] && NET_DSA [=y] && SPI [=y] && PTP_1588_CLOCK_OPTIONAL [=y]

                配置这几个应该就行了,这是kernel6.1的

                1 Reply Last reply Reply Quote Share 0
                • 1 / 1
                • First post
                  Last post

                Copyright © 2024 深圳全志在线有限公司 粤ICP备2021084185号 粤公网安备44030502007680号

                行为准则 | 用户协议 | 隐私权政策