summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJérémy Dufour2012-12-21 14:38:37 +0100
committerJérémy Dufour2013-01-08 10:28:10 +0100
commit87bf0490f516ba3a6b89458a49fc20b249030cae (patch)
tree300ddbc55f1f648a89e7ff8e455d28807030dded
parenta58b50b21279f6c5c410ef366326c5b965926cef (diff)
cleo/linux/mach-spc300: limit last Linux image to its real size, refs #3579
The actual behavior in Linux was to make the last Linux image expand until the end of the flash. In U-Boot, this is not the case: all Linux images have the same size, img_max_size. This commit makes Linux behave like U-Boot for the Linux image size.
-rw-r--r--cleopatre/linux-2.6.25.10-spc300/arch/arm/mach-spc300/spc300-devices.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/cleopatre/linux-2.6.25.10-spc300/arch/arm/mach-spc300/spc300-devices.c b/cleopatre/linux-2.6.25.10-spc300/arch/arm/mach-spc300/spc300-devices.c
index 0843698b35..5ee6dd45f9 100644
--- a/cleopatre/linux-2.6.25.10-spc300/arch/arm/mach-spc300/spc300-devices.c
+++ b/cleopatre/linux-2.6.25.10-spc300/arch/arm/mach-spc300/spc300-devices.c
@@ -557,8 +557,6 @@ static int spc300_gen_mtd_partition_table(uint32_t nvram_offset,
MTDPART_OFS_APPEND;
mtd_partition[base_partition_size + pos].mask_flags = 0;
}
- //Last image should expand on the whole remaining space.
- mtd_partition[base_partition_size + pos - 1].size = MTDPART_SIZ_FULL;
return base_partition_size + nvram->nb_images;
}