Welcome 微信登录
编程资源 图片资源库 蚂蚁家优选 PDF转换器

首页 / 操作系统 / Linux / OK6410 U-Boot DM9000 驱动补丁 patch

解压ok6410 或 ok6410b 对应的u-boot源代码U-Boot源代码下载地址 http://www.linuxidc.com/Linux/2011-07/38897.htm下载附件,覆盖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 1make 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文档下载免费下载地址在 http://linux.linuxidc.com/用户名与密码都是www.linuxidc.com具体下载目录在 /2012年资料/9月/8日/OK6410 U-Boot DM9000 驱动补丁 patch