解壓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 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文檔下載
免費下載地址在 http://linux.linuxidc.com/
用戶名與密碼都是www.linuxidc.com
具體下載目錄在 /2012年資料/9月/8日/OK6410 U-Boot DM9000 驅動補丁 patch