Skip to contentSkip to conversation

Added base pnx833x stb225 board support.

PATCH In review Ihar Hrachyshka 2 participants 2 messages Jan 28, 2009

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Added base pnx833x stb225 board support.

This patch adds support for PNX833X STB225 board with some kernel
patches: serial UART, Ethernet, and basic processor flavor functionality.

---
 conf/machine/stb225.conf                           |    8 +
 packages/linux/linux-2.6.28/stb225/defconfig       | 1247 ++++++++++++++++
 packages/linux/linux-2.6.28/stb225/ebase-fix.patch |   37 +
 .../linux/linux-2.6.28/stb225/enable-uart.patch    |   13 +
 packages/linux/linux-2.6.28/stb225/ip3902.patch    | 1549 ++++++++++++++++++++
 packages/linux/linux_2.6.28.bb                     |    6 +
 6 files changed, 2860 insertions(+), 0 deletions(-)
 create mode 100644 conf/machine/stb225.conf
 create mode 100644 packages/linux/linux-2.6.28/stb225/defconfig
 create mode 100644 packages/linux/linux-2.6.28/stb225/ebase-fix.patch
 create mode 100644 packages/linux/linux-2.6.28/stb225/enable-uart.patch
 create mode 100644 packages/linux/linux-2.6.28/stb225/ip3902.patch
conf/machine/stb225.conf new file +8 -0
new file mode 100644
index 0000000..97370e1
@@ -0,0 +1,8 @@
+# PNX8335 STB225 board
+TARGET_ARCH = "mipsel"
+TARGET_CC_ARCH="-march=mips32"
+MACHINE_FEATURES = "kernel26"
+IMAGE_FSTYPES="tar.gz"
+PREFERRED_PROVIDER_virtual/kernel="linux"
+KERNEL_IMAGETYPE="vmlinux"
+KERNEL_OUTPUT="${KERNEL_IMAGETYPE}"
packages/linux/linux-2.6.28/stb225/defconfig new file +1247 -0

1,247 lines not on this page · raw message

packages/linux/linux-2.6.28/stb225/ebase-fix.patch new file +37 -0
new file mode 100644
index 0000000..bdd82ac
@@ -0,0 +1,37 @@
+diff --git a/arch/mips/kernel/traps.c b/arch/mips/kernel/traps.c
+index f6083c6..b3bcd3a 100644
+--- a/arch/mips/kernel/traps.c
++++ b/arch/mips/kernel/traps.c
+@@ -1592,8 +1592,6 @@ void __cpuinit set_uncached_handler(unsigned long offset, void *addr,
+ #ifdef CONFIG_64BIT
+ 	unsigned long uncached_ebase = TO_UNCAC(ebase);
+ #endif
+-	if (cpu_has_mips_r2)
+-		ebase += (read_c0_ebase() & 0x3ffff000);
+ 
+ 	if (!addr)
+ 		panic(panic_null_cerr);
+@@ -1629,8 +1627,6 @@ void __init trap_init(void)
+ 		ebase = (unsigned long) alloc_bootmem_low_pages(0x200 + VECTORSPACING*64);
+ 	else {
+ 		ebase = CAC_BASE;
+-		if (cpu_has_mips_r2)
+-			ebase += (read_c0_ebase() & 0x3ffff000);
+ 	}
+ 
+ 	per_cpu_trap_init();
+@@ -1739,11 +1735,11 @@ void __init trap_init(void)
+ 
+ 	if (cpu_has_vce)
+ 		/* Special exception: R4[04]00 uses also the divec space. */
+-		memcpy((void *)(ebase + 0x180), &except_vec3_r4000, 0x100);
++		memcpy((void *)(CAC_BASE + 0x180), &except_vec3_r4000, 0x100);
+ 	else if (cpu_has_4kex)
+-		memcpy((void *)(ebase + 0x180), &except_vec3_generic, 0x80);
++		memcpy((void *)(CAC_BASE + 0x180), &except_vec3_generic, 0x80);
+ 	else
+-		memcpy((void *)(ebase + 0x080), &except_vec3_generic, 0x80);
++		memcpy((void *)(CAC_BASE + 0x080), &except_vec3_generic, 0x80);
+ 
+ 	signal_init();
+ #ifdef CONFIG_MIPS32_COMPAT
packages/linux/linux-2.6.28/stb225/enable-uart.patch new file +13 -0
new file mode 100644
index 0000000..e7bb034
@@ -0,0 +1,13 @@
+diff --git a/drivers/serial/Kconfig b/drivers/serial/Kconfig
+index 3e525e3..91d4470 100644
+--- a/drivers/serial/Kconfig
++++ b/drivers/serial/Kconfig
+@@ -982,7 +982,7 @@ config SERIAL_SH_SCI_CONSOLE
+ 
+ config SERIAL_PNX8XXX
+ 	bool "Enable PNX8XXX SoCs' UART Support"
+-	depends on MIPS && SOC_PNX8550
++	depends on MIPS && (SOC_PNX8550 || SOC_PNX833X)
+ 	select SERIAL_CORE
+ 	help
+ 	  If you have a MIPS-based Philips SoC such as PNX8550 or PNX8330
packages/linux/linux-2.6.28/stb225/ip3902.patch new file +1549 -0

1,549 lines not on this page · raw message

packages/linux/linux_2.6.28.bb +6 -0
index d70aed5..b042a45 100644
@@ -6,6 +6,7 @@ PR = "r1"
 DEFAULT_PREFERENCE = "-1"
 
 DEFAULT_PREFERENCE_at91sam9263ek = "28"
+DEFAULT_PREFERENCE_stb225 = "28"
 
 SRC_URI = "${KERNELORG_MIRROR}/pub/linux/kernel/v2.6/linux-2.6.28.tar.bz2 \
            file://defconfig"
@@ -13,3 +14,8 @@ SRC_URI = "${KERNELORG_MIRROR}/pub/linux/kernel/v2.6/linux-2.6.28.tar.bz2 \
 SRC_URI_append_at91sam9263ek = " \
            file://linux-2.6.28-at91.patch.bz2;patch=1 \
 	   file://linux-2.6.28-exp.patch.bz2;patch=1 "
+
+SRC_URI_append_stb225 = " \
+           file://ebase-fix.patch;patch=1 \
+           file://enable-uart.patch;patch=1 \
+	   file://ip3902.patch;patch=1 "
Signature · 1 line
1.5.6.3
#1 lore raw
Quoted 15 lines · Ihar Hrachyshka

This patch adds support for PNX833X STB225 board with some kernel
patches: serial UART, Ethernet, and basic processor flavor functionality.

---
  conf/machine/stb225.conf                           |    8 +
conf/machine/stb225.conf new file +0 -0
new file mode 100644
index 0000000..97370e1

conf/machine/stb225.conf line 8

Quoted 8 lines
conf/machine/stb225.conf new file +8 -0
@@ -0,0 +1,8 @@
+# PNX8335 STB225 board
+TARGET_ARCH = "mipsel"
+TARGET_CC_ARCH="-march=mips32"
+MACHINE_FEATURES = "kernel26"
+IMAGE_FSTYPES="tar.gz"
+PREFERRED_PROVIDER_virtual/kernel="linux"
+KERNEL_IMAGETYPE="vmlinux"
+KERNEL_OUTPUT="${KERNEL_IMAGETYPE}"

Could you make this look more like other recipes? E.g. using a tune file for the cpu part, use += for IMAGE_FSTYPES, have spaces around equeal signs, etc? The kernel part looks ok, though.

regards,

Koen