=== modified file 'linaro_image_tools/media_create/android_boards.py'
@@ -234,7 +234,7 @@
class AndroidMx53LoCoConfig(AndroidBoardConfig, Mx53LoCoConfig):
extra_boot_args_options = (
'earlyprintk rootdelay=1 fixrtc nocompcache di1_primary tve')
- _extra_serial_opts = 'console=tty0 console=%s,115200n8' % (
+ _extra_serial_opts = 'console=%s,115200n8' % (
Mx53LoCoConfig.serial_tty)
android_specific_args = 'init=/init androidboot.console=%s' % (
Mx53LoCoConfig.serial_tty)
=== modified file 'linaro_image_tools/media_create/tests/test_media_create.py'
@@ -1178,6 +1178,12 @@
'1843200,-,E\n1843200,1048576,L\n2891776,,,-',
android_boards.AndroidVexpressA9Config.get_sfdisk_cmd())
+ def test_mx5_android(self):
+ self.assertEqual(
+ '1,8191,0xDA\n8192,262144,0x0C,*\n270336,1048576,L\n'
+ '1318912,-,E\n1318912,524288,L\n1843200,1048576,L\n2891776,,,-',
+ android_boards.AndroidMx53LoCoConfig.get_sfdisk_cmd())
+
class TestGetSfdiskCmdV2(TestCase):
def test_mx5(self):
@@ -1472,6 +1478,19 @@
'bootm 0x60000000 0x62000000'}
self.assertEqual(expected, boot_commands)
+ def test_android_mx5(self):
+ boot_commands = (android_boards.AndroidMx53LoCoConfig.
+ _get_boot_env(consoles=[]))
+ expected = {
+ 'bootargs': 'console=ttymxc0,115200n8 '
+ 'rootwait ro earlyprintk rootdelay=1 fixrtc '
+ 'nocompcache di1_primary tve init=/init '
+ 'androidboot.console=ttymxc0',
+ 'bootcmd': 'fatload mmc 0:2 0x70000000 uImage; '
+ 'fatload mmc 0:2 0x72000000 uInitrd; '
+ 'bootm 0x70000000 0x72000000'}
+ self.assertEqual(expected, boot_commands)
+
class TestUnpackBinaryTarball(TestCaseWithFixtures):