* [PATCH 0/3] [RFC] enable Pegasus touch screen
@ 2011-09-27 1:03 edwin.zhai
2011-09-27 1:03 ` [PATCH 1/3] eGalax touchscreen offical xorg driver edwin.zhai
` (3 more replies)
0 siblings, 4 replies; 5+ messages in thread
From: edwin.zhai @ 2011-09-27 1:03 UTC (permalink / raw)
To: openembedded-core
From: Zhai Edwin <edwin.zhai@intel.com>
Tom,
These changes, based on meta-intel/tzanussi/pegasus, are needed to enable
eGalax touch screen on Pegasus. Could you pls. help to review?
When will you push Pegasus changes into meta-intel/master? We can have a common
place for people to try pegasus...
Thanks,
Edwin
The following changes since commit 59dc67f6e64a836fc01fa91a1200e76264bb954d:
meta-pegasus: new layer for Pegasus (N455) systems (2011-06-15 23:27:47 -0500)
are available in the git repository at:
git://git.pokylinux.org/poky-contrib gzhai/pegasus
http://git.pokylinux.org/cgit.cgi/poky-contrib/log/?h=gzhai/pegasus
Zhai Edwin (3):
eGalax touchscreen offical xorg driver
Config xorg.conf with eGalax touchscreen input driver
Enabled kernel module for eGalax touch screen.
meta-pegasus/conf/machine/pegasus.conf | 2 +-
.../xf86-input-egalax/88eGalaxCalibrate.sh | 5 ++
.../xorg-driver/xf86-input-egalax_3.06.5605.bb | 49 ++++++++++++++++++++
.../xserver-xf86-config/pegasus/xorg.conf | 10 ++++
.../xorg-xserver/xserver-xf86-config_0.1.bbappend | 2 +
.../recipes-kernel/linux/linux-yocto/pegasus.cfg | 4 ++
.../linux/linux-yocto_2.6.37.bbappend | 12 +++++
7 files changed, 83 insertions(+), 1 deletions(-)
create mode 100755 meta-pegasus/recipes-graphics/xorg-driver/xf86-input-egalax/88eGalaxCalibrate.sh
create mode 100644 meta-pegasus/recipes-graphics/xorg-driver/xf86-input-egalax_3.06.5605.bb
create mode 100644 meta-pegasus/recipes-kernel/linux/linux-yocto/pegasus.cfg
create mode 100644 meta-pegasus/recipes-kernel/linux/linux-yocto_2.6.37.bbappend
^ permalink raw reply [flat|nested] 5+ messages in thread
* [PATCH 1/3] eGalax touchscreen offical xorg driver
2011-09-27 1:03 [PATCH 0/3] [RFC] enable Pegasus touch screen edwin.zhai
@ 2011-09-27 1:03 ` edwin.zhai
2011-09-27 1:04 ` [PATCH 2/3] Config xorg.conf with eGalax touchscreen input driver edwin.zhai
` (2 subsequent siblings)
3 siblings, 0 replies; 5+ messages in thread
From: edwin.zhai @ 2011-09-27 1:03 UTC (permalink / raw)
To: openembedded-core
From: Zhai Edwin <edwin.zhai@intel.com>
Signed-off-by: Zhai Edwin <edwin.zhai@intel.com>
---
.../xf86-input-egalax/88eGalaxCalibrate.sh | 5 ++
.../xorg-driver/xf86-input-egalax_3.06.5605.bb | 49 ++++++++++++++++++++
2 files changed, 54 insertions(+), 0 deletions(-)
create mode 100755 meta-pegasus/recipes-graphics/xorg-driver/xf86-input-egalax/88eGalaxCalibrate.sh
create mode 100644 meta-pegasus/recipes-graphics/xorg-driver/xf86-input-egalax_3.06.5605.bb
diff --git a/meta-pegasus/recipes-graphics/xorg-driver/xf86-input-egalax/88eGalaxCalibrate.sh b/meta-pegasus/recipes-graphics/xorg-driver/xf86-input-egalax/88eGalaxCalibrate.sh
new file mode 100755
index 0000000..0cb075f
--- /dev/null
+++ b/meta-pegasus/recipes-graphics/xorg-driver/xf86-input-egalax/88eGalaxCalibrate.sh
@@ -0,0 +1,5 @@
+#!/bin/sh
+# start egalax touch screen calibration tools for the 1st time boot
+if [ ! -s /var/lib/eeti.param ]; then
+ eGalaxTouch &
+fi
diff --git a/meta-pegasus/recipes-graphics/xorg-driver/xf86-input-egalax_3.06.5605.bb b/meta-pegasus/recipes-graphics/xorg-driver/xf86-input-egalax_3.06.5605.bb
new file mode 100644
index 0000000..b4ff5fa
--- /dev/null
+++ b/meta-pegasus/recipes-graphics/xorg-driver/xf86-input-egalax_3.06.5605.bb
@@ -0,0 +1,49 @@
+DESCRIPTION = "eGalax touscreen X driver"
+HOMEPAGE = "http://home.eeti.com.tw/web20/eGalaxTouchDriver/linuxDriver.htm"
+BUGTRACKER = "touch_fae@eeti.com"
+SECTION = "x11/drivers"
+LICENSE = "??"
+LIC_FILES_CHKSUM = "file://readme;endline=10;md5=afb35411768cea26b28e5b20a2a65c9b"
+
+SRC_URI = "http://home.eeti.com.tw/web20/drivers/touch_driver/Linux/20110810/eGalaxTouch-${PV}-32b-k26.tar.gz \
+ file://88eGalaxCalibrate.sh"
+
+PR = "r0"
+
+S = "${WORKDIR}/eGalaxTouch32"
+
+do_unpack_append() {
+ bb.build.exec_func('do_drv_unpack', d)
+}
+
+do_drv_unpack() {
+ tar xzf ${S}/eGalaxTouch.tar.gz
+
+ #make an empty touch screen parameter file
+ touch ${S}/eeti.param
+}
+
+do_install() {
+ install -d ${D}${libdir}/xorg/modules/input
+ install -m 0755 ${S}/eGalaxTouch32/Module/x110/egalax_drv.so ${D}${libdir}/xorg/modules/input/
+
+ install -d ${D}${bindir}
+ install -d ${D}/usr/local/eGalaxTouch32
+ install -m 0755 ${S}/eGalaxTouch32/eGalaxTouch ${D}/usr/local/eGalaxTouch32/
+ ln -s /usr/local/eGalaxTouch32/eGalaxTouch ${D}${bindir}/eGalaxTouch
+
+ install -m 0644 ${S}/eGalaxTouch32/Rule/eGalaxTouch48.png ${D}/usr/local/eGalaxTouch32/eGalaxTouch.png
+
+ install -d ${D}${datadir}/applications
+ install -m 0644 ${S}/eGalaxTouch32/Rule/eGalaxTouch.desktop ${D}${datadir}/applications
+
+ # calibration tools read/write /var/lib/eeti.param, so create one empty file with rw mode for all user
+ install -d ${D}${localstatedir}/lib
+ install -m 0666 ${S}/eeti.param ${D}${localstatedir}/lib/
+
+ install -d ${D}/${sysconfdir}/X11/Xsession.d
+ install -m 755 ${WORKDIR}/88eGalaxCalibrate.sh ${D}/${sysconfdir}/X11/Xsession.d/
+}
+
+FILES_${PN} += "${libdir}/xorg/modules/input/*.so \
+ /usr/local/eGalaxTouch32/*"
--
1.7.1
^ permalink raw reply related [flat|nested] 5+ messages in thread
* [PATCH 2/3] Config xorg.conf with eGalax touchscreen input driver
2011-09-27 1:03 [PATCH 0/3] [RFC] enable Pegasus touch screen edwin.zhai
2011-09-27 1:03 ` [PATCH 1/3] eGalax touchscreen offical xorg driver edwin.zhai
@ 2011-09-27 1:04 ` edwin.zhai
2011-09-27 1:04 ` [PATCH 3/3] Enabled kernel module for eGalax touch screen edwin.zhai
2011-09-27 20:08 ` [PATCH 0/3] [RFC] enable Pegasus " Tom Zanussi
3 siblings, 0 replies; 5+ messages in thread
From: edwin.zhai @ 2011-09-27 1:04 UTC (permalink / raw)
To: openembedded-core
From: Zhai Edwin <edwin.zhai@intel.com>
Signed-off-by: Zhai Edwin <edwin.zhai@intel.com>
---
.../xserver-xf86-config/pegasus/xorg.conf | 10 ++++++++++
.../xorg-xserver/xserver-xf86-config_0.1.bbappend | 2 ++
2 files changed, 12 insertions(+), 0 deletions(-)
diff --git a/meta-pegasus/recipes-graphics/xorg-xserver/xserver-xf86-config/pegasus/xorg.conf b/meta-pegasus/recipes-graphics/xorg-xserver/xserver-xf86-config/pegasus/xorg.conf
index e18b911..634d9ad 100644
--- a/meta-pegasus/recipes-graphics/xorg-xserver/xserver-xf86-config/pegasus/xorg.conf
+++ b/meta-pegasus/recipes-graphics/xorg-xserver/xserver-xf86-config/pegasus/xorg.conf
@@ -18,9 +18,19 @@ EndSection
Section "ServerLayout"
Identifier "Default Layout"
Screen "Default Screen"
+ InputDevice "EETI" "SendCoreEvents"
EndSection
Section "ServerFlags"
Option "DontZap" "0"
Option "AutoAddDevices" "False"
EndSection
+
+### eGalax Touch Configuration ###
+Section "InputDevice"
+ Identifier "EETI"
+ Driver "egalax"
+ Option "Device" "hidraws"
+ Option "Parameters" "/var/lib/eeti.param"
+ Option "ScreenNo" "0"
+EndSection
diff --git a/meta-pegasus/recipes-graphics/xorg-xserver/xserver-xf86-config_0.1.bbappend b/meta-pegasus/recipes-graphics/xorg-xserver/xserver-xf86-config_0.1.bbappend
index 4b8d0e6..fb6e1e2 100644
--- a/meta-pegasus/recipes-graphics/xorg-xserver/xserver-xf86-config_0.1.bbappend
+++ b/meta-pegasus/recipes-graphics/xorg-xserver/xserver-xf86-config_0.1.bbappend
@@ -1,3 +1,5 @@
THISDIR := "${@os.path.dirname(bb.data.getVar('FILE', d, True))}"
FILESPATH =. "${@base_set_filespath(["${THISDIR}/${PN}"], d)}:"
+RDEPENDS += "xf86-input-egalax"
+
--
1.7.1
^ permalink raw reply related [flat|nested] 5+ messages in thread
* [PATCH 3/3] Enabled kernel module for eGalax touch screen.
2011-09-27 1:03 [PATCH 0/3] [RFC] enable Pegasus touch screen edwin.zhai
2011-09-27 1:03 ` [PATCH 1/3] eGalax touchscreen offical xorg driver edwin.zhai
2011-09-27 1:04 ` [PATCH 2/3] Config xorg.conf with eGalax touchscreen input driver edwin.zhai
@ 2011-09-27 1:04 ` edwin.zhai
2011-09-27 20:08 ` [PATCH 0/3] [RFC] enable Pegasus " Tom Zanussi
3 siblings, 0 replies; 5+ messages in thread
From: edwin.zhai @ 2011-09-27 1:04 UTC (permalink / raw)
To: openembedded-core
From: Zhai Edwin <edwin.zhai@intel.com>
Signed-off-by: Zhai Edwin <edwin.zhai@intel.com>
---
meta-pegasus/conf/machine/pegasus.conf | 2 +-
.../recipes-kernel/linux/linux-yocto/pegasus.cfg | 4 ++++
.../linux/linux-yocto_2.6.37.bbappend | 12 ++++++++++++
3 files changed, 17 insertions(+), 1 deletions(-)
create mode 100644 meta-pegasus/recipes-kernel/linux/linux-yocto/pegasus.cfg
create mode 100644 meta-pegasus/recipes-kernel/linux/linux-yocto_2.6.37.bbappend
diff --git a/meta-pegasus/conf/machine/pegasus.conf b/meta-pegasus/conf/machine/pegasus.conf
index 8a4335e..5da6655 100644
--- a/meta-pegasus/conf/machine/pegasus.conf
+++ b/meta-pegasus/conf/machine/pegasus.conf
@@ -9,7 +9,7 @@ SYSLINUX_OPTS = "serial 0 115200"
SERIAL_CONSOLE = "115200 ttyS0"
APPEND += "console=ttyS0,115200 console=tty0"
-#PREFERRED_PROVIDER_virtual/kernel ?= "linux-yocto"
+PREFERRED_PROVIDER_virtual/kernel ?= "linux-yocto"
#PREFERRED_PROVIDER_virtual/kernel ?= "linux-yocto-dev"
diff --git a/meta-pegasus/recipes-kernel/linux/linux-yocto/pegasus.cfg b/meta-pegasus/recipes-kernel/linux/linux-yocto/pegasus.cfg
new file mode 100644
index 0000000..d115d06
--- /dev/null
+++ b/meta-pegasus/recipes-kernel/linux/linux-yocto/pegasus.cfg
@@ -0,0 +1,4 @@
+# Pegasus touchscreen
+CONFIG_HIDRAW=y
+CONFIG_USB_HID=y
+CONFIG_HID_PID=y
diff --git a/meta-pegasus/recipes-kernel/linux/linux-yocto_2.6.37.bbappend b/meta-pegasus/recipes-kernel/linux/linux-yocto_2.6.37.bbappend
new file mode 100644
index 0000000..3e965dd
--- /dev/null
+++ b/meta-pegasus/recipes-kernel/linux/linux-yocto_2.6.37.bbappend
@@ -0,0 +1,12 @@
+FILESEXTRAPATHS_prepend := "${THISDIR}/${PN}:"
+KMACHINE_pegasus = "yocto/standard/common-pc/atom-pc"
+COMPATIBLE_MACHINE_pegasus = "pegasus"
+
+# The n450 is a single core hypterthreaded CPU
+KERNEL_FEATURES_append_pegasus += " cfg/smp.scc"
+
+SRC_URI += "file://pegasus.cfg"
+
+# We use the atom-pc machine SRCREV and the default meta SRCREV
+#SRCREV_machine_pn-linux-yocto-stable_pegasus = ""
+#SRCREV_meta_pn-linux-yocto-stable_pegasus ?= ""
--
1.7.1
^ permalink raw reply related [flat|nested] 5+ messages in thread
* Re: [PATCH 0/3] [RFC] enable Pegasus touch screen
2011-09-27 1:03 [PATCH 0/3] [RFC] enable Pegasus touch screen edwin.zhai
` (2 preceding siblings ...)
2011-09-27 1:04 ` [PATCH 3/3] Enabled kernel module for eGalax touch screen edwin.zhai
@ 2011-09-27 20:08 ` Tom Zanussi
3 siblings, 0 replies; 5+ messages in thread
From: Tom Zanussi @ 2011-09-27 20:08 UTC (permalink / raw)
To: Zhai, Edwin; +Cc: openembedded-core@lists.openembedded.org
On Mon, 2011-09-26 at 18:03 -0700, Zhai, Edwin wrote:
> From: Zhai Edwin <edwin.zhai@intel.com>
>
> Tom,
> These changes, based on meta-intel/tzanussi/pegasus, are needed to enable
> eGalax touch screen on Pegasus. Could you pls. help to review?
>
Hi Edwin,
First, I don't think this is the correct list for meta-intel stuff,
please use the yocto list.
Anyway, the first two patches look ok to me, but the 3rd seems to be a
combination of what it says in the title, enabling touch screen kernel
config, and updating the BSP to work with the current kernel recipes.
The latter should I think be squashed into the base BSP, which isn't
posted.
> When will you push Pegasus changes into meta-intel/master? We can have a common
> place for people to try pegasus...
>
The meta-pegasus you pointed to seems to be an old version, basically
the same prototype version I gave you for the demo. I thought the
current one had been updated to address the comments from the quick
review of Aug 9:
- meta-pegasus - commented-out stuff in pegasus.conf, xorg.conf,
linux-yocto-2.6.37.bbappend, ReleaseNotes are unrelated to the BSP, etc.
Also, it has a blacksand.pdf and has old kernel recipes, etc.
Basically, it needs to be cleaned up a bit before it can be pulled in,
and should be buildable without relying on later patches.
Also, I'm wondering if there's a reason it's using 2.6.37 - we're at 3.0
now, and it would be good if it used that.
Finally, please also add yourself or whoever will be the maintainer
going forward to meta-intel/MAINTAINERS...
Thanks,
Tom
> Thanks,
> Edwin
>
> The following changes since commit 59dc67f6e64a836fc01fa91a1200e76264bb954d:
>
> meta-pegasus: new layer for Pegasus (N455) systems (2011-06-15 23:27:47 -0500)
>
> are available in the git repository at:
> git://git.pokylinux.org/poky-contrib gzhai/pegasus
> http://git.pokylinux.org/cgit.cgi/poky-contrib/log/?h=gzhai/pegasus
>
> Zhai Edwin (3):
> eGalax touchscreen offical xorg driver
> Config xorg.conf with eGalax touchscreen input driver
> Enabled kernel module for eGalax touch screen.
>
> meta-pegasus/conf/machine/pegasus.conf | 2 +-
> .../xf86-input-egalax/88eGalaxCalibrate.sh | 5 ++
> .../xorg-driver/xf86-input-egalax_3.06.5605.bb | 49 ++++++++++++++++++++
> .../xserver-xf86-config/pegasus/xorg.conf | 10 ++++
> .../xorg-xserver/xserver-xf86-config_0.1.bbappend | 2 +
> .../recipes-kernel/linux/linux-yocto/pegasus.cfg | 4 ++
> .../linux/linux-yocto_2.6.37.bbappend | 12 +++++
> 7 files changed, 83 insertions(+), 1 deletions(-)
> create mode 100755 meta-pegasus/recipes-graphics/xorg-driver/xf86-input-egalax/88eGalaxCalibrate.sh
> create mode 100644 meta-pegasus/recipes-graphics/xorg-driver/xf86-input-egalax_3.06.5605.bb
> create mode 100644 meta-pegasus/recipes-kernel/linux/linux-yocto/pegasus.cfg
> create mode 100644 meta-pegasus/recipes-kernel/linux/linux-yocto_2.6.37.bbappend
>
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2011-09-27 20:15 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-09-27 1:03 [PATCH 0/3] [RFC] enable Pegasus touch screen edwin.zhai
2011-09-27 1:03 ` [PATCH 1/3] eGalax touchscreen offical xorg driver edwin.zhai
2011-09-27 1:04 ` [PATCH 2/3] Config xorg.conf with eGalax touchscreen input driver edwin.zhai
2011-09-27 1:04 ` [PATCH 3/3] Enabled kernel module for eGalax touch screen edwin.zhai
2011-09-27 20:08 ` [PATCH 0/3] [RFC] enable Pegasus " Tom Zanussi
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox