Date:2011-10-25 08:26:04 (7 years 11 months ago)
Author:Xiangfu Liu
Commit:153b9e3af84f275e21d9e34e7c8afd90f5294da5
Message:INSTALL-Ben: update

Files: install/INSTALL-Ben (2 diffs)
install/openwrt-preinit-hack.patch (1 diff)
install/qi_lb60-NAND-add-data-partition.patch (1 diff)

Change Details

install/INSTALL-Ben
1414    cd qi-kernel
1515    git checkout ben-wpan
1616    cp ../ben-wpan-config-2.6.38 .config
17      patch -p1 -s <../openwrt-preinit-hack.patch
17    patch -p1 -s < ../qi_lb60-NAND-add-data-partition.patch
1818  OWRT make ARCH=mips CROSS_COMPILE=mipsel-openwrt-linux- vmlinux.bin
1919  Jlime make ARCH=mips CROSS_COMPILE=mipsel-linux- vmlinux.bin
2020    gzip -9 -f arch/mips/boot/vmlinux.bin
...... 
3232
33333. Install the kernel
3434
35    Using u-boot without reflash:
36
37    - set up TCP/IP networking with the Ben
38    - copy uImage to Ben /boot/uImage
39    - hold F4 when poweron
40
3541    Using usbboot:
3642
3743    - remove battery and USB
install/openwrt-preinit-hack.patch
1diff --git qi-kernel.orig/init/main.c qi-kernel/init/main.c
2index 33c37c3..7be645f 100644
3+++ b/init/main.c
4@@ -852,6 +852,7 @@ static noinline int init_post(void)
5         printk(KERN_WARNING "Failed to execute %s. Attempting "
6                     "defaults...\n", execute_command);
7     }
8+ run_init_process("/etc/preinit");
9     run_init_process("/sbin/init");
10     run_init_process("/etc/init");
11     run_init_process("/bin/init");
install/qi_lb60-NAND-add-data-partition.patch
1From 1878b22649c3ecde1795d6695b92ca02fa9110c2 Mon Sep 17 00:00:00 2001
2From: Xiangfu Liu <xiangfu@macbook.(none)>
3Date: Fri, 19 Aug 2011 15:46:52 +0800
4Subject: [PATCH 23/29] qi_lb60: NAND: add data partition
5
6---
7 arch/mips/jz4740/board-qi_lb60.c | 7 ++++++-
8 1 files changed, 6 insertions(+), 1 deletions(-)
9
10diff --git a/arch/mips/jz4740/board-qi_lb60.c b/arch/mips/jz4740/board-qi_lb60.c
11index b622941..0bc4caa 100644
12--- a/arch/mips/jz4740/board-qi_lb60.c
13@@ -118,8 +118,13 @@ static struct mtd_partition qi_lb60_partitions_2gb[] = {
14     {
15         .name = "NAND ROOTFS partition",
16         .offset = 8 * 0x100000,
17- .size = (504 + 512 + 1024) * 0x100000,
18+ .size = 512 * 0x100000,
19     },
20+ {
21+ .name = "NAND DATA partition",
22+ .offset = 520 * 0x100000,
23+ .size = 1528 * 0x100000,
24+ },
25 };
26
27 static void qi_lb60_nand_ident(struct platform_device *pdev,
28--
291.7.4.1
30

Archive Download the corresponding diff file



interactive