ksz8041在u-boot上的移植
想在u-boot上移植一个PHY网络芯片,搞了好久一直没有找到头绪,会一直显示 No ethernet found。
目前我有分析到start_armboot->eth_initialize(gd->bd)->
int eth_initialize(bd_t *bis)
{
unsigned char env_enetaddr[6];
int eth_number = 0;
...
show_boot_progress (64);
#if defined(CONFIG_MII) || defined(CONFIG_CMD_MII)
puts("running here2");
miiphy_init();
#endif
/* Try board-specific initialization first. If it fails or isn't
* present, try the cpu-specific initialization */
if (board_eth_init(bis) < 0) //从网上查资料好像需要自己添加这段代码,所以有在board/hi3516a目录下的board.c当中实现
cpu_eth_init(bis);
接下来不知道怎么弄了...
我有在网上有下载到micrel.c和micrel_phy.h(这两个好像是针对linux下的驱动),请知道的朋友指点一下,非常感谢!