|
本帖最后由 dunken 于 2012-11-6 16:22 编辑
准备出个UBOOT1.3.4移植STEP BY STEP ,结果有问题啦!求救!
源代码在115网盘里面
账号:292296308@qq.com
密码:111111
U-Boot 1.3.4 (Nov 5 2012 - 16:03:28)
DRAM: 64 MB
Flash: 2 MB
NAND: 256 MiB
In: serial
Out: serial
Err: serial
Net: No ethernet found.
No ethernet found.
Hit any key to stop autoboot: 0
Unknown command 'boot_zImage' - try 'help'
ARM2440 #
主要做了以下修改:
1.#gedit include/configs/my2440.h
//屏蔽CS8900
//#define CONFIG_DRIVER_CS8900 1 /* we have a CS8900 on-board */
//#define CS8900_BASE 0x19000300
//#define CS8900_BUS16 1
//添加DM9000
#define CONFIG_DRIVER_DM9000 1
#define CONFIG_NET_MULTI 1
#define CONFIG_DM9000_NO_SROM 1
#define CONFIG_DM9000_BASE 0x20000300 //网卡片选地址
#define DM9000_IO CONFIG_DM9000_BASE
#define DM9000_DATA (CONFIG_DM9000_BASE + 4) //网卡数据地址
#define CONFIG_DM9000_USE_16BIT 1
#define CONFIG_CMD_PING
//恢复被注释掉的网卡 MAC 地址和修改你合适的开发板IP 地址
#define CONFIG_ETHADDR 08:00:3e:26:0a:5b //开发板MAC 地址
#define CONFIG_NETMASK 255.255.255.0
#define CONFIG_IPADDR 192.168.1.105 //开发板IP 地址
#define CONFIG_SERVERIP 192.168.1.103 //Linux 主机IP 地址
2.修改 MD9000 网卡驱动代码,如下:
#gedit drivers/net/dm9000x.c
#if 0 //屏蔽掉dm9000_init 函数中的这一部分,不然使用网卡的时候会报“couldnot establish link”的错误
i = 0;
while (!(phy_read(1) & 0x20)) { /* autonegation complete bit */
udelay(1000);
i++;
if (i == 10000) {
printf("could not establish link ");
return 0;
}
}
#endif
3.添加板载 DM9000 网卡初始化代码
#gedit board/samsung/my2440/my2440.c
#include <net.h>
#include <netdev.h>
#ifdef CONFIG_DRIVER_DM9000
int board_eth_init(bd_t *bis)
{
return dm9000_initialize(bis);
}
#endif
问题:
1.在dm9000x.c文件中网卡初始化函数不是 dm9000_initialize(bis);
2.1.3.4里面没有int board_eth_init(bd_t *bis),
3.include文件夹里面没有netdev.h头文件,却有net.h头文件
基于上述3点认为第3步不适用于u-boot1.3.4!!
希望能得到解决,我发现TQ2440的u-boot1.1.6也没有netdev.h这个头文件
|
本帖子中包含更多资源
您需要 登录 才可以下载或查看,没有账号?注册
×
|