9
0
Fork 0

at91sam9261ek: fix env location and size

256k(barebox)ro,128k(bareboxenv),1536k(kernel),-(root)

so we will match the erase block size

Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
Cc: Nicolas Ferre <nicolas.ferre@atmel.com>
Cc: Patrice Vilchez <patrice.vilchez@atmel.com>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
This commit is contained in:
Jean-Christophe PLAGNIOL-VILLARD 2011-03-11 02:10:41 +01:00 committed by Sascha Hauer
parent f8b4f4d3cd
commit 88415af7d5
2 changed files with 3 additions and 3 deletions

View File

@ -30,7 +30,7 @@ kernelimage=uImage
#kernelimage=Image.lzo
nand_device=atmel_nand
nand_parts="256k(barebox)ro,64k(bareboxenv),1536k(kernel),-(root)"
nand_parts="256k(barebox)ro,128k(bareboxenv),1536k(kernel),-(root)"
rootfs_mtdblock_nand=3
autoboot_timeout=3

View File

@ -149,9 +149,9 @@ static int at91sam9261ek_devices_init(void)
ek_add_device_nand();
ek_add_device_dm9000();
devfs_add_partition("nand0", 0x00000, 0x80000, PARTITION_FIXED, "self_raw");
devfs_add_partition("nand0", 0x00000, 0x40000, PARTITION_FIXED, "self_raw");
dev_add_bb_dev("self_raw", "self0");
devfs_add_partition("nand0", 0x40000, 0x40000, PARTITION_FIXED, "env_raw");
devfs_add_partition("nand0", 0x40000, 0x20000, PARTITION_FIXED, "env_raw");
dev_add_bb_dev("env_raw", "env0");
armlinux_set_bootparams((void *)(AT91_CHIPSELECT_1 + 0x100));