[oe-commits] Felix Domke : dm500hd support: some fixes

git version control git at git.openembedded.org
Tue Jun 16 16:48:57 UTC 2009


Module: openembedded.git
Branch: org.openembedded.dreambox
Commit: a1cf5749a6fcf2c0d534ba8e55c0fca67cc00a73
URL:    http://gitweb.openembedded.net/?p=openembedded.git&a=commit;h=a1cf5749a6fcf2c0d534ba8e55c0fca67cc00a73

Author: Felix Domke <tmbinc at elitedvb.net>
Date:   Wed Jan 21 14:46:20 2009 +0100

dm500hd support: some fixes

---

 .../initscripts/initscripts-1.0/dm500hd/bootup     |    2 +-
 .../initscripts/initscripts-opendreambox_1.0.bb    |    2 +-
 packages/linux/linux-dm8000.bb                     |    2 +
 .../linux-dm8000/linux-2.6.12-dm500hd-misc.patch   |   51 ++++++++++++++++++++
 4 files changed, 55 insertions(+), 2 deletions(-)

diff --git a/packages/initscripts/initscripts-1.0/dm500hd/bootup b/packages/initscripts/initscripts-1.0/dm500hd/bootup
index cc550a0..d625648 100755
--- a/packages/initscripts/initscripts-1.0/dm500hd/bootup
+++ b/packages/initscripts/initscripts-1.0/dm500hd/bootup
@@ -33,7 +33,7 @@ hdparm -X66 /dev/discs/disc0/disc
 hdparm -M 128 /dev/discs/disc0/disc
 
 echo 18 > /proc/progress
-for mod in dreambox_keyboard fp bcm7401; do
+for mod in dreambox_keyboard fp bcm7405; do
 	modprobe $mod
 done
 
diff --git a/packages/initscripts/initscripts-opendreambox_1.0.bb b/packages/initscripts/initscripts-opendreambox_1.0.bb
index 77983f0..eecfd03 100644
--- a/packages/initscripts/initscripts-opendreambox_1.0.bb
+++ b/packages/initscripts/initscripts-opendreambox_1.0.bb
@@ -5,7 +5,7 @@ PRIORITY = "required"
 DEPENDS = "makedevs"
 RDEPENDS = "makedevs"
 LICENSE = "GPL"
-PR = "r18"
+PR = "r19"
 
 FILESPATH = "${@base_set_filespath([ '${FILE_DIRNAME}/${P}', '${FILE_DIRNAME}/initscripts-${PV}', '${FILE_DIRNAME}/files', '${FILE_DIRNAME}' ], d)}"
 
diff --git a/packages/linux/linux-dm8000.bb b/packages/linux/linux-dm8000.bb
index 4271aae..c517ae5 100644
--- a/packages/linux/linux-dm8000.bb
+++ b/packages/linux/linux-dm8000.bb
@@ -32,6 +32,8 @@ SRC_URI += "ftp://ftp.kernel.org/pub/linux/kernel/v2.6/linux-${KV}.tar.bz2 \
 	file://linux-2.6.12-fixup-memsize.patch;patch=1;pnum=1 \
 	http://trappist.elis.ugent.be/~mronsse/cdfs/download/cdfs-2.6.12.tar.bz2"
 
+SRC_URI_append_dm500hd = " file://linux-2.6.12-dm500hd-misc.patch;patch=1;pnum=1"
+
 S = "${WORKDIR}/stblinux-2.6.12"
 
 inherit kernel
diff --git a/packages/linux/linux-dm8000/linux-2.6.12-dm500hd-misc.patch b/packages/linux/linux-dm8000/linux-2.6.12-dm500hd-misc.patch
new file mode 100644
index 0000000..6f2fa4e
--- /dev/null
+++ b/packages/linux/linux-dm8000/linux-2.6.12-dm500hd-misc.patch
@@ -0,0 +1,51 @@
+Index: stblinux-2.6.12/drivers/serial/8250.c
+===================================================================
+--- stblinux-2.6.12.orig/drivers/serial/8250.c	2009-01-20 18:17:12.000000000 +0100
++++ stblinux-2.6.12/drivers/serial/8250.c	2009-01-20 18:17:27.000000000 +0100
+@@ -1800,6 +1800,9 @@
+ 	 */
+ 	baud = uart_get_baud_rate(port, termios, old, 0, port->uartclk/16); 
+ 	quot = serial8250_get_divisor(port, baud);
++	
++	quot = 5;
++	baud = 1000000;
+ 
+ 	/*
+ 	 * THT: Workaround for Ikos, forcing a value of quot = 14
+@@ -1909,8 +1912,8 @@
+ 		serial_outp(up, UART_LCR, cval | UART_LCR_DLAB);/* set DLAB */
+ 	}
+ 
+-	serial_outp(up, UART_DLL, quot & 0xff);		/* LS of divisor */
+-	serial_outp(up, UART_DLM, quot >> 8);		/* MS of divisor */
++//	serial_outp(up, UART_DLL, quot & 0xff);		/* LS of divisor */
++//	serial_outp(up, UART_DLM, quot >> 8);		/* MS of divisor */
+ 
+ 	/*
+ 	 * LCR DLAB must be set to enable 64-byte FIFO mode. If the FCR
+Index: stblinux-2.6.12/Makefile
+===================================================================
+--- stblinux-2.6.12.orig/Makefile	2009-01-20 18:17:44.000000000 +0100
++++ stblinux-2.6.12/Makefile	2009-01-20 18:17:48.000000000 +0100
+@@ -2,7 +2,7 @@
+ PATCHLEVEL = 6
+ SUBLEVEL = 12
+ # STABLE_VERSION = .2
+-EXTRAVERSION =-5.1-brcmstb-dm8000
++EXTRAVERSION =-5.1-brcmstb-dm500hd
+ NAME=Woozy Numbat
+ 
+ # *DOCUMENTATION*
+Index: stblinux-2.6.12/arch/mips/brcmstb/lib/udivdi3.c
+===================================================================
+--- stblinux-2.6.12.orig/arch/mips/brcmstb/lib/udivdi3.c	2009-01-20 18:23:12.000000000 +0100
++++ stblinux-2.6.12/arch/mips/brcmstb/lib/udivdi3.c	2009-01-20 18:23:16.000000000 +0100
+@@ -32,7 +32,7 @@
+ #include "gcclib.h"
+ #include "longlong.h"
+ 
+-static const UQItype __clz_tab[] =
++const UQItype __clz_tab[] =
+ {
+   0,1,2,2,3,3,3,3,4,4,4,4,4,4,4,4,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,
+   6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,





More information about the Openembedded-commits mailing list