=== modified file 'linaro-media-create'
@@ -119,6 +119,10 @@
media = Media(args.device)
if media.is_block_device:
+ if not board_config.supports_writing_to_mmc:
+ print "The board '%s' does not support the --mmc option. Please use " \
+ "--image_file to create an image file for this board." % args.board
+ sys.exit(1)
if not confirm_device_selection_and_ensure_it_is_ready(args.device):
sys.exit(1)
elif not args.should_format_rootfs or not args.should_format_bootfs:
=== modified file 'linaro_image_tools/media_create/boards.py'
@@ -141,6 +141,7 @@
extra_serial_opts = ''
live_serial_opts = ''
extra_boot_args_options = None
+ supports_writing_to_mmc = True
# These attributes must be defined on all subclasses.
kernel_addr = None
@@ -518,6 +519,7 @@
# Boot ROM looks for a boot table of contents (TOC) at 0x20000
# Actually, it first looks at address 0, but that's where l-m-c
# puts the MBR, so the boot loader skips that address.
+ supports_writing_to_mmc = False
SNOWBALL_LOADER_START_S = (128 * 1024) / SECTOR_SIZE
SNOWBALL_STARTUP_FILES_CONFIG = 'startfiles.cfg'
TOC_SIZE = 512