Skip to contentSkip to conversation

enable Pegasus touch screen

RFC PATCH In review [email protected] 2 participants 7 messages Sep 27, 2011 – Sep 28, 2011

lore
Share & tools
lore
#0 lore raw

cover enable Pegasus touch screen

From: Zhai Edwin <[email protected]>

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
#1 lore raw

PATCH 1/3 eGalax touchscreen offical xorg driver

From: Zhai Edwin <[email protected]>

---
 .../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
meta-pegasus/recipes-graphics/xorg-driver/xf86-input-egalax/88eGalaxCalibrate.sh new file +5 -0
new file mode 100755
index 0000000..0cb075f
@@ -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
meta-pegasus/recipes-graphics/xorg-driver/xf86-input-egalax_3.06.5605.bb new file +49 -0

49 lines not on this page · raw message

Signature · 1 line
1.7.1
#2 lore raw

PATCH 2/3 Config xorg.conf with eGalax touchscreen input driver

From: Zhai Edwin <[email protected]>

---
 .../xserver-xf86-config/pegasus/xorg.conf          |   10 ++++++++++
 .../xorg-xserver/xserver-xf86-config_0.1.bbappend  |    2 ++
 2 files changed, 12 insertions(+), 0 deletions(-)
meta-pegasus/recipes-graphics/xorg-xserver/xserver-xf86-config/pegasus/xorg.conf +10 -0
index e18b911..634d9ad 100644
@@ -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
meta-pegasus/recipes-graphics/xorg-xserver/xserver-xf86-config_0.1.bbappend +2 -0
index 4b8d0e6..fb6e1e2 100644
@@ -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"
+
Signature · 1 line
1.7.1
#3 lore raw

PATCH 3/3 Enabled kernel module for eGalax touch screen.

In reply to [email protected]

From: Zhai Edwin <[email protected]>

---
 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
meta-pegasus/conf/machine/pegasus.conf +1 -1
index 8a4335e..5da6655 100644
@@ -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"
 
meta-pegasus/recipes-kernel/linux/linux-yocto/pegasus.cfg new file +4 -0
new file mode 100644
index 0000000..d115d06
@@ -0,0 +1,4 @@
+# Pegasus touchscreen
+CONFIG_HIDRAW=y
+CONFIG_USB_HID=y
+CONFIG_HID_PID=y
meta-pegasus/recipes-kernel/linux/linux-yocto_2.6.37.bbappend new file +12 -0
new file mode 100644
index 0000000..3e965dd
@@ -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 ?= ""
Signature · 1 line
1.7.1
#4 lore raw
In reply to [email protected]
Quoted 6 lines · Edwin

From: Zhai Edwin <[email protected]>

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.

Quoted 3 lines

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

Quoted 29 lines

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
#5 lore raw
Quoted 8 lines · Tom
Quoted 6 lines · Edwin

From: Zhai Edwin<[email protected]>

Tom,
These changes, based on meta-intel/tzanussi/pegasus, are needed to enable eGalax touch screen on Pegasus. Could you pls. help to review?

Quoted 4 lines

Hi Edwin,

First, I don't think this is the correct list for meta-intel stuff, please use the yocto list.

Change it now:)

Quoted 16 lines

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.

Quoted 3 lines

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:

Quoted 7 lines

- 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.

Do you mean we need rebased against branch of meta-intel/tzanussi/pegasus-v2?

Quoted 3 lines

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.

Have we tested 3.0 on Pegasus or N450 system? I remember your mentioned graphic crash with linux 3.0...

Quoted 3 lines

Finally, please also add yourself or whoever will be the maintainer going forward to meta-intel/MAINTAINERS...

Sure.
Tom,
Thanks for your comments!

Quoted 36 lines

Thanks,

Tom

Quoted 29 lines

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

#6 lore raw
Quoted 35 lines · Edwin
Quoted 8 lines · Tom
Quoted 6 lines · Edwin

From: Zhai Edwin<[email protected]>

Tom,
These changes, based on meta-intel/tzanussi/pegasus, are needed to enable eGalax touch screen on Pegasus. Could you pls. help to review?

Quoted 4 lines

Hi Edwin,

First, I don't think this is the correct list for meta-intel stuff, please use the yocto list.

Change it now:)

Quoted 19 lines

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.

Quoted 3 lines

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.

Quoted 8 lines
Quoted 4 lines

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.

Do you mean we need rebased against branch of
meta-intel/tzanussi/pegasus-v2?

I don't know - I would think you'd just clean up whatever version you've been using...

Quoted 7 lines
Quoted 3 lines

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.

Have we tested 3.0 on Pegasus or N450 system? I remember your mentioned graphic crash with linux 3.0...

The n450 BSP has been moved to 3.0, but I haven't worked on pegasus since the initial prototype, so I don't know if it's been tested on 3.0. I do recall running into problems with graphics, but don't remember the details...

Tom

Quoted 45 lines
Quoted 3 lines

Finally, please also add yourself or whoever will be the maintainer going forward to meta-intel/MAINTAINERS...

Sure.
Tom,
Thanks for your comments!

Quoted 36 lines

Thanks,

Tom

Quoted 29 lines

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