rt-thread-official/bsp/allwinner/d1s/mksdcard.sh

8 lines
134 B
Bash
Raw Permalink Normal View History

2023-01-17 14:16:19 +08:00
if [ ! -f "sdroot.bin" ]; then
dd if=/dev/zero of=sdroot.bin bs=1M count=4
fi
mkfs.fat sdroot.bin
mcopy -i sdroot.bin root/bin/* ::