Merge lp:~tixy/linaro-image-tools/vexpress-a9-support into lp:linaro-image-tools/11.11

Proposed by Tixy (Jon Medhurst)
Status: Merged
Merged at revision: 461
Proposed branch: lp:~tixy/linaro-image-tools/vexpress-a9-support
Merge into: lp:linaro-image-tools/11.11
Diff against target: 116 lines (+44/-1)
3 files modified
linaro_image_tools/media_create/android_boards.py (+7/-0)
linaro_image_tools/media_create/boards.py (+9/-1)
linaro_image_tools/media_create/tests/test_media_create.py (+28/-0)
To merge this branch: bzr merge lp:~tixy/linaro-image-tools/vexpress-a9-support
Reviewer Review Type Date Requested Status
Mattias Backman (community) Approve
Review via email: mp+82372@code.launchpad.net

Description of the change

This is the same as my previous merge proposal but with test cases added, including for Android.

To post a comment you must log in.
Revision history for this message
Mattias Backman (mabac) wrote :

Thanks for adding the tests. We do also need the Android test cases. Can you have a look at TestGetBootCmdAndroid and TestGetSfdiskCmd and add a corresponding test method for the Vexpress as well?

Revision history for this message
Tixy (Jon Medhurst) (tixy) wrote :

On Wed, 2011-11-16 at 13:56 +0000, Mattias Backman wrote:
> Thanks for adding the tests. We do also need the Android test cases. Can you have a look at TestGetBootCmdAndroid and TestGetSfdiskCmd and add a corresponding test method for the Vexpress as well?

I will do that. What is the best way, commit another change and push
that out? Or modify the existing change?

--
Tixy

Revision history for this message
Mattias Backman (mabac) wrote :

On Wed, Nov 16, 2011 at 3:04 PM, Tixy (Jon Medhurst)
<email address hidden> wrote:
> On Wed, 2011-11-16 at 13:56 +0000, Mattias Backman wrote:
>> Thanks for adding the tests. We do also need the Android test cases. Can you have a look at TestGetBootCmdAndroid and TestGetSfdiskCmd and add a corresponding test method for the Vexpress as well?
>
> I will do that. What is the best way, commit another change and push
> that out? Or modify the existing change?

Just commit another revision and push to the branch. Bazaar should
have remembered the target so you can do
   bzr push
and if that does not work do
   bzr push lp:~tixy/etc/etc --remember
so it will be remembered for next time.

Then put a comment in the merge proposal since I don't think there's
any notification for new revisions.

>
> --
> Tixy
>
>
> https://code.launchpad.net/~tixy/linaro-image-tools/vexpress-a9-support/+merge/82372
> You are requested to review the proposed merge of lp:~tixy/linaro-image-tools/vexpress-a9-support into lp:linaro-image-tools.
>

462. By Tixy (Jon Medhurst)

Add vexpress-a9 test case for android.

Revision history for this message
Tixy (Jon Medhurst) (tixy) wrote :

On Wed, 2011-11-16 at 14:29 +0000, Mattias Backman wrote:
> On Wed, Nov 16, 2011 at 3:04 PM, Tixy (Jon Medhurst)
> <email address hidden> wrote:
> > On Wed, 2011-11-16 at 13:56 +0000, Mattias Backman wrote:
> >> Thanks for adding the tests. We do also need the Android test cases. Can you have a look at TestGetBootCmdAndroid and TestGetSfdiskCmd and add a corresponding test method for the Vexpress as well?
> >
> > I will do that. What is the best way, commit another change and push
> > that out? Or modify the existing change?
>
> Just commit another revision and push to the branch. Bazaar should
> have remembered the target so you can do
> bzr push
> and if that does not work do
> bzr push lp:~tixy/etc/etc --remember
> so it will be remembered for next time.
>
> Then put a comment in the merge proposal since I don't think there's
> any notification for new revisions.

I've done that, thanks. For planning purposes, what is the likelyhood
that this change would be in the tools in time for a vexpress Android
release this month? (I'm guessing it's a bit late now.)

--
Tixy

Revision history for this message
Mattias Backman (mabac) wrote :

Thanks for the additional tests.

> I've done that, thanks. For planning purposes, what is the likelyhood
> that this change would be in the tools in time for a vexpress Android
> release this month? (I'm guessing it's a bit late now.)

I'd say that there's a very good chance to have this in the next release of l-i-t. :) That is, I'll have another look and probably find that I'm still happy with it and merge it before we cut the release.

>
> --
> Tixy

Revision history for this message
Mattias Backman (mabac) wrote :

Thank you for working on this and adding the test cases. I have merged the change so it will be part of the next release.

review: Approve
Revision history for this message
Tixy (Jon Medhurst) (tixy) wrote :

On Thu, 2011-11-17 at 09:07 +0000, Mattias Backman wrote:
> Review: Approve
>
> Thank you for working on this and adding the test cases. I have merged the change so it will be part of the next release.

Thanks :-)

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
=== modified file 'linaro_image_tools/media_create/android_boards.py'
--- linaro_image_tools/media_create/android_boards.py 2011-11-14 15:14:29 +0000
+++ linaro_image_tools/media_create/android_boards.py 2011-11-16 14:37:01 +0000
@@ -33,6 +33,7 @@
33from linaro_image_tools.media_create.boards import SnowballEmmcConfig33from linaro_image_tools.media_create.boards import SnowballEmmcConfig
34from linaro_image_tools.media_create.boards import SMDKV310Config34from linaro_image_tools.media_create.boards import SMDKV310Config
35from linaro_image_tools.media_create.boards import OrigenConfig35from linaro_image_tools.media_create.boards import OrigenConfig
36from linaro_image_tools.media_create.boards import VexpressA9Config
36from linaro_image_tools.media_create.boards import (37from linaro_image_tools.media_create.boards import (
37 align_up,38 align_up,
38 align_partition,39 align_partition,
@@ -282,6 +283,11 @@
282 android_specific_args = 'init=/init androidboot.console=ttySAC2'283 android_specific_args = 'init=/init androidboot.console=ttySAC2'
283284
284285
286class AndroidVexpressA9Config(AndroidBoardConfig, VexpressA9Config):
287 _extra_serial_opts = 'console=tty0 console=ttyAMA0,38400n8'
288 android_specific_args = 'init=/init androidboot.console=ttyAMA0'
289
290
285android_board_configs = {291android_board_configs = {
286 'beagle': AndroidBeagleConfig,292 'beagle': AndroidBeagleConfig,
287 'panda': AndroidPandaConfig,293 'panda': AndroidPandaConfig,
@@ -291,4 +297,5 @@
291 'mx53loco': AndroidMx53LoCoConfig,297 'mx53loco': AndroidMx53LoCoConfig,
292 'iMX53': AndroidMx53LoCoConfig,298 'iMX53': AndroidMx53LoCoConfig,
293 'origen': AndroidOrigenConfig,299 'origen': AndroidOrigenConfig,
300 'vexpress-a9': AndroidVexpressA9Config,
294 }301 }
295302
=== modified file 'linaro_image_tools/media_create/boards.py'
--- linaro_image_tools/media_create/boards.py 2011-11-09 17:39:45 +0000
+++ linaro_image_tools/media_create/boards.py 2011-11-16 14:37:01 +0000
@@ -1266,7 +1266,7 @@
1266 initrd_addr = '0x81000000'1266 initrd_addr = '0x81000000'
1267 load_addr = kernel_addr1267 load_addr = kernel_addr
1268 kernel_flavors = ['linaro-vexpress']1268 kernel_flavors = ['linaro-vexpress']
1269 boot_script = None1269 boot_script = 'boot.scr'
1270 # ARM Boot Monitor is used to load u-boot, uImage etc. into flash and1270 # ARM Boot Monitor is used to load u-boot, uImage etc. into flash and
1271 # only allows for FAT161271 # only allows for FAT16
1272 fat_size = 161272 fat_size = 16
@@ -1287,6 +1287,13 @@
1287 make_uInitrd(i_img_data, boot_dir)1287 make_uInitrd(i_img_data, boot_dir)
12881288
12891289
1290class VexpressA9Config(VexpressConfig):
1291 # For now, this is a duplicate of VexpressConfig.
1292 # In future, there will also be A5 and A15 variants.
1293 # For all of these, there should never be any V1 hardware packs.
1294 pass
1295
1296
1290class SamsungConfig(BoardConfig):1297class SamsungConfig(BoardConfig):
1291 @classproperty1298 @classproperty
1292 def extra_serial_opts(cls):1299 def extra_serial_opts(cls):
@@ -1430,6 +1437,7 @@
1430 'igep': IgepConfig,1437 'igep': IgepConfig,
1431 'panda': PandaConfig,1438 'panda': PandaConfig,
1432 'vexpress': VexpressConfig,1439 'vexpress': VexpressConfig,
1440 'vexpress-a9': VexpressA9Config,
1433 'ux500': Ux500Config,1441 'ux500': Ux500Config,
1434 'snowball_sd': SnowballSdConfig,1442 'snowball_sd': SnowballSdConfig,
1435 'snowball_emmc': SnowballEmmcConfig,1443 'snowball_emmc': SnowballEmmcConfig,
14361444
=== modified file 'linaro_image_tools/media_create/tests/test_media_create.py'
--- linaro_image_tools/media_create/tests/test_media_create.py 2011-11-15 08:07:46 +0000
+++ linaro_image_tools/media_create/tests/test_media_create.py 2011-11-16 14:37:01 +0000
@@ -919,6 +919,11 @@
919 expected = ['make_uImage', 'make_uInitrd']919 expected = ['make_uImage', 'make_uInitrd']
920 self.assertEqual(expected, self.funcs_calls)920 self.assertEqual(expected, self.funcs_calls)
921921
922 def test_vexpress_a9_steps(self):
923 self.make_boot_files(boards.VexpressA9Config)
924 expected = ['make_uImage', 'make_uInitrd']
925 self.assertEqual(expected, self.funcs_calls)
926
922 def test_mx5_steps(self):927 def test_mx5_steps(self):
923 class SomeMx5Config(boards.Mx5Config):928 class SomeMx5Config(boards.Mx5Config):
924 uboot_flavor = 'uboot_flavor'929 uboot_flavor = 'uboot_flavor'
@@ -1224,6 +1229,18 @@
1224 'bootm 0x60008000 0x81000000'}1229 'bootm 0x60008000 0x81000000'}
1225 self.assertEqual(expected, boot_commands)1230 self.assertEqual(expected, boot_commands)
12261231
1232 def test_vexpress_a9(self):
1233 boot_commands = board_configs['vexpress-a9']._get_boot_env(
1234 is_live=False, is_lowmem=False, consoles=['ttyXXX'],
1235 rootfs_uuid="deadbeef", d_img_data=None)
1236 expected = {
1237 'bootargs': 'console=tty0 console=ttyAMA0,38400n8 '
1238 'console=ttyXXX root=UUID=deadbeef rootwait ro',
1239 'bootcmd': 'fatload mmc 0:1 0x60008000 uImage; '
1240 'fatload mmc 0:1 0x81000000 uInitrd; '
1241 'bootm 0x60008000 0x81000000'}
1242 self.assertEqual(expected, boot_commands)
1243
1227 def test_mx51(self):1244 def test_mx51(self):
1228 boot_commands = boards.Mx51Config._get_boot_env(1245 boot_commands = boards.Mx51Config._get_boot_env(
1229 is_live=False, is_lowmem=False, consoles=[],1246 is_live=False, is_lowmem=False, consoles=[],
@@ -1436,6 +1453,17 @@
1436 'bootm 0x40007000 0x42000000'}1453 'bootm 0x40007000 0x42000000'}
1437 self.assertEqual(expected, boot_commands)1454 self.assertEqual(expected, boot_commands)
14381455
1456 def test_android_vexpress_a9(self):
1457 boot_commands = (android_boards.AndroidVexpressA9Config.
1458 _get_boot_env(consoles=[]))
1459 expected = {
1460 'bootargs': 'console=tty0 console=ttyAMA0,38400n8 '
1461 'rootwait ro init=/init androidboot.console=ttyAMA0',
1462 'bootcmd': 'fatload mmc 0:1 0x60008000 uImage; '
1463 'fatload mmc 0:1 0x81000000 uInitrd; '
1464 'bootm 0x60008000 0x81000000'}
1465 self.assertEqual(expected, boot_commands)
1466
14391467
1440class TestUnpackBinaryTarball(TestCaseWithFixtures):1468class TestUnpackBinaryTarball(TestCaseWithFixtures):
14411469

Subscribers

People subscribed via source and target branches