Merge remote-tracking branch 'OE-2.1/master' into vuplus-3.0
[vuplus_openvuplus_3.0] / meta-bsp / vuultimo / recipes / linux / linux-vuplus-3.9.6 / vu_ultimo_fixed_mtd.patch
1 diff --git a/arch/mips/brcmstb/board.c b/arch/mips/brcmstb/board.c
2 index d90d2b1..ca960e1 100644
3 --- a/arch/mips/brcmstb/board.c
4 +++ b/arch/mips/brcmstb/board.c
5 @@ -863,21 +863,29 @@ static struct mtd_partition fixed_partition_map[] = {
6  };
7  
8  #else
9 +#define SMALLEST_FLASH_SIZE     (16<<20)
10 +#define DEFAULT_RESERVED_SIZE   (10<<20)
11 +#define DEFAULT_ECM_SIZE        (0)     
12 +
13 +#define DEFAULT_ROOTFS_SIZE (MTDPART_SIZ_FULL - DEFAULT_RESERVED_SIZE - DEFAULT_ECM_SIZE)
14 +
15  static struct mtd_partition fixed_partition_map[] = {
16 -        /* name                 offset          size */
17 -        { name: "rootfs",       offset: 0,                      size: (128-4-4-2-3-1)<<20 },   /* rootfs is total nand size - 6 M Bytes. referr to cfe. bcm97335_devs.c */
18 -        { name: "kernel",       offset: 0x07200000,             size: 4<<20 },
19 -        { name: "boot",         offset: 0x07600000,             size: 4<<20 },
20 -        { name: "splash",       offset: 0x07a00000,             size: 2<<20 },
21 -        { name: "cfe",          offset: 0x07c00000,             size: 1<<20 },
22 -        { name: "mac",          offset: 0x07d00000,             size: 1<<19 },
23 -        { name: "env",          offset: 0x07d80000,             size: 1<<19 },
24 -        { name: "nvm",          offset: 0x07e00000,             size: 1<<20 },
25 +        /* name                 offset          size */ 
26 +        { name: "rootfs",               offset: 0,              size:0x1F200000 /* DEFAULT_ROOTFS_SIZE*/ },   /* rootfs is total nand size - 6 M Bytes. referr to cfe. bcm97335_devs.c */
27 +        { name: "kernel",       offset: 0x1F200000,             size: 4<<20 },
28 +        { name: "boot",         offset: 0x1F600000,             size: 4<<20 },
29 +        { name: "splash",       offset: 0x1FA00000,             size: 2<<20 },
30 +        { name: "cfe",          offset: 0x1FC00000,             size: 1<<20 },
31 +        { name: "mac",          offset: 0x1FD00000,             size: 1<<19 },
32 +        { name: "env",          offset: 0x1FD80000,             size: 1<<19 },
33 +        { name: "nvm",          offset: 0x1FE00000,             size: 1<<20 },
34 +        { name: "data",         offset: 0x20000000,             size: 0x1FC00000 },
35          /* BBT 1MB not mountable by anyone */
36  /*        { name: "data",         offset: 0x20000000,             size: 0 },*/
37  /* Add 1 extra place-holder partition for splash, and a safety guard element */
38  /*        {name: NULL, offset: 0, size: 0},*/
39  };
40 +
41  #endif
42  
43