Skip to content
Browse files

script: dd u-boot targets recoginze the --bootloader option

Signed-off-by: Robert Nelson <robertcnelson@gmail.com>
  • Loading branch information...
1 parent e089e00 commit 24653fde619ee62b16a60961a5d23d6e71ca3911 @RobertCNelson committed Jun 21, 2012
Showing with 13 additions and 9 deletions.
  1. +13 −9 tools/setup_sdcard.sh
View
22 tools/setup_sdcard.sh
@@ -511,16 +511,20 @@ function uboot_in_boot_partition {
}
function dd_uboot_before_boot_partition {
- echo ""
- echo "Using dd to place bootloader before BOOT Partition"
- echo "-----------------------------"
- dd if=${TEMPDIR}/dl/${UBOOT} of=${MMC} seek=1 bs=1024
+ echo ""
+ echo "Using dd to place bootloader before BOOT Partition"
+ echo "-----------------------------"
+ if [ ! "${LOCAL_BOOTLOADER}" ] ; then
+ dd if=${TEMPDIR}/dl/${UBOOT} of=${MMC} seek=1 bs=1024
+ else
+ dd if=${UBOOT} of=${MMC} seek=1 bs=1024
+ fi
- #For now, lets default to fat16, but this could be ext2/3/4
- 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
+ #For now, lets default to fat16, but this could be ext2/3/4
+ 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
}
function calculate_rootfs_partition {

0 comments on commit 24653fd

Please sign in to comment.
Something went wrong with that request. Please try again.