Partition Creation Doubt when upgrading from 16M bytes to 32 M bytes flash memory
rtkk 2008
rtkk2008 at gmail.com
Tue Jul 8 07:34:33 EDT 2008
Hi all,
I am upgrading my platform from a flash of 16 M bytes to another one
with 32 Mbytes. Before the upgrading, I had four partitions that took
all the size of the flash, so I created another partition including
the new 16 Mbytes of the new flash. When I started the platform, this
new partition was not been mounted, even though the boot was telling
that the partition was created.
Bellow there is my source which is responsable to create the partitions.
Note that the new partition, created after de upgrading is the TEST one.
Does anyone know if this file is correct?
Does anyone know how to adapt this file to use all of the new flash?
Thanks and best regards
=========== flash.c partition source code ==============================
#ifdef CONFIG_MPC832x_RDB
#define WINDOW_ADDR 0xFE000000
/*#define WINDOW_SIZE 0x01000000*/
<------- 16M flash window size
#define WINDOW_SIZE 0x2000000
<------- 32M flash window size (Is that correct?)
#define PARTITION_0 0x0080000 /* 0xFE0size of U-boot partition */
#define PARTITION_1 0x0080000 /* size of device tree partition */
#define PARTITION_2 0x0200000 /* size of kernel partition */
#define PARTITION_3 0x0100000 /* size of JFFS2 HOME partition */
#define PARTITION_4 0x0100000 /* size of JFFS2 ETC partition */
#define PARTITION_5 0x0B00000 /* size of JFFS2 TEST partition */ <--
New partition created after the flash upgrading
#define PARTITION_6 0X1000000 /* size of EXT2 partition */
#endif
/* partition_info gives details on the logical partitions that the split the
* single flash device into. If the size if zero we use up to the end of the
* device. */
static struct mtd_partition partition_info[]={
{
.name = "U-Boot",
.offset = 0,
.size = PARTITION_0,
.mask_flags = MTD_WRITEABLE
},
{
.name = "Device tree (dtb)",
.offset = MTDPART_OFS_APPEND,
.size = PARTITION_1
},
{
.name = "Kernel",
.offset = MTDPART_OFS_APPEND,
.size = PARTITION_2
},
{
.name = "JFFS2_HOME",
.offset = MTDPART_OFS_APPEND,
.size = PARTITION_3
},
{
.name = "JFFS2_ETC",
.offset = MTDPART_OFS_APPEND,
.size = PARTITION_4
},
{
.name = "TEST", <--- TEST parameters
.offset = MTDPART_OFS_APPEND,
.size = PARTITION_5
},
{
More information about the linux-mtd
mailing list