千兆网卡:RTL8211E_VB
百兆网卡:SR8201F
【uboot】
1、0x200f0174 配置为0x2
00:GPIO4_0;
01:RGMII_TX_CLK;
10:RMII_CLK_OUT/MII_TX_CLK;
./board/hi3516a/board.c board_init函数中增加writel(2, 0x200f0174);
2、修改include/configs/hi3516a.h中CONFIG_HIGMAC_PHY1_INTERFACE_MODE宏定义为1 (0:MII 1:RMII 2:RGMII)
【内核】
make ARCH=arm CROSS_COMPILE=arm-hisiv300-linux- menuconfig
Device Drivers —>Network device support —> Ethernet driver support —>hieth gmac family network device support —> hieth-gmac phy0 interface mode修改为5(1:MII 5:RMII 6:RGMII)
make ARCH=arm CROSS_COMPILE=arm-hisiv300-linux- uImage生成内核