Merge lp:~vishalbhoj/linaro-image-tools/increase-system-partition-size into lp:linaro-image-tools/11.11

Proposed by vishal
Status: Merged
Approved by: Milo Casagrande
Approved revision: 647
Merged at revision: 646
Proposed branch: lp:~vishalbhoj/linaro-image-tools/increase-system-partition-size
Merge into: lp:linaro-image-tools/11.11
Diff against target: 77 lines (+16/-16)
2 files modified
linaro_image_tools/media_create/android_boards.py (+2/-2)
linaro_image_tools/media_create/tests/test_media_create.py (+14/-14)
To merge this branch: bzr merge lp:~vishalbhoj/linaro-image-tools/increase-system-partition-size
Reviewer Review Type Date Requested Status
Milo Casagrande (community) Approve
Review via email: mp+197026@code.launchpad.net
To post a comment you must log in.
Revision history for this message
Milo Casagrande (milo) wrote :

Hi Vishal,

I'm fine with the change, just one question: why exactly 768? Doubling the previous value (512) would be too big?
Also, before we can merge, please update the tests: with this change at least 7 are failing.

Thanks.

review: Needs Fixing
647. By vishal

Update the tests wrt to the latest changes in system partition size for Android

Revision history for this message
vishal (vishalbhoj) wrote :

Doubling the previous value is no an option because fitting all the partition in a 2 GB sdcard would be difficult. Currently I have cut 256 MB from sdcard partition and added it to sytem partition. Also fixed the tests in commit 647.

Revision history for this message
Milo Casagrande (milo) wrote :

Thanks Vishal, looks good now.

review: Approve

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 2013-04-03 11:32:40 +0000
3+++ linaro_image_tools/media_create/android_boards.py 2013-11-29 10:17:04 +0000
4@@ -60,10 +60,10 @@
5 logger = logging.getLogger(DEFAULT_LOGGER_NAME)
6
7 BOOT_MIN_SIZE_S = align_up(128 * 1024 * 1024, SECTOR_SIZE) / SECTOR_SIZE
8-SYSTEM_MIN_SIZE_S = align_up(512 * 1024 * 1024, SECTOR_SIZE) / SECTOR_SIZE
9+SYSTEM_MIN_SIZE_S = align_up(768 * 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+SDCARD_MIN_SIZE_S = align_up(256 * 1024 * 1024, SECTOR_SIZE) / SECTOR_SIZE
14 LOADER_MIN_SIZE_S = align_up(1 * 1024 * 1024, SECTOR_SIZE) / SECTOR_SIZE
15
16
17
18=== modified file 'linaro_image_tools/media_create/tests/test_media_create.py'
19--- linaro_image_tools/media_create/tests/test_media_create.py 2013-08-19 07:39:34 +0000
20+++ linaro_image_tools/media_create/tests/test_media_create.py 2013-11-29 10:17:04 +0000
21@@ -1904,44 +1904,44 @@
22
23 def test_panda_android(self):
24 self.assertEqual(
25- '63,270272,0x0C,*\n270336,1048576,L\n1318912,524288,L\n'
26- '1843200,-,E\n1843200,1048576,L\n2891776,,,-',
27+ '63,270272,0x0C,*\n270336,1572864,L\n1843200,524288,L\n'
28+ '2367488,-,E\n2367488,1048576,L\n3416064,,,-',
29 android_boards.AndroidPandaConfig().get_sfdisk_cmd())
30
31 def test_origen_android(self):
32 self.assertEqual(
33- '1,8191,0xDA\n8253,270274,0x0C,*\n278528,1048576,L\n'
34- '1327104,-,E\n1327104,524288,L\n1851392,1048576,L\n2899968,,,-',
35+ '1,8191,0xDA\n8253,270274,0x0C,*\n278528,1572864,L\n'
36+ '1851392,-,E\n1851392,524288,L\n2375680,1048576,L\n3424256,,,-',
37 android_boards.AndroidOrigenConfig().get_sfdisk_cmd())
38
39 def test_origen_quad_android(self):
40 self.assertEqual(
41- '1,8191,0xDA\n8253,270274,0x0C,*\n278528,1048576,L\n'
42- '1327104,-,E\n1327104,524288,L\n1851392,1048576,L\n2899968,,,-',
43+ '1,8191,0xDA\n8253,270274,0x0C,*\n278528,1572864,L\n'
44+ '1851392,-,E\n1851392,524288,L\n2375680,1048576,L\n3424256,,,-',
45 android_boards.AndroidOrigenQuadConfig().get_sfdisk_cmd())
46
47 def test_snowball_emmc_android(self):
48 self.assertEqual(
49- '256,7936,0xDA\n8192,262144,0x0C,*\n270336,1048576,L\n'
50- '1318912,-,E\n1318912,524288,L\n1843200,1048576,L\n2891776,,,-',
51+ '256,7936,0xDA\n8192,262144,0x0C,*\n270336,1572864,L\n'
52+ '1843200,-,E\n1843200,524288,L\n2367488,1048576,L\n3416064,,,-',
53 android_boards.AndroidSnowballEmmcConfig().get_sfdisk_cmd())
54
55 def test_vexpress_android(self):
56 self.assertEqual(
57- '63,270272,0x0E,*\n270336,1048576,L\n1318912,524288,L\n'
58- '1843200,-,E\n1843200,1048576,L\n2891776,,,-',
59+ '63,270272,0x0E,*\n270336,1572864,L\n1843200,524288,L\n'
60+ '2367488,-,E\n2367488,1048576,L\n3416064,,,-',
61 android_boards.AndroidVexpressConfig().get_sfdisk_cmd())
62
63 def test_mx5_android(self):
64 self.assertEqual(
65- '1,8191,0xDA\n8192,262144,0x0C,*\n270336,1048576,L\n'
66- '1318912,-,E\n1318912,524288,L\n1843200,1048576,L\n2891776,,,-',
67+ '1,8191,0xDA\n8192,262144,0x0C,*\n270336,1572864,L\n'
68+ '1843200,-,E\n1843200,524288,L\n2367488,1048576,L\n3416064,,,-',
69 android_boards.AndroidMx53LoCoConfig().get_sfdisk_cmd())
70
71 def test_mx6_android(self):
72 self.assertEqual(
73- '1,8191,0xDA\n8192,262144,0x0C,*\n270336,1048576,L\n'
74- '1318912,-,E\n1318912,524288,L\n1843200,1048576,L\n2891776,,,-',
75+ '1,8191,0xDA\n8192,262144,0x0C,*\n270336,1572864,L\n'
76+ '1843200,-,E\n1843200,524288,L\n2367488,1048576,L\n3416064,,,-',
77 android_boards.AndroidMx6QSabreliteConfig().get_sfdisk_cmd())
78
79

Subscribers

People subscribed via source and target branches