mini2440: Forgotten patches to make it work (1 of 2)

Juergen Beisert jbe at pengutronix.de
Sun Feb 13 14:01:04 EST 2011


From: Juergen Beisert <juergen at kreuzholzen.de>
Subject: mini2440: Make barebox able to save a runtime environment

Without this modification saving a modified environment ends up 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 file changed, 2 insertions(+), 2 deletions(-)

Index: barebox-2011.01.0/arch/arm/boards/mini2440/mini2440.c
===================================================================
--- barebox-2011.01.0.orig/arch/arm/boards/mini2440/mini2440.c
+++ barebox-2011.01.0/arch/arm/boards/mini2440/mini2440.c
@@ -262,11 +262,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);



More information about the barebox mailing list