|
|
@ -1051,10 +1051,10 @@ fatfs_boot_error () {
|
|
|
|
exit
|
|
|
|
exit
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
fatfs_boot () {
|
|
|
|
fdisk_boot_partition () {
|
|
|
|
#For: TI: Omap/Sitara Devices
|
|
|
|
#Generic boot partition created by fdisk
|
|
|
|
echo ""
|
|
|
|
echo ""
|
|
|
|
echo "Using fdisk to create an omap compatible fatfs BOOT partition"
|
|
|
|
echo "Using fdisk to create BOOT partition"
|
|
|
|
echo "-----------------------------"
|
|
|
|
echo "-----------------------------"
|
|
|
|
|
|
|
|
|
|
|
|
fdisk ${MMC} <<-__EOF__
|
|
|
|
fdisk ${MMC} <<-__EOF__
|
|
|
@ -1076,10 +1076,10 @@ fatfs_boot () {
|
|
|
|
LC_ALL=C parted --script ${MMC} set 1 boot on || fatfs_boot_error
|
|
|
|
LC_ALL=C parted --script ${MMC} set 1 boot on || fatfs_boot_error
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
sfdisk_fatfs_boot () {
|
|
|
|
sfdisk_boot_partition () {
|
|
|
|
#For: TI: Omap/Sitara Devices
|
|
|
|
#Generic boot partition created by sfdisk
|
|
|
|
echo ""
|
|
|
|
echo ""
|
|
|
|
echo "Using sfdisk to create an omap compatible fatfs BOOT partition"
|
|
|
|
echo "Using sfdisk to create BOOT partition"
|
|
|
|
echo "-----------------------------"
|
|
|
|
echo "-----------------------------"
|
|
|
|
|
|
|
|
|
|
|
|
LC_ALL=C sfdisk --DOS --sectors 63 --heads 255 --unit M "${MMC}" <<-__EOF__
|
|
|
|
LC_ALL=C sfdisk --DOS --sectors 63 --heads 255 --unit M "${MMC}" <<-__EOF__
|
|
|
@ -1137,9 +1137,9 @@ create_partitions () {
|
|
|
|
case "${bootloader_location}" in
|
|
|
|
case "${bootloader_location}" in
|
|
|
|
fatfs_boot)
|
|
|
|
fatfs_boot)
|
|
|
|
if [ "${use_sfdisk}" ] ; then
|
|
|
|
if [ "${use_sfdisk}" ] ; then
|
|
|
|
sfdisk_fatfs_boot
|
|
|
|
sfdisk_boot_partition
|
|
|
|
else
|
|
|
|
else
|
|
|
|
fatfs_boot
|
|
|
|
fdisk_boot_partition
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|
;;
|
|
|
|
;;
|
|
|
|
dd_uboot_boot)
|
|
|
|
dd_uboot_boot)
|
|
|
@ -1151,7 +1151,7 @@ create_partitions () {
|
|
|
|
LC_ALL=C parted --script ${MMC} mkpart primary ${parted_format} ${boot_startmb} ${boot_partition_size}
|
|
|
|
LC_ALL=C parted --script ${MMC} mkpart primary ${parted_format} ${boot_startmb} ${boot_partition_size}
|
|
|
|
;;
|
|
|
|
;;
|
|
|
|
*)
|
|
|
|
*)
|
|
|
|
LC_ALL=C parted --script ${MMC} mkpart primary ${parted_format} ${boot_startmb} ${boot_partition_size}
|
|
|
|
fdisk_boot_partition
|
|
|
|
;;
|
|
|
|
;;
|
|
|
|
esac
|
|
|
|
esac
|
|
|
|
format_boot_partition
|
|
|
|
format_boot_partition
|
|
|
@ -1892,6 +1892,7 @@ echo "-----------------------------"
|
|
|
|
check_root
|
|
|
|
check_root
|
|
|
|
detect_software
|
|
|
|
detect_software
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if [ ! "${conf_bootloader_in_flash}" ] ; then
|
|
|
|
if [ "${spl_name}" ] || [ "${boot_name}" ] ; then
|
|
|
|
if [ "${spl_name}" ] || [ "${boot_name}" ] ; then
|
|
|
|
if [ "${USE_LOCAL_BOOT}" ] ; then
|
|
|
|
if [ "${USE_LOCAL_BOOT}" ] ; then
|
|
|
|
local_bootloader
|
|
|
|
local_bootloader
|
|
|
@ -1899,6 +1900,7 @@ if [ "${spl_name}" ] || [ "${boot_name}" ] ; then
|
|
|
|
dl_bootloader
|
|
|
|
dl_bootloader
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|
|
|
|
|
fi
|
|
|
|
|
|
|
|
|
|
|
|
dl_kernel_image
|
|
|
|
dl_kernel_image
|
|
|
|
dl_netinstall_image
|
|
|
|
dl_netinstall_image
|
|
|
|