Skip to contentSkip to conversation

Updated XCEP partition sizes

PATCH New Matej Kenda 3 participants 5 messages Jan 19, 2011 – Jan 26, 2011

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH 1/2 Updated XCEP partition sizes

Increased partition for Linux kernel from 1 MB to 2 MB for monolithically built kernel 2.6.37 for Iskratel XCEP SBC to fit in.

---

arch/arm/mach-pxa/xcep.c +5 -5
index 3260ce7..f7b1052 100644
@@ -55,20 +55,20 @@ static struct mtd_partition xcep_partitions[] = {
 	}, {
 		.name =		"Bootloader ENV",
 		.size =		0x00040000,
-		.offset =	0x00040000,
+		.offset =	MTDPART_OFS_APPEND,
 		.mask_flags =	MTD_WRITEABLE
 	}, {
 		.name =		"Kernel",
-		.size =		0x00100000,
-		.offset =	0x00080000,
+		.size =		0x00200000,
+		.offset =	MTDPART_OFS_APPEND,
 	}, {
 		.name =		"Rescue fs",
 		.size =		0x00280000,
-		.offset =	0x00180000,
+		.offset =	MTDPART_OFS_APPEND,
 	}, {
 		.name =		"Filesystem",
 		.size =		MTDPART_SIZ_FULL,
-		.offset =	0x00400000
+		.offset =	MTDPART_OFS_APPEND
 	}
 };
#1 lore raw

PATCH 1/2 Updated XCEP partition sizes

Hi Eric,

I've sent two simple patches for Iskratel XCEP last week.

Can they be included in the kernel?

TIA,

Matej

Quoted 37 lines · Matej Kenda

Increased partition for Linux kernel from 1 MB to 2 MB for monolithically built kernel 2.6.37 for Iskratel XCEP SBC to fit in.

---

arch/arm/mach-pxa/xcep.c +1 -1
index 3260ce7..f7b1052 100644
@@ -55,20 +55,20 @@ static struct mtd_partition xcep_partitions[] = {
 ? ? ? ?}, {
 ? ? ? ? ? ? ? ?.name = ? ? ? ? "Bootloader ENV",
 ? ? ? ? ? ? ? ?.size = ? ? ? ? 0x00040000,
- ? ? ? ? ? ? ? .offset = ? ? ? 0x00040000,
+ ? ? ? ? ? ? ? .offset = ? ? ? MTDPART_OFS_APPEND,

? ? ? ? ? ? ? ?.mask_flags = ? MTD_WRITEABLE ? ? ? ?}, {
? ? ? ? ? ? ? ?.name = ? ? ? ? "Kernel",
- ? ? ? ? ? ? ? .size = ? ? ? ? 0x00100000,
- ? ? ? ? ? ? ? .offset = ? ? ? 0x00080000,
+ ? ? ? ? ? ? ? .size = ? ? ? ? 0x00200000,
+ ? ? ? ? ? ? ? .offset = ? ? ? MTDPART_OFS_APPEND, ? ? ? ?}, {
? ? ? ? ? ? ? ?.name = ? ? ? ? "Rescue fs", ? ? ? ? ? ? ? ?.size = ? ? ? ? 0x00280000,
- ? ? ? ? ? ? ? .offset = ? ? ? 0x00180000,
+ ? ? ? ? ? ? ? .offset = ? ? ? MTDPART_OFS_APPEND, ? ? ? ?}, {
? ? ? ? ? ? ? ?.name = ? ? ? ? "Filesystem", ? ? ? ? ? ? ? ?.size = ? ? ? ? MTDPART_SIZ_FULL,
- ? ? ? ? ? ? ? .offset = ? ? ? 0x00400000
+ ? ? ? ? ? ? ? .offset = ? ? ? MTDPART_OFS_APPEND ? ? ? ?}
?};

#2 lore raw

PATCH 1/2 Updated XCEP partition sizes

Quoted 5 lines · Matej Kenda

Hi Eric,

I've sent two simple patches for Iskratel XCEP last week.

Can they be included in the kernel?

I'm a bit tentative on this. Patch 1 is basically OK, but what if someone needs a even larger partition in the future? And some work is on-going with cleanup of those defconfigs, guess I'll hold a while those changes to the defconfig until that's clear enough.

BTW - did you run Uwe's script to make sure the changes to defconfig is the smallest one?

Quoted 44 lines

TIA,

Matej

Quoted 37 lines · Matej Kenda

Increased partition for Linux kernel from 1 MB to 2 MB for monolithically built kernel 2.6.37 for Iskratel XCEP SBC to fit in.

---

arch/arm/mach-pxa/xcep.c +1 -1
index 3260ce7..f7b1052 100644
@@ -55,20 +55,20 @@ static struct mtd_partition xcep_partitions[] = {
 ? ? ? ?}, {
 ? ? ? ? ? ? ? ?.name = ? ? ? ? "Bootloader ENV",
 ? ? ? ? ? ? ? ?.size = ? ? ? ? 0x00040000,
- ? ? ? ? ? ? ? .offset = ? ? ? 0x00040000,
+ ? ? ? ? ? ? ? .offset = ? ? ? MTDPART_OFS_APPEND,

? ? ? ? ? ? ? ?.mask_flags = ? MTD_WRITEABLE ? ? ? ?}, {
? ? ? ? ? ? ? ?.name = ? ? ? ? "Kernel",
- ? ? ? ? ? ? ? .size = ? ? ? ? 0x00100000,
- ? ? ? ? ? ? ? .offset = ? ? ? 0x00080000,
+ ? ? ? ? ? ? ? .size = ? ? ? ? 0x00200000,
+ ? ? ? ? ? ? ? .offset = ? ? ? MTDPART_OFS_APPEND, ? ? ? ?}, {
? ? ? ? ? ? ? ?.name = ? ? ? ? "Rescue fs", ? ? ? ? ? ? ? ?.size = ? ? ? ? 0x00280000,
- ? ? ? ? ? ? ? .offset = ? ? ? 0x00180000,
+ ? ? ? ? ? ? ? .offset = ? ? ? MTDPART_OFS_APPEND, ? ? ? ?}, {
? ? ? ? ? ? ? ?.name = ? ? ? ? "Filesystem", ? ? ? ? ? ? ? ?.size = ? ? ? ? MTDPART_SIZ_FULL,
- ? ? ? ? ? ? ? .offset = ? ? ? 0x00400000
+ ? ? ? ? ? ? ? .offset = ? ? ? MTDPART_OFS_APPEND ? ? ? ?}
?};

#3 lore raw

PATCH 1/2 Updated XCEP partition sizes

Quoted 7 lines · Eric Miao
Quoted 5 lines · Matej Kenda

Hi Eric,

I've sent two simple patches for Iskratel XCEP last week.

Can they be included in the kernel?

Quoted 7 lines

I'm a bit tentative on this. Patch 1 is basically OK, but what if someone needs a even larger partition in the future? And some work is on-going with cleanup of those defconfigs, guess I'll hold a while those changes to the defconfig until that's clear enough.

BTW - did you run Uwe's script to make sure the changes to defconfig is the smallest one?

there is no "Uwe's script" anymore. Just run

make ARCH=arm savedefconfig

Best regards
Uwe

Signature · 2 lines
Pengutronix e.K.                           | Uwe Kleine-K?nig            |
Industrial Linux Solutions                 | http://www.pengutronix.de/  |
#4 lore raw

PATCH 1/2 Updated XCEP partition sizes

In reply to Eric Miao

2011/1/25 Eric Miao <[email protected]>:

Quoted 7 lines · Matej Kenda
Quoted 3 lines

I've sent two simple patches for Iskratel XCEP last week.

Can they be included in the kernel?

I'm a bit tentative on this. Patch 1 is basically OK, but what if someone needs a even larger partition in the future?

This small embedded computer has relatively small Flash (32 MB).

1MB partition for the kernel was created initially for kernel 2.4 a few years ago. The size of that kernel was around 800 kB.

Later on, the size increased to 900 kB with kernel 2.6.20 (still monolithic kernel). 2.6.32 was still small enough to be squeezed in by moving some driver out to modules.

However, with 2.6.36 this was not possible any more: I was unable to make the kernel smaller that 1.1 MB and therefore the partition needed to be increased.

Assuming the growth rate of the kernel from 800 kB to 1.1 in four years, 2 MB should be enough for next 8 years or so.

Quoted 6 lines

And some work
is on-going with cleanup of those defconfigs, guess I'll hold a while those changes to the defconfig until that's clear enough.

BTW - did you run Uwe's script to make sure the changes to defconfig is the smallest one?

defconfig file was created with "make ARCH=arm savedefconfig"

Regards,

Matej