-> 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的