[U-Boot-Users] [PATCH 4/6] TQM866M: adjust for doubled flash sector size.
Martin Krause
martin.krause at tqs.de
Tue Jul 24 11:19:42 CEST 2007
Adjust flash map to support the new S29GLxxN (N-Type) Flashes with
doubled sector size.
Signed-off-by: Martin Krause <martin.krause at tqs.de>
---
include/configs/TQM866M.h | 13 +++++++++----
1 files changed, 9 insertions(+), 4 deletions(-)
diff --git a/include/configs/TQM866M.h b/include/configs/TQM866M.h
index 30489a4..eba4f33 100644
--- a/include/configs/TQM866M.h
+++ b/include/configs/TQM866M.h
@@ -81,8 +81,13 @@
"net_nfs=tftp 200000 ${bootfile};run nfsargs addip;bootm\0" \
"rootpath=/opt/eldk/ppc_8xx\0" \
"bootfile=/tftpboot/TQM866M/uImage\0" \
- "kernel_addr=40080000\0" \
- "ramdisk_addr=40180000\0" \
+ "kernel_addr=400C0000\0" \
+ "ramdisk_addr=401C0000\0" \
+ "load=tftp 200000 ${u-boot}\0" \
+ "update=protect off 40000000 4003FFFF;" \
+ "erase 40000000 4003FFFF;" \
+ "cp.b 200000 40000000 ${filesize};" \
+ "protect on 40000000 4003FFFF\0" \
""
#define CONFIG_BOOTCOMMAND "run flash_self"
@@ -203,7 +208,7 @@
#define CFG_FLASH_BASE 0x40000000
#define CFG_MONITOR_LEN (256 << 10) /* Reserve 256 kB for Monitor */
#define CFG_MONITOR_BASE CFG_FLASH_BASE
-#define CFG_MALLOC_LEN (128 << 10) /* Reserve 128 kB for malloc() */
+#define CFG_MALLOC_LEN (256 << 10) /* Reserve 256 kB for malloc() */
/*
* For booting Linux, the board info and command line data
@@ -227,7 +232,7 @@
#define CFG_ENV_IS_IN_FLASH 1
#define CFG_ENV_OFFSET 0x40000 /* Offset of Environment Sector */
#define CFG_ENV_SIZE 0x08000 /* Total Size of Environment */
-#define CFG_ENV_SECT_SIZE 0x20000 /* Total Size of Environment Sector */
+#define CFG_ENV_SECT_SIZE 0x40000 /* Total Size of Environment Sector */
/* Address and size of Redundant Environment Sector */
#define CFG_ENV_OFFSET_REDUND (CFG_ENV_OFFSET+CFG_ENV_SECT_SIZE)
More information about the U-Boot
mailing list