Commit deaa87ba authored by Robin Gong's avatar Robin Gong

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: default avatarRobin Gong <B38343@freescale.com>
parent a2e83d72
......@@ -389,7 +389,7 @@ static struct mtd_partition m25p32_partitions[] = {
{
.name = "bootloader",
.offset = 0,
.size = 0x00040000,
.size = 0x00100000,
}, {
.name = "kernel",
.offset = MTDPART_OFS_APPEND,
......
......@@ -400,7 +400,7 @@ static struct mtd_partition m25p32_partitions[] = {
{
.name = "bootloader",
.offset = 0,
.size = 0x00040000,
.size = 0x00100000,
}, {
.name = "kernel",
.offset = MTDPART_OFS_APPEND,
......
......@@ -481,7 +481,7 @@ static struct mtd_partition imx6_sabrelite_spi_nor_partitions[] = {
{
.name = "bootloader",
.offset = 0,
.size = 0x00040000,
.size = 0x00100000,
},
{
.name = "kernel",
......
......@@ -295,7 +295,7 @@ static struct mtd_partition imx6_sabresd_spi_nor_partitions[] = {
{
.name = "bootloader",
.offset = 0,
.size = 0x00040000,
.size = 0x00100000,
},
{
.name = "kernel",
......
......@@ -458,7 +458,7 @@ static struct mtd_partition m25p32_partitions[] = {
{
.name = "bootloader",
.offset = 0,
.size = 0x00040000,
.size = 0x00100000,
}, {
.name = "kernel",
.offset = MTDPART_OFS_APPEND,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment