linux-rp: minimal zylonite kernel
We don't have a NAND driver yet, but we boot all the way up to userspace. git-svn-id: https://svn.o-hand.com/repos/poky/trunk@2782 311d38ba-8fff-0310-9ca6-ca027cbcb966
This commit is contained in:
parent
b4c4ff1698
commit
6c85a2a0dc
|
@ -17,7 +17,7 @@ IMAGE_FSTYPES ?= "tar.bz2 jffs2"
|
|||
|
||||
SERIAL_CONSOLE = "38400 ttyS0"
|
||||
|
||||
PREFERRED_PROVIDER_virtual/kernel = "linux-zylonite"
|
||||
PREFERRED_PROVIDER_virtual/kernel = "linux-rp"
|
||||
PREFERRED_PROVIDER_virtual/xserver = "xserver-kdrive"
|
||||
XSERVER = "xserver-kdrive-fbdev"
|
||||
|
||||
|
|
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
|
@ -0,0 +1,17 @@
|
|||
---
|
||||
arch/arm/mach-pxa/irq.c | 2 +-
|
||||
1 file changed, 1 insertion(+), 1 deletion(-)
|
||||
|
||||
Index: linux-2.6.22/arch/arm/mach-pxa/irq.c
|
||||
===================================================================
|
||||
--- linux-2.6.22.orig/arch/arm/mach-pxa/irq.c 2007-09-25 01:42:57.000000000 +0200
|
||||
+++ linux-2.6.22/arch/arm/mach-pxa/irq.c 2007-09-25 01:43:03.000000000 +0200
|
||||
@@ -301,7 +301,7 @@
|
||||
set_irq_flags(irq, IRQF_VALID | IRQF_PROBE);
|
||||
}
|
||||
|
||||
- for (irq = IRQ_GPIO(2); irq <= IRQ_GPIO(gpio_nr); irq++) {
|
||||
+ for (irq = IRQ_GPIO(2); irq < IRQ_GPIO(gpio_nr); irq++) {
|
||||
set_irq_chip(irq, &pxa_muxed_gpio_chip);
|
||||
set_irq_handler(irq, handle_edge_irq);
|
||||
set_irq_flags(irq, IRQF_VALID | IRQF_PROBE);
|
|
@ -0,0 +1,45 @@
|
|||
From 04c42f566c68b757fdadf54e0e0f9dfe9f3f9b06 Mon Sep 17 00:00:00 2001
|
||||
From: eric miao <eric.miao@marvell.com>
|
||||
Date: Tue, 19 Jun 2007 16:42:53 +0800
|
||||
Subject: [PATCH] [PATCH] make zylonite boot
|
||||
|
||||
1. reuse head-xscale.S for XSC3
|
||||
|
||||
2. add a workaround for machine ID assignment, which should be done
|
||||
by boot loader
|
||||
---
|
||||
arch/arm/boot/compressed/Makefile | 4 ++++
|
||||
arch/arm/boot/compressed/head-xscale.S | 5 +++++
|
||||
2 files changed, 9 insertions(+)
|
||||
|
||||
Index: linux-2.6-pxa3/arch/arm/boot/compressed/Makefile
|
||||
===================================================================
|
||||
--- linux-2.6-pxa3.orig/arch/arm/boot/compressed/Makefile 2007-09-24 11:25:57.000000000 +0200
|
||||
+++ linux-2.6-pxa3/arch/arm/boot/compressed/Makefile 2007-09-24 12:26:53.000000000 +0200
|
||||
@@ -40,6 +40,10 @@
|
||||
OBJS += head-xscale.o
|
||||
endif
|
||||
|
||||
+ifeq ($(CONFIG_CPU_XSC3),y)
|
||||
+OBJS += head-xscale.o
|
||||
+endif
|
||||
+
|
||||
ifeq ($(CONFIG_PXA_SHARPSL),y)
|
||||
OBJS += head-sharpsl.o
|
||||
endif
|
||||
Index: linux-2.6-pxa3/arch/arm/boot/compressed/head-xscale.S
|
||||
===================================================================
|
||||
--- linux-2.6-pxa3.orig/arch/arm/boot/compressed/head-xscale.S 2007-09-24 11:42:27.000000000 +0200
|
||||
+++ linux-2.6-pxa3/arch/arm/boot/compressed/head-xscale.S 2007-09-24 12:26:02.000000000 +0200
|
||||
@@ -33,6 +33,11 @@
|
||||
bic r0, r0, #0x1000 @ clear Icache
|
||||
mcr p15, 0, r0, c1, c0, 0
|
||||
|
||||
+#ifdef CONFIG_MACH_ZYLONITE
|
||||
+ mov r7, #(MACH_TYPE_ZYLONITE & 0xff)
|
||||
+ orr r7, r7, #(MACH_TYPE_ZYLONITE & 0xff00)
|
||||
+#endif
|
||||
+
|
||||
#ifdef CONFIG_ARCH_COTULLA_IDP
|
||||
mov r7, #MACH_TYPE_COTULLA_IDP
|
||||
#endif
|
|
@ -15,7 +15,7 @@ TKSRC = "http://www.informatik.hu-berlin.de/~tkunze/zaurus/patches"
|
|||
|
||||
EXTRA_OEMAKE = "OPENZAURUS_RELEASE=-${DISTRO_VERSION}"
|
||||
COMPATIBLE_HOST = "(arm|i.86).*-linux"
|
||||
COMPATIBLE_MACHINE = '(collie|poodle|c7x0|akita|spitz|tosa|hx2000|qemuarm|qemux86|bootcdx86|htcuniversal)'
|
||||
COMPATIBLE_MACHINE = '(collie|poodle|c7x0|akita|spitz|tosa|hx2000|qemuarm|qemux86|bootcdx86|htcuniversal|zylonite)'
|
||||
|
||||
KERNEL_CUSTOM_NAME ?= ""
|
||||
KERNEL_DEPLOY_NAME ?= "${KERNEL_IMAGETYPE}-${PV}-${KERNEL_CUSTOM_NAME}${MACHINE}-${DATETIME}.bin"
|
||||
|
@ -25,6 +25,7 @@ KERNEL_DEFCONFIG ?= "defconfig-${MACHINE}"
|
|||
CMDLINE_CON = "console=ttyS0,115200n8 console=tty1 noinitrd"
|
||||
CMDLINE_CON_collie = "console=ttySA0,115200n8 console=tty1 noinitrd"
|
||||
CMDLINE_CON_qemuarm = "console=ttyAMA0,115200n8 console=tty1 noinitrd"
|
||||
CMDLINE_CON_zylonite = "console=ttyS0,38400"
|
||||
CMDLINE_ROOT ?= "root=/dev/mtdblock2 rootfstype=jffs2"
|
||||
CMDLINE_ROOT_spitz ?= "root=/dev/hda1 rootfstype=ext3 rootdelay=1 rw"
|
||||
#CMDLINE_ROOT_spitz = "root=/dev/mmcblk0p2 rootfstype=ext2 rootdelay=3 rw"
|
||||
|
@ -38,6 +39,7 @@ export mem = '${@bb.data.getVar("COLLIE_MEMORY_SIZE",d,1) or "32"}'
|
|||
export rd = '${@bb.data.getVar("COLLIE_RAMDISK_SIZE",d,1) or "32"}'
|
||||
|
||||
CMDLINE_MEM_collie = "mem=${mem}M"
|
||||
CMDLINE_MEM_zylonite = "mem=64M"
|
||||
CMDLINE_ROTATE_spitz = "fbcon=rotate:1"
|
||||
CMDLINE_ROTATE_akita = "fbcon=rotate:1"
|
||||
CMDLINE_ROTATE_collie = "fbcon=rotate:1"
|
||||
|
|
|
@ -4,6 +4,7 @@ PR = "r3"
|
|||
|
||||
DEFAULT_PREFERENCE = "-1"
|
||||
DEFAULT_PREFERENCE_htcuniversal = "1"
|
||||
DEFAULT_PREFERENCE_zylonite = "1"
|
||||
|
||||
# Handy URLs
|
||||
# git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux-2.6.git;protocol=git;tag=ef7d1b244fa6c94fb76d5f787b8629df64ea4046
|
||||
|
@ -62,6 +63,7 @@ SRC_URI = "http://www.kernel.org/pub/linux/kernel/v2.6/linux-2.6.22.tar.bz2 \
|
|||
file://defconfig-qemux86 \
|
||||
file://defconfig-bootcdx86 \
|
||||
file://defconfig-htcuniversal \
|
||||
file://defconfig-zylonite \
|
||||
file://defconfig-tosa "
|
||||
|
||||
# FIXMEs before made default
|
||||
|
@ -115,4 +117,10 @@ SRC_URI_append_tosa = "\
|
|||
|
||||
SRC_URI_append_htcuniversal ="file://htcuni-acx.patch;patch=1;status=external"
|
||||
|
||||
SRC_URI_append_zylonite ="\
|
||||
file://arm_pxa_20070923.patch;patch=1 \
|
||||
file://irq-gpio-offby1.patch;patch=1 \
|
||||
file://zylonite-boot.patch;patch=1 \
|
||||
"
|
||||
|
||||
S = "${WORKDIR}/linux-2.6.22"
|
||||
|
|
Loading…
Reference in New Issue