Merge lp:~salgado/linaro-image-tools/bug-898550 into lp:linaro-image-tools/11.11

Proposed by Guilherme Salgado
Status: Merged
Merged at revision: 472
Proposed branch: lp:~salgado/linaro-image-tools/bug-898550
Merge into: lp:linaro-image-tools/11.11
Diff against target: 55 lines (+13/-13)
2 files modified
linaro_image_tools/media_create/android_boards.py (+1/-1)
linaro_image_tools/media_create/tests/test_media_create.py (+12/-12)
To merge this branch: bzr merge lp:~salgado/linaro-image-tools/bug-898550
Reviewer Review Type Date Requested Status
Mattias Backman (community) Approve
Review via email: mp+84525@code.launchpad.net

Description of the change

Increase the size of the system partition for android images from 256MB to 512MB

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

Looks good to me. Creating an image with the system.tar.bz2 that caused the problem works with this branch.

We should just let Zach come back with a boot test before merging. On iMX53 and perhaps another board just to be safe?

review: Approve
Revision history for this message
Данило Шеган (danilo) wrote :

Does it make sense to query for the system.tar.bz2 file size ahead of time? Well, unextracted system.tar at the very least, though that's might not be telling enough either because of all the file metadata and alignment filesystems keep compared to tar files, but we could at least warn when you get dangerously close. We could also align the partition size automatically up to the smallest multiple of say 32MB (or whatever makes sense).

Note that the above comments should not stop this urgent fix from landing.

Revision history for this message
Guilherme Salgado (salgado) wrote :

On Tue, 2011-12-06 at 08:58 +0000, Данило Шеган wrote:
> Does it make sense to query for the system.tar.bz2 file size ahead of time? Well, unextracted system.tar at the very least, though that's might not be telling enough either because of all the file metadata and alignment filesystems keep compared to tar files, but we could at least warn when you get dangerously close. We could also align the partition size automatically up to the smallest multiple of say 32MB (or whatever makes sense).

Sounds like bug 866043 to me

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'linaro_image_tools/media_create/android_boards.py'
2--- linaro_image_tools/media_create/android_boards.py 2011-11-17 09:03:31 +0000
3+++ linaro_image_tools/media_create/android_boards.py 2011-12-05 19:58:23 +0000
4@@ -114,7 +114,7 @@
5 partition_type = '0x0E'
6
7 BOOT_MIN_SIZE_S = align_up(128 * 1024 * 1024, SECTOR_SIZE) / SECTOR_SIZE
8- SYSTEM_MIN_SIZE_S = align_up(256 * 1024 * 1024, SECTOR_SIZE) / SECTOR_SIZE
9+ SYSTEM_MIN_SIZE_S = align_up(512 * 1024 * 1024, SECTOR_SIZE) / SECTOR_SIZE
10 CACHE_MIN_SIZE_S = align_up(256 * 1024 * 1024, SECTOR_SIZE) / SECTOR_SIZE
11 USERDATA_MIN_SIZE_S = align_up(512 * 1024 * 1024, SECTOR_SIZE) / SECTOR_SIZE
12 SDCARD_MIN_SIZE_S = align_up(512 * 1024 * 1024, SECTOR_SIZE) / SECTOR_SIZE
13
14=== modified file 'linaro_image_tools/media_create/tests/test_media_create.py'
15--- linaro_image_tools/media_create/tests/test_media_create.py 2011-11-23 12:49:03 +0000
16+++ linaro_image_tools/media_create/tests/test_media_create.py 2011-12-05 19:58:23 +0000
17@@ -1156,27 +1156,27 @@
18
19 def test_panda_android(self):
20 self.assertEqual(
21- '63,270272,0x0C,*\n270336,524288,L\n794624,524288,L\n' \
22- '1318912,-,E\n1318912,1048576,L\n2367488,,,-',
23- android_boards.AndroidPandaConfig.get_sfdisk_cmd())
24+ '63,270272,0x0C,*\n270336,1048576,L\n1318912,524288,L\n'
25+ '1843200,-,E\n1843200,1048576,L\n2891776,,,-',
26+ android_boards.AndroidPandaConfig.get_sfdisk_cmd())
27
28 def test_origen_android(self):
29 self.assertEqual(
30- '1,8191,0xDA\n8253,270274,0x0C,*\n278528,524288,L\n' \
31- '802816,-,E\n802816,524288,L\n1327104,1048576,L\n2375680,,,-',
32- android_boards.AndroidOrigenConfig.get_sfdisk_cmd())
33+ '1,8191,0xDA\n8253,270274,0x0C,*\n278528,1048576,L\n'
34+ '1327104,-,E\n1327104,524288,L\n1851392,1048576,L\n2899968,,,-',
35+ android_boards.AndroidOrigenConfig.get_sfdisk_cmd())
36
37 def test_snowball_emmc_android(self):
38 self.assertEqual(
39- '256,7936,0xDA\n8192,262144,0x0C,*\n270336,524288,L\n' \
40- '794624,-,E\n794624,524288,L\n1318912,1048576,L\n2367488,,,-',
41- android_boards.AndroidSnowballEmmcConfig.get_sfdisk_cmd())
42+ '256,7936,0xDA\n8192,262144,0x0C,*\n270336,1048576,L\n'
43+ '1318912,-,E\n1318912,524288,L\n1843200,1048576,L\n2891776,,,-',
44+ android_boards.AndroidSnowballEmmcConfig.get_sfdisk_cmd())
45
46 def test_vexpress_android(self):
47 self.assertEqual(
48- '63,270272,0x0E,*\n270336,524288,L\n794624,524288,L\n' \
49- '1318912,-,E\n1318912,1048576,L\n2367488,,,-',
50- android_boards.AndroidVexpressA9Config.get_sfdisk_cmd())
51+ '63,270272,0x0E,*\n270336,1048576,L\n1318912,524288,L\n'
52+ '1843200,-,E\n1843200,1048576,L\n2891776,,,-',
53+ android_boards.AndroidVexpressA9Config.get_sfdisk_cmd())
54
55 class TestGetSfdiskCmdV2(TestCase):
56

Subscribers

People subscribed via source and target branches