* [Nios2]: Change generic board flash partitions
@ 2011-05-15 21:13 franck.jullien
0 siblings, 0 replies; only message in thread
From: franck.jullien @ 2011-05-15 21:13 UTC (permalink / raw)
To: barebox
From: Franck JULLIEN <franck.jullien@gmail.com>
Signed-off-by: Franck JULLIEN <franck.jullien@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
_______________________________________________
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:[~2011-05-15 21:13 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-05-15 21:13 [Nios2]: Change generic board flash partitions franck.jullien
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox