diff options
-rw-r--r-- | conf/machine/htcuniversal.conf | 49 | ||||
-rw-r--r-- | conf/machine/include/smartphone-common.conf | 20 | ||||
-rw-r--r-- | packages/blueprobe/blueprobe-0.17/htcuniversal.patch | 18 | ||||
-rw-r--r-- | packages/blueprobe/blueprobe_0.17.bb | 5 | ||||
-rw-r--r-- | packages/linux/xanadux-un-2.6_2.6.12.bb | 32 | ||||
-rw-r--r-- | packages/misc-binary-only/acx-firmware_1.0.bb | 20 | ||||
-rw-r--r-- | packages/misc-binary-only/tiinit_3.2.26.bb | 16 | ||||
-rw-r--r-- | packages/sysvinit/sysvinit/htcuniversal/.mtn2git_empty | 0 | ||||
-rw-r--r-- | packages/sysvinit/sysvinit/htcuniversal/inittab | 34 | ||||
-rw-r--r-- | packages/sysvinit/sysvinit_2.86.bb | 2 | ||||
-rw-r--r-- | packages/tslib/tslib/htcuniversal/.mtn2git_empty | 0 | ||||
-rw-r--r-- | packages/tslib/tslib/htcuniversal/ts.conf | 5 | ||||
-rw-r--r-- | packages/tslib/tslib/htcuniversal/tslib.sh | 8 | ||||
-rw-r--r-- | packages/tslib/tslib_cvs.bb | 2 |
14 files changed, 207 insertions, 4 deletions
diff --git a/conf/machine/htcuniversal.conf b/conf/machine/htcuniversal.conf new file mode 100644 index 0000000000..800cd77540 --- /dev/null +++ b/conf/machine/htcuniversal.conf @@ -0,0 +1,49 @@ +#@TYPE: Machine +#@NAME: HTC Universal +#@DESCRIPTION: Machine configuration for the HTC Universal with a pxa27x CPU devices + +TARGET_ARCH = "arm" +IPKG_EXTRA_ARCHS = "armv4 armv5te ipaqpxa htcuniversal" +#use this for a HTC Universal +PREFERRED_PROVIDER_xserver = "xserver-kdrive" +PREFERRED_PROVIDER_virtual/kernel = "xanadux-un-2.6" + + +MODUTILS = "26" +BOOTSTRAP_EXTRA_RDEPENDS = "kernel ipaq-boot-params " +BOOTSTRAP_EXTRA_RRECOMMENDS += "${@linux_module_packages('${PXA270_MODULES}', d)}" +BOOTSTRAP_EXTRA_RDEPENDS_append = " module-init-tools detect-stylus" +BOOTSTRAP_EXTRA_RDEPENDS_append = " tiinit acx-firmware" + +PXA270_MODULES = "g_ether snd_pcm_oss snd_mixer_oss hidp" + +SERIAL_CONSOLE = "115200 tts/0" + +include conf/machine/include/smartphone-common.conf + +GUI_MACHINE_CLASS = "bigscreen" + +# Use tune-xscale per default. Machine independent feeds should be built with tune-strongarm. +include conf/machine/include/tune-xscale.conf + +# Uncomment this to use iwmmxt optimizations. Remove the above xscale stuff first +#include conf/machine/include/tune-iwmmxt.conf + +BOOTSTRAP_EXTRA_RRECOMMENDS += "${@linux_module_packages('${UN_MODULES}', d)}" +UN_MODULES = "i2c-pxa snd-pxa-i2sound-htcuniversal htcuniversal_power htcuniversal_acx acx htcuniversal_bt htcuniversal_leds" + + +module_autoload_htcuniversal_power = "htcuniversal_power" +module_autoload_snd-pxa-i2sound-htcuniversal = "snd-pxa-i2sound-htcuniversal" +module_autoload_snd-pcm-oss = "snd-pcm-oss" +module_autoload_snd-mixer-oss = "snd-mixer-oss" +module_autoload_acx = "acx" +module_autoload_htcuniversal-bt = "htcuniversal_bt" +module_autoload_htcuniversal-power = "htcuniversal_power" + +#module_autoload_pxa27x_udc = "pxa27x_udc" + +#FIXME: this should be controlled by a userspace utility later. +module_autoload_g_ether = "g_ether" + +GPE_EXTRA_DEPENDS += " gomunicator" diff --git a/conf/machine/include/smartphone-common.conf b/conf/machine/include/smartphone-common.conf new file mode 100644 index 0000000000..2ff8d4bc47 --- /dev/null +++ b/conf/machine/include/smartphone-common.conf @@ -0,0 +1,20 @@ +HANDHELD_MODULES = "ipv6 \ +ipsec \ +nvrd \ +mip6-mn \ +tun \ +fat vfat \ +loop \ +rfcomm bnep l2cap sco hci_uart hidp \ +af_packet \ +ppp-async ppp-deflate ppp-mppe \ +ip-gre ip-tables ipip \ +irda irlan irnet irport irtty ircomm-tty \ +input uinput \ +" + +# Configuration bits for "generic samrtphone" +BOOTSTRAP_EXTRA_RDEPENDS += "apm apmd network-suspend-scripts" +BOOTSTRAP_EXTRA_RRECOMMENDS += "ppp wireless-tools irda-utils wpa-supplicant-nossl lrzsz ppp-dialin ${@linux_module_packages('${HANDHELD_MODULES}', d)}" + +INHERIT += "linux_modules" diff --git a/packages/blueprobe/blueprobe-0.17/htcuniversal.patch b/packages/blueprobe/blueprobe-0.17/htcuniversal.patch new file mode 100644 index 0000000000..f84a36bbec --- /dev/null +++ b/packages/blueprobe/blueprobe-0.17/htcuniversal.patch @@ -0,0 +1,18 @@ +--- blueprobe-0.17/blueprobe.init.orig 2006-01-21 19:47:56.000000000 +0100 ++++ blueprobe-0.17/blueprobe.init 2006-06-15 00:40:57.000000000 +0200 +@@ -74,6 +74,15 @@ + PROTO=texas + PROBE=no + ;; ++ "HTC Universal") ++ BLUETOOTH=yes ++ PORT=/dev/ttyS1 ++ SCRIPT=/etc/bluetooth/TIInit_3.2.26.bts ++ SPEED='`[ -f "$BLUETOOTH_SCRIPT" ] && echo 921600 || echo 115200`' ++ PROTO=texas ++ PROBE=no ++ ;; ++ + *) + BLUETOOTH=no + ;; diff --git a/packages/blueprobe/blueprobe_0.17.bb b/packages/blueprobe/blueprobe_0.17.bb index 433f3dfbd0..f367e43698 100644 --- a/packages/blueprobe/blueprobe_0.17.bb +++ b/packages/blueprobe/blueprobe_0.17.bb @@ -2,7 +2,8 @@ SECTION = "base" LICENSE = "GPL" inherit gpe -PR = "r1" +PR = "r2" SRC_URI += "file://hx4700.patch;patch=1\ - file://h2200-fixup.patch;patch=1" + file://h2200-fixup.patch;patch=1\ + file://htcuniversal.patch;patch=1" diff --git a/packages/linux/xanadux-un-2.6_2.6.12.bb b/packages/linux/xanadux-un-2.6_2.6.12.bb new file mode 100644 index 0000000000..1f5527400e --- /dev/null +++ b/packages/linux/xanadux-un-2.6_2.6.12.bb @@ -0,0 +1,32 @@ +############## /home/jrs/cvs/oe/org.openembedded.dev/packages/linux/xanadux-un-2.6_2.6.12.bb ############### + +DESCRIPTION = "Xanadux HTC-Universal kernel based on the hh 2.6.12" +MAINTAINER = "goxboxlive <goxboxlive@gmail.com>" +LICENSE = "GPL" +PR="r2" + +SRC_URI = "cvs://anonymous@xanadux.cvs.sourceforge.net/cvsroot/xanadux;method=pserver;module=linux-2.6-xda;tag=K2-6-12-hh2-xda0-un0" +S = "${WORKDIR}/linux-2.6-xda" + +COMPATIBLE_HOST = "arm.*-linux" + +inherit kernel + +do_configure() { + cp arch/arm/configs/htcuniversal_defconfig .config || die "No default configuration for ${MACHINE} available." + yes '' | oe_runmake oldconfig +} + + +############################################################### +# put into deploy directory +# +do_deploy() { + install -d ${DEPLOY_DIR_IMAGE} + install -m 0644 arch/${ARCH}/boot/${KERNEL_IMAGETYPE} ${DEPLOY_DIR_IMAGE}/${KERNEL_IMAGETYPE}-${PV}-${MACHINE}-${DATETIME}.bin + tar -cvzf ${DEPLOY_DIR_IMAGE}/modules-${KERNEL_RELEASE}-${MACHINE}.tgz -C ${D} lib +} + +do_deploy[dirs] = "${S}" + +addtask deploy before do_package after do_install diff --git a/packages/misc-binary-only/acx-firmware_1.0.bb b/packages/misc-binary-only/acx-firmware_1.0.bb new file mode 100644 index 0000000000..f703dc93b4 --- /dev/null +++ b/packages/misc-binary-only/acx-firmware_1.0.bb @@ -0,0 +1,20 @@ +DESCRIPTION = "ACX (iPAQ HX4700/HTC Universal) wireless firmware." +SECTION = "base" +LICENSE = "Unknown" +PR = "r1" +RDEPENDS = "kernel-module-firmware-class" + +SRC_URI = "http://sdgsystems.com/pub/ipaq/hx4700/src/RADIO0d.BIN \ + http://sdgsystems.com/pub/ipaq/hx4700/src/RADIO11.BIN \ + http://sdgsystems.com/pub/ipaq/hx4700/src/WLANGEN.BIN " + +S = "${WORKDIR}" +FILES_${PN} = "/lib" + +do_install() { + install -d ${D}/lib/firmware/ + install -m 0644 RADIO0d.BIN RADIO11.BIN WLANGEN.BIN ${D}/lib/firmware/ +} + +PACKAGE_ARCH = "all" + diff --git a/packages/misc-binary-only/tiinit_3.2.26.bb b/packages/misc-binary-only/tiinit_3.2.26.bb new file mode 100644 index 0000000000..c97f216f6d --- /dev/null +++ b/packages/misc-binary-only/tiinit_3.2.26.bb @@ -0,0 +1,16 @@ +DESCRIPTION = "TI Bluetooth init bits." +SECTION = "base" +LICENSE = "Unknown" +PR = "r0" + +SRC_URI = "http://sdgsystems.com/pub/ipaq/hx4700/src/TIInit_${PV}.bts" + +S = "${WORKDIR}" + +do_install() { + install -d ${D}${sysconfdir}/bluetooth/ + install -m 0644 TIInit_${PV}.bts ${D}${sysconfdir}/bluetooth/ +} + +PACKAGE_ARCH = "all" + diff --git a/packages/sysvinit/sysvinit/htcuniversal/.mtn2git_empty b/packages/sysvinit/sysvinit/htcuniversal/.mtn2git_empty new file mode 100644 index 0000000000..e69de29bb2 --- /dev/null +++ b/packages/sysvinit/sysvinit/htcuniversal/.mtn2git_empty diff --git a/packages/sysvinit/sysvinit/htcuniversal/inittab b/packages/sysvinit/sysvinit/htcuniversal/inittab new file mode 100644 index 0000000000..8714c7ee93 --- /dev/null +++ b/packages/sysvinit/sysvinit/htcuniversal/inittab @@ -0,0 +1,34 @@ +# /etc/inittab: init(8) configuration. +# $Id: inittab,v 1.91 2002/01/25 13:35:21 miquels Exp $ + +# The default runlevel. +id:5:initdefault: + +# Boot-time system configuration/initialization script. +# This is run first except when booting in emergency (-b) mode. +si::sysinit:/etc/init.d/rcS + +# What to do in single-user mode. +~~:S:wait:/sbin/sulogin + +# /etc/init.d executes the S and K scripts upon change +# of runlevel. +# +# Runlevel 0 is halt. +# Runlevel 1 is single-user. +# Runlevels 2-5 are multi-user. +# Runlevel 6 is reboot. + +l0:0:wait:/etc/init.d/rc 0 +l1:1:wait:/etc/init.d/rc 1 +l2:2:wait:/etc/init.d/rc 2 +l3:3:wait:/etc/init.d/rc 3 +l4:4:wait:/etc/init.d/rc 4 +l5:5:wait:/etc/init.d/rc 5 +l6:6:wait:/etc/init.d/rc 6 +# Normally not reached, but fallthrough in case of emergency. +z6:6:respawn:/sbin/sulogin +1:2345:respawn:/sbin/getty 115200 tty1 +2:2345:respawn:/sbin/getty 115200 tty2 +3:2345:respawn:/sbin/getty 115200 tty3 +4:2345:respawn:/sbin/getty 115200 tty4 diff --git a/packages/sysvinit/sysvinit_2.86.bb b/packages/sysvinit/sysvinit_2.86.bb index e2124c7fe9..a9644e45a4 100644 --- a/packages/sysvinit/sysvinit_2.86.bb +++ b/packages/sysvinit/sysvinit_2.86.bb @@ -3,7 +3,7 @@ SECTION = "base" LICENSE = "GPL" MAINTAINER = "Chris Larson <kergoth@handhelds.org>" HOMEPAGE = "http://freshmeat.net/projects/sysvinit/" -PR = "r24" +PR = "r25" # USE_VT and SERIAL_CONSOLE are generally defined by the MACHINE .conf. # Set PACKAGE_ARCH appropriately. diff --git a/packages/tslib/tslib/htcuniversal/.mtn2git_empty b/packages/tslib/tslib/htcuniversal/.mtn2git_empty new file mode 100644 index 0000000000..e69de29bb2 --- /dev/null +++ b/packages/tslib/tslib/htcuniversal/.mtn2git_empty diff --git a/packages/tslib/tslib/htcuniversal/ts.conf b/packages/tslib/tslib/htcuniversal/ts.conf new file mode 100644 index 0000000000..09309719f2 --- /dev/null +++ b/packages/tslib/tslib/htcuniversal/ts.conf @@ -0,0 +1,5 @@ +module_raw input +module pthres pmin=1 +module variance delta=30 +module dejitter delta=100 +module linear diff --git a/packages/tslib/tslib/htcuniversal/tslib.sh b/packages/tslib/tslib/htcuniversal/tslib.sh new file mode 100644 index 0000000000..39f3ebab10 --- /dev/null +++ b/packages/tslib/tslib/htcuniversal/tslib.sh @@ -0,0 +1,8 @@ +#!/bin/sh + +TSLIB_TSDEVICE=`detect-stylus --device` +TSLIB_CONFFILE=/etc/ts.conf + +# this one is for making opie happy... +QWS_MOUSE_PROTO=TPanel:`detect-stylus --device` +export TSLIB_TSDEVICE TSLIB_CONFFILE QWS_MOUSE_PROTO diff --git a/packages/tslib/tslib_cvs.bb b/packages/tslib/tslib_cvs.bb index 5567ea7064..c96ceab50b 100644 --- a/packages/tslib/tslib_cvs.bb +++ b/packages/tslib/tslib_cvs.bb @@ -5,7 +5,7 @@ SECTION = "base" LICENSE = "LGPL" PV = "0.0+cvs${SRCDATE}" -PR = "r37" +PR = "r38" SRC_URI = "cvs://cvs:@pubcvs.arm.linux.org.uk/mnt/src/cvsroot;module=tslib \ file://usec_fix.patch;patch=1 \ |