Hi,大家好
我们的板子lan8710需要改成rmii接口,mii已经正常工作,目前在uboot上调试
uboot mux、rmii设置如下:
mux:
rmii设置
硬件上,我们改用有源晶振连接 am335x、lan8710
uboot启动信息如下:
U-Boot 2017.01-svn16 (Oct 12 2018 – 10:34:35 +0800)
CPU : AM335X-GP rev 2.1
Model: TI AM335x EVM-SK
DRAM: 512 MiB
NAND: 256 MiB
MMC: OMAP SD/MMC: 0
reading uboot.env
Net: miiphy_initphy_initcpsw, usb_ether
Hit any key to stop autoboot: 0
=> ping 192.168.1.103
link up on port 0, speed 100, full duplex
Using cpsw device
ARP Retry count exceeded; starting again
ping failed; host 192.168.1.103 is not alive
网口的指示灯已经亮了
wolf war:
图片掉了,文字回复:
mux:
static struct module_pin_mux rmii1_pin_mux[] = {{OFFSET(mdio_clk), MODE(0) | PULLUP_EN}, /* MDIO_CLK */{OFFSET(mdio_data), MODE(0) | RXACTIVE | PULLUP_EN}, /* MDIO_DATA */{OFFSET(mii1_crs), MODE(1) | RXACTIVE},/* MII1_CRS */{OFFSET(mii1_rxerr), MODE(1) | RXACTIVE}, /* MII1_RXERR */{OFFSET(mii1_txen), MODE(1)},/* MII1_TXEN */{OFFSET(mii1_txd1), MODE(1)},/* MII1_TXD1 */{OFFSET(mii1_txd0), MODE(1)},/* MII1_TXD0 */{OFFSET(mii1_rxd1), MODE(1) | RXACTIVE}, /* MII1_RXD1 */{OFFSET(mii1_rxd0), MODE(1) | RXACTIVE}, /* MII1_RXD0 */{OFFSET(rmii1_refclk), MODE(0) | RXACTIVE}, /* RMII1_REFCLK */{-1},
};rmii设置writel(RMII_MODE_ENABLE | RMII_CHIPCKL_ENABLE, &cdev->miisel);cpsw_slaves[0].phy_if = PHY_INTERFACE_MODE_RMII;cpsw_slaves[1].phy_if = PHY_INTERFACE_MODE_RMII;
Denny%20Yang99373:
回复 wolf war:
建议DUMP一下PHY的寄存器分析一下
yongqing wang:
建议检查uboot中tftp参数设置的问题
yongqing wang:
回复 yongqing wang:
确认一下net/net.c里面的参数配置