[PATCH 1/1] animeo_ip: the env in nand is u-boot env not a barebox one
Jean-Christophe PLAGNIOL-VILLARD
plagnioj at jcrosoft.com
Thu Sep 19 09:30:51 EDT 2013
on animeo ip we use a RO barebox env
we will add later it's support
Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj at jcrosoft.com>
---
arch/arm/boards/animeo_ip/env/config | 2 +-
arch/arm/boards/animeo_ip/init.c | 6 ++++--
2 files changed, 5 insertions(+), 3 deletions(-)
diff --git a/arch/arm/boards/animeo_ip/env/config b/arch/arm/boards/animeo_ip/env/config
index 7526fcf..2220f93 100644
--- a/arch/arm/boards/animeo_ip/env/config
+++ b/arch/arm/boards/animeo_ip/env/config
@@ -28,7 +28,7 @@ kernelimage=zImage
#kernelimage=Image.lzo
nand_device=atmel_nand
-nand_parts="32k(at91bootstrap),320k(barebox)ro,32k(bareboxenv),-(ubi)"
+nand_parts="32k(at91bootstrap),320k(barebox)ro,32k(u_boot_env),-(ubi)"
rootfs_mtdblock_nand=3
autoboot_timeout=3
diff --git a/arch/arm/boards/animeo_ip/init.c b/arch/arm/boards/animeo_ip/init.c
index de7be97..d0e1cc8 100644
--- a/arch/arm/boards/animeo_ip/init.c
+++ b/arch/arm/boards/animeo_ip/init.c
@@ -249,8 +249,10 @@ static int animeo_ip_devices_init(void)
dev_add_bb_dev("at91bootstrap_raw", "at91bootstrap");
devfs_add_partition("nand0", SZ_32K, SZ_256K, DEVFS_PARTITION_FIXED, "self_raw");
dev_add_bb_dev("self_raw", "self0");
- devfs_add_partition("nand0", SZ_256K + SZ_32K, SZ_32K, DEVFS_PARTITION_FIXED, "env_raw");
- dev_add_bb_dev("env_raw", "env0");
+ devfs_add_partition("nand0", SZ_256K + SZ_64K + SZ_32K, SZ_16K, DEVFS_PARTITION_FIXED, "env0_u_boot_raw");
+ dev_add_bb_dev("env0_u_boot_raw", "env0_u_boot");
+ devfs_add_partition("nand0", SZ_256K + SZ_64K + SZ_32K + SZ_16K, SZ_16K, DEVFS_PARTITION_FIXED, "env1_u_boot_raw");
+ dev_add_bb_dev("env1_u_boot_raw", "env1_u_boot");
return 0;
}
--
1.8.4.rc1
More information about the barebox
mailing list