u-boot-2014.10移植(4)识别dm9000

发布时间:
来源: 电子工程世界

在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


文章来源于: 电子工程世界 原文链接

本站所有转载文章系出于传递更多信息之目的,且明确注明来源,不希望被转载的媒体或个人可与我们联系,我们将立即进行删除处理。