网口使用emio连接mii phy芯片,lwIP Echo Server测试例子可以运行,u-boot,linux无法连ping通,能识别到芯片;
我该如何配置u-boot与内核?
关键打印信息:
U-Boot 2019.01 (May 20 2020 - 05:49:03 +0000) Xilinx Zynq ZC706
CPU: Zynq 7z035
Silicon: v3.1
DRAM: ECC disabled 1 GiB
Loading Environment from SPI Flash... SF: Detected n25q512a with page size 256 Bytes, erase size 64 KiB, total 64 MiB
*** Warning - bad CRC, using default environment
In: serial@e0001000
Out: serial@e0001000
Err: serial@e0001000
Net: ZYNQ GEM: e000b000, phyaddr ffffffff, interface gmii
Could not get PHY for eth0: addr -1
eth-1: ethernet@e000b000
U-BOOT for linux
ZYNQ GEM: e000b000, phyaddr ffffffff, interface gmii
mdio_register: non unique device name 'eth0'
ZYNQ GEM: e000b000, phyaddr ffffffff, interface gmii
mdio_register: non unique device name 'eth0'
ZYNQ GEM: e000b000, phyaddr ffffffff, interface gmii
mdio_register: non unique device name 'eth0'
ZYNQ GEM: e000b000, phyaddr ffffffff, interface gmii
mdio_register: non unique device name 'eth0'
No ethernet found.
ZYNQ GEM: e000b000, phyaddr ffffffff, interface gmii
mdio_register: non unique device name 'eth0'
Hit any key to stop autoboot: 0
u-boot> mii info
PHY 0x00: OUI = 0x0885, Model = 0x11, Rev = 0x03, 10baseT, HDX
PHY 0x07: OUI = 0x0885, Model = 0x11, Rev = 0x03, 10baseT, HDX
u-boot> mdio list
eth0:
kernel:
libphy: Fixed MDIO Bus: probed
CAN device driver interface
libphy: MACB_mii_bus: probed
macb e000b000.ethernet eth0: Cadence GEM rev 0x00020118 at 0xe000b000 irq 29 (00:0a:35:00:05:18)
Micrel KSZ8041 e000b000.ethernet-ffffffff:00: attached PHY driver [Micrel KSZ8041] (mii_bus:phy_addr=e000b000.ethernet-f fffffff:00, irq=POLL)
……
Configuring network interfaces... IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready