More work on support for palmpre machine
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
PATCH 1/15 tslib: adjust various recipe settings for the palmpre machine
* set PACKAGE_ARCH = "${MACHINE_ARCH}" for palmpre machine
* provide special EXTRA_CONF setting to build plugin for the cy8mrln touchscreen
--- recipes/tslib/tslib.inc | 2 ++ recipes/tslib/tslib_git.bb | 15 +++++++++++++++ 2 files changed, 17 insertions(+), 0 deletions(-)
recipes/tslib/tslib.inc +2 -0
@@ -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}"
recipes/tslib/tslib_git.bb +15 -0
@@ -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
Signature · 1 line
1.7.1
PATCH 2/15 read-tokens: add initial git version
In reply to Simon Buschread-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.
--- recipes/palmpre/read-tokens_git.bb | 15 +++++++++++++++ 1 files changed, 15 insertions(+), 0 deletions(-) create mode 100644 recipes/palmpre/read-tokens_git.bb
recipes/palmpre/read-tokens_git.bb new file +15 -0
@@ -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 <[email protected]> +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
Signature · 1 line
1.7.1
PATCH 3/15 tsmd: add initial recipe
In reply to Simon Buschtsmd 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.
--- 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
recipes/palmpre/tsmd/tsmd new file +38 -0
@@ -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
recipes/palmpre/tsmd_git.bb new file +30 -0
@@ -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 <[email protected]> +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/ +}
Signature · 1 line
1.7.1
PATCH 4/15 netbase: powerup usb0 interface automatically on palmpre machine
In reply to Simon Busch--- recipes/netbase/netbase/palmpre/interfaces | 1 + 1 files changed, 1 insertions(+), 0 deletions(-)
recipes/netbase/netbase/palmpre/interfaces +1 -0
@@ -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
Signature · 1 line
1.7.1
Re: [PATCH 04/15] netbase: powerup usb0 interface automatically on palmpre machine
Quoted 10 lines · Simon Busch
Signed-off-by Simon Busch <[email protected]>--- recipes/netbase/netbase/palmpre/interfaces | 1 + 1 files changed, 1 insertions(+), 0 deletions(-)recipes/netbase/netbase/palmpre/interfaces +0
-0
recipes/netbase/netbase/palmpre/interfaces iface lo inet loopback · line 12
Quoted 7 lines
recipes/netbase/netbase/palmpre/interfaces +1
-0@@ -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.
Re: [PATCH 04/15] netbase: powerup usb0 interface automatically on palmpre machine
Quoted 12 lines · Denis 'GNUtoo' Carikli
Quoted 11 lines · Simon Busch
Signed-off-by Simon Busch <[email protected]>--- recipes/netbase/netbase/palmpre/interfaces | 1 + 1 files changed, 1 insertions(+), 0 deletions(-)recipes/netbase/netbase/palmpre/interfaces +0
-0@@ -6,6 +6,7 @@ iface lo inet loopback
Quoted 7 lines
recipes/netbase/netbase/palmpre/interfaces iface lo inet loopback · line 12
Quoted 6 lines
recipes/netbase/netbase/palmpre/interfaces +1
-0# 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.0what 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
PATCH 5/15 palmpre: prefer git version of tslib
In reply to Simon BuschThe git version of tslib is currently the only one which has support for the cy8mrln touchscreen which is used on the palmpre device.
--- conf/machine/palmpre.conf | 3 +++ 1 files changed, 3 insertions(+), 0 deletions(-)
conf/machine/palmpre.conf +3 -0
@@ -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"
Signature · 1 line
1.7.1
Re: [PATCH 05/15] palmpre: prefer git version of tslib
Quoted 2 lines · Simon Busch
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.
Quoted 27 lines
Signed-off-by Simon Busch <[email protected]>--- conf/machine/palmpre.conf | 3 +++ 1 files changed, 3 insertions(+), 0 deletions(-)conf/machine/palmpre.conf +3
-0@@ -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"Signature · 7 lines
1.7.1 _______________________________________________ Openembedded-devel mailing list [email protected] http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-devel
Signature · 1 line
Martin 'JaMa' Jansa jabber: [email protected]
Re: [PATCH 05/15] palmpre: prefer git version of tslib
Quoted 7 lines · Martin Jansa
Quoted 2 lines · Simon Busch
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
PATCH 15/15 preferred-shr-versions: choose git version of tslib as default
--- conf/distro/include/preferred-shr-versions.inc | 2 ++ 1 files changed, 2 insertions(+), 0 deletions(-)
conf/distro/include/preferred-shr-versions.inc +2 -0
@@ -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"
Signature · 1 line
1.7.1
Koen Kooi
NAKRe: [PATCH 05/15] palmpre: prefer git version of tslib
In reply to Simon Busch-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Quoted 13 lines · Simon Busch
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 <[email protected]>--- conf/machine/palmpre.conf | 3 +++ 1 files changed, 3 insertions(+), 0 deletions(-)conf/machine/palmpre.conf +0
-0
conf/machine/palmpre.conf require conf/machine/include/omap3.inc · line 25
Quoted 6 lines
conf/machine/palmpre.conf +3
-0@@ -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-----
PATCH 6/15 tslib: add patch for git version to compile cy8mrln plugin
In reply to Simon BuschThe 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.
--- 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
recipes/tslib/tslib/include-cy8mrln-header.patch new file +613 -0
@@ -0,0 +1,613 @@ +From 139abce63c08a18d94b00af03c3cf39d9fcac507 Mon Sep 17 00:00:00 2001 +From: Simon Busch <[email protected]> +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 +
recipes/tslib/tslib_git.bb +3 -0
@@ -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 \
Signature · 1 line
1.7.1
PATCH 7/15 initscripts-shr: remove unused usb-gadget script for palmpre machine
In reply to Simon BuschThis 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.
--- 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
recipes/shr/initscripts-shr/palmpre/usb-gadget.sh deleted +0 -10
@@ -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 -
recipes/shr/initscripts-shr_0.0.1.bb +1 -7
@@ -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 #
Signature · 1 line
1.7.1
Re: [PATCH 07/15] initscripts-shr: remove unused usb-gadget script for palmpre machine
Quoted 4 lines · Simon Busch
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 <[email protected]>
Quoted 63 lines
--- 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.shrecipes/shr/initscripts-shr/palmpre/usb-gadget.sh deleted +0
-10@@ -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 -recipes/shr/initscripts-shr_0.0.1.bb +1
-7@@ -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 #Signature · 7 lines
1.7.1 _______________________________________________ Openembedded-devel mailing list [email protected] http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-devel
Signature · 1 line
Martin 'JaMa' Jansa jabber: [email protected]
PATCH 8/15 tellbootie: add initial git version
In reply to Simon Buschtellbootie 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).
--- recipes/palmpre/tellbootie_git.bb | 14 ++++++++++++++ 1 files changed, 14 insertions(+), 0 deletions(-) create mode 100644 recipes/palmpre/tellbootie_git.bb
recipes/palmpre/tellbootie_git.bb new file +14 -0
@@ -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 <[email protected]> +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
Signature · 1 line
1.7.1
PATCH 9/15 palmpre-audio-scripts: add initial version
In reply to Simon BuschFor 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.
--- 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
recipes/palmpre/palmpre-audio-scripts_1.0.bb new file +23 -0
@@ -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 +} +
Signature · 1 line
1.7.1
PATCH 10/15 tslib: fix typo in palmpre machine ts.conf file and switch to raw module
In reply to Simon Busch--- recipes/tslib/tslib.inc | 2 +- recipes/tslib/tslib/palmpre/ts.conf | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-)
recipes/tslib/tslib.inc +1 -1
@@ -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 \
recipes/tslib/tslib/palmpre/ts.conf +1 -1
@@ -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
Signature · 1 line
1.7.1
PATCH 11/15 linux-palmpre: bump git SRCREV for devtmpfs support
In reply to Simon Busch--- recipes/linux/linux-palmpre_git.bb | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)
recipes/linux/linux-palmpre_git.bb +1 -1
@@ -11,7 +11,7 @@ file://defconfig \ S = "${WORKDIR}/git/" -SRCREV = "96eba42952e860f652e66a72569319dfd35756dc" +SRCREV = "33239e4074f4716a674b450a443b64add201bf39" KV = "2.6.24" PR="r2" PV = "${KV}+gitr${SRCPV}"
Signature · 1 line
1.7.1
PATCH 12/15 linux-palmpre: enable devtmpfs per default but do not auto mount it
In reply to Simon Busch--- recipes/linux/linux-palmpre/defconfig | 4 +++- recipes/linux/linux-palmpre_git.bb | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-)
recipes/linux/linux-palmpre/defconfig +3 -1
@@ -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
recipes/linux/linux-palmpre_git.bb +1 -1
@@ -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
Signature · 1 line
1.7.1
PATCH 13/15 initscripts-shr: add mountdevtmpfs init script for palmpre machine
In reply to Simon BuschOn 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.
--- .../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
recipes/shr/initscripts-shr/palmpre/mountdevtmpfs.sh new file +9 -0
@@ -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
recipes/shr/initscripts-shr_0.0.1.bb +8 -1
@@ -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 #
Signature · 1 line
1.7.1
Re: [PATCH 13/15] initscripts-shr: add mountdevtmpfs init script for palmpre machine
Quoted 63 lines
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 <[email protected]>--- .../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(quoted diff) +0
-0
b/recipes/shr/initscripts-shr/palmpre/mountdevtmpfs.shnew file mode 100644
index 0000000..dbeb7c0recipes/shr/initscripts-shr/palmpre/mountdevtmpfs.sh new file +9
-0@@ -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(quoted diff) +0
-0b/recipes/shr/initscripts-shr_0.0.1.bb index e4dc736..ce76fbd 100644
recipes/shr/initscripts-shr_0.0.1.bb +6
-1@@ -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
#
Signature · 1 line
Klaus 'mrmoku' Kurzmann
PATCH 14/15 xserver-xorg-conf: switch from plain tslib access to evdev for touchscreen on palmpre machine
In reply to Simon Busch--- .../xserver-xorg-conf/palmpre/xorg.conf | 4 ++-- recipes/xorg-xserver/xserver-xorg-conf_0.1.bb | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-)
recipes/xorg-xserver/xserver-xorg-conf/palmpre/xorg.conf +2 -2
@@ -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"
recipes/xorg-xserver/xserver-xorg-conf_0.1.bb +1 -1
@@ -1,5 +1,5 @@ DESCRIPTION = "Machine specific xorg.conf files" -PR = "r34" +PR = "r35" SRC_URI = "file://xorg.conf"
Signature · 1 line
1.7.1
Re: [PATCH 14/15] xserver-xorg-conf: switch from plain tslib access to evdev for touchscreen on palmpre machine
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Quoted 11 lines · Simon Busch
Signed-off-by Simon Busch <[email protected]>--- .../xserver-xorg-conf/palmpre/xorg.conf | 4 ++-- recipes/xorg-xserver/xserver-xorg-conf_0.1.bb | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-)recipes/xorg-xserver/xserver-xorg-conf/palmpre/xorg.conf +0
-0
recipes/xorg-xserver/xserver-xorg-conf/palmpre/xorg.conf EndSection · line 35
Quoted 7 lines
recipes/xorg-xserver/xserver-xorg-conf/palmpre/xorg.conf +2
-2@@ -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-----
Re: [PATCH 14/15] xserver-xorg-conf: switch from plain tslib access to evdev for touchscreen on palmpre machine
Quoted 9 lines · Koen Kooi
recipes/xorg-xserver/xserver-xorg-conf/palmpre/xorg.conf EndSection · line 35
Quoted 6 lines
Section "InputDevice"
Identifier "Touchscreen"recipes/xorg-xserver/xserver-xorg-conf/palmpre/xorg.conf +2
-2- Driver "tslib" - Option "Device" "/dev/touchscreen" + Driver "evdev" + Option "Device" "/dev/input/event6"You're better of using
/dev/input/touchscreen0for 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
PATCH 15/15 palmpre: add some utilities to MACHINE_EXTRA_RDEPEND
In reply to Simon BuschSome 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.
--- conf/machine/palmpre.conf | 1 + recipes/tasks/task-base.bb | 2 +- 2 files changed, 2 insertions(+), 1 deletions(-)
conf/machine/palmpre.conf +1 -0
@@ -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"
recipes/tasks/task-base.bb +1 -1
@@ -1,5 +1,5 @@ DESCRIPTION = "Merge machine and distro options to create a basic machine task/package" -PR = "r90" +PR = "r91" inherit task
Signature · 1 line
1.7.1