mail archive of the barebox mailing list
 help / color / mirror / Atom feed
* [PATCH 1/1] animeo_ip: the env in nand is u-boot env not a barebox one
@ 2013-09-19 13:30 Jean-Christophe PLAGNIOL-VILLARD
  0 siblings, 0 replies; only message in thread
From: Jean-Christophe PLAGNIOL-VILLARD @ 2013-09-19 13:30 UTC (permalink / raw)
  To: barebox

on animeo ip we use a RO barebox env

we will add later it's support

Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@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


_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2013-09-19 13:30 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-09-19 13:30 [PATCH 1/1] animeo_ip: the env in nand is u-boot env not a barebox one Jean-Christophe PLAGNIOL-VILLARD

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox