解压ok6410 或 ok6410b 对应的u-boot源代码
下载附件,覆盖u-boot源文件里面的同名文件,然后
打开文件 include/configs/smdk6410.h
找到
#ifdef CONFIG_DRIVER_SMC911X
#undef CONFIG_DRIVER_CS8900
#define CONFIG_DRIVER_SMC911X_BASE 0x18800300
#else
#define CONFIG_DRIVER_CS8900 0 /* we have a CS8900 on-board */
#define CS8900_BASE 0x18800300
#define CS8900_BUS16 1 /* the Linux driver does accesses as shorts */
#endif
替换为
#define CONFIG_DRIVER_DM9000AE 1
#define CONFIG_DRIVER_DM9000 1
#define CONFIG_DM9000_BASE (0x18000000)
#define DM9000_IO (CONFIG_DM9000_BASE)
#define DM9000_DATA (CONFIG_DM9000_BASE+0x4)
//#define CONFIG_DM9000_DEBUG 1
#define CONFIG_DM9000_USE_16BIT 1
make smdk6410_config 配置
make 编译,把编好的u-boot.bin写到开发板里面就可以用网卡了
我在ok6410b板子上的测试结果
SMDK6410 # ping 192.168.0.1
dm9000 i/o: 0x18000000, id: 0x90000a46
DM9000: running in 16 bit mode
MAC: 01:23:45:67:89:ab
operating at 100M full duplex mode
host 192.168.0.1 is alive
SMDK6410 # ping 192.168.0.15
dm9000 i/o: 0x18000000, id: 0x90000a46
DM9000: running in 16 bit mode
MAC: 01:23:45:67:89:ab
operating at 100M full duplex mode
host 192.168.0.15 is alive
SMDK6410 #
此方法适用ok6410和ok6410b
附件下载:
MongoDB使用手册 PPT文档下载
具体下载目录在 /2012年资料/9月/8日/OK6410 U-Boot DM9000 驱动补丁 patch