[Nios2]: Change generic board flash partitions

franck.jullien at gmail.com franck.jullien at gmail.com
Sun May 15 17:13:29 EDT 2011


From: Franck JULLIEN <franck.jullien at gmail.com>

Signed-off-by: Franck JULLIEN <franck.jullien at gmail.com>
---
 arch/nios2/boards/generic/env/config |    2 +-
 arch/nios2/boards/generic/generic.c  |    4 ++--
 2 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/arch/nios2/boards/generic/env/config b/arch/nios2/boards/generic/env/config
index df7d09e..18500ed 100644
--- a/arch/nios2/boards/generic/env/config
+++ b/arch/nios2/boards/generic/env/config
@@ -9,7 +9,7 @@ ip=none
 
 autoboot_timeout=3
 
-nor_parts="256k(barebox),128k(env),4M(kernel),-(rootfs)"
+nor_parts="128k(env),768k(fpga),256k(barebox),-(kernel)"
 
 # set a fancy prompt (if support is compiled in)
 PS1="\e[1;33mbarebox@\e[1;32mgeneric:\w\e[0m "
diff --git a/arch/nios2/boards/generic/generic.c b/arch/nios2/boards/generic/generic.c
index 7e939ce..8d2cc72 100644
--- a/arch/nios2/boards/generic/generic.c
+++ b/arch/nios2/boards/generic/generic.c
@@ -55,8 +55,8 @@ static int comBoard_devices_init(void)
 	register_device(&mac_dev);
 	/*register_device(&epcs_flash_device);*/
 
-	devfs_add_partition("nor0", 0x00000, 0x40000, PARTITION_FIXED, "self0");
-	devfs_add_partition("nor0", 0x40000, 0x20000, PARTITION_FIXED, "env0");
+	devfs_add_partition("nor0", 0xe0000, 0x40000, PARTITION_FIXED, "self0");
+	devfs_add_partition("nor0", 0x00000, 0x20000, PARTITION_FIXED, "env0");
 
 	protect_file("/dev/env0", 1);
 
-- 
1.7.0.4




More information about the barebox mailing list