diff --git a/install/INSTALL-Ben b/install/INSTALL-Ben index f6daea5..2d160a7 100644 --- a/install/INSTALL-Ben +++ b/install/INSTALL-Ben @@ -14,7 +14,7 @@ cd qi-kernel git checkout ben-wpan cp ../ben-wpan-config-2.6.38 .config - patch -p1 -s <../openwrt-preinit-hack.patch + patch -p1 -s < ../qi_lb60-NAND-add-data-partition.patch OWRT make ARCH=mips CROSS_COMPILE=mipsel-openwrt-linux- vmlinux.bin Jlime make ARCH=mips CROSS_COMPILE=mipsel-linux- vmlinux.bin gzip -9 -f arch/mips/boot/vmlinux.bin @@ -32,6 +32,12 @@ 3. Install the kernel + Using u-boot without reflash: + + - set up TCP/IP networking with the Ben + - copy uImage to Ben /boot/uImage + - hold F4 when poweron + Using usbboot: - remove battery and USB diff --git a/install/openwrt-preinit-hack.patch b/install/openwrt-preinit-hack.patch deleted file mode 100644 index f70eae3..0000000 --- a/install/openwrt-preinit-hack.patch +++ /dev/null @@ -1,12 +0,0 @@ -diff --git qi-kernel.orig/init/main.c qi-kernel/init/main.c -index 33c37c3..7be645f 100644 ---- a/init/main.c -+++ b/init/main.c -@@ -852,6 +852,7 @@ static noinline int init_post(void) - printk(KERN_WARNING "Failed to execute %s. Attempting " - "defaults...\n", execute_command); - } -+ run_init_process("/etc/preinit"); - run_init_process("/sbin/init"); - run_init_process("/etc/init"); - run_init_process("/bin/init"); diff --git a/install/qi_lb60-NAND-add-data-partition.patch b/install/qi_lb60-NAND-add-data-partition.patch new file mode 100644 index 0000000..bca8db3 --- /dev/null +++ b/install/qi_lb60-NAND-add-data-partition.patch @@ -0,0 +1,31 @@ +From 1878b22649c3ecde1795d6695b92ca02fa9110c2 Mon Sep 17 00:00:00 2001 +From: Xiangfu Liu +Date: Fri, 19 Aug 2011 15:46:52 +0800 +Subject: [PATCH 23/29] qi_lb60: NAND: add data partition + +--- + arch/mips/jz4740/board-qi_lb60.c | 7 ++++++- + 1 files changed, 6 insertions(+), 1 deletions(-) + +diff --git a/arch/mips/jz4740/board-qi_lb60.c b/arch/mips/jz4740/board-qi_lb60.c +index b622941..0bc4caa 100644 +--- a/arch/mips/jz4740/board-qi_lb60.c ++++ b/arch/mips/jz4740/board-qi_lb60.c +@@ -118,8 +118,13 @@ static struct mtd_partition qi_lb60_partitions_2gb[] = { + { + .name = "NAND ROOTFS partition", + .offset = 8 * 0x100000, +- .size = (504 + 512 + 1024) * 0x100000, ++ .size = 512 * 0x100000, + }, ++ { ++ .name = "NAND DATA partition", ++ .offset = 520 * 0x100000, ++ .size = 1528 * 0x100000, ++ }, + }; + + static void qi_lb60_nand_ident(struct platform_device *pdev, +-- +1.7.4.1 +