1. 程式人生 > >u-boot-2014.10移植(4)識別dm9000

u-boot-2014.10移植(4)識別dm9000

u-boot tftp rip eth boa bsp ali 移植 roo

在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

u-boot-2014.10移植(4)識別dm9000