1, 在uboot记录命令的运行时间,可以打开CONFIG_CMD_TIME。2, autoscr已经改变成了source命令,可以打开CONFIG_SOURCE,source可以执行内存中脚本,该脚本是由mkimage生成的。#!/bin/sh
file=$1
result=$2
if [ $# -lt 1 ]
then
echo "$0 file_name result_file_name"
fi
mkimage -A arm -O linux -T script -C none -n "uboot-nor script" -d $file $result3,mkimage在Host端的安装:sudo apt-get install u-boot-tools4, 可以生成一个txt文件记录要执行的脚本内容,由于是txt文件所以没有for循环,如果要这样做的话,可以由外部的脚本帮你生成多少遍的循环内容,自己就不用麻烦做循环的考虑了。5,对uboot添加了ext4支持的话,可以由以下命令加载mkimage生成的内容到内存中去。ext4load mmc 0:5 0x00001000 xxx.img6,调用sourcesource 0x00001000U-Boot源代码下载地址 http://www.linuxidc.com/Linux/2011-07/38897.htmu-boot Makefile完全解读 http://www.linuxidc.com/Linux/2013-04/83529.htmU-Boot中的date命令 http://www.linuxidc.com/Linux/2013-07/87614.htmU-Boot源代码下载地址 http://www.linuxidc.com/Linux/2011-07/38897.htmU-Boot下的两个重要数据:bd_t和gd_t http://www.linuxidc.com/Linux/2013-05/83993.htmU-Boot中的version命令 http://www.linuxidc.com/Linux/2013-05/83990.htmU-Boot中的usb命令 http://www.linuxidc.com/Linux/2013-05/83991.htm本文永久更新链接地址:http://www.linuxidc.com/Linux/2014-09/106422.htm