Commit 941e7f6f authored by Carit Zhu's avatar Carit Zhu 🎱

Modify emmc_wince.sh to format dual partition for WINCE and update README.md

parent d5102cfd
......@@ -31,7 +31,6 @@
解压文件系统
tar -xvf rootfs.tar.bz2 -C /mnt/rootfs
cp emmc_linux.sh/emmc_wince.sh /mnt/rootfs/etc/init.d/S50xxxx
最后在/mnt/boot里放入要更新的镜像
在/mnt/boot中创建linux 或wince放入相应的内容
......
......@@ -55,7 +55,13 @@ if [ "$NUM_ALL_DRIVES" == "1" ];then
fi
echo "Format EMMC Start..." > /dev/tty1
echo -e "${DEL_CMD}n\np\n1\n\n\nt\nc\na\n1\np\nw\n"| fdisk ${DRIVE}
dd if=/dev/zero of=${DRIVE} bs=1024 count=1
sfdisk --force -uM ${DRIVE} << EOF
,500,0c,*
600,,0c
EOF
sleep 5
echo "Format EMMC End..." > /dev/tty1
......@@ -64,6 +70,11 @@ mkfs.vfat -F 32 ${DRIVE}p1
until [ "$?" == 0 ]; do
sleep 8
done
mkfs.vfat -F 32 ${DRIVE}p2
until [ "$?" == 0 ]; do
sleep 8
done
echo "Format Disk End..." > /dev/tty1
sleep 8
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment