4,436
社区成员
发帖
与我相关
我的任务
分享
####################################
# make partition
echo "make sd card partition"
echo "./sd_fdisk $1"
./sd_fdisk $1
dd iflag=dsync oflag=dsync if=sd_mbr.dat of=$1
rm sd_mbr.dat
####################################
# format
umount $partition1 2> /dev/null
umount $partition2 2> /dev/null
umount $partition3 2> /dev/null
umount $partition4 2> /dev/null
echo "mkfs.vfat -F 32 $partition1"
mkfs.vfat -F 32 $partition1
dd iflag=dsync oflag=dsync if=SD-bl1-8k.bin of=$1 seek=1
rm SD-bl1-8k.bin
dd iflag=dsync oflag=dsync if=../u-boot.bin of=$1 seek=49