关于H616 kernel网卡驱动编译问题
-
想请教一下在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
-
在Uboot中是正常的,能识别也能ping通
-
在mdio_bus下能看到已经网卡的相关信息,但是在ifconfig -a中还是没有显示eth0
-
请问搞了吗?能分享下不,谢谢
-
@cweib
同问,请问最后怎么解决了? 我的是启动了ch310驱动后,网络就废了。 -
-> 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的
Copyright © 2024 深圳全志在线有限公司 粤ICP备2021084185号 粤公网安备44030502007680号