=== modified file 'linaro-android-media-create'
@@ -33,6 +33,7 @@
setup_partitions,
setup_android_partitions,
get_uuid,
+ partition_mounted,
)
from linaro_image_tools.media_create.rootfs import populate_partition
from linaro_image_tools.media_create.unpack_binary_tarball import (
@@ -142,7 +143,8 @@
board_config.populate_raw_partition(args.device, BOOT_DIR)
populate_partition(BOOT_DIR + "/boot", BOOT_DISK, boot_partition)
board_config.populate_boot_script(boot_partition, BOOT_DISK, args.consoles)
- board_config.install_boot_loader(args.device, BOOT_DISK)
+ with partition_mounted(boot_partition, BOOT_DISK):
+ board_config.install_boot_loader(args.device, BOOT_DISK)
populate_partition(SYSTEM_DIR + "/system", SYSTEM_DISK, system_partition)
populate_partition(DATA_DIR + "/data", DATA_DISK, data_partition)
print "Done creating Linaro Android image on %s" % args.device
=== modified file 'linaro_image_tools/media_create/android_boards.py'
@@ -238,7 +238,7 @@
@classmethod
def install_boot_loader(cls, boot_partition, boot_device_or_file):
- install_mx5_boot_loader(os.path.join(boot_device_or_file, "u-boot.bin"), boot_partition, cls.LOADER_MIN_SIZE_S)
+ install_mx5_boot_loader(os.path.join(boot_device_or_file, "u-boot.imx"), boot_partition, cls.LOADER_MIN_SIZE_S)
android_board_configs = {
'beagle': AndroidBeagleConfig,