主题 : mini6410 uboot1.1.6 MMC fat command support][PATCH] 复制链接 | 浏览器收藏 | 打印
级别: 新手上路
UID: 26547
精华: 1
发帖: 8
金钱: 90 两
威望: 18 点
贡献值: 1 点
综合积分: 36 分
注册时间: 2010-08-10
最后登录: 2017-09-13
楼主  发表于: 2010-08-17 22:41

 mini6410 uboot1.1.6 MMC fat command support][PATCH]

管理提醒: 本帖被 arm9home 从 U-boot技术交流专区 移动到本区(2010-09-09)
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 */
[ 此帖被kasim在2010-08-18 08:10重新编辑 ]
附件: uboot.zip (8 K) 下载次数:298