在smdk2440.h里面注释掉CS8900相关的
#if 0 #define CONFIG_DRIVER_CS8900 1 /* we have a CS8900 on-board */ #define CS8900_BASE 0x19000300 #define CS8900_BUS16 1 /* the Linux driver does accesses as shorts */ #endif #if !defined(CONFIG_DRIVER_CS8900) #define CONFIG_DRIVER_DM9000 1 #define CONFIG_DM9000_USE_16BIT 1 #define CONFIG_DM9000_BASE 0x20000000 #define DM9000_IO 0x20000000 #define DM9000_DATA 0x20000004 #endif
并修改默认IP配置
在什么smdk2440.c board_eth_init函数里面添加
#ifdef CONFIG_DRIVER_DM9000 rc = dm9000_initialize(bis); #endif
再次烧写,可以识别
Net: dm9000
设置ip
#define CONFIG_NETMASK 255.255.255.0 #define CONFIG_IPADDR 192.168.1.111 #define CONFIG_SERVERIP 192.168.1.113 #define CONFIG_ETHADDR 00:0c:29:45:c4:c3
后面可以使用nfs和tftp来下载u-boot, kernel 和rootfs