mini2440的uboot移植

来源:百度知道 编辑:UC知道 时间:2024/05/16 17:21:11
mini2440本身提供的uboot无法实现网络连接,参考一些资料进行修改以后,运行ping命令可以实现网络连接,运行结束又显示没有连接好,启动uboot时还出现Warning - bad CRC, using default environment,希望高手指点,谢谢

在u-boot-1.1.6_QQ2440(随板子带的光盘中的u-boot)
添加DM9000的支持

修改include/configs/QQ2440.h
/*
* Hardware drivers
*/
#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 */
#else /* FOR FriendlyARM QQ2440 */
#define CONFIG_DRIVER_DM9000 1
//#define CONFIG_DM9000_DEBUG 1
#define CONFIG_DM9000_BASE (0x20000300)
#define DM9000_IO (CONFIG_DM9000_BASE)
#define DM9000_DATA (DM9000_IO + 4)
#define CONFIG_DM9000_USE_16BIT 1
#endif

修改后,是可以下载kernel的