Before I continue this is what I got so far. I stopped after the 3rd line "EOF". This what showed up and I wanted to know is it safe to continue?
root umount /dev/mmcblk1
sfdisk /dev/mmcblk1 <<EOF ,,c EOF sync mkfs.vfat /dev/mmcblk1p1 sfdisk -d /dev/mmcblk1