From 14ac5779b1bb4edb01c6ec834b71fde26d4b660e Mon Sep 17 00:00:00 2001 From: kyak Date: Sat, 6 Nov 2010 10:49:44 +0300 Subject: [PATCH] NAND DATA Partition offset and reflash_ben.sh fixed according to 512 Mb rootfs --- data/qi_lb60/scripts/reflash_ben.sh | 2 +- .../linux/xburst/files-2.6.32/arch/mips/jz4740/board-qi_lb60.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/data/qi_lb60/scripts/reflash_ben.sh b/data/qi_lb60/scripts/reflash_ben.sh index 6bbf70b08..3b9c17764 100644 --- a/data/qi_lb60/scripts/reflash_ben.sh +++ b/data/qi_lb60/scripts/reflash_ben.sh @@ -166,7 +166,7 @@ if [ "$K" == "TRUE" ]; then fi if [ "$R" == "TRUE" ]; then log "erase nand rootfs partition..." - usbboot -c "boot;nerase 16 512 0 0" >> "${LOG_FILE}" 2>&1 + usbboot -c "boot;nerase 16 1024 0 0" >> "${LOG_FILE}" 2>&1 log "flashing rootfs..." tmp=$(usbboot -c "nprog 2048 ${WORKING_DIR}/${ROOTFS} 0 0 -n" 3>> "${LOG_FILE}" 2>&1 >&3) test "${tmp}" && abort "error while flashing rootfs:\n${tmp}" diff --git a/target/linux/xburst/files-2.6.32/arch/mips/jz4740/board-qi_lb60.c b/target/linux/xburst/files-2.6.32/arch/mips/jz4740/board-qi_lb60.c index e6659eeda..dc801989e 100644 --- a/target/linux/xburst/files-2.6.32/arch/mips/jz4740/board-qi_lb60.c +++ b/target/linux/xburst/files-2.6.32/arch/mips/jz4740/board-qi_lb60.c @@ -97,7 +97,7 @@ static struct mtd_partition qi_lb60_partitions_2gb[] = { .size = 512 * 0x100000, }, { .name = "NAND DATA partition", - .offset = 264 * 0x100000, + .offset = 520 * 0x100000, .size = 1528 * 0x100000, }, };