All of lore.kernel.org
 help / color / mirror / Atom feed
* More work on support for palmpre machine
@ 2010-10-18 18:51 Simon Busch
  2010-10-18 18:51 ` [PATCH 01/15] tslib: adjust various recipe settings for the " Simon Busch
                   ` (14 more replies)
  0 siblings, 15 replies; 26+ messages in thread
From: Simon Busch @ 2010-10-18 18:51 UTC (permalink / raw)
  To: openembedded-devel

Heyho,

I have some more patches which improves support for the palm pre machine. Please review
them, so I can commit all to oe.git.

regards,
morphis




^ permalink raw reply	[flat|nested] 26+ messages in thread

* [PATCH 01/15] tslib: adjust various recipe settings for the palmpre machine
  2010-10-18 18:51 More work on support for palmpre machine Simon Busch
@ 2010-10-18 18:51 ` Simon Busch
  2010-10-18 18:51 ` [PATCH 02/15] read-tokens: add initial git version Simon Busch
                   ` (13 subsequent siblings)
  14 siblings, 0 replies; 26+ messages in thread
From: Simon Busch @ 2010-10-18 18:51 UTC (permalink / raw)
  To: openembedded-devel

* set PACKAGE_ARCH = "${MACHINE_ARCH}" for palmpre machine
* provide special EXTRA_CONF setting to build plugin for the cy8mrln touchscreen

Signed-off-by: Simon Busch <morphis@gravedo.de>
---
 recipes/tslib/tslib.inc    |    2 ++
 recipes/tslib/tslib_git.bb |   15 +++++++++++++++
 2 files changed, 17 insertions(+), 0 deletions(-)

diff --git a/recipes/tslib/tslib.inc b/recipes/tslib/tslib.inc
index a8b8e45..4c4cda1 100644
--- a/recipes/tslib/tslib.inc
+++ b/recipes/tslib/tslib.inc
@@ -46,6 +46,8 @@ RPROVIDES_tslib-conf = "libts-0.0-conf"
 
 # Machines with machine specific patches
 PACKAGE_ARCH_mnci = "${MACHINE_ARCH}"
+PACKAGE_ARCH_palmpre = "${MACHINE_ARCH}"
+
 # Machines with machine specific config files (tslib.sh)
 PACKAGE_ARCH_tslib-conf_a780 = "${MACHINE_ARCH}"
 PACKAGE_ARCH_tslib-conf_collie = "${MACHINE_ARCH}"
diff --git a/recipes/tslib/tslib_git.bb b/recipes/tslib/tslib_git.bb
index 1d79061..63e6645 100644
--- a/recipes/tslib/tslib_git.bb
+++ b/recipes/tslib/tslib_git.bb
@@ -6,4 +6,19 @@ PR = "${INC_PR}.1"
 
 DEFAULT_PREFERENCE = "-1"
 
+# move this to tslib.inc when upstream releases a new version which includes support for
+# the palmpre machine
+EXTRA_OECONF_palmpre = " \
+   --enable-shared \
+   --enable-cy8mrln-palmpre \
+   --enable-input \
+   --disable-h3600 \
+   --disable-corgi \
+   --disable-collie \
+   --disable-mk712 \
+   --disable-artic2 \
+   --disable-ucb1x00 \
+   --disable-tatung \
+"
+
 include tslib.inc
-- 
1.7.1




^ permalink raw reply related	[flat|nested] 26+ messages in thread

* [PATCH 02/15] read-tokens: add initial git version
  2010-10-18 18:51 More work on support for palmpre machine Simon Busch
  2010-10-18 18:51 ` [PATCH 01/15] tslib: adjust various recipe settings for the " Simon Busch
@ 2010-10-18 18:51 ` Simon Busch
  2010-10-18 18:51 ` [PATCH 03/15] tsmd: add initial recipe Simon Busch
                   ` (12 subsequent siblings)
  14 siblings, 0 replies; 26+ messages in thread
From: Simon Busch @ 2010-10-18 18:51 UTC (permalink / raw)
  To: openembedded-devel

read-tokens is a little utility especially for the palmpre. It reads so alled 'tokens'
from the internal flash and stores them in a key-value file so other system components can
read them from there.

Signed-off-by: Simon Busch <morphis@gravedo.de>
---
 recipes/palmpre/read-tokens_git.bb |   15 +++++++++++++++
 1 files changed, 15 insertions(+), 0 deletions(-)
 create mode 100644 recipes/palmpre/read-tokens_git.bb

diff --git a/recipes/palmpre/read-tokens_git.bb b/recipes/palmpre/read-tokens_git.bb
new file mode 100644
index 0000000..d958438
--- /dev/null
+++ b/recipes/palmpre/read-tokens_git.bb
@@ -0,0 +1,15 @@
+DESCRIPTION = "Little utility to read 'tokens' from internal flash and store them in a smartkeyfile; specific for palmpre machine"
+HOMEPAGE = "http://www.freesmartphone.org"
+AUTHOR = "Simon Busch <morphis@gravedo.de>
+SECTION = "console/utils"
+LICENSE = "GPL"
+PR = "r0"
+PV = "1.0.0+gitr${SRCPV}"
+
+SRCREV = "93a640dafa8ebebdb1a03f051cb1b566629b227c"
+SRC_URI = "${FREESMARTPHONE_GIT}/utilities.git;protocol=git;branch=master"
+S = "${WORKDIR}/git/palmpre/read_tokens"
+
+PACKAGE_ARCH = "${MACHINE_ARCH}"
+
+inherit autotools
-- 
1.7.1




^ permalink raw reply related	[flat|nested] 26+ messages in thread

* [PATCH 03/15] tsmd: add initial recipe
  2010-10-18 18:51 More work on support for palmpre machine Simon Busch
  2010-10-18 18:51 ` [PATCH 01/15] tslib: adjust various recipe settings for the " Simon Busch
  2010-10-18 18:51 ` [PATCH 02/15] read-tokens: add initial git version Simon Busch
@ 2010-10-18 18:51 ` Simon Busch
  2010-10-18 18:51 ` [PATCH 04/15] netbase: powerup usb0 interface automatically on palmpre machine Simon Busch
                   ` (11 subsequent siblings)
  14 siblings, 0 replies; 26+ messages in thread
From: Simon Busch @ 2010-10-18 18:51 UTC (permalink / raw)
  To: openembedded-devel

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain, Size: 2816 bytes --]

tsmd is a touchscreen management daemon for the palmpre machine. It has juast one simple
task to do: It open's the touchscreen dev node on /dev/touchscreen, process it's data with
tslib and forward all input events to uinput dev node.

Signed-off-by: Simon Busch <morphis@gravedo.de>
---
 recipes/palmpre/tsmd/tsmd   |   38 ++++++++++++++++++++++++++++++++++++++
 recipes/palmpre/tsmd_git.bb |   30 ++++++++++++++++++++++++++++++
 2 files changed, 68 insertions(+), 0 deletions(-)
 create mode 100755 recipes/palmpre/tsmd/tsmd
 create mode 100644 recipes/palmpre/tsmd_git.bb

diff --git a/recipes/palmpre/tsmd/tsmd b/recipes/palmpre/tsmd/tsmd
new file mode 100755
index 0000000..53d94c8
--- /dev/null
+++ b/recipes/palmpre/tsmd/tsmd
@@ -0,0 +1,38 @@
+#! /bin/sh
+#
+# tsmd -- This shell script starts and stops the tsmd daemon
+#
+# chkconfig: 345 10 10
+# description: a simple utility daemon which forwards all events from a independent device node to a more general uinput one
+# processname: tsmd
+
+PATH=/bin:/usr/bin:/sbin:/usr/sbin
+NAME=tsmd
+
+case "$1" in 
+    start)
+        echo -n "Starting tsmd: "
+        start-stop-daemon --start --pidfile /var/run/${NAME}.pid --make-pidfile --background -x /usr/bin/${NAME} -- -n /dev/touchscreen -f
+        if [ $? = 0 ]; then
+            echo "(ok)"
+        else
+            echo "(failed)"
+        fi
+        ;;
+    stop)
+        echo -n "Stopping tsmd: "
+        start-stop-daemon --stop --pidfile /var/run/${NAME}.pid --oknodo
+        rm -f /var/run/${NAME}.pid
+        echo "(done)"
+        ;;
+    restart|force-reload)
+        $0 stop
+        $0 start
+        ;;
+    *)
+        echo "Usage: /etc/init.d/tsmd {start|stop|restart|force-reload}"
+        exit 1
+        ;;
+esac
+
+exit 0
diff --git a/recipes/palmpre/tsmd_git.bb b/recipes/palmpre/tsmd_git.bb
new file mode 100644
index 0000000..839e176
--- /dev/null
+++ b/recipes/palmpre/tsmd_git.bb
@@ -0,0 +1,30 @@
+DESCRIPTION = "Touchscreen management daemon - manages the touchscreen of the palm pre machine"
+HOMEPAGE = "http://www.freesmartphone.org"
+AUTHOR = "Valéry Febvre <vfebvre@easter-eggs.com>
+SECTION = "base"
+LICENSE = "GPL"
+
+DEPENDS = "tslib"
+
+PR = "r0"
+PV = "1.0.0+gitr${SRCPV}"
+
+SRCREV = "798c26a7022decaebdaa829ec30852fdcf08f061"
+SRC_URI = " \
+ ${FREESMARTPHONE_GIT}/utilities.git;protocol=git;branch=master \
+ file://tsmd \
+"
+
+S = "${WORKDIR}/git/palmpre/tsmd"
+
+PACKAGE_ARCH = "${MACHINE_ARCH}"
+
+inherit autotools update-rc.d
+
+INITSCRIPT_NAME = "tsmd"
+INITSCRIPT_PARAMS = "defaults 00"
+
+do_install_append() {
+	install -d 0644 ${D}${sysconfdir}/init.d/
+	install -m 0755 ${WORKDIR}/${INITSCRIPT_NAME} ${D}${sysconfdir}/init.d/
+}
-- 
1.7.1




^ permalink raw reply related	[flat|nested] 26+ messages in thread

* [PATCH 04/15] netbase: powerup usb0 interface automatically on palmpre machine
  2010-10-18 18:51 More work on support for palmpre machine Simon Busch
                   ` (2 preceding siblings ...)
  2010-10-18 18:51 ` [PATCH 03/15] tsmd: add initial recipe Simon Busch
@ 2010-10-18 18:51 ` Simon Busch
  2010-10-31  8:54   ` Denis 'GNUtoo' Carikli
  2010-10-18 18:51 ` [PATCH 05/15] palmpre: prefer git version of tslib Simon Busch
                   ` (10 subsequent siblings)
  14 siblings, 1 reply; 26+ messages in thread
From: Simon Busch @ 2010-10-18 18:51 UTC (permalink / raw)
  To: openembedded-devel

Signed-off-by: Simon Busch <morphis@gravedo.de>
---
 recipes/netbase/netbase/palmpre/interfaces |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/recipes/netbase/netbase/palmpre/interfaces b/recipes/netbase/netbase/palmpre/interfaces
index ca2e007..17416c1 100644
--- a/recipes/netbase/netbase/palmpre/interfaces
+++ b/recipes/netbase/netbase/palmpre/interfaces
@@ -6,6 +6,7 @@ iface lo inet loopback
 
 # Ethernet/RNDIS gadget (g_ether)
 # ... or on host side, usbnet and random hwaddr
+auto usb0
 iface usb0 inet static
 	address 192.168.0.202
 	netmask 255.255.255.0
-- 
1.7.1




^ permalink raw reply related	[flat|nested] 26+ messages in thread

* [PATCH 05/15] palmpre: prefer git version of tslib
  2010-10-18 18:51 More work on support for palmpre machine Simon Busch
                   ` (3 preceding siblings ...)
  2010-10-18 18:51 ` [PATCH 04/15] netbase: powerup usb0 interface automatically on palmpre machine Simon Busch
@ 2010-10-18 18:51 ` Simon Busch
  2010-10-18 19:00   ` Martin Jansa
  2010-10-18 21:10   ` [PATCH 05/15] palmpre: prefer git version of tslib Koen Kooi
  2010-10-18 18:51 ` [PATCH 06/15] tslib: add patch for git version to compile cy8mrln plugin Simon Busch
                   ` (9 subsequent siblings)
  14 siblings, 2 replies; 26+ messages in thread
From: Simon Busch @ 2010-10-18 18:51 UTC (permalink / raw)
  To: openembedded-devel

The git version of tslib is currently the only one which has support for the cy8mrln
touchscreen which is used on the palmpre device.

Signed-off-by: Simon Busch <morphis@gravedo.de>
---
 conf/machine/palmpre.conf |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)

diff --git a/conf/machine/palmpre.conf b/conf/machine/palmpre.conf
index 2a62c30..f5852c5 100644
--- a/conf/machine/palmpre.conf
+++ b/conf/machine/palmpre.conf
@@ -20,6 +20,9 @@ require conf/machine/include/omap3.inc
 # Put it below omap3.inc as we override the kernel here
 PREFERRED_PROVIDER_virtual/kernel = "linux-palmpre"
 
+# We need the git version of tslib as this is the only one providing support for our
+# attached touchscreen
+PREFERRED_VERSION_tslib = "1.0+git%"
 
 IMAGE_FSTYPES += "tar.bz2"
 
-- 
1.7.1




^ permalink raw reply related	[flat|nested] 26+ messages in thread

* [PATCH 06/15] tslib: add patch for git version to compile cy8mrln plugin
  2010-10-18 18:51 More work on support for palmpre machine Simon Busch
                   ` (4 preceding siblings ...)
  2010-10-18 18:51 ` [PATCH 05/15] palmpre: prefer git version of tslib Simon Busch
@ 2010-10-18 18:51 ` Simon Busch
  2010-10-18 18:51 ` [PATCH 07/15] initscripts-shr: remove unused usb-gadget script for palmpre machine Simon Busch
                   ` (8 subsequent siblings)
  14 siblings, 0 replies; 26+ messages in thread
From: Simon Busch @ 2010-10-18 18:51 UTC (permalink / raw)
  To: openembedded-devel

The cy8mrln plugin needs the cy8mrln.h which is shipped with the kernel but currently not
deployed by any kernel-headers packages. So we include the header file for now directly
within tslib.

Signed-off-by: Simon Busch <morphis@gravedo.de>
---
 recipes/tslib/tslib/include-cy8mrln-header.patch |  613 ++++++++++++++++++++++
 recipes/tslib/tslib_git.bb                       |    3 +
 2 files changed, 616 insertions(+), 0 deletions(-)
 create mode 100644 recipes/tslib/tslib/include-cy8mrln-header.patch

diff --git a/recipes/tslib/tslib/include-cy8mrln-header.patch b/recipes/tslib/tslib/include-cy8mrln-header.patch
new file mode 100644
index 0000000..11e3e8f
--- /dev/null
+++ b/recipes/tslib/tslib/include-cy8mrln-header.patch
@@ -0,0 +1,613 @@
+From 139abce63c08a18d94b00af03c3cf39d9fcac507 Mon Sep 17 00:00:00 2001
+From: Simon Busch <morphis@gravedo.de>
+Date: Sat, 18 Sep 2010 11:41:43 +0200
+Subject: [PATCH] cy8mrln-palmpre: ship cy8mrln header file with tslib
+
+---
+ plugins/cy8mrln-palmpre.c |    2 +-
+ plugins/cy8mrln.h         |  575 +++++++++++++++++++++++++++++++++++++++++++++
+ 2 files changed, 576 insertions(+), 1 deletions(-)
+ create mode 100644 plugins/cy8mrln.h
+
+diff --git a/plugins/cy8mrln-palmpre.c b/plugins/cy8mrln-palmpre.c
+index fe94d21..a02add2 100644
+--- a/plugins/cy8mrln-palmpre.c
++++ b/plugins/cy8mrln-palmpre.c
+@@ -24,12 +24,12 @@
+ #include <sys/stat.h>
+ #include <sys/types.h>
+ #include <unistd.h>
+-#include <linux/spi/cy8mrln.h>
+ #include <stdint.h>
+ #include <stdio.h>
+ #include <stdlib.h>
+ #include <string.h>
+ #include <stddef.h>
++#include "cy8mrln.h"
+ #include "config.h"
+ #include "tslib-private.h"
+ #include "tslib-filter.h"
+diff --git a/plugins/cy8mrln.h b/plugins/cy8mrln.h
+new file mode 100644
+index 0000000..1d0b869
+--- /dev/null
++++ b/plugins/cy8mrln.h
+@@ -0,0 +1,575 @@
++/*
++ * Copyright (C) 2008-2009 Palm, Inc
++ *
++ * This program is free software; you can redistribute it and/or modify
++ * it under the terms of the GNU General Public License as published by
++ * the Free Software Foundation; version 2 of the License.
++ *
++ *
++ * This program is distributed in the hope that it will be useful,
++ * but WITHOUT ANY WARRANTY; without even the implied warranty of
++ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
++ * GNU General Public License for more details.
++ *
++ * You should have received a copy of the GNU General Public License
++ * along with this program; if not, write to the Free Software
++ * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
++ *
++ * This program is free software; you can redistribute it and/or modify
++ * it under the terms of the GNU General Public License version 2 as
++ * published by the Free Software Foundation.
++ *
++ */
++
++#ifndef __CY8MRLN_H
++#define __CY8MRLN_H
++
++#ifdef __KERNEL__
++#include <linux/spi/spi.h>
++#include <linux/ioctl.h>
++#include <linux/types.h>
++#endif /* __KERNEL */
++
++
++/* IOCTLs */
++#define CY8MRLN_IOCTL_GET_SCANRATE	_IOR('c', 0x01, int)
++#define CY8MRLN_IOCTL_GET_SLEEPMODE	_IOR('c', 0x02, int)
++#define CY8MRLN_IOCTL_GET_XFER_OPTION	_IOR('c', 0x03, int)
++#define CY8MRLN_IOCTL_GET_SPI_MODE	_IOR('c', 0x04, int)
++#define CY8MRLN_IOCTL_GET_SPI_CLOCK	_IOR('c', 0x05, int)
++#define CY8MRLN_IOCTL_GET_READ_OPTION	_IOR('c', 0x06, int)
++#define CY8MRLN_IOCTL_GET_VERBOSE_MODE	_IOR('c', 0x07, int)
++
++#define CY8MRLN_IOCTL_SET_SCANRATE	_IOW('c', 0x08, int)
++#define CY8MRLN_IOCTL_SET_SLEEPMODE	_IOW('c', 0x09, int)
++#define CY8MRLN_IOCTL_SET_XFER_OPTION	_IOW('c', 0x0a, int)
++#define CY8MRLN_IOCTL_SET_SPI_MODE	_IOW('c', 0x0b, char)
++#define CY8MRLN_IOCTL_SET_SPI_CLOCK	_IOW('c', 0x0c, int)
++#define CY8MRLN_IOCTL_SET_READ_OPTION	_IOW('c', 0x0d, int)
++#define CY8MRLN_IOCTL_SET_VERBOSE_MODE	_IOW('c', 0x0e, int)
++#define CY8MRLN_IOCTL_SET_BYTES		_IOW('c', 0x0f, int)
++#define CY8MRLN_IOCTL_GET_NUM_DATA_BYTES	_IOR('c', 0x10, int)
++#define CY8MRLN_IOCTL_SET_NUM_DATA_BYTES	_IOW('c', 0x11, int)
++#define CY8MRLN_IOCTL_GET_QUERY_DATA	_IOR('c', 0x12, unsigned short)
++#define CY8MRLN_IOCTL_SET_VECTORS	_IOW('c', 0x13, int)
++#define CY8MRLN_IOCTL_SET_PROG_PHASE	_IOW('c', 0x14, int)
++#define CY8MRLN_IOCTL_SET_FW_DATA	_IOW('c', 0x15, int)
++#define CY8MRLN_IOCTL_GET_TIMESTAMP_MODE _IOR('c', 0x16, int)
++#define CY8MRLN_IOCTL_SET_TIMESTAMP_MODE _IOW('c', 0x17, int)
++/* rpswtest */
++// The following two ioctls are deprecated
++// #define CY8MRLN_IOCTL_GET_CALIBRATION_MODE      _IOR('c', 0x18, int)
++// #define CY8MRLN_IOCTL_SET_CALIBRATION_MODE      _IOW('c', 0x19, int)
++#define CY8MRLN_IOCTL_GET_INTERLEAVED_SCAN_MODE _IOR('c', 0x1a, int)
++#define CY8MRLN_IOCTL_SET_INTERLEAVED_SCAN_MODE _IOW('c', 0x1b, int)
++
++/* Wake-On-Touch or WOT */
++//#define CY8MRLN_IOCTL_SET_WOT_MODE		_IOW('c', 0x1c, int)
++#define CY8MRLN_IOCTL_SET_WOT_THRESHOLD		_IOW('c', 0x1d, int)
++#define CY8MRLN_IOCTL_GET_WOT_THRESHOLD		_IOR('c', 0x1e, int)
++//#define CY8MRLN_IOCTL_SET_WOT_PRESCALER	_IOW('c', 0x1f, int)
++//#define CY8MRLN_IOCTL_GET_WOT_PRESCALER	_IOR('c', 0x20, int)
++
++/*
++ * The WOT SCAN Rate the rate at which the PSoC will
++ * wake up from sleep and perform a WOT scan
++ */
++#define CY8MRLN_IOCTL_GET_IDAC_TABLE		_IOR('c', 0x21, unsigned char[154])
++#define CY8MRLN_IOCTL_SET_WOT_SCANRATE		_IOW('c', 0x22, int)
++#define CY8MRLN_IOCTL_GET_WOT_SCANRATE		_IOR('c', 0x23, int)
++#define CY8MRLN_IOCTL_START_WOT_SCAN		_IOW('c', 0x24, int)
++#define CY8MRLN_IOCTL_GET_WOT_BASELINE_LO	_IOR('c', 0x25, int)
++#define CY8MRLN_IOCTL_GET_WOT_BASELINE_HI	_IOR('c', 0x26, int)
++#define CY8MRLN_IOCTL_SET_WOT_BASELINE_LO	_IOW('c', 0x27, int)
++#define CY8MRLN_IOCTL_SET_WOT_BASELINE_HI	_IOW('c', 0x28, int)
++#define CY8MRLN_IOCTL_GET_FPC_INFO			_IOR('c', 0x29, unsigned char)
++#define CY8MRLN_IOCTL_ENTER_WOT_RAW_DATA	_IOR('c', 0x30, int)
++#define CY8MRLN_IOCTL_EXIT_WOT_RAW_DATA		_IOR('c', 0x31, int)
++
++
++/*CY8MRLN_IOCTL_START_WOT_SCAN_FORCED: 
++ * Combines CY8MRLN_IOCTL_START_WOT_SCAN and CY8MRLN_IOCTL_SET_WOT_THRESHOLD
++ * in one IOCTLs.  I.E. the wot threshold is sent together with wot start request.
++ * This IOCTLE will ejects/force PSoC out of WOT mode so that the WOT sensitivity 
++ * specified in the IOCTL parameter will be used. 
++ */
++#define CY8MRLN_IOCTL_START_WOT_SCAN_FORCED	_IOW('c', 0x32, int)
++
++/*
++*  Used for forcing calibration of the IDAC outside of flashing and also storing that calibration
++*/
++#define CY8MRLN_IOCTL_IDAC_CALIBRATE			_IOW('c', 0x33, int)
++#define CY8MRLN_IOCTL_IDAC_CALIBRATION_STORE	_IOW('c', 0x34, int)
++
++/*
++*   Causes the PSoC to calibrate its internal low speed oscillator
++*/
++#define CY8MRLN_IOCTL_ILO_CALIBRATE		_IOW('c', 0x35, int)
++#define CY8MRLN_IOCTL_EXIT_WOT_SCAN		_IOR('c', 0x36, int)
++
++/* WOT Sensitivity/Threshold ranges */
++#define WOT_THRESHOLD_MIN 10
++#define WOT_THRESHOLD_MAX 73
++
++/* WOT Scan Rate Index */
++enum{
++	WOT_SCANRATE_512HZ = 0,
++	WOT_SCANRATE_256HZ,
++	WOT_SCANRATE_171HZ,
++	WOT_SCANRATE_128HZ
++};
++
++/* WOT MIN & MAX configuraton value for scan rate
++ * NB: min. value is max freq and 
++ *     max. value is min freq.
++ */
++#define WOT_SCANRATE_MAX	WOT_SCANRATE_128HZ
++#define WOT_SCANRATE_MIN	WOT_SCANRATE_512HZ
++
++/* debug */
++
++
++/* PSoC Power State */
++enum {
++	CY8MRLN_OFF_STATE = 0,
++	CY8MRLN_SLEEP_STATE,
++	CY8MRLN_ON_STATE
++};
++
++/* Scan/Version SPI data xfer method. */
++enum {
++	CY8MRLN_TWO_INT_THREE_SETUP_BYTES = 0,
++	CY8MRLN_TWO_INT_TWO_SETUP_BYTES,
++	CY8MRLN_ONE_INT_THREE_SETUP_BYTES,
++	CY8MRLN_ONE_INT_TWO_SETUP_BYTES,
++	CY8MRLN_ONE_INT_ZERO_SETUP_BYTES
++};
++
++/* DMA vs. PIO. */
++enum {
++	CY8MRLN_PIO_XFER_OPTION = 0,
++	CY8MRLN_DMA_XFER_OPTION
++};
++
++enum {
++	SCAN_AT_256HZ = 0,
++	SCAN_AT_170HZ,
++	SCAN_AT_128HZ,
++	SCAN_AT_102HZ
++};
++
++#define CY8MRLN_DEFALUT_NUM_DATA_BYTES		(7 * 11 * 2 + 4)
++
++/* PSoC Programming Vector Structure. */
++typedef struct cy8mrln_vector {
++	unsigned int id;
++	unsigned int bits;
++	unsigned int bytes;
++	unsigned char *data;
++} cy8mrln_vector_t;
++
++/* PSoC Hex FW file line structure. */
++typedef struct cy8mrln_fw_data {
++	unsigned int index;
++	unsigned int bytes;
++	unsigned int addr;
++	unsigned int type;
++	unsigned int checksum;
++	unsigned char *blk;
++} cy8mrln_fw_data_t;
++
++struct cy8mrln_platform_data {
++	int xres_gpio;		/* not used. */
++	int enable_gpio;
++	int scl_gpio;		/* Programming mode clk */
++	int mosi_gpio;		/* Used for SDA line mirroring in programming */
++	int sda_gpio;		/* Programming mode data */
++	int flip_x;		/* Flip the X coordinate? */
++	int flip_y;		/* Flip the Y coordinate? */
++	/* Function pointer that switches between the programming
++	 * mode and the normal functional mode.
++	 */
++	int (*switch_mode)(int flag);
++};
++
++/* SPI stuff. */
++#define SPI_READ_BIT			0x80
++#define CY8MRLN_DATA_REG_START		0x00
++#define CY8MRLN_CONTROL_REG		0x00
++
++/* Command definitions. */
++#define CY8MRLN_WAKE_UP				0x00
++#define CY8MRLN_GO_ACTIVE			0x00
++#define CY8MRLN_SCAN_START			0x01
++#define CY8MRLN_SLEEP				0x02
++#define CY8MRLN_QUERY				0x04
++#define CY8MRLN_STORE_IDAC_CALIBRATION		0x08
++#define CY8MRLN_CALIBRATE_IDAC			0x0A
++#define CY8MRLN_AUTO_SCAN			0x0B
++#define CY8MRLN_CALIBRATE_ILO			0x0C
++#define CY8MRLN_BASELINE_ADJUST			0x0D
++#define CY8MRLN_WOT_RAW_DATA			0x0F
++#define CY8MRLN_CMD_INVALID			0xFF
++
++
++enum {
++		WOT_DBG_OFF = 0,	//0 OFF
++		WOT_DBG_ON_PENDING,	//1 ON_P
++		WOT_DBG_ON,		//2 ON
++		WOT_DBG_OFF_PENDING 	//3 OFF_P
++};
++
++/* 11_0A is the latest version. The 08_0c is the initial
++ * version of FW that actually doesn't support QUERY
++ * command.
++ */
++#define VERSION_11_0A                   0x110a
++#define VERSION_08_0C                   0x080c
++
++/* PSoC Programming Vectors. These vectors are defined
++ * by Cypress and reside in user space updater application.
++ */
++enum {
++        INIT1 = 0,
++        INIT2,
++        INIT3_5V,
++        INIT3_3V,
++        ID_SETUP,
++        TARGET_ID,
++        READ_ID,
++        ERASE_ALL,
++        SET_BANK_NUMBER,
++        SET_BANK_NUMBER_END,
++        WRITE_BYTE_START,
++        WRITE_BYTE_END,
++        SET_BLOCK_NUMBER,
++        SET_BLOCK_NUMBER_END,
++        PROGRAM_BLOCK,
++        VERIFY_SETUP,
++        READ_BYTE,
++        SECURITY,
++        CHECKSUM,
++        READ_CHECKSUM,
++        WAIT_AND_POLL_END,
++        NUM_VECTORS
++};
++
++
++/* Different phases of programming the PSoC. */
++enum {
++	NORM_OP = 0,
++	INIT_VECTORS,
++	INIT_TARGET,
++	VERIFY_ID,
++	PROGRAM,
++	VERIFY,
++	SECURE,
++	VERIFY_CHECKSUM,
++	EXIT_PROG
++};
++
++/* Different types of Cypress Hex FW data. */
++enum {
++	FW_START = 0,
++	FW_END = 255,
++	SECURITY_OFFSET = 256,
++	SECURITY_DATA = 257,
++	CHECKSUM_OFFSET = 258,
++	CHECKSUM_DATA = 259,
++	END_OF_FILE = 260,
++	NUM_FW_LINES = 261
++};
++
++#define NUM_TP_DRV_STATUS_REG_BYTES 1
++#define DRV_STATUS_MASK__BUF_OVERFLOW 		0x80
++
++#define TP_DRV_STATUS_REG__FRAME_TYPE_MASK	0x60
++#define FRAME_TYPE_MASK__NORMAL_SCAN		0x00
++#define FRAME_TYPE_MASK__WOT_ENTRY_SCAN 	0x20
++#define FRAME_TYPE_MASK__WOT_EXIT_SCAN 		0x40
++
++/* Cypress PSoC Attributes. */
++
++// ****************************************************************************
++// ************* USER ATTENTION REQUIRED: TARGET SUPPLY VOLTAGE ***************
++// ****************************************************************************
++// This directive causes the proper Initialization vector #3 to be sent
++// to the Target, based on what the Target Vdd programming voltage will
++// be. Either 5V (if #define enabled) or 3.3V (if #define disabled).
++//#define TARGET_VOLTAGE_IS_5V
++
++
++// ****************************************************************************
++// **************** USER ATTENTION REQUIRED: PROGRAMMING MODE *****************
++// ****************************************************************************
++// This directive selects whether code that uses reset programming mode or code
++// that uses power cycle programming is use. Reset programming mode uses the
++// external reset pin (XRES) to enter programming mode. Power cycle programming
++// mode uses the power-on reset to enter programming mode.
++// Applying signals to various pins on the target device must be done in a
++// deliberate order when using power cycle mode. Otherwise, high signals to GPIO
++// pins on the target will power the PSoC through the protection diodes.
++//#define RESET_MODE
++
++// ****************************************************************************
++// ****************** USER ATTENTION REQUIRED: TARGET PSOC ********************
++// ****************************************************************************
++// The directives below enable support for various PSoC devices. The root part
++// number to be programmed should be un-commented so that its value becomes
++// defined.  All other devices should be commented out.
++// Select one device to be supported below:
++
++// **** CY8C21x23 devices ****
++//#define CY8C21123
++//#define CY8C21223
++//#define CY8C21323
++//#define CY8C21002
++
++// **** CY8C21x34 devices ****
++//#define CY8C21234
++//#define CY8C21334
++//#define CY8C21434
++//#define CY8C21534
++//#define CY8C21634
++//#define CY8C21001
++
++// **** CY8C24x23A devices ****
++//#define CY8C24123A
++//#define CY8C24223A
++//#define CY8C24423A
++//#define CY8C24000A
++
++// **** CY8C24x94 devices ****
++//#define CY8C24794
++#define CY8C24894
++//#define CY8C24994
++//#define CY8C24094
++
++// **** CY8C27x34 devices ****
++//#define CY8C27143
++//#define CY8C27243
++//#define CY8C27443
++//#define CY8C27543
++//#define CY8C27643
++//#define CY8C27002
++
++// **** CY8C29x66 devices ****
++//#define CY8C29466
++//#define CY8C29566
++//#define CY8C29666
++//#define CY8C29866
++//#define CY8C29002
++
++//-----------------------------------------------------------------------------
++// This section sets the Family that has been selected. These are used to
++// simplify other conditional compilation blocks.
++//-----------------------------------------------------------------------------
++#ifdef CY8C21123
++    #define CY8C21x23
++#endif
++#ifdef CY8C21223
++    #define CY8C21x23
++#endif
++#ifdef CY8C21323
++    #define CY8C21x23
++#endif
++#ifdef CY8C21002
++    #define CY8C21x23
++#endif
++#ifdef CY8C21234
++    #define CY8C21x34
++#endif
++#ifdef CY8C21334
++    #define CY8C21x34
++#endif
++#ifdef CY8C21434
++    #define CY8C21x34
++#endif
++#ifdef CY8C21534
++    #define CY8C21x34
++#endif
++#ifdef CY8C21634
++    #define CY8C21x34
++#endif
++#ifdef CY8C21001
++    #define CY8C21x34
++#endif
++#ifdef CY8C24123A
++    #define CY8C24x23A
++#endif
++#ifdef CY8C24223A
++    #define CY8C24x23A
++#endif
++#ifdef CY8C24423A
++    #define CY8C24x23A
++#endif
++#ifdef CY8C24000A
++    #define CY8C24x23A
++#endif
++#ifdef CY8C24794
++    #define CY8C24x94
++#endif
++#ifdef CY8C24894
++    #define CY8C24x94
++#endif
++#ifdef CY8C24994
++    #define CY8C24x94
++#endif
++#ifdef CY8C24094
++    #define CY8C24x94
++#endif
++#ifdef CY8C27143
++    #define CY8C27x43
++#endif
++#ifdef CY8C27243
++    #define CY8C27x43
++#endif
++#ifdef CY8C27443
++    #define CY8C27x43
++#endif
++#ifdef CY8C27543
++    #define CY8C27x43
++#endif
++#ifdef CY8C27643
++    #define CY8C27x43
++#endif
++#ifdef CY8C27002
++    #define CY8C27x43
++#endif
++#ifdef CY8C29466
++    #define CY8C29x66
++#endif
++#ifdef CY8C29566
++    #define CY8C29x66
++#endif
++#ifdef CY8C29666
++    #define CY8C29x66
++#endif
++#ifdef CY8C29866
++    #define CY8C29x66
++#endif
++#ifdef CY8C29002
++    #define CY8C29x66
++#endif
++//-----------------------------------------------------------------------------
++// The directives below are used to define various sets of vectors that differ
++// for more than one set of PSoC parts.
++//-----------------------------------------------------------------------------
++// **** Select a Checksum Setup Vector ****
++#ifdef CY8C21x23
++    #define CHECKSUM_SETUP_21_27
++#endif
++#ifdef CY8C21x34
++    #define CHECKSUM_SETUP_21_27
++#endif
++#ifdef CY8C24x23A
++    #define CHECKSUM_SETUP_24_24A
++#endif
++#ifdef CY8C24x94
++    #define CHECKSUM_SETUP_24_29
++#endif
++#ifdef CY8C27x43
++    #define CHECKSUM_SETUP_21_27
++#endif
++#ifdef CY8C29x66
++    #define CHECKSUM_SETUP_24_29
++#endif
++
++// **** Select a Program Block Vector ****
++#ifdef CY8C21x23
++    #define PROGRAM_BLOCK_21_24_29
++#endif
++#ifdef CY8C21x34
++    #define PROGRAM_BLOCK_21_24_29
++#endif
++#ifdef CY8C24x23A
++    #define PROGRAM_BLOCK_21_24_29
++#endif
++#ifdef CY8C24x94
++    #define PROGRAM_BLOCK_21_24_29
++#endif
++#ifdef CY8C27x43
++    #define PROGRAM_BLOCK_27
++#endif
++#ifdef CY8C29x66
++    #define PROGRAM_BLOCK_21_24_29
++#endif
++
++//-----------------------------------------------------------------------------
++// The directives below are used to control switching banks if the device is
++// has multiple banks of Flash.
++//-----------------------------------------------------------------------------
++// **** Select a Checksum Setup Vector ****
++#ifdef CY8C24x94
++    #define MULTI_BANK
++#endif
++#ifdef CY8C29x66
++    #define MULTI_BANK
++#endif
++
++/* Block-Verify Uses 64-Bytes of RAM */
++#define TARGET_DATABUFF_LEN    64
++
++/* The number of Flash blocks in each part is defined here. This is used in
++ * main programming loop when programming and verifying the blocks.
++ */
++#ifdef CY8C21x23
++    #define NUM_BANKS                     1
++    #define BLOCKS_PER_BANK              64
++    #define SECURITY_BYTES_PER_BANK      64
++#endif
++#ifdef CY8C21x34
++    #define NUM_BANKS                     1
++    #define BLOCKS_PER_BANK             128
++    #define SECURITY_BYTES_PER_BANK      64
++#endif
++#ifdef CY8C24x23A
++    #define NUM_BANKS                     1
++    #define BLOCKS_PER_BANK              64
++    #define SECURITY_BYTES_PER_BANK      64
++#endif
++#ifdef CY8C24x94
++    #define NUM_BANKS                     2
++    #define BLOCKS_PER_BANK             128
++    #define SECURITY_BYTES_PER_BANK      32
++#endif
++#ifdef CY8C27x43
++    #define NUM_BANKS                     1
++    #define BLOCKS_PER_BANK             256
++    #define SECURITY_BYTES_PER_BANK      64
++#endif
++#ifdef CY8C29x66
++    #define NUM_BANKS                     4
++    #define BLOCKS_PER_BANK             128
++    #define SECURITY_BYTES_PER_BANK      32
++#endif
++
++
++/* In system programming error code. */
++#define PASS		(0)
++#define HILOW_ERROR	(-1)
++#define SI_ID_ERROR	(-2)
++#define VERIFY_ERROR	(-3)
++#define CHECKSUM_ERROR	(-4)
++
++
++/* TRANSITION_TIMEOUT is a loop counter for a 100msec timeout when waiting for
++ * a high-to-low transition. Each pass through the loop takes approximately 15
++ * usec. 100 msec is about 6740 loops.
++ */
++#define TRANSITION_TIMEOUT    	6740
++
++/* XRES_DELAY is the time duration for which XRES is asserted. This defines
++ * a 63 usec delay.
++ * The minimum Xres time (from the device datasheet) is 10 usec.
++ */
++#define XRES_CLK_DELAY   	63
++
++/* POWER_CYCLE_DELAY is the time required when power is cycled to the target
++ * device to create a power reset after programming has been completed. The
++ * actual time of this delay will vary from system to system depending on the
++ * bypass capacitor size.  A delay of 1000 usec is used here.
++ */
++#define POWER_CYCLE_DELAY	1000
++
++#endif //__CY8MRLN_H
+-- 
+1.7.1
+
diff --git a/recipes/tslib/tslib_git.bb b/recipes/tslib/tslib_git.bb
index 63e6645..d06b158 100644
--- a/recipes/tslib/tslib_git.bb
+++ b/recipes/tslib/tslib_git.bb
@@ -8,6 +8,9 @@ DEFAULT_PREFERENCE = "-1"
 
 # move this to tslib.inc when upstream releases a new version which includes support for
 # the palmpre machine
+SRC_URI_append_palmpre = " \
+  file://include-cy8mrln-header.patch \
+"
 EXTRA_OECONF_palmpre = " \
    --enable-shared \
    --enable-cy8mrln-palmpre \
-- 
1.7.1




^ permalink raw reply related	[flat|nested] 26+ messages in thread

* [PATCH 07/15] initscripts-shr: remove unused usb-gadget script for palmpre machine
  2010-10-18 18:51 More work on support for palmpre machine Simon Busch
                   ` (5 preceding siblings ...)
  2010-10-18 18:51 ` [PATCH 06/15] tslib: add patch for git version to compile cy8mrln plugin Simon Busch
@ 2010-10-18 18:51 ` Simon Busch
  2010-10-18 18:58   ` Martin Jansa
  2010-10-18 18:51 ` [PATCH 08/15] tellbootie: add initial git version Simon Busch
                   ` (7 subsequent siblings)
  14 siblings, 1 reply; 26+ messages in thread
From: Simon Busch @ 2010-10-18 18:51 UTC (permalink / raw)
  To: openembedded-devel

This script was resonsible for activating networking over usb but is not needed anymore as
our default kernel for the palmpre machine activates usb networking per default.

Signed-off-by: Simon Busch <morphis@gravedo.de>
---
 recipes/shr/initscripts-shr/palmpre/usb-gadget.sh |   10 ----------
 recipes/shr/initscripts-shr_0.0.1.bb              |    8 +-------
 2 files changed, 1 insertions(+), 17 deletions(-)
 delete mode 100644 recipes/shr/initscripts-shr/palmpre/usb-gadget.sh

diff --git a/recipes/shr/initscripts-shr/palmpre/usb-gadget.sh b/recipes/shr/initscripts-shr/palmpre/usb-gadget.sh
deleted file mode 100644
index d755495..0000000
--- a/recipes/shr/initscripts-shr/palmpre/usb-gadget.sh
+++ /dev/null
@@ -1,10 +0,0 @@
-#!/bin/sh
-
-# usb gadget configuration:
-# there already different configurations on the palm pre defined,
-# we choose nr 5 cause it provides the usbnet, novacom
-# and storage gadget
-if [ -e /sys/class/usb_gadget/config_num ]; then
-	echo 5 > /sys/class/usb_gadget/config_num
-fi
-
diff --git a/recipes/shr/initscripts-shr_0.0.1.bb b/recipes/shr/initscripts-shr_0.0.1.bb
index 120c325..e4dc736 100644
--- a/recipes/shr/initscripts-shr_0.0.1.bb
+++ b/recipes/shr/initscripts-shr_0.0.1.bb
@@ -5,7 +5,7 @@ DEPENDS = ""
 RDEPENDS_${PN} = "procps"
 LICENSE = "GPL"
 PV = "0.0.1"
-PR = "r19"
+PR = "r20"
 
 RCONFLICTS_${PN} = "initscripts"
 
@@ -31,7 +31,6 @@ SRC_URI = "file://alignment.sh \
 	   file://umountfs \
 	   file://umountnfs.sh \
 	   "
-SRC_URI_append_palmpre = " file://usb-gadget.sh"
 
 inherit base
 
@@ -75,11 +74,6 @@ do_install () {
 	install -m 0755	${WORKDIR}/umountfs		${D}${sysconfdir}/init.d
 	install -m 0755	${WORKDIR}/umountnfs.sh		${D}${sysconfdir}/init.d
 
-	if [ "${MACHINE}" == "palmpre" ]; then
-		install -m 0755 ${WORKDIR}/usb-gadget.sh ${D}${sysconfdir}/init.d
-		ln -sf ../init.d/usb-gadget.sh ${D}${sysconfdir}/rcS.d/S00usb-gadget.sh
-	fi
-
 #
 # Create runlevel links
 #
-- 
1.7.1




^ permalink raw reply related	[flat|nested] 26+ messages in thread

* [PATCH 08/15] tellbootie: add initial git version
  2010-10-18 18:51 More work on support for palmpre machine Simon Busch
                   ` (6 preceding siblings ...)
  2010-10-18 18:51 ` [PATCH 07/15] initscripts-shr: remove unused usb-gadget script for palmpre machine Simon Busch
@ 2010-10-18 18:51 ` Simon Busch
  2010-10-18 18:51 ` [PATCH 09/15] palmpre-audio-scripts: add initial version Simon Busch
                   ` (6 subsequent siblings)
  14 siblings, 0 replies; 26+ messages in thread
From: Simon Busch @ 2010-10-18 18:51 UTC (permalink / raw)
  To: openembedded-devel

tellbootie is a little utility for the palmpre machine which tells the bootloader over
some spare space in the memory about what to do on next restart (e.g. fall in recovery
mode).

Signed-off-by: Simon Busch <morphis@gravedo.de>
---
 recipes/palmpre/tellbootie_git.bb |   14 ++++++++++++++
 1 files changed, 14 insertions(+), 0 deletions(-)
 create mode 100644 recipes/palmpre/tellbootie_git.bb

diff --git a/recipes/palmpre/tellbootie_git.bb b/recipes/palmpre/tellbootie_git.bb
new file mode 100644
index 0000000..65c0cd6
--- /dev/null
+++ b/recipes/palmpre/tellbootie_git.bb
@@ -0,0 +1,14 @@
+DESCRIPTION = "Little utility to tell the bootloader of the palmpre to reboot/reset in bootloader mode; palmpre machine specific"
+HOMEPAGE = "http://www.freesmartphone.org"
+AUTHOR = "Simon Busch <morphis@gravedo.de>
+SECTION = "console/utils"
+LICENSE = "GPL"
+PR = "r0"
+
+SRCREV = "93a640dafa8ebebdb1a03f051cb1b566629b227c"
+SRC_URI = "${FREESMARTPHONE_GIT}/utilities.git;protocol=git;branch=master"
+S = "${WORKDIR}/git/palmpre/tellbootie"
+
+PACKAGE_ARCH = "${MACHINE_ARCH}"
+
+inherit autotools
-- 
1.7.1




^ permalink raw reply related	[flat|nested] 26+ messages in thread

* [PATCH 09/15] palmpre-audio-scripts: add initial version
  2010-10-18 18:51 More work on support for palmpre machine Simon Busch
                   ` (7 preceding siblings ...)
  2010-10-18 18:51 ` [PATCH 08/15] tellbootie: add initial git version Simon Busch
@ 2010-10-18 18:51 ` Simon Busch
  2010-10-18 18:51 ` [PATCH 10/15] tslib: fix typo in palmpre machine ts.conf file and switch to raw module Simon Busch
                   ` (5 subsequent siblings)
  14 siblings, 0 replies; 26+ messages in thread
From: Simon Busch @ 2010-10-18 18:51 UTC (permalink / raw)
  To: openembedded-devel

For the palmpre machine some special audio scripts are needed to do audio routing, as it
is not possible to do audio routing with common tools used on other machines.

Signed-off-by: Simon Busch <morphis@gravedo.de>
---
 recipes/palmpre/palmpre-audio-scripts_1.0.bb |   23 +++++++++++++++++++++++
 1 files changed, 23 insertions(+), 0 deletions(-)
 create mode 100644 recipes/palmpre/palmpre-audio-scripts_1.0.bb

diff --git a/recipes/palmpre/palmpre-audio-scripts_1.0.bb b/recipes/palmpre/palmpre-audio-scripts_1.0.bb
new file mode 100644
index 0000000..48332e7
--- /dev/null
+++ b/recipes/palmpre/palmpre-audio-scripts_1.0.bb
@@ -0,0 +1,23 @@
+DESCRIPTION = "Audio scripts necessary for audio routing on the palmpre machine"
+HOMEPAGE = "http://www.palm.com/"
+AUTHOR = "Palm Inc."
+SECTION = "console/utils"
+LICENSE = "Palm"
+
+PR = "r0"
+SRC_URI = "http://downloads.freesmartphone.org/palmpre-audio-scripts_${PV}.tar.bz2"
+
+SRC_URI[md5sum] = "3e263163203ce66ae5f3a75776971d73"
+SRC_URI[sha256sum] = "044bbd9879f6e46b21c675421501f8920a4cab3ed4623259e2a52abecccd114e"
+
+PACKAGE_ARCH = "${MACHINE_ARCH}"
+
+do_install() {
+	install -d ${D}${sysconfdir}/audio/scripts
+	
+	for script in `ls ${WORKDIR}/*.txt`
+	do
+		install -m 0644 "${script}" "${D}${sysconfdir}/audio/scripts"
+	done
+}
+
-- 
1.7.1




^ permalink raw reply related	[flat|nested] 26+ messages in thread

* [PATCH 10/15] tslib: fix typo in palmpre machine ts.conf file and switch to raw module
  2010-10-18 18:51 More work on support for palmpre machine Simon Busch
                   ` (8 preceding siblings ...)
  2010-10-18 18:51 ` [PATCH 09/15] palmpre-audio-scripts: add initial version Simon Busch
@ 2010-10-18 18:51 ` Simon Busch
  2010-10-18 18:51 ` [PATCH 11/15] linux-palmpre: bump git SRCREV for devtmpfs support Simon Busch
                   ` (4 subsequent siblings)
  14 siblings, 0 replies; 26+ messages in thread
From: Simon Busch @ 2010-10-18 18:51 UTC (permalink / raw)
  To: openembedded-devel

Signed-off-by: Simon Busch <morphis@gravedo.de>
---
 recipes/tslib/tslib.inc             |    2 +-
 recipes/tslib/tslib/palmpre/ts.conf |    2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/recipes/tslib/tslib.inc b/recipes/tslib/tslib.inc
index 4c4cda1..2994015 100644
--- a/recipes/tslib/tslib.inc
+++ b/recipes/tslib/tslib.inc
@@ -3,7 +3,7 @@ HOMEPAGE = "http://tslib.berlios.de/"
 AUTHOR = "Russell King w/ plugins by Chris Larson et. al."
 SECTION = "base"
 LICENSE = "LGPLv2"
-INC_PR = "r27"
+INC_PR = "r28"
 
 SRC_URI += "\
   file://ts.conf \
diff --git a/recipes/tslib/tslib/palmpre/ts.conf b/recipes/tslib/tslib/palmpre/ts.conf
index 8857e8d..09d22d4 100644
--- a/recipes/tslib/tslib/palmpre/ts.conf
+++ b/recipes/tslib/tslib/palmpre/ts.conf
@@ -1,7 +1,7 @@
 # Uncomment if you wish to use the linux input layer event interface
 # module_raw input
 
-module cry8mrln_palmpre
+module_raw cy8mrln_palmpre
 
 # Uncomment if you're using a Sharp Zaurus SL-5500/SL-5000d
 # module_raw collie
-- 
1.7.1




^ permalink raw reply related	[flat|nested] 26+ messages in thread

* [PATCH 11/15] linux-palmpre: bump git SRCREV for devtmpfs support
  2010-10-18 18:51 More work on support for palmpre machine Simon Busch
                   ` (9 preceding siblings ...)
  2010-10-18 18:51 ` [PATCH 10/15] tslib: fix typo in palmpre machine ts.conf file and switch to raw module Simon Busch
@ 2010-10-18 18:51 ` Simon Busch
  2010-10-18 18:51 ` [PATCH 12/15] linux-palmpre: enable devtmpfs per default but do not auto mount it Simon Busch
                   ` (3 subsequent siblings)
  14 siblings, 0 replies; 26+ messages in thread
From: Simon Busch @ 2010-10-18 18:51 UTC (permalink / raw)
  To: openembedded-devel

Signed-off-by: Simon Busch <morphis@gravedo.de>
---
 recipes/linux/linux-palmpre_git.bb |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/recipes/linux/linux-palmpre_git.bb b/recipes/linux/linux-palmpre_git.bb
index 47d71de..208b7bd 100644
--- a/recipes/linux/linux-palmpre_git.bb
+++ b/recipes/linux/linux-palmpre_git.bb
@@ -11,7 +11,7 @@ file://defconfig \
 
 S = "${WORKDIR}/git/"
 
-SRCREV = "96eba42952e860f652e66a72569319dfd35756dc"
+SRCREV = "33239e4074f4716a674b450a443b64add201bf39"
 KV = "2.6.24"
 PR="r2"
 PV = "${KV}+gitr${SRCPV}"
-- 
1.7.1




^ permalink raw reply related	[flat|nested] 26+ messages in thread

* [PATCH 12/15] linux-palmpre: enable devtmpfs per default but do not auto mount it
  2010-10-18 18:51 More work on support for palmpre machine Simon Busch
                   ` (10 preceding siblings ...)
  2010-10-18 18:51 ` [PATCH 11/15] linux-palmpre: bump git SRCREV for devtmpfs support Simon Busch
@ 2010-10-18 18:51 ` Simon Busch
  2010-10-18 18:51 ` [PATCH 13/15] initscripts-shr: add mountdevtmpfs init script for palmpre machine Simon Busch
                   ` (2 subsequent siblings)
  14 siblings, 0 replies; 26+ messages in thread
From: Simon Busch @ 2010-10-18 18:51 UTC (permalink / raw)
  To: openembedded-devel

Signed-off-by: Simon Busch <morphis@gravedo.de>
---
 recipes/linux/linux-palmpre/defconfig |    4 +++-
 recipes/linux/linux-palmpre_git.bb    |    2 +-
 2 files changed, 4 insertions(+), 2 deletions(-)

diff --git a/recipes/linux/linux-palmpre/defconfig b/recipes/linux/linux-palmpre/defconfig
index 7bdaf0c..7cf2f6b 100644
--- a/recipes/linux/linux-palmpre/defconfig
+++ b/recipes/linux/linux-palmpre/defconfig
@@ -1,7 +1,7 @@
 #
 # Automatically generated make config: don't edit
 # Linux kernel version: 2.6.24-palm
-# Wed May 26 09:04:32 2010
+# Thu Sep 30 06:47:30 2010
 #
 CONFIG_ARM=y
 CONFIG_SYS_SUPPORTS_APM_EMULATION=y
@@ -684,6 +684,8 @@ CONFIG_IEEE80211=m
 # Generic Driver Options
 #
 CONFIG_UEVENT_HELPER_PATH="/sbin/hotplug"
+CONFIG_DEVTMPFS=y
+# CONFIG_DEVTMPFS_MOUNT is not set
 CONFIG_STANDALONE=y
 CONFIG_PREVENT_FIRMWARE_BUILD=y
 CONFIG_FW_LOADER=y
diff --git a/recipes/linux/linux-palmpre_git.bb b/recipes/linux/linux-palmpre_git.bb
index 208b7bd..4669a1a 100644
--- a/recipes/linux/linux-palmpre_git.bb
+++ b/recipes/linux/linux-palmpre_git.bb
@@ -13,7 +13,7 @@ S = "${WORKDIR}/git/"
 
 SRCREV = "33239e4074f4716a674b450a443b64add201bf39"
 KV = "2.6.24"
-PR="r2"
+PR="r3"
 PV = "${KV}+gitr${SRCPV}"
 
 # linux.inc overrides LOCAVERSION but we like to stay with the one used originally
-- 
1.7.1




^ permalink raw reply related	[flat|nested] 26+ messages in thread

* [PATCH 13/15] initscripts-shr: add mountdevtmpfs init script for palmpre machine
  2010-10-18 18:51 More work on support for palmpre machine Simon Busch
                   ` (11 preceding siblings ...)
  2010-10-18 18:51 ` [PATCH 12/15] linux-palmpre: enable devtmpfs per default but do not auto mount it Simon Busch
@ 2010-10-18 18:51 ` Simon Busch
  2010-10-20  8:04   ` Klaus 'mrmoku' Kurzmann
  2010-10-18 18:51 ` [PATCH 14/15] xserver-xorg-conf: switch from plain tslib access to evdev for touchscreen on " Simon Busch
  2010-10-18 18:51 ` [PATCH 15/15] palmpre: add some utilities to MACHINE_EXTRA_RDEPEND Simon Busch
  14 siblings, 1 reply; 26+ messages in thread
From: Simon Busch @ 2010-10-18 18:51 UTC (permalink / raw)
  To: openembedded-devel

On the palmpre machine we are currently come into the SHR rootfs through mounting it from
/boot and switch the rootfs via pivot_root. So we can't automatically mount devtmpfs on
/dev. Instead we do this right after SHR begins to boot and before any other filesystem is
mounted on the new rootfs.

Signed-off-by: Simon Busch <morphis@gravedo.de>
---
 .../shr/initscripts-shr/palmpre/mountdevtmpfs.sh   |    9 +++++++++
 recipes/shr/initscripts-shr_0.0.1.bb               |    9 ++++++++-
 2 files changed, 17 insertions(+), 1 deletions(-)
 create mode 100644 recipes/shr/initscripts-shr/palmpre/mountdevtmpfs.sh

diff --git a/recipes/shr/initscripts-shr/palmpre/mountdevtmpfs.sh b/recipes/shr/initscripts-shr/palmpre/mountdevtmpfs.sh
new file mode 100644
index 0000000..dbeb7c0
--- /dev/null
+++ b/recipes/shr/initscripts-shr/palmpre/mountdevtmpfs.sh
@@ -0,0 +1,9 @@
+#!/bin/sh
+
+mount -t devtmpfs -o mode=0755,nr_inodes=0 devtmpfs /dev
+
+# Create additional nodes which devtmpfs does not provide
+test -c /dev/fd || ln -s /proc/self/fd /dev/fd
+test -c /dev/stdin || ln -s fd/0 /dev/stdin
+test -c /dev/stdout || ln -s fd/1 /dev/stdout
+test -c /dev/stderr || ln -s fd/2 /dev/stderr
diff --git a/recipes/shr/initscripts-shr_0.0.1.bb b/recipes/shr/initscripts-shr_0.0.1.bb
index e4dc736..ce76fbd 100644
--- a/recipes/shr/initscripts-shr_0.0.1.bb
+++ b/recipes/shr/initscripts-shr_0.0.1.bb
@@ -5,7 +5,7 @@ DEPENDS = ""
 RDEPENDS_${PN} = "procps"
 LICENSE = "GPL"
 PV = "0.0.1"
-PR = "r20"
+PR = "r21"
 
 RCONFLICTS_${PN} = "initscripts"
 
@@ -32,6 +32,8 @@ SRC_URI = "file://alignment.sh \
 	   file://umountnfs.sh \
 	   "
 
+SRC_URI_append_palmpre = " file://mountdevtmpfs.sh"
+
 inherit base
 
 do_install () {
@@ -74,6 +76,11 @@ do_install () {
 	install -m 0755	${WORKDIR}/umountfs		${D}${sysconfdir}/init.d
 	install -m 0755	${WORKDIR}/umountnfs.sh		${D}${sysconfdir}/init.d
 
+	if [ "${MACHINE}" == "palmpre" ]; then
+		install -m 0755 ${WORKDIR}/mountdevtmpfs.sh ${D}${sysconfdir}/init.d
+		ln -sf ../init.d/mountdevtmpfs.sh ${D}${sysconfdir}/rcS.d/S03mountdevtmpfs.sh
+	fi
+
 #
 # Create runlevel links
 #
-- 
1.7.1




^ permalink raw reply related	[flat|nested] 26+ messages in thread

* [PATCH 14/15] xserver-xorg-conf: switch from plain tslib access to evdev for touchscreen on palmpre machine
  2010-10-18 18:51 More work on support for palmpre machine Simon Busch
                   ` (12 preceding siblings ...)
  2010-10-18 18:51 ` [PATCH 13/15] initscripts-shr: add mountdevtmpfs init script for palmpre machine Simon Busch
@ 2010-10-18 18:51 ` Simon Busch
  2010-10-18 21:11   ` Koen Kooi
  2010-10-18 18:51 ` [PATCH 15/15] palmpre: add some utilities to MACHINE_EXTRA_RDEPEND Simon Busch
  14 siblings, 1 reply; 26+ messages in thread
From: Simon Busch @ 2010-10-18 18:51 UTC (permalink / raw)
  To: openembedded-devel

Signed-off-by: Simon Busch <morphis@gravedo.de>
---
 .../xserver-xorg-conf/palmpre/xorg.conf            |    4 ++--
 recipes/xorg-xserver/xserver-xorg-conf_0.1.bb      |    2 +-
 2 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/recipes/xorg-xserver/xserver-xorg-conf/palmpre/xorg.conf b/recipes/xorg-xserver/xserver-xorg-conf/palmpre/xorg.conf
index 87001f0..08e99e8 100644
--- a/recipes/xorg-xserver/xserver-xorg-conf/palmpre/xorg.conf
+++ b/recipes/xorg-xserver/xserver-xorg-conf/palmpre/xorg.conf
@@ -31,8 +31,8 @@ EndSection
 
 Section "InputDevice"
     Identifier  "Touchscreen"
-    Driver      "tslib"
-    Option      "Device"                "/dev/touchscreen"
+    Driver      "evdev"
+    Option      "Device"                "/dev/input/event6"
     Option      "CorePointer"           "true"
     Option      "SendCoreEvents"        "true"
     Option      "Protocol"              "Auto"
diff --git a/recipes/xorg-xserver/xserver-xorg-conf_0.1.bb b/recipes/xorg-xserver/xserver-xorg-conf_0.1.bb
index fd62ee2..21dac99 100644
--- a/recipes/xorg-xserver/xserver-xorg-conf_0.1.bb
+++ b/recipes/xorg-xserver/xserver-xorg-conf_0.1.bb
@@ -1,5 +1,5 @@
 DESCRIPTION = "Machine specific xorg.conf files"
-PR = "r34"
+PR = "r35"
 
 SRC_URI = "file://xorg.conf"
 
-- 
1.7.1




^ permalink raw reply related	[flat|nested] 26+ messages in thread

* [PATCH 15/15] palmpre: add some utilities to MACHINE_EXTRA_RDEPEND
  2010-10-18 18:51 More work on support for palmpre machine Simon Busch
                   ` (13 preceding siblings ...)
  2010-10-18 18:51 ` [PATCH 14/15] xserver-xorg-conf: switch from plain tslib access to evdev for touchscreen on " Simon Busch
@ 2010-10-18 18:51 ` Simon Busch
  14 siblings, 0 replies; 26+ messages in thread
From: Simon Busch @ 2010-10-18 18:51 UTC (permalink / raw)
  To: openembedded-devel

Some utilities are essential for the palmpre but no other machine so the machine config
rdepends on them. They will be installed in an image via task-base.

Signed-off-by: Simon Busch <morphis@gravedo.de>
---
 conf/machine/palmpre.conf  |    1 +
 recipes/tasks/task-base.bb |    2 +-
 2 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/conf/machine/palmpre.conf b/conf/machine/palmpre.conf
index f5852c5..ffa7669 100644
--- a/conf/machine/palmpre.conf
+++ b/conf/machine/palmpre.conf
@@ -32,3 +32,4 @@ PREFERRED_VERSION_u-boot = "git"
 XLOAD_MACHINE = "omap3530beagle_config"
 
 MACHINE_FEATURES = "kernel26 screen apm usbgadget usbhost vfat alsa phone bluetooth touchscreen keyboard wifi"
+MACHINE_EXTRA_RDEPENDS = "tsmd read-tokens tellbootie lvm2 palmpre-audio-scripts"
diff --git a/recipes/tasks/task-base.bb b/recipes/tasks/task-base.bb
index 2eedb31..ecc5278 100644
--- a/recipes/tasks/task-base.bb
+++ b/recipes/tasks/task-base.bb
@@ -1,5 +1,5 @@
 DESCRIPTION = "Merge machine and distro options to create a basic machine task/package"
-PR = "r90"
+PR = "r91"
 
 inherit task
 
-- 
1.7.1




^ permalink raw reply related	[flat|nested] 26+ messages in thread

* Re: [PATCH 07/15] initscripts-shr: remove unused usb-gadget script for palmpre machine
  2010-10-18 18:51 ` [PATCH 07/15] initscripts-shr: remove unused usb-gadget script for palmpre machine Simon Busch
@ 2010-10-18 18:58   ` Martin Jansa
  0 siblings, 0 replies; 26+ messages in thread
From: Martin Jansa @ 2010-10-18 18:58 UTC (permalink / raw)
  To: openembedded-devel

On Mon, Oct 18, 2010 at 08:51:16PM +0200, Simon Busch wrote:
> This script was resonsible for activating networking over usb but is not needed anymore as
> our default kernel for the palmpre machine activates usb networking per default.
> 
> Signed-off-by: Simon Busch <morphis@gravedo.de>
Acked-by: Martin Jansa <Martin.Jansa@gmail.com>
> ---
>  recipes/shr/initscripts-shr/palmpre/usb-gadget.sh |   10 ----------
>  recipes/shr/initscripts-shr_0.0.1.bb              |    8 +-------
>  2 files changed, 1 insertions(+), 17 deletions(-)
>  delete mode 100644 recipes/shr/initscripts-shr/palmpre/usb-gadget.sh
> 
> diff --git a/recipes/shr/initscripts-shr/palmpre/usb-gadget.sh b/recipes/shr/initscripts-shr/palmpre/usb-gadget.sh
> deleted file mode 100644
> index d755495..0000000
> --- a/recipes/shr/initscripts-shr/palmpre/usb-gadget.sh
> +++ /dev/null
> @@ -1,10 +0,0 @@
> -#!/bin/sh
> -
> -# usb gadget configuration:
> -# there already different configurations on the palm pre defined,
> -# we choose nr 5 cause it provides the usbnet, novacom
> -# and storage gadget
> -if [ -e /sys/class/usb_gadget/config_num ]; then
> -	echo 5 > /sys/class/usb_gadget/config_num
> -fi
> -
> diff --git a/recipes/shr/initscripts-shr_0.0.1.bb b/recipes/shr/initscripts-shr_0.0.1.bb
> index 120c325..e4dc736 100644
> --- a/recipes/shr/initscripts-shr_0.0.1.bb
> +++ b/recipes/shr/initscripts-shr_0.0.1.bb
> @@ -5,7 +5,7 @@ DEPENDS = ""
>  RDEPENDS_${PN} = "procps"
>  LICENSE = "GPL"
>  PV = "0.0.1"
> -PR = "r19"
> +PR = "r20"
>  
>  RCONFLICTS_${PN} = "initscripts"
>  
> @@ -31,7 +31,6 @@ SRC_URI = "file://alignment.sh \
>  	   file://umountfs \
>  	   file://umountnfs.sh \
>  	   "
> -SRC_URI_append_palmpre = " file://usb-gadget.sh"
>  
>  inherit base
>  
> @@ -75,11 +74,6 @@ do_install () {
>  	install -m 0755	${WORKDIR}/umountfs		${D}${sysconfdir}/init.d
>  	install -m 0755	${WORKDIR}/umountnfs.sh		${D}${sysconfdir}/init.d
>  
> -	if [ "${MACHINE}" == "palmpre" ]; then
> -		install -m 0755 ${WORKDIR}/usb-gadget.sh ${D}${sysconfdir}/init.d
> -		ln -sf ../init.d/usb-gadget.sh ${D}${sysconfdir}/rcS.d/S00usb-gadget.sh
> -	fi
> -
>  #
>  # Create runlevel links
>  #
> -- 
> 1.7.1
> 
> 
> _______________________________________________
> Openembedded-devel mailing list
> Openembedded-devel@lists.openembedded.org
> http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-devel

-- 
Martin 'JaMa' Jansa     jabber: Martin.Jansa@gmail.com



^ permalink raw reply	[flat|nested] 26+ messages in thread

* Re: [PATCH 05/15] palmpre: prefer git version of tslib
  2010-10-18 18:51 ` [PATCH 05/15] palmpre: prefer git version of tslib Simon Busch
@ 2010-10-18 19:00   ` Martin Jansa
  2010-10-19  7:46     ` Simon Busch
  2010-10-18 21:10   ` [PATCH 05/15] palmpre: prefer git version of tslib Koen Kooi
  1 sibling, 1 reply; 26+ messages in thread
From: Martin Jansa @ 2010-10-18 19:00 UTC (permalink / raw)
  To: openembedded-devel

On Mon, Oct 18, 2010 at 08:51:14PM +0200, Simon Busch wrote:
> The git version of tslib is currently the only one which has support for the cy8mrln
> touchscreen which is used on the palmpre device.

As stated few times (even today).. machines shouldn't decide versions,
please patch preferred-shr-versions, I'm OK with using git version
there.

> Signed-off-by: Simon Busch <morphis@gravedo.de>
> ---
>  conf/machine/palmpre.conf |    3 +++
>  1 files changed, 3 insertions(+), 0 deletions(-)
> 
> diff --git a/conf/machine/palmpre.conf b/conf/machine/palmpre.conf
> index 2a62c30..f5852c5 100644
> --- a/conf/machine/palmpre.conf
> +++ b/conf/machine/palmpre.conf
> @@ -20,6 +20,9 @@ require conf/machine/include/omap3.inc
>  # Put it below omap3.inc as we override the kernel here
>  PREFERRED_PROVIDER_virtual/kernel = "linux-palmpre"
>  
> +# We need the git version of tslib as this is the only one providing support for our
> +# attached touchscreen
> +PREFERRED_VERSION_tslib = "1.0+git%"
>  
>  IMAGE_FSTYPES += "tar.bz2"
>  
> -- 
> 1.7.1
> 
> 
> _______________________________________________
> Openembedded-devel mailing list
> Openembedded-devel@lists.openembedded.org
> http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-devel

-- 
Martin 'JaMa' Jansa     jabber: Martin.Jansa@gmail.com



^ permalink raw reply	[flat|nested] 26+ messages in thread

* Re: [PATCH 05/15] palmpre: prefer git version of tslib
  2010-10-18 18:51 ` [PATCH 05/15] palmpre: prefer git version of tslib Simon Busch
  2010-10-18 19:00   ` Martin Jansa
@ 2010-10-18 21:10   ` Koen Kooi
  1 sibling, 0 replies; 26+ messages in thread
From: Koen Kooi @ 2010-10-18 21:10 UTC (permalink / raw)
  To: openembedded-devel

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On 18-10-10 20:51, Simon Busch wrote:
> The git version of tslib is currently the only one which has support for the cy8mrln
> touchscreen which is used on the palmpre device.
> 
> Signed-off-by: Simon Busch <morphis@gravedo.de>
> ---
>  conf/machine/palmpre.conf |    3 +++
>  1 files changed, 3 insertions(+), 0 deletions(-)
> 
> diff --git a/conf/machine/palmpre.conf b/conf/machine/palmpre.conf
> index 2a62c30..f5852c5 100644
> --- a/conf/machine/palmpre.conf
> +++ b/conf/machine/palmpre.conf
> @@ -20,6 +20,9 @@ require conf/machine/include/omap3.inc
>  # Put it below omap3.inc as we override the kernel here
>  PREFERRED_PROVIDER_virtual/kernel = "linux-palmpre"
>  
> +# We need the git version of tslib as this is the only one providing support for our
> +# attached touchscreen
> +PREFERRED_VERSION_tslib = "1.0+git%"

NAK, machines have no business setting versions.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.5 (Darwin)

iD8DBQFMvLerMkyGM64RGpERAlXZAKCHUj+Kmh+oFqmI6MA3GKekmHbQQACgs0uc
rHkJy6dKCavWQXI23La6Epc=
=oELZ
-----END PGP SIGNATURE-----




^ permalink raw reply	[flat|nested] 26+ messages in thread

* Re: [PATCH 14/15] xserver-xorg-conf: switch from plain tslib access to evdev for touchscreen on palmpre machine
  2010-10-18 18:51 ` [PATCH 14/15] xserver-xorg-conf: switch from plain tslib access to evdev for touchscreen on " Simon Busch
@ 2010-10-18 21:11   ` Koen Kooi
  2010-10-19  7:42     ` Simon Busch
  0 siblings, 1 reply; 26+ messages in thread
From: Koen Kooi @ 2010-10-18 21:11 UTC (permalink / raw)
  To: openembedded-devel

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On 18-10-10 20:51, Simon Busch wrote:
> Signed-off-by: Simon Busch <morphis@gravedo.de>
> ---
>  .../xserver-xorg-conf/palmpre/xorg.conf            |    4 ++--
>  recipes/xorg-xserver/xserver-xorg-conf_0.1.bb      |    2 +-
>  2 files changed, 3 insertions(+), 3 deletions(-)
> 
> diff --git a/recipes/xorg-xserver/xserver-xorg-conf/palmpre/xorg.conf b/recipes/xorg-xserver/xserver-xorg-conf/palmpre/xorg.conf
> index 87001f0..08e99e8 100644
> --- a/recipes/xorg-xserver/xserver-xorg-conf/palmpre/xorg.conf
> +++ b/recipes/xorg-xserver/xserver-xorg-conf/palmpre/xorg.conf
> @@ -31,8 +31,8 @@ EndSection
>  
>  Section "InputDevice"
>      Identifier  "Touchscreen"
> -    Driver      "tslib"
> -    Option      "Device"                "/dev/touchscreen"
> +    Driver      "evdev"
> +    Option      "Device"                "/dev/input/event6"

You're better of using /dev/input/touchscreen0 for that since event
numbers are pretty much random.

regards,

Koen
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.5 (Darwin)

iD8DBQFMvLgeMkyGM64RGpERApKwAJwLqF1X+3CBz/IlaOBMrRoQl+2/XQCaAsxA
2u57/t0OjO6EJOjhTaLWYbM=
=4Gwt
-----END PGP SIGNATURE-----




^ permalink raw reply	[flat|nested] 26+ messages in thread

* Re: [PATCH 14/15] xserver-xorg-conf: switch from plain tslib access to evdev for touchscreen on palmpre machine
  2010-10-18 21:11   ` Koen Kooi
@ 2010-10-19  7:42     ` Simon Busch
  0 siblings, 0 replies; 26+ messages in thread
From: Simon Busch @ 2010-10-19  7:42 UTC (permalink / raw)
  To: openembedded-devel

On 18.10.2010 23:11, Koen Kooi wrote:
>>  Section "InputDevice"
>>      Identifier  "Touchscreen"
>> -    Driver      "tslib"
>> -    Option      "Device"                "/dev/touchscreen"
>> +    Driver      "evdev"
>> +    Option      "Device"                "/dev/input/event6"
> 
> You're better of using /dev/input/touchscreen0 for that since event
> numbers are pretty much random.

No, thats not possible as the /dev/input/event6 is an uinput device and
not provided by any kernel driver. On the palmpre machine we have a
special situation with the touchscreen. The kernel gives you access on
the touchscreen through /dev/touchscreen. It can be opened only once. So
we have written a touchscreen management daemon called tsmd. It opens
/dev/touchscreen, creates a new uinput device, processes all touchscreen
events via tslib and reports them to the user via the uinput node. So
there is no /dev/input/touchscreen0 ever available.

regards,
morphis



^ permalink raw reply	[flat|nested] 26+ messages in thread

* Re: [PATCH 05/15] palmpre: prefer git version of tslib
  2010-10-18 19:00   ` Martin Jansa
@ 2010-10-19  7:46     ` Simon Busch
  2010-10-19 12:46       ` [PATCH 15/15] preferred-shr-versions: choose git version of tslib as default Simon Busch
  0 siblings, 1 reply; 26+ messages in thread
From: Simon Busch @ 2010-10-19  7:46 UTC (permalink / raw)
  To: openembedded-devel

On 18.10.2010 21:00, Martin Jansa wrote:
> On Mon, Oct 18, 2010 at 08:51:14PM +0200, Simon Busch wrote:
>> The git version of tslib is currently the only one which has support for the cy8mrln
>> touchscreen which is used on the palmpre device.
> 
> As stated few times (even today).. machines shouldn't decide versions,
> please patch preferred-shr-versions, I'm OK with using git version
> there.

Ok, will remove this patch and create another one which modifies
preferred-shr-versions.

regards,
morphis



^ permalink raw reply	[flat|nested] 26+ messages in thread

* [PATCH 15/15] preferred-shr-versions: choose git version of tslib as default
  2010-10-19  7:46     ` Simon Busch
@ 2010-10-19 12:46       ` Simon Busch
  0 siblings, 0 replies; 26+ messages in thread
From: Simon Busch @ 2010-10-19 12:46 UTC (permalink / raw)
  To: openembedded-devel

Signed-off-by: Simon Busch <morphis@gravedo.de>
---
 conf/distro/include/preferred-shr-versions.inc |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/conf/distro/include/preferred-shr-versions.inc b/conf/distro/include/preferred-shr-versions.inc
index c7c059f..220c708 100644
--- a/conf/distro/include/preferred-shr-versions.inc
+++ b/conf/distro/include/preferred-shr-versions.inc
@@ -58,6 +58,8 @@ PREFERRED_VERSION_qt4-embedded-gles = "${ANGSTROM_QT_VERSION}"
 PREFERRED_VERSION_qt4-x11-free = "${ANGSTROM_QT_VERSION}"
 PREFERRED_VERSION_qt4-x11-free-gles = "${ANGSTROM_QT_VERSION}"
 
+PREFERRED_VERSION_tslib = "1.0+git%"
+
 # epdf needs > 0.12, but recipes have D_P = -1
 PREFERRED_VERSION_poppler = "0.12.3"
 
-- 
1.7.1




^ permalink raw reply related	[flat|nested] 26+ messages in thread

* Re: [PATCH 13/15] initscripts-shr: add mountdevtmpfs init script for palmpre machine
  2010-10-18 18:51 ` [PATCH 13/15] initscripts-shr: add mountdevtmpfs init script for palmpre machine Simon Busch
@ 2010-10-20  8:04   ` Klaus 'mrmoku' Kurzmann
  0 siblings, 0 replies; 26+ messages in thread
From: Klaus 'mrmoku' Kurzmann @ 2010-10-20  8:04 UTC (permalink / raw)
  To: openembedded-devel

Acked-by: Klaus Kurzmann <mok@fluxnetz.de>

> On the palmpre machine we are currently come into the SHR rootfs through
> mounting it from /boot and switch the rootfs via pivot_root. So we can't
> automatically mount devtmpfs on /dev. Instead we do this right after SHR
> begins to boot and before any other filesystem is mounted on the new
> rootfs.
> 
> Signed-off-by: Simon Busch <morphis@gravedo.de>
> ---
>  .../shr/initscripts-shr/palmpre/mountdevtmpfs.sh   |    9 +++++++++
>  recipes/shr/initscripts-shr_0.0.1.bb               |    9 ++++++++-
>  2 files changed, 17 insertions(+), 1 deletions(-)
>  create mode 100644 recipes/shr/initscripts-shr/palmpre/mountdevtmpfs.sh
> 
> diff --git a/recipes/shr/initscripts-shr/palmpre/mountdevtmpfs.sh
> b/recipes/shr/initscripts-shr/palmpre/mountdevtmpfs.sh new file mode
> 100644
> index 0000000..dbeb7c0
> --- /dev/null
> +++ b/recipes/shr/initscripts-shr/palmpre/mountdevtmpfs.sh
> @@ -0,0 +1,9 @@
> +#!/bin/sh
> +
> +mount -t devtmpfs -o mode=0755,nr_inodes=0 devtmpfs /dev
> +
> +# Create additional nodes which devtmpfs does not provide
> +test -c /dev/fd || ln -s /proc/self/fd /dev/fd
> +test -c /dev/stdin || ln -s fd/0 /dev/stdin
> +test -c /dev/stdout || ln -s fd/1 /dev/stdout
> +test -c /dev/stderr || ln -s fd/2 /dev/stderr
> diff --git a/recipes/shr/initscripts-shr_0.0.1.bb
> b/recipes/shr/initscripts-shr_0.0.1.bb index e4dc736..ce76fbd 100644
> --- a/recipes/shr/initscripts-shr_0.0.1.bb
> +++ b/recipes/shr/initscripts-shr_0.0.1.bb
> @@ -5,7 +5,7 @@ DEPENDS = ""
>  RDEPENDS_${PN} = "procps"
>  LICENSE = "GPL"
>  PV = "0.0.1"
> -PR = "r20"
> +PR = "r21"
> 
>  RCONFLICTS_${PN} = "initscripts"
> 
> @@ -32,6 +32,8 @@ SRC_URI = "file://alignment.sh \
>  	   file://umountnfs.sh \
>  	   "
> 
> +SRC_URI_append_palmpre = " file://mountdevtmpfs.sh"
> +
>  inherit base
> 
>  do_install () {
> @@ -74,6 +76,11 @@ do_install () {
>  	install -m 0755	${WORKDIR}/umountfs		${D}${sysconfdir}/init.d
>  	install -m 0755	${WORKDIR}/umountnfs.sh		${D}${sysconfdir}/init.d
> 
> +	if [ "${MACHINE}" == "palmpre" ]; then
> +		install -m 0755 ${WORKDIR}/mountdevtmpfs.sh ${D}${sysconfdir}/init.d
> +		ln -sf ../init.d/mountdevtmpfs.sh
> ${D}${sysconfdir}/rcS.d/S03mountdevtmpfs.sh +	fi
> +
>  #
>  # Create runlevel links
>  #
-- 
Klaus 'mrmoku' Kurzmann



^ permalink raw reply	[flat|nested] 26+ messages in thread

* Re: [PATCH 04/15] netbase: powerup usb0 interface automatically on palmpre machine
  2010-10-18 18:51 ` [PATCH 04/15] netbase: powerup usb0 interface automatically on palmpre machine Simon Busch
@ 2010-10-31  8:54   ` Denis 'GNUtoo' Carikli
  2010-10-31 10:46     ` Simon Busch
  0 siblings, 1 reply; 26+ messages in thread
From: Denis 'GNUtoo' Carikli @ 2010-10-31  8:54 UTC (permalink / raw)
  To: openembedded-devel

On Mon, 2010-10-18 at 20:51 +0200, Simon Busch wrote:
> Signed-off-by: Simon Busch <morphis@gravedo.de>
> ---
>  recipes/netbase/netbase/palmpre/interfaces |    1 +
>  1 files changed, 1 insertions(+), 0 deletions(-)
> 
> diff --git a/recipes/netbase/netbase/palmpre/interfaces b/recipes/netbase/netbase/palmpre/interfaces
> index ca2e007..17416c1 100644
> --- a/recipes/netbase/netbase/palmpre/interfaces
> +++ b/recipes/netbase/netbase/palmpre/interfaces
> @@ -6,6 +6,7 @@ iface lo inet loopback
>  
>  # Ethernet/RNDIS gadget (g_ether)
>  # ... or on host side, usbnet and random hwaddr
> +auto usb0
>  iface usb0 inet static
>  	address 192.168.0.202
>  	netmask 255.255.255.0
what about PR bump?

Denis.





^ permalink raw reply	[flat|nested] 26+ messages in thread

* Re: [PATCH 04/15] netbase: powerup usb0 interface automatically on palmpre machine
  2010-10-31  8:54   ` Denis 'GNUtoo' Carikli
@ 2010-10-31 10:46     ` Simon Busch
  0 siblings, 0 replies; 26+ messages in thread
From: Simon Busch @ 2010-10-31 10:46 UTC (permalink / raw)
  To: openembedded-devel

On 31.10.2010 09:54, Denis 'GNUtoo' Carikli wrote:
> On Mon, 2010-10-18 at 20:51 +0200, Simon Busch wrote:
>> Signed-off-by: Simon Busch <morphis@gravedo.de>
>> ---
>>  recipes/netbase/netbase/palmpre/interfaces |    1 +
>>  1 files changed, 1 insertions(+), 0 deletions(-)
>>
>> diff --git a/recipes/netbase/netbase/palmpre/interfaces b/recipes/netbase/netbase/palmpre/interfaces
>> index ca2e007..17416c1 100644
>> --- a/recipes/netbase/netbase/palmpre/interfaces
>> +++ b/recipes/netbase/netbase/palmpre/interfaces
>> @@ -6,6 +6,7 @@ iface lo inet loopback
>>  
>>  # Ethernet/RNDIS gadget (g_ether)
>>  # ... or on host side, usbnet and random hwaddr
>> +auto usb0
>>  iface usb0 inet static
>>  	address 192.168.0.202
>>  	netmask 255.255.255.0
> what about PR bump?

Damn it! I forgot about it .... sorry for this. I tried to be very
careful with all of these patches but in the end I made this one little
mistake ... forgive me :)

regards,
morphis



^ permalink raw reply	[flat|nested] 26+ messages in thread

end of thread, other threads:[~2010-10-31 10:47 UTC | newest]

Thread overview: 26+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-10-18 18:51 More work on support for palmpre machine Simon Busch
2010-10-18 18:51 ` [PATCH 01/15] tslib: adjust various recipe settings for the " Simon Busch
2010-10-18 18:51 ` [PATCH 02/15] read-tokens: add initial git version Simon Busch
2010-10-18 18:51 ` [PATCH 03/15] tsmd: add initial recipe Simon Busch
2010-10-18 18:51 ` [PATCH 04/15] netbase: powerup usb0 interface automatically on palmpre machine Simon Busch
2010-10-31  8:54   ` Denis 'GNUtoo' Carikli
2010-10-31 10:46     ` Simon Busch
2010-10-18 18:51 ` [PATCH 05/15] palmpre: prefer git version of tslib Simon Busch
2010-10-18 19:00   ` Martin Jansa
2010-10-19  7:46     ` Simon Busch
2010-10-19 12:46       ` [PATCH 15/15] preferred-shr-versions: choose git version of tslib as default Simon Busch
2010-10-18 21:10   ` [PATCH 05/15] palmpre: prefer git version of tslib Koen Kooi
2010-10-18 18:51 ` [PATCH 06/15] tslib: add patch for git version to compile cy8mrln plugin Simon Busch
2010-10-18 18:51 ` [PATCH 07/15] initscripts-shr: remove unused usb-gadget script for palmpre machine Simon Busch
2010-10-18 18:58   ` Martin Jansa
2010-10-18 18:51 ` [PATCH 08/15] tellbootie: add initial git version Simon Busch
2010-10-18 18:51 ` [PATCH 09/15] palmpre-audio-scripts: add initial version Simon Busch
2010-10-18 18:51 ` [PATCH 10/15] tslib: fix typo in palmpre machine ts.conf file and switch to raw module Simon Busch
2010-10-18 18:51 ` [PATCH 11/15] linux-palmpre: bump git SRCREV for devtmpfs support Simon Busch
2010-10-18 18:51 ` [PATCH 12/15] linux-palmpre: enable devtmpfs per default but do not auto mount it Simon Busch
2010-10-18 18:51 ` [PATCH 13/15] initscripts-shr: add mountdevtmpfs init script for palmpre machine Simon Busch
2010-10-20  8:04   ` Klaus 'mrmoku' Kurzmann
2010-10-18 18:51 ` [PATCH 14/15] xserver-xorg-conf: switch from plain tslib access to evdev for touchscreen on " Simon Busch
2010-10-18 21:11   ` Koen Kooi
2010-10-19  7:42     ` Simon Busch
2010-10-18 18:51 ` [PATCH 15/15] palmpre: add some utilities to MACHINE_EXTRA_RDEPEND Simon Busch

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.