[PATCH 16/20] mini2440: Make it able to save a runtime environment

Juergen Beisert jbe at pengutronix.de
Wed Feb 16 13:13:41 EST 2011


From: Juergen Beisert <juergen at kreuzholzen.de>

Without this modification saving a modified environment ends with:

mini2440:/ saveenv
saving environment
could not open /dev/env0: Read-only file system

Signed-off-by: Juergen Beisert <juergen at kreuzholzen.de>
---
 arch/arm/boards/mini2440/mini2440.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/arch/arm/boards/mini2440/mini2440.c b/arch/arm/boards/mini2440/mini2440.c
index b30a9e2..ae48a51 100644
--- a/arch/arm/boards/mini2440/mini2440.c
+++ b/arch/arm/boards/mini2440/mini2440.c
@@ -261,11 +261,11 @@ static int mini2440_devices_init(void)
 	/* ----------- add some vital partitions -------- */
 	devfs_del_partition("self_raw");
 	devfs_add_partition("nand0", 0x00000, 0x40000, PARTITION_FIXED, "self_raw");
-	dev_add_bb_dev("self_raw", NULL);
+	dev_add_bb_dev("self_raw", "self0");
 
 	devfs_del_partition("env_raw");
 	devfs_add_partition("nand0", 0x40000, 0x20000, PARTITION_FIXED, "env_raw");
-	dev_add_bb_dev("env_raw", NULL);
+	dev_add_bb_dev("env_raw", "env0");
 #endif
 	register_device(&mci_dev);
 	armlinux_add_dram(&sdram_dev);
-- 
1.7.2.3




More information about the barebox mailing list