Quantcast

How to add NAND flash partition in Overo Firestrom ?

classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

How to add NAND flash partition in Overo Firestrom ?

tuxnoel
I have a overo firestorm board with 512 MB NAND with following layout

> cat /proc/mtd

dev:    size   erasesize  name
mtd0: 00080000 00020000 "xloader"
mtd1: 001c0000 00020000 "uboot"
mtd2: 00040000 00020000 "uboot environment"
mtd3: 00400000 00020000 "linux"
mtd4: 1f980000 00020000 "rootfs"

I wanted to create new partition by deleting the rootfs 512 MB one.
How do i go about it? I am not finding any instructions on doing it. Plz specify if there are any permanent risks involved to the hardware.

Another doubt is that i am getting an additional partition called mtd5 with name rootfs listed with > cat /proc/mtd when i issue it after booting from NAND flashed using the a ubi file i had generated using mkfs.ubifs and ubinize commands.

Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: How to add NAND flash partition in Overo Firestrom ?

fantajista
>I wanted to create new partition by deleting the rootfs 512 MB one.

rootfs partition size is not 512MB.
Where do you store MLO, u-boot.bin and uImage ?





2013/3/22 tuxnoel <[hidden email]>
I have a overo firestorm board with 512 MB NAND with following layout

> cat /proc/mtd

dev:    size   erasesize  name
mtd0: 00080000 00020000 "xloader"
mtd1: 001c0000 00020000 "uboot"
mtd2: 00040000 00020000 "uboot environment"
mtd3: 00400000 00020000 "linux"
mtd4: 1f980000 00020000 "rootfs"

I wanted to create new partition by deleting the rootfs 512 MB one.
How do i go about it? I am not finding any instructions on doing it. Plz
specify if there are any permanent risks involved to the hardware.

Another doubt is that i am getting an additional partition called mtd5 with
name rootfs listed with > cat /proc/mtd when i issue it after booting from
NAND flashed using the a ubi file i had generated using mkfs.ubifs and
ubinize commands.





--
View this message in context: http://gumstix.8.n6.nabble.com/How-to-add-NAND-flash-partition-in-Overo-Firestrom-tp4967040.html
Sent from the Gumstix mailing list archive at Nabble.com.

------------------------------------------------------------------------------
Everyone hates slow websites. So do we.
Make your web apps faster with AppDynamics
Download AppDynamics Lite for free today:
http://p.sf.net/sfu/appdyn_d2d_mar
_______________________________________________
gumstix-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gumstix-users


------------------------------------------------------------------------------
Everyone hates slow websites. So do we.
Make your web apps faster with AppDynamics
Download AppDynamics Lite for free today:
http://p.sf.net/sfu/appdyn_d2d_mar
_______________________________________________
gumstix-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gumstix-users
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: How to add NAND flash partition in Overo Firestrom ?

tuxnoel
i meant around 512MB . kernel takes about 4 MB.
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: How to add NAND flash partition in Overo Firestrom ?

tuxnoel
turns out we have to modify
struct mtd_partition overo_nand_partitions[]
 in  arch/arm/mach-omap2/board-overo.c   (kernel 3.0.0)

before

static struct mtd_partition overo_nand_partitions[] = {
        {
                .name           = "xloader",
                .offset         = 0, /* Offset = 0x00000 */
                .size           = 4 * NAND_BLOCK_SIZE,
                .mask_flags     = MTD_WRITEABLE
        },
        {
                .name           = "uboot",
                .offset         = MTDPART_OFS_APPEND, /* Offset = 0x80000 */
                .size           = 14 * NAND_BLOCK_SIZE,
        },
        {
                .name           = "uboot environment",
                .offset         = MTDPART_OFS_APPEND, /* Offset = 0x240000 */
                .size           = 2 * NAND_BLOCK_SIZE,
        },
        {
                .name           = "linux",
                .offset         = MTDPART_OFS_APPEND, /* Offset = 0x280000 */
                .size           = 32 * NAND_BLOCK_SIZE,
        },
        {
                .name           = "rootfs",
                .offset         = MTDPART_OFS_APPEND, /* Offset = 0x680000 */
                .size           = MTDPART_SIZ_FULL,
        },
};



after

static struct mtd_partition overo_nand_partitions[] = {
        {
                .name           = "xloader",
                .offset         = 0, /* Offset = 0x00000 */
                .size           = 4 * NAND_BLOCK_SIZE,
                .mask_flags     = MTD_WRITEABLE
        },
        {
                .name           = "uboot",
                .offset         = MTDPART_OFS_APPEND, /* Offset = 0x80000 */
                .size           = 14 * NAND_BLOCK_SIZE,
        },
        {
                .name           = "uboot environment",
                .offset         = MTDPART_OFS_APPEND, /* Offset = 0x240000 */
                .size           = 2 * NAND_BLOCK_SIZE,
        },
        {
                .name           = "working_linux",
                .offset         = MTDPART_OFS_APPEND, /* Offset = 0x280000 */
                .size           = 32 * NAND_BLOCK_SIZE,
        },
        {
                .name           = "working_rootfs",
                .offset         = MTDPART_OFS_APPEND, /* Offset = 0x680000 */
                //.size           = MTDPART_SIZ_FULL,
                .size = 2412 * NAND_BLOCK_SIZE,
        },
        {
                .name           = "golden_linux",
                .offset         = MTDPART_OFS_APPEND,
                .size           = 32 * NAND_BLOCK_SIZE,  /*4MB for golden linux kernel*/
        },
        {
                .name           = "golden_rootfs",
                .offset         = MTDPART_OFS_APPEND,
                .size           = MTDPART_SIZ_FULL, /*200MB for golden rootfs*/
        },
};

and enable mtd partition support in kernel

Loading...