cleanup: dd bootloader to card

Signed-off-by: Robert Nelson <robertcnelson@gmail.com>
pull/8/head
Robert Nelson 13 years ago
parent 9712cfee50
commit 41fe042fbf

@ -671,27 +671,28 @@ fi
mkfs.vfat -F 16 ${MMC}${PARTITION_PREFIX}1 -n ${BOOT_LABEL} mkfs.vfat -F 16 ${MMC}${PARTITION_PREFIX}1 -n ${BOOT_LABEL}
} }
function dd_uboot { function dd_uboot_before_boot_partition {
echo ""
dd if=${TEMPDIR}/dl/${UBOOT} of=${MMC} seek=1 bs=1024 echo "Using dd to place bootloader before BOOT Partition"
echo "-----------------------------"
#for now, lets default to fat16 dd if=${TEMPDIR}/dl/${UBOOT} of=${MMC} seek=1 bs=1024
parted --script ${PARTED_ALIGN} ${MMC} mkpart primary fat16 10 100
#parted --script ${PARTED_ALIGN} ${MMC} mkpart primary ext3 10 100
echo ""
echo "Formating Boot Partition"
echo ""
mkfs.vfat -F 16 ${MMC}${PARTITION_PREFIX}1 -n ${BOOT_LABEL} #For now, lets default to fat16, but this could be ext2/3/4
#mkfs.ext3 ${MMC}${PARTITION_PREFIX}1 -L ${BOOT_LABEL} echo "Using parted to create BOOT Partition"
echo "-----------------------------"
parted --script ${PARTED_ALIGN} ${MMC} mkpart primary fat16 10 100
#parted --script ${PARTED_ALIGN} ${MMC} mkpart primary ext3 10 100
echo "Formating Boot Partition"
echo "-----------------------------"
mkfs.vfat -F 16 ${MMC}${PARTITION_PREFIX}1 -n ${BOOT_LABEL}
#mkfs.ext3 ${MMC}${PARTITION_PREFIX}1 -L ${BOOT_LABEL}
} }
function create_partitions { function create_partitions {
if [ "${DO_UBOOT_DD}" ] ; then if [ "${DO_UBOOT_DD}" ] ; then
dd_uboot dd_uboot_before_boot_partition
else else
uboot_in_boot_partition uboot_in_boot_partition
fi fi

Loading…
Cancel
Save