Merge lp:~lool/linaro-image-tools/efikasb-support into lp:linaro-image-tools/11.11

Proposed by Loïc Minier
Status: Merged
Merged at revision: 300
Proposed branch: lp:~lool/linaro-image-tools/efikasb-support
Merge into: lp:linaro-image-tools/11.11
Diff against target: 111 lines (+35/-21)
2 files modified
linaro_media_create/boards.py (+30/-18)
linaro_media_create/tests/test_media_create.py (+5/-3)
To merge this branch: bzr merge lp:~lool/linaro-image-tools/efikasb-support
Reviewer Review Type Date Requested Status
Guilherme Salgado (community) code Approve
Review via email: mp+53864@code.launchpad.net

Description of the change

Support for EfikaMX SmartBook and some related i.MX5x adjustments.

To post a comment you must log in.
Revision history for this message
Guilherme Salgado (salgado) wrote :

Looks good to me.

review: Approve (code)

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
=== modified file 'linaro_media_create/boards.py'
--- linaro_media_create/boards.py 2011-03-10 23:28:21 +0000
+++ linaro_media_create/boards.py 2011-03-17 17:53:40 +0000
@@ -57,10 +57,11 @@
57 """Round value to the next multiple of align."""57 """Round value to the next multiple of align."""
58 return (value + align - 1) / align * align58 return (value + align - 1) / align * align
5959
60# optional bootloader partition; at least 1 MiB; in theory, an i.MX5 bootloader60# optional bootloader partition; at least 1 MiB; in theory, an i.MX5x
61# partition could hold RedBoot, FIS table, RedBoot config, kernel, and initrd,61# bootloader partition could hold RedBoot, FIS table, RedBoot config, kernel,
62# but we typically use U-Boot which is about 167 KiB as of 2011/02/11 and62# and initrd, but we typically use U-Boot which is about 167 KiB as of
63# currently doesn't even store its environment there, so this should be enough63# 2011/02/11 and currently doesn't even store its environment there, so this
64# should be enough
64LOADER_MIN_SIZE_S = align_up(1 * 1024 * 1024, SECTOR_SIZE) / SECTOR_SIZE65LOADER_MIN_SIZE_S = align_up(1 * 1024 * 1024, SECTOR_SIZE) / SECTOR_SIZE
65# boot partition; at least 50 MiB; XXX this shouldn't be hardcoded66# boot partition; at least 50 MiB; XXX this shouldn't be hardcoded
66BOOT_MIN_SIZE_S = align_up(50 * 1024 * 1024, SECTOR_SIZE) / SECTOR_SIZE67BOOT_MIN_SIZE_S = align_up(50 * 1024 * 1024, SECTOR_SIZE) / SECTOR_SIZE
@@ -417,10 +418,6 @@
417 serial_tty = 'ttymxc0'418 serial_tty = 'ttymxc0'
418 extra_serial_opts = 'console=tty0 console=%s,115200n8' % serial_tty419 extra_serial_opts = 'console=tty0 console=%s,115200n8' % serial_tty
419 live_serial_opts = 'serialtty=%s' % serial_tty420 live_serial_opts = 'serialtty=%s' % serial_tty
420 kernel_addr = '0x90000000'
421 initrd_addr = '0x90800000'
422 load_addr = '0x90008000'
423 kernel_suffix = 'linaro-mx51'
424 boot_script = 'boot.scr'421 boot_script = 'boot.scr'
425 mmc_part_offset = 1422 mmc_part_offset = 1
426 mmc_option = '0:2'423 mmc_option = '0:2'
@@ -465,22 +462,36 @@
465 make_boot_script(boot_env, boot_script)462 make_boot_script(boot_env, boot_script)
466463
467464
468class EfikamxConfig(Mx5Config):465class Mx51Config(Mx5Config):
469 uboot_flavor = 'efikamx'466 kernel_addr = '0x90000000'
470467 initrd_addr = '0x90800000'
471468 load_addr = '0x90008000'
472class Mx51evkConfig(Mx5Config):469 kernel_suffix = 'linaro-mx51'
473 uboot_flavor = 'mx51evk'470
474471
475472class Mx53Config(Mx5Config):
476class Mx53LoCoConfig(Mx5Config):
477 uboot_flavor = 'mx53loco'
478 kernel_addr = '0x70800000'473 kernel_addr = '0x70800000'
479 initrd_addr = '0x71800000'474 initrd_addr = '0x71800000'
480 load_addr = '0x70008000'475 load_addr = '0x70008000'
481 kernel_suffix = 'linaro-lt-mx53'476 kernel_suffix = 'linaro-lt-mx53'
482477
483478
479class EfikamxConfig(Mx51Config):
480 uboot_flavor = 'efikamx'
481
482
483class EfikasbConfig(Mx51Config):
484 uboot_flavor = 'efikasb'
485
486
487class Mx51evkConfig(Mx51Config):
488 uboot_flavor = 'mx51evk'
489
490
491class Mx53LoCoConfig(Mx53Config):
492 uboot_flavor = 'mx53loco'
493
494
484class VexpressConfig(BoardConfig):495class VexpressConfig(BoardConfig):
485 uboot_flavor = 'ca9x4_ct_vxp'496 uboot_flavor = 'ca9x4_ct_vxp'
486 uboot_in_boot_part = True497 uboot_in_boot_part = True
@@ -589,6 +600,7 @@
589 'vexpress': VexpressConfig,600 'vexpress': VexpressConfig,
590 'ux500': Ux500Config,601 'ux500': Ux500Config,
591 'efikamx': EfikamxConfig,602 'efikamx': EfikamxConfig,
603 'efikasb': EfikasbConfig,
592 'mx51evk': Mx51evkConfig,604 'mx51evk': Mx51evkConfig,
593 'mx53loco' : Mx53LoCoConfig,605 'mx53loco' : Mx53LoCoConfig,
594 'overo': OveroConfig,606 'overo': OveroConfig,
595607
=== modified file 'linaro_media_create/tests/test_media_create.py'
--- linaro_media_create/tests/test_media_create.py 2011-03-12 09:31:11 +0000
+++ linaro_media_create/tests/test_media_create.py 2011-03-17 17:53:40 +0000
@@ -259,7 +259,9 @@
259 self.assertEqual(expected, self.funcs_calls)259 self.assertEqual(expected, self.funcs_calls)
260260
261 def test_mx5_steps(self):261 def test_mx5_steps(self):
262 self.make_boot_files(boards.Mx51evkConfig)262 class SomeMx5Config(boards.Mx5Config):
263 uboot_flavor = 'uboot_flavor'
264 self.make_boot_files(SomeMx5Config)
263 expected = [265 expected = [
264 'install_mx5_boot_loader', 'make_uImage', 'make_uInitrd',266 'install_mx5_boot_loader', 'make_uImage', 'make_uInitrd',
265 'make_boot_script']267 'make_boot_script']
@@ -416,8 +418,8 @@
416 'bootm 0x60008000 0x81000000'}418 'bootm 0x60008000 0x81000000'}
417 self.assertEqual(expected, boot_commands)419 self.assertEqual(expected, boot_commands)
418420
419 def test_mx5(self):421 def test_mx51(self):
420 boot_commands = boards.Mx5Config._get_boot_env(422 boot_commands = boards.Mx51Config._get_boot_env(
421 is_live=False, is_lowmem=False, consoles=[],423 is_live=False, is_lowmem=False, consoles=[],
422 rootfs_uuid="deadbeef")424 rootfs_uuid="deadbeef")
423 expected = {425 expected = {

Subscribers

People subscribed via source and target branches