mirror of
git://projects.qi-hardware.com/ben-wpan.git
synced 2024-11-22 12:34:59 +02:00
INSTALL-Ben: update
This commit is contained in:
parent
89fdfc94e4
commit
153b9e3af8
@ -14,7 +14,7 @@
|
|||||||
cd qi-kernel
|
cd qi-kernel
|
||||||
git checkout ben-wpan
|
git checkout ben-wpan
|
||||||
cp ../ben-wpan-config-2.6.38 .config
|
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
|
OWRT make ARCH=mips CROSS_COMPILE=mipsel-openwrt-linux- vmlinux.bin
|
||||||
Jlime make ARCH=mips CROSS_COMPILE=mipsel-linux- vmlinux.bin
|
Jlime make ARCH=mips CROSS_COMPILE=mipsel-linux- vmlinux.bin
|
||||||
gzip -9 -f arch/mips/boot/vmlinux.bin
|
gzip -9 -f arch/mips/boot/vmlinux.bin
|
||||||
@ -32,6 +32,12 @@
|
|||||||
|
|
||||||
3. Install the kernel
|
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:
|
Using usbboot:
|
||||||
|
|
||||||
- remove battery and USB
|
- remove battery and USB
|
||||||
|
@ -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");
|
|
31
install/qi_lb60-NAND-add-data-partition.patch
Normal file
31
install/qi_lb60-NAND-add-data-partition.patch
Normal file
@ -0,0 +1,31 @@
|
|||||||
|
From 1878b22649c3ecde1795d6695b92ca02fa9110c2 Mon Sep 17 00:00:00 2001
|
||||||
|
From: Xiangfu Liu <xiangfu@macbook.(none)>
|
||||||
|
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
|
||||||
|
|
Loading…
Reference in New Issue
Block a user