本文共 679 字,大约阅读时间需要 2 分钟。
#!/bin/bash #function : Synthetic file#[ -n "$1" ] || { echo ""; echo "usage:"; echo " $0 ubootfile uImagefile fsfile"; echo " e.g." echo " ./mkboot.sh u-boot.bin rooffs.jffs2"; echo ""; exit 1; }[ -n "$2" ] || { echo ""; echo "usage:"; echo " $0 ubootfile uImagefile fsfile"; echo " e.g." echo " ./mkboot.sh u-boot.bin rooffs.jffs2"; echo ""; exit 1; }[ -n "$3" ] || { echo ""; echo "usage:"; echo " $0 ubootfile uImagefile fsfile"; echo " e.g." echo " ./mkboot.sh u-boot.bin rooffs.jffs2"; echo ""; exit 1; }dd if=$1 of=uboot bs=1M conv=syncdd if=$2 of=kernel bs=4M conv=synccat uboot kernel $3 > Imagerm uboot kernel
##参考
转载地址:http://mvigi.baihongyu.com/