Chinaunix首页 | 论坛 | 博客
  • 博客访问: 1817855
  • 博文数量: 473
  • 博客积分: 13997
  • 博客等级: 上将
  • 技术积分: 5953
  • 用 户 组: 普通用户
  • 注册时间: 2010-01-22 11:52
文章分类

全部博文(473)

文章存档

2014年(8)

2013年(38)

2012年(95)

2011年(181)

2010年(151)

分类: LINUX

2011-08-03 22:43:16

mini6410 在linux下tftp system.img速度感觉好慢,就想把fat 命令支持起来,这样子,system.img存到sd卡上就可以fatload到RAM里。友善的什么superboot可能用的就是fatload之类命令支持的。
eg.
fatls mmc 0
fatload mmc 0 50008000 system.img

共4个文件涉及了修改
include/configs/mini6410.h
cpu/s3c64xx/hs_mmc.c
common/main.c
cpu/s3c64xx/movi.c
其中cpu/s3c64xx/hs_mmc.c是从uboot1.3.4 copy过来做了点修改。
common/main.c是删除了FriendlyArm Menu, 这menu没用

帖出./include/configs/mini6410.h patch,其他patch大家下载吧


--- ../aaa/u-boot-mini6410/include/configs/mini6410.h    2010-06-22 18:26:23.000000000 +0800
+++ ./include/configs/mini6410.h    2010-08-17 21:52:46.000000000 +0800
@@ -148,7 +148,8 @@
                         CFG_CMD_ENV     | \
                         CFG_CMD_NAND    | \
             CFG_CMD_PING    | \
-                        CFG_CMD_MOVINAND) \
+                        CFG_CMD_MOVINAND| \
+                        CFG_CMD_FAT) \
                         & ~(CFG_CMD_AUTOSCRIPT  | \
                                 CFG_CMD_BOOTD   | \
                                 CFG_CMD_IMI     | \
@@ -167,7 +168,7 @@
#define CONFIG_ETHADDR        08:90:90:90:90:90
#define CONFIG_NETMASK          255.255.255.0
#define CONFIG_IPADDR        192.168.1.230
-#define CONFIG_SERVERIP        192.168.1.88
+#define CONFIG_SERVERIP        192.168.1.10
#define CONFIG_GATEWAYIP    192.168.1.1

#if defined(FRIENDLYARM_BOOT_ANDROID)
@@ -415,6 +416,8 @@
#define    CONFIG_NAND
#define CONFIG_MOVINAND

+#define    CONFIG_MMC 1
+
//#define CONFIG_NAND_BL1_8BIT_ECC

/* Settings as above boot configuration */
阅读(502) | 评论(0) | 转发(1) |
给主人留下些什么吧!~~