summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobin Gong <B38343@freescale.com>2012-07-26 17:00:48 +0800
committerRobin Gong <B38343@freescale.com>2012-07-26 17:12:46 +0800
commitdeaa87ba531ca28a99c8edf3409729e5a9cb2ced (patch)
treea54188db2808ec16c2e53f8c03087af4841f56c4
parenta2e83d72015573aaf77d4e675ce3a22176617673 (diff)
ENGR00172083 SPI-NOR mx6: fix failed erase uboot ENV on SPI-NOR by MFG tool
In MFG tool will use "flash_eraseall /dev/mtd0" command to erase whole mtd0 partition, but u-boot environment params are stored in offset 0xc0000 which exceed the u-boot patition 0x40000, it means the "flash_eraseall" command only erase u-boot partition, but not environment area. So we need increase the size of u-boot partition to 0x100000 as what we remain 1MB for u-boot. Signed-off-by: Robin Gong <B38343@freescale.com>
-rw-r--r--arch/arm/mach-mx6/board-mx6q_arm2.c2
-rw-r--r--arch/arm/mach-mx6/board-mx6q_sabreauto.c2
-rw-r--r--arch/arm/mach-mx6/board-mx6q_sabrelite.c2
-rw-r--r--arch/arm/mach-mx6/board-mx6q_sabresd.c2
-rwxr-xr-xarch/arm/mach-mx6/board-mx6sl_arm2.c2
5 files changed, 5 insertions, 5 deletions
diff --git a/arch/arm/mach-mx6/board-mx6q_arm2.c b/arch/arm/mach-mx6/board-mx6q_arm2.c
index 8b500c7dfda0..6b7aa5157b43 100644
--- a/arch/arm/mach-mx6/board-mx6q_arm2.c
+++ b/arch/arm/mach-mx6/board-mx6q_arm2.c
@@ -389,7 +389,7 @@ static struct mtd_partition m25p32_partitions[] = {
{
.name = "bootloader",
.offset = 0,
- .size = 0x00040000,
+ .size = 0x00100000,
}, {
.name = "kernel",
.offset = MTDPART_OFS_APPEND,
diff --git a/arch/arm/mach-mx6/board-mx6q_sabreauto.c b/arch/arm/mach-mx6/board-mx6q_sabreauto.c
index d57badc98a65..967904fe5c05 100644
--- a/arch/arm/mach-mx6/board-mx6q_sabreauto.c
+++ b/arch/arm/mach-mx6/board-mx6q_sabreauto.c
@@ -400,7 +400,7 @@ static struct mtd_partition m25p32_partitions[] = {
{
.name = "bootloader",
.offset = 0,
- .size = 0x00040000,
+ .size = 0x00100000,
}, {
.name = "kernel",
.offset = MTDPART_OFS_APPEND,
diff --git a/arch/arm/mach-mx6/board-mx6q_sabrelite.c b/arch/arm/mach-mx6/board-mx6q_sabrelite.c
index bb334fb20763..9526de2d9aca 100644
--- a/arch/arm/mach-mx6/board-mx6q_sabrelite.c
+++ b/arch/arm/mach-mx6/board-mx6q_sabrelite.c
@@ -481,7 +481,7 @@ static struct mtd_partition imx6_sabrelite_spi_nor_partitions[] = {
{
.name = "bootloader",
.offset = 0,
- .size = 0x00040000,
+ .size = 0x00100000,
},
{
.name = "kernel",
diff --git a/arch/arm/mach-mx6/board-mx6q_sabresd.c b/arch/arm/mach-mx6/board-mx6q_sabresd.c
index a9a516f5b38e..99ce63717d6b 100644
--- a/arch/arm/mach-mx6/board-mx6q_sabresd.c
+++ b/arch/arm/mach-mx6/board-mx6q_sabresd.c
@@ -295,7 +295,7 @@ static struct mtd_partition imx6_sabresd_spi_nor_partitions[] = {
{
.name = "bootloader",
.offset = 0,
- .size = 0x00040000,
+ .size = 0x00100000,
},
{
.name = "kernel",
diff --git a/arch/arm/mach-mx6/board-mx6sl_arm2.c b/arch/arm/mach-mx6/board-mx6sl_arm2.c
index 4c146c67e3f4..b190ff6984f1 100755
--- a/arch/arm/mach-mx6/board-mx6sl_arm2.c
+++ b/arch/arm/mach-mx6/board-mx6sl_arm2.c
@@ -458,7 +458,7 @@ static struct mtd_partition m25p32_partitions[] = {
{
.name = "bootloader",
.offset = 0,
- .size = 0x00040000,
+ .size = 0x00100000,
}, {
.name = "kernel",
.offset = MTDPART_OFS_APPEND,