[PATCH] change the erase nand rootfs partition size to 256M

Xiangfu Liu xiangfu at sharism.cc
Mon Apr 12 04:00:45 EDT 2010


since the rootfs partition size is 256M
change the erase nand rootfs partition block number to 512.

---
 scripts/reflash_ben.sh |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/scripts/reflash_ben.sh b/scripts/reflash_ben.sh
index 5f0e0f4..b7cab4a 100644
--- a/scripts/reflash_ben.sh
+++ b/scripts/reflash_ben.sh
@@ -156,7 +156,7 @@ if [ "$K" == "TRUE" ]; then
 fi
 if [ "$R" == "TRUE" ]; then
 	log "erase nand rootfs partition..."
-	usbboot -c "boot;nerase 16 4079 0 0" >> "${LOG_FILE}"
+	usbboot -c "boot;nerase 16 512 0 0" >> "${LOG_FILE}"
 	log "flashing rootfs..."
 	usbboot -c "nprog 2048 ${WORKING_DIR}/${ROOTFS} 0 0 -n" >> "${LOG_FILE}"
 fi
-- 
1.6.6





More information about the discussion mailing list


interactive