Re: [yocto] Graphics Acceleration on crownbay - 1.2M3 + meta-intel tip

2012-03-22 Thread Tom Zanussi
On Wed, 2012-03-21 at 19:07 -0400, Autif Khan wrote:
> >> >> >> Minor correction to the subject - I am using 1.2M3, not 1.2M2
> >> >> >>
> >> >> >> On Wed, Mar 21, 2012 at 4:14 PM, Autif Khan  
> >> >> >> wrote:
> >> >> >> > I am trying to get hardware accelerated graphics (video in 
> >> >> >> > particular)
> >> >> >> > to work on my crownbay based hardware. I have EMGD 1.10 driver
> >> >> >> > integrated and working. The evidence for this is that when I use
> >> >> >> > glxgears (form mesa-demos) I get 115 fps instead of 4-5 fps.
> >> >> >> >
> >> >> >> > This is good, however, when I go over to the web2 browser (enabled 
> >> >> >> > by
> >> >> >> > defining WEB = "web-webkit" for recipe task-core-apps-x11-pimlico) 
> >> >> >> > - I
> >> >> >> > do not get graphics acceleration for javascript graphics. I also do
> >> >> >> > not get graphics acceleration when I watch an MP4 movie. I get 2-3 
> >> >> >> > fps
> >> >> >> > instead of the standard 25 or 29 fps.
> >> >> >> >
> >> >> >> > This was not the case when Yocto used EMGD 1.8 driver - video 
> >> >> >> > worked
> >> >> >> > fine - I am not sure about accelerated javascript based graphics in
> >> >> >> > browser as I was not as far ahead in the project.
> >> >> >> >
> >> >> >> > Is this a known issue?
> >> >> >> >
> >> >> >
> >> >> > When I tested video using gst-launch, I saw the same thing, which was
> >> >> > due to a missing libva-tpi.  The latest commit in meta-intel added 
> >> >> > that
> >> >> > and fixed the problem for me.
> >> >> >
> >> >> > commit 162f3d1d3c538d7582a5e81205a9cdab74125b2b
> >> >> > Author: Tom Zanussi 
> >> >> > Date:   Mon Mar 12 19:57:29 2012 -0500
> >> >> >
> >> >> >ia32-base: add libva display dependencies to emgd xserver
> >> >> >
> >> >>
> >> >> I did a build today with tip - I have confirmed that I have this in the 
> >> >> source.
> >> >>
> >> >> What files should have been added to the root filesystem image as a
> >> >> reult of adding libva-tpi, libva-glx and libva-egl?
> >> >>
> >> >
> >> > You should see those shared libraries in /usr/lib
> >>
> >> I think that I do:
> >>
> >> root@crownbay:/usr/lib# ls -l *libva*
> >> lrwxrwxrwx1 root root19 Mar 21 17:38
> >> libva-egl.so.1 -> libva-egl.so.1.0.12
> >> -rwxr-xr-x1 root root  3040 Mar 21 17:07 
> >> libva-egl.so.1.0.12
> >> lrwxrwxrwx1 root root19 Mar 21 17:38
> >> libva-glx.so.1 -> libva-glx.so.1.0.12
> >> -rwxr-xr-x1 root root 14868 Mar 21 17:07 
> >> libva-glx.so.1.0.12
> >> lrwxrwxrwx1 root root19 Mar 21 17:38
> >> libva-tpi.so.1 -> libva-tpi.so.1.0.12
> >> -rwxr-xr-x1 root root  3856 Mar 21 17:07 
> >> libva-tpi.so.1.0.12
> >> lrwxrwxrwx1 root root19 Mar 21 17:38
> >> libva-x11.so.1 -> libva-x11.so.1.0.12
> >> -rwxr-xr-x1 root root 28476 Mar 21 17:07 
> >> libva-x11.so.1.0.12
> >> lrwxrwxrwx1 root root15 Mar 21 17:38 libva.so.1 ->
> >> libva.so.1.0.12
> >> -rwxr-xr-x1 root root 68816 Mar 21 17:07 libva.so.1.0.12
> >>
> >> The older image did not have egl, glx and tpi
> >>
> >> However, when I execute gst-launch -v playbin2 
> >> uri=file:///media/hdd/BBB.ogv
> >>
> >> I get a lot of "There may be a timestamping problem, or this computer
> >> is too slow." warnings.
> >>
> >> Attached are the logs created by the above command.
> >>
> >> Is there something else that needs to be done?
> >
> > Hmm, looks like the acceleration isn't kicking in.  Is that a supported
> > format for emgd accelaration? - I've been testing with 1080p .h264
> > videos, http://www.bigbuckbunny.org/index.php/download/, maybe if you
> > could try that so we know we're on the same page.
> >
> 
> I was hoping that Ogg Video is supported.
> 
> I tried the H.264 (BBB stands for bigbuck bunny, I got these movies
> from an earlier email from you). But I am getting another error -
> ERROR: pipeline doesn't want to preroll.
> 
> Do I need some other codec or some library? Are there licensing
> implications of using H.264?

It should work as-is - the image I tested wasn't against 1.2M3, but
that's what I'll now build and try again myself.

So just for more information, all this used to work using emgd 1.8, but
the same thing with 1.10 no longer does?

Could you also send the debug output for that and also the output of
'gst-inspect'?

The licensing implications are mentioned in the EMGD documentation, but
I've also discussed them with Jeffrey Moore, so you might want to talk
to him about the details for your project.

Tom

___
yocto mailing list
yocto@yoctoproject.org
https://lists.yoctoproject.org/listinfo/yocto


[yocto] yocto docs: confusion between shell env vars and bitbake env vars

2012-03-22 Thread Robert P. J. Day

  since i'm reading this out of the yocto/poky reference manual, i
might as well point it out here.

  there is occasional confusion when the docs refer to "environment
variables", since it's not clear when that means *shell* env vars or
*bitbake* env vars.  for instance, in the ref manual, section B.1,
"Parsing", you read:

"The first thing BitBake does is look for the bitbake.conf file. The
Yocto Project keeps this file in the Yocto Project file's meta/conf/
directory. BitBake finds it by examining the BBPATH environment
variable and looking for the meta/conf/ directory."

  but there is no BBPATH shell environment variable.  in fact,
oe-init-build-env explicitly *unsets* that shell variable at the very
end.

  however, you can check the *bitbake* environment with "bitbake -e"
and there it is, and i think that not being clear about the difference
has the potential to massively confuse readers.

rday

-- 


Robert P. J. Day Ottawa, Ontario, CANADA
http://crashcourse.ca

Twitter:   http://twitter.com/rpjday
LinkedIn:   http://ca.linkedin.com/in/rpjday

___
yocto mailing list
yocto@yoctoproject.org
https://lists.yoctoproject.org/listinfo/yocto


[yocto] poky ref manual still confuses BB_ENV_WHITELIST and BB_ENV_EXTRAWHITE

2012-03-22 Thread Robert P. J. Day

  in ref manual, B.5, "Running a Task",

"Tell BitBake to load what you want from the environment into the data
store. You can do so through the BB_ENV_WHITELIST variable. For
example, assume you want to prevent the build system from accessing
your $HOME/.ccache directory. The following command tells BitBake to
load CCACHE_DIR from the environment into the data store:

 export BB_ENV_EXTRAWHITE="$BB_ENV_EXTRAWHITE CCACHE_DIR""

  as you can see, the para refers to one variable, while the export
command refers to another.  not sure how someone wants to word that so
i'll leave it for someone else to fix.

rday

-- 


Robert P. J. Day Ottawa, Ontario, CANADA
http://crashcourse.ca

Twitter:   http://twitter.com/rpjday
LinkedIn:   http://ca.linkedin.com/in/rpjday

___
yocto mailing list
yocto@yoctoproject.org
https://lists.yoctoproject.org/listinfo/yocto


Re: [yocto] [PATCH 1/1] ddimage: Add script for writing images to boot media

2012-03-22 Thread Darren Hart


On 03/21/2012 05:26 PM, Paul Eggleton wrote:
> On Wednesday 21 March 2012 16:06:14 Darren Hart wrote:
>> Any objections to this going in?
> 
> No objections, looks like a really useful tool; a couple of suggestions 
> though 
> (sorry for not looking at it earlier):
> 
> * Is it worth checking if the target device is mounted and erroring out if so?

That's a good suggestion. Alright with you if that is a follow-on patch?

> * Not sure but it may be worth waiting a few seconds after the sync before 
> exiting; I've seen some hardware that returns control to userspace before the 
> hardware has actually finished writing.

That may be, but anything we assume will be wrong for some hardware. The
sticks I have flash an LED for a few seconds afterwards, indicating writing.

-- 
Darren Hart
Intel Open Source Technology Center
Yocto Project - Linux Kernel
___
yocto mailing list
yocto@yoctoproject.org
https://lists.yoctoproject.org/listinfo/yocto


Re: [yocto] pseudo interaction issue

2012-03-22 Thread Peter Seebach
On Thu, 22 Mar 2012 09:49:41 +0800
"Xu, Dongxiao"  wrote:

> Hi Mark,
> 
> Any update on this one? I think we may need to track it in bugzilla.

I have been looking into this.  I've convinced myself that popen() is
broken under pseudo, but that's not enough to explain this:

* I have a fixed pseudo where popen works.  It still fails sometimes
  under hob.
* When it fails, the popen() wrapper isn't even getting called.
* Still looking into this.

Interestingly, I can't get this failure to occur at all outside of hob.

-s
-- 
Listen, get this.  Nobody with a good compiler needs to be justified.
___
yocto mailing list
yocto@yoctoproject.org
https://lists.yoctoproject.org/listinfo/yocto


Re: [yocto] [PATCH 1/1] ddimage: Add script for writing images to boot media

2012-03-22 Thread Paul Eggleton
On Thursday 22 March 2012 08:56:08 Darren Hart wrote:
> On 03/21/2012 05:26 PM, Paul Eggleton wrote:
> > On Wednesday 21 March 2012 16:06:14 Darren Hart wrote:
> >> Any objections to this going in?
> > 
> > No objections, looks like a really useful tool; a couple of suggestions
> > though (sorry for not looking at it earlier):
> > 
> > * Is it worth checking if the target device is mounted and erroring out if
> > so?
> That's a good suggestion. Alright with you if that is a follow-on patch?

Sure, sounds fine to me.
 
> > * Not sure but it may be worth waiting a few seconds after the sync before
> > exiting; I've seen some hardware that returns control to userspace before
> > the hardware has actually finished writing.
> 
> That may be, but anything we assume will be wrong for some hardware. The
> sticks I have flash an LED for a few seconds afterwards, indicating writing.

Many do, yes. I guess it was just a simple idea to avoid potential issues 
particularly for those that don't have an LED.

Cheers,
Paul

-- 

Paul Eggleton
Intel Open Source Technology Centre
___
yocto mailing list
yocto@yoctoproject.org
https://lists.yoctoproject.org/listinfo/yocto


[yocto] [PATCH 00/13][meta-intel] Cover letter for updating meta-cedartrail BSP with PVR Graphics driver

2012-03-22 Thread rahul . saxena
From: Rahul Saxena 

Cover letter for updating the Cedar Trail BSP (meta-cedartrail) with 
PVR Graphics driver.  This patch set updates meta-cedartrail (edison branch)
to include Power VR driver for Graphics and Video hardware acceleration.
The patches enable BSP build with PVR driver or VESA driver depending
upon MACHINE setting in local.conf.

In addition the patches add web-webkit, audio and video samples to sato image.

The Cedar Trail platform is based on the Cedarview processor (Intel® Atom™
N2600, N2800 and D2700 processor)and Tiger Point Chipset (Intel® NM10 Express)

Signed-off-by: Rahul Saxena 

--

The following changes since commit 31eaee8e24d570207338ada64f2df36cdbd5353d:

  meta-intel: update SRCREVs (2012-02-22 11:58:38 -0600)

are available in the git repository at:
  git://git.pokylinux.org/meta-intel-contrib rsaxena-cedartrailpvrrelease22March
  
http://git.pokylinux.org/cgit.cgi/meta-intel-contrib/log/?h=rsaxena-cedartrailpvrrelease22March

Rahul Saxena (13):
  meta-cedartrail: Separate conf files for the Cedar Trail BSP boot
cases of with and without pvr driver
  meta-cedartrail: update BBFILES to include meta-intel/common path
  meta-cedartrail: update README with instructions for PVR Graphics
driver build
  meta-cedatrail: add recipe for setting audio mixer settings during
boot
  meta-cedartrail: seperate xorg.conf files for pvr and no-pvr cases
  meta-cedartrail: add Cedar Trail PVR driver
  meta-cedartrail: update Kernel recipes to add support for pvr driver
  meta-cedartrail: add Cedar Trail specific libva
  meta-cedartrail: add recipes to instal audio and video samples
  meta-cedartrail: update formfactor recipe for pvr and no-pvr case
  meta-cedartrail: Add web-webkit, audio and video samples to sato
image
  meta-cedartrail: Update SRC_URI in kernel recipe append files to
point to linux-yocto_3.0
  meta-cedartrail: update SRC_REV_meta for no-pvr case

 meta-cedartrail/README |   50 +++-
 meta-cedartrail/conf/layer.conf|4 +-
 meta-cedartrail/conf/machine/cedartrail-nopvr.conf |   41 +
 meta-cedartrail/conf/machine/cedartrail.conf   |   15 +++-
 .../cedartrail-audio/cedartrail-audio.bb   |   30 +++
 .../cedartrail-audio/cedartrail-audio  |   42 +
 .../formfactor/cedartrail-nopvr/machconfig |3 +
 .../xorg-driver/cdv-graphics-drivers_1.0.bb|   89 
 .../xserver-xf86-config/cedartrail-nopvr/xorg.conf |   26 ++
 .../xserver-xf86-config/cedartrail/xorg.conf   |   24 ++
 .../linux/linux-yocto-rt_3.0.bbappend  |   16 -
 .../recipes-kernel/linux/linux-yocto_3.0.bbappend  |   17 +++-
 .../ogg-CC-BY-3.0-music-samples_0.1.bb |   20 +
 .../video-samples/bigbuckbunny-ogg.bb  |   20 +
 meta-cedartrail/recipes-multimedia/libva/libva.inc |   59 +
 .../recipes-multimedia/libva/libva_1.0.15.bb   |   31 +++
 .../images/core-image-sato-dev.bbappend|3 +
 .../images/core-image-sato-sdk.bbappend|3 +
 .../recipes-sato/images/core-image-sato.bbappend   |3 +
 19 files changed, 468 insertions(+), 28 deletions(-)
 create mode 100644 meta-cedartrail/conf/machine/cedartrail-nopvr.conf
 create mode 100644 
meta-cedartrail/recipes-bsp/cedartrail-audio/cedartrail-audio.bb
 create mode 100644 
meta-cedartrail/recipes-bsp/cedartrail-audio/cedartrail-audio/cedartrail-audio
 create mode 100644 
meta-cedartrail/recipes-bsp/formfactor/formfactor/cedartrail-nopvr/machconfig
 mode change 100755 => 100644 
meta-cedartrail/recipes-bsp/formfactor/formfactor/cedartrail/machconfig
 create mode 100644 
meta-cedartrail/recipes-graphics/xorg-driver/cdv-graphics-drivers_1.0.bb
 create mode 100644 
meta-cedartrail/recipes-graphics/xorg-xserver/xserver-xf86-config/cedartrail-nopvr/xorg.conf
 mode change 100755 => 100644 
meta-cedartrail/recipes-graphics/xorg-xserver/xserver-xf86-config/cedartrail/xorg.conf
 create mode 100644 
meta-cedartrail/recipes-mediasamples/music-samples/ogg-CC-BY-3.0-music-samples_0.1.bb
 create mode 100644 
meta-cedartrail/recipes-mediasamples/video-samples/bigbuckbunny-ogg.bb
 create mode 100644 meta-cedartrail/recipes-multimedia/libva/libva.inc
 create mode 100644 meta-cedartrail/recipes-multimedia/libva/libva_1.0.15.bb
 create mode 100644 
meta-cedartrail/recipes-sato/images/core-image-sato-dev.bbappend
 create mode 100644 
meta-cedartrail/recipes-sato/images/core-image-sato-sdk.bbappend
 create mode 100644 meta-cedartrail/recipes-sato/images/core-image-sato.bbappend

-- 
1.7.4.1

___
yocto mailing list
yocto@yoctoproject.org
https://lists.yoctoproject.org/listinfo/yocto


[yocto] [PATCH 02/13] meta-cedartrail: update BBFILES to include meta-intel/common path

2012-03-22 Thread rahul . saxena
From: Rahul Saxena 

Update BBFILES to include the path to xserver-xf86-dri-lite_1.9.3.bb
Cedar Trail PVR driver is dependent on Version 1.9.3 of xserver.

Signed-off-by: Rahul Saxena 
---
 meta-cedartrail/conf/layer.conf |4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)

diff --git a/meta-cedartrail/conf/layer.conf b/meta-cedartrail/conf/layer.conf
index cb4142d..c506c5b 100755
--- a/meta-cedartrail/conf/layer.conf
+++ b/meta-cedartrail/conf/layer.conf
@@ -3,7 +3,9 @@ BBPATH := "${BBPATH}:${LAYERDIR}"
 
 # We have a recipes directory, add to BBFILES
 BBFILES := "${BBFILES} ${LAYERDIR}/recipes-*/*/*.bb \
-   ${LAYERDIR}/recipes-*/*/*.bbappend"
+   ${LAYERDIR}/recipes-*/*/*.bbappend \ 
+${LAYERDIR}/../common/recipes-graphics/*/*.bb \
+${LAYERDIR}/../common/recipes-graphics/*/*.bbappend"
 
 BBFILE_COLLECTIONS += "cedartrail"
 BBFILE_PATTERN_cedartrail := "^${LAYERDIR}/"
-- 
1.7.4.1

___
yocto mailing list
yocto@yoctoproject.org
https://lists.yoctoproject.org/listinfo/yocto


[yocto] [PATCH 01/13] meta-cedartrail: Separate conf files for the Cedar Trail BSP boot cases of with and without pvr driver

2012-03-22 Thread rahul . saxena
From: Rahul Saxena 

Seperate Cedar Trail machine configuration files, one file each for build
with pvr graphics driver and without pvr driver (with VESA driver)
The Cedar Trail platform is based on the Cedarview processor (Intel® Atom™
N2600, N2800 and D2700 processor)and Tiger Point Chipset (Intel® NM10 Express).

Signed-off-by: Rahul Saxena 
---
 meta-cedartrail/conf/machine/cedartrail-nopvr.conf |   41 
 meta-cedartrail/conf/machine/cedartrail.conf   |   15 +--
 2 files changed, 52 insertions(+), 4 deletions(-)
 create mode 100644 meta-cedartrail/conf/machine/cedartrail-nopvr.conf

diff --git a/meta-cedartrail/conf/machine/cedartrail-nopvr.conf 
b/meta-cedartrail/conf/machine/cedartrail-nopvr.conf
new file mode 100644
index 000..b664272
--- /dev/null
+++ b/meta-cedartrail/conf/machine/cedartrail-nopvr.conf
@@ -0,0 +1,41 @@
+#@TYPE: Machine
+#@NAME: Cedartrail-nopvr 
+
+#@DESCRIPTION: Machine configuration for Cedartrail systems
+# i.e. Cedarview (N2600, N2800 and D2700) processor +
+# Tiger Point (Intel® NM10 Express) Chipset
+
+include conf/machine/include/tune-atom.inc
+
+MACHINE_FEATURES = "kernel26 screen keyboard pci usbhost ext2 ext3 x86 \
+acpi serial usbgadget alsa"
+
+KERNEL_IMAGETYPE = "bzImage"
+
+PREFERRED_PROVIDER_virtual/kernel ?= "linux-yocto"
+PREFERRED_VERSION_linux-yocto ?= "3.0%"
+
+PREFERRED_PROVIDER_linux-libc-headers ?= "linux-libc-headers-yocto"
+PREFERRED_PROVIDER_virtual/libx11 ?= "libx11-trim"
+PREFERRED_PROVIDER_virtual/libgl  ?= "mesa-dri"
+PREFERRED_PROVIDER_virtual/xserver ?= "xserver-xf86-dri-lite"
+PREFERRED_PROVIDER_virtual/xserver-xf86 ?= "xserver-xf86-dri-lite"
+XSERVER ?= "xserver-xf86-dri-lite \
+   xf86-input-mouse \
+   xf86-input-keyboard \
+   xf86-input-evdev \
+   xf86-input-synaptics \
+   xf86-video-vesa"
+
+SYSLINUX_OPTS = "serial 3 115200"
+SERIAL_CONSOLE = "115200 ttyS3"
+APPEND += "console=ttyS3,115200 console=tty3"
+
+MACHINE_EXTRA_RRECOMMENDS = "kernel-modules eee-acpi-scripts cedartrail-audio"
+
+IMAGE_FSTYPES ?= "ext3 cpio.gz live"
+
+GLIBC_ADDONS = "nptl"
+GLIBC_EXTRA_OECONF = "--with-tls"
+
+MACHINE_ESSENTIAL_EXTRA_RDEPENDS = "grub"
diff --git a/meta-cedartrail/conf/machine/cedartrail.conf 
b/meta-cedartrail/conf/machine/cedartrail.conf
index 23ee0a7..21adb46 100755
--- a/meta-cedartrail/conf/machine/cedartrail.conf
+++ b/meta-cedartrail/conf/machine/cedartrail.conf
@@ -2,17 +2,19 @@
 #@NAME: Cedartrail 
 
 #@DESCRIPTION: Machine configuration for Cedartrail systems
-# i.e. Cedarview processor + Tiger Point Chipset 
+# i.e. Cedarview (N2600, N2800 and D2700) processor +
+# Tiger Point (Intel® NM10 Express) Chipset
 
 include conf/machine/include/tune-atom.inc
 
 MACHINE_FEATURES = "kernel26 screen keyboard pci usbhost ext2 ext3 x86 \
-acpi serial usbgadget"
+   acpi serial usbgadget alsa"
 
 KERNEL_IMAGETYPE = "bzImage"
 
 PREFERRED_PROVIDER_virtual/kernel ?= "linux-yocto"
 PREFERRED_VERSION_linux-yocto ?= "3.0%"
+PREFERRED_VERSION_mesa-dri ?= "7.10.2"
 
 PREFERRED_PROVIDER_linux-libc-headers ?= "linux-libc-headers-yocto"
 PREFERRED_PROVIDER_virtual/libx11 ?= "libx11-trim"
@@ -24,11 +26,16 @@ XSERVER ?= "xserver-xf86-dri-lite \
xf86-input-keyboard \
xf86-input-evdev \
xf86-input-synaptics \
-   xf86-video-vesa"
+   mesa-dri \
+   cdv-graphics-drivers " 
 
+PREFERRED_VERSION_xserver-xf86-dri-lite ?= "1.9.3"
+
+SYSLINUX_OPTS = "serial 3 115200"
 SERIAL_CONSOLE = "115200 ttyS3"
+APPEND += "console=ttyS3,115200 console=tty3"
 
-MACHINE_EXTRA_RRECOMMENDS = "kernel-modules eee-acpi-scripts"
+MACHINE_EXTRA_RRECOMMENDS = "kernel-modules eee-acpi-scripts cedartrail-audio"
 
 IMAGE_FSTYPES ?= "ext3 cpio.gz live"
 
-- 
1.7.4.1

___
yocto mailing list
yocto@yoctoproject.org
https://lists.yoctoproject.org/listinfo/yocto


[yocto] [PATCH 05/13] meta-cedartrail: seperate xorg.conf files for pvr and no-pvr cases

2012-03-22 Thread rahul . saxena
From: Rahul Saxena 

Seperate xserver configuration files, one file each for  the case of with pvr 
graphics
driver and for "no pvr" (i.e. with VESA driver)

Signed-off-by: Rahul Saxena 
---
 .../xserver-xf86-config/cedartrail-nopvr/xorg.conf |   26 
 .../xserver-xf86-config/cedartrail/xorg.conf   |   24 ++
 2 files changed, 34 insertions(+), 16 deletions(-)
 create mode 100644 
meta-cedartrail/recipes-graphics/xorg-xserver/xserver-xf86-config/cedartrail-nopvr/xorg.conf
 mode change 100755 => 100644 
meta-cedartrail/recipes-graphics/xorg-xserver/xserver-xf86-config/cedartrail/xorg.conf

diff --git 
a/meta-cedartrail/recipes-graphics/xorg-xserver/xserver-xf86-config/cedartrail-nopvr/xorg.conf
 
b/meta-cedartrail/recipes-graphics/xorg-xserver/xserver-xf86-config/cedartrail-nopvr/xorg.conf
new file mode 100644
index 000..da4fc3c
--- /dev/null
+++ 
b/meta-cedartrail/recipes-graphics/xorg-xserver/xserver-xf86-config/cedartrail-nopvr/xorg.conf
@@ -0,0 +1,26 @@
+Section "Device"
+Identifier "Generic VESA"
+Driver "vesa"
+EndSection
+
+Section "Monitor"
+Identifier"Generic Monitor"
+Option"DPMS"
+EndSection
+
+Section "Screen"
+Identifier"Default Screen"
+Device   "Generic VESA"
+Monitor   "Generic Monitor"
+DefaultDepth  24
+EndSection
+
+Section "ServerLayout"
+Identifier "Default Layout"
+Screen "Default Screen"
+EndSection
+
+Section "ServerFlags"
+Option"DontZap"  "0"
+Option"AutoAddDevices"  "False"
+EndSection
diff --git 
a/meta-cedartrail/recipes-graphics/xorg-xserver/xserver-xf86-config/cedartrail/xorg.conf
 
b/meta-cedartrail/recipes-graphics/xorg-xserver/xserver-xf86-config/cedartrail/xorg.conf
old mode 100755
new mode 100644
index da4fc3c..1d085a4
--- 
a/meta-cedartrail/recipes-graphics/xorg-xserver/xserver-xf86-config/cedartrail/xorg.conf
+++ 
b/meta-cedartrail/recipes-graphics/xorg-xserver/xserver-xf86-config/cedartrail/xorg.conf
@@ -1,23 +1,15 @@
 Section "Device"
-Identifier "Generic VESA"
-Driver "vesa"
-EndSection
-
-Section "Monitor"
-Identifier"Generic Monitor"
-Option"DPMS"
-EndSection
-
-Section "Screen"
-Identifier"Default Screen"
-Device   "Generic VESA"
-Monitor   "Generic Monitor"
-DefaultDepth  24
+Option "DRIDisableVSync""False"
+Identifier  "Card0"
+Driver  "pvr"
+BusID   "PCI:0:2:0"
+Option  "SoftEXA"   "Off"
+Option  "FlipChain" "On"
 EndSection
 
 Section "ServerLayout"
-Identifier "Default Layout"
-Screen "Default Screen"
+Identifier "default screen"
+Option  "AIGLX" "on"
 EndSection
 
 Section "ServerFlags"
-- 
1.7.4.1

___
yocto mailing list
yocto@yoctoproject.org
https://lists.yoctoproject.org/listinfo/yocto


[yocto] [PATCH 03/13] meta-cedartrail: update README with instructions for PVR Graphics driver build

2012-03-22 Thread rahul . saxena
From: Rahul Saxena 

Update README file with information on building image with PVR graphics driver.
Also provide info on  enabling build of recipes for glxgears demo apps,
video and music samples.

Signed-off-by: Rahul Saxena 
---
 meta-cedartrail/README |   50 ++-
 1 files changed, 48 insertions(+), 2 deletions(-)

diff --git a/meta-cedartrail/README b/meta-cedartrail/README
index 67cba6b..f17410c 100755
--- a/meta-cedartrail/README
+++ b/meta-cedartrail/README
@@ -2,13 +2,17 @@ This README file contains information on building the 
meta-cedartrail
 BSP layer, and booting the images contained in the /binary directory.
 Please see the corresponding sections below for details.
 
+The 'Cedar Trail' platform consists of the Cedarview (Intel® Atom™
+N2600, N2800 and D2700) processor, plus the Tiger Point
+(Intel® NM10 Express) Chipset. 
+
 
 Table of Contents
 =
 
  I. Building the meta-cedartrail BSP layer
 II. Booting the images in /binary
-
+III. Miscellaneous Notes 
 
 I. Building the meta-cedartrail BSP layer
 =
@@ -24,10 +28,28 @@ bblayers.conf e.g.:
 
   yocto/meta-intel/meta-cedartrail \
 
-To enable the cedartrail layer, add the cedartrail MACHINE to local.conf:
+The meta-cedartrail layer contains support for two different machine
+configurations. These configurations are identical except for the fact
+that the one prefixed with 'cedartrail' makes use of Intel' proprietary
+PowerVR Graphics/Media drivers to enable Graphics and Media acceleration
+in the processor, while the one prefixed with 'cedartrail-nonopvr' uses
+non-accelerated graphics driver (VESA).
+
+If you want to enable the layer that supports Power VR graphics add the
+following to the local.conf file:
 
   MACHINE ?= "cedartrail"
 
+Power VR Graphics user-space driver binaries are covered by a
+"Intel Free Distribution Binary License". The build of this driver
+can be enabled by adding the following line to the local.conf file:
+ PVR_LICENSE = "yes"
+
+If you want to enable the layer that does not support Power VR graphics
+add the following to the local.conf file:
+
+ MACHINE ?= "cedartrail-nopvr"
+
 You should then be able to build a cedartrail image as such:
 
   $ source oe-init-build-env
@@ -81,3 +103,27 @@ the syslinux boot: prompt, or the boot: prompt contains 
strange
 characters), try doing this first:
 
 # dd if=/dev/zero of=/dev/sdf bs=1M count=512
+
+Miscellaneous Notes
+
+
+Video and Music Samples
+---
+This BSP includes recipes to download Ogg format video and
+music files that can be played-back with the Video and music players
+included in the sato images.  The sample files are installed in
+/home/Music and /home/Videos directories.  
+
+
+Adding Glxgears to image
+-
+Glxgears can be added to the generated image by adding "debug-tweaks"
+option to the extra image features variable in the default local.conf
+before building the BSP.
+
+e.g. to add Glxgears, locate the following line in local.conf
+EXTRA_IMAGE_FEATURES = "debug-tweaks"
+
+and change above line to..
+
+EXTRA_IMAGE_FEATURES = "debug-tweaks tools-testapps"
-- 
1.7.4.1

___
yocto mailing list
yocto@yoctoproject.org
https://lists.yoctoproject.org/listinfo/yocto


[yocto] [PATCH 06/13] meta-cedartrail: add Cedar Trail PVR driver

2012-03-22 Thread rahul . saxena
From: Rahul Saxena 

The Cedar Trail PVR driver consists of user-space  binaries that enable
the Video and Graphics acceleration capabilites of the Power VR SGX545
Integrated Graphics Controller in the Cedarview processor.
The driver binaries are provided under "Intel Free Distribution Binary License"
The instructions to enable the build of this driver are provided in the
meta-cedartrail/README file

Signed-off-by: Rahul Saxena 
---
 .../xorg-driver/cdv-graphics-drivers_1.0.bb|   89 
 1 files changed, 89 insertions(+), 0 deletions(-)
 create mode 100644 
meta-cedartrail/recipes-graphics/xorg-driver/cdv-graphics-drivers_1.0.bb

diff --git 
a/meta-cedartrail/recipes-graphics/xorg-driver/cdv-graphics-drivers_1.0.bb 
b/meta-cedartrail/recipes-graphics/xorg-driver/cdv-graphics-drivers_1.0.bb
new file mode 100644
index 000..249246b
--- /dev/null
+++ b/meta-cedartrail/recipes-graphics/xorg-driver/cdv-graphics-drivers_1.0.bb
@@ -0,0 +1,89 @@
+SUMMARY = "Cedartrail PowerVR Graphics Driver version [Gold] 1.0 binaries"
+DESCRIPTION = "2D, 3D and Media user space driver for Cedartrail platform \
+The binaries are covered by the Intel Free Distribution Binary License. \ 
+The user must make himself/herself aware of the Licensing terms \
+before enabling build of the Cedartrail PowerVR Graphics Driver via \
+this recipe.  Please see the README in meta-cedartrail for instructions \
+for enabling the build of the driver "
+
+ 
+PR = r0
+
+S  = ${WORKDIR}/cdv-graphics-drivers_${PV}
+
+LICENSE = "Intel Free Distribution Binary License"
+LIC_FILES_CHKSUM = " \
+
file://${S}/usr/share/doc/psb-video-cdv-0.12/license.txt;md5=b14d99f8d4ed664e9ce95057f0bb5b65
  \
+
file://${S}/usr/share/doc/pvr-bin-cdv-1.7.788837_05/license.txt;md5=b14d99f8d4ed664e9ce95057f0bb5b65"
+
+DEPENDS = "libva"
+
+CDR_TRAIL = "download.meego.com/live/MeeGo:/1.2.0:/CedarTrail:"
+
+SRC_URI = " \
+  
http://${CDR_TRAIL}/non-oss/MeeGo_1.2.0_CedarTrail/i586/psb-video-cdv-0.12-1.1.i586.rpm;name=psb
  \
+  
http://${CDR_TRAIL}/non-oss/MeeGo_1.2.0_CedarTrail/i586/pvr-bin-cdv-1.7.788837_05-1.1.i586.rpm;name=pvr
 \
+  
http://${CDR_TRAIL}/oss/standard/i586/libwsbm-cdv-1.1.0-3.1.i586.rpm;name=libwsbm
 \
+"
+SRC_URI[psb.md5sum] = "d4b6b383722264f3b781aeb240c88037"
+SRC_URI[psb.sha256sum] = 
"e88f95fc73a79adf76ee33d3d9874cec23bb1afe8149d7dc5842d67e58da72f5"
+SRC_URI[pvr.md5sum] = "951fa9edcbc2a3ddb30450079869362e"
+SRC_URI[pvr.sha256sum] = 
"537dd8a98ac2e3a101063abc62682c3be8c37ac29782a876eafce113ffa5b421"
+SRC_URI[libwsbm.md5sum] = "8d90436b151ddf72f620771f2552b597"
+SRC_URI[libwsbm.sha256sum] = 
"82f78f47c151f0e7d567574ee372504e5b395fb13796caa765f9c30754b5bf63"
+
+do_configure () {
+
+# Extract  license files from rpms
+rpm2cpio ${WORKDIR}/psb-video-cdv-0.12-1.1.i586.rpm |cpio -ivd 
./usr/share/doc/psb-video-cdv-0.12/license.txt
+rpm2cpio ${WORKDIR}/pvr-bin-cdv-1.7.788837_05-1.1.i586.rpm |cpio -ivd 
./usr/share/doc/pvr-bin-cdv-1.7.788837_05/license.txt
+
+}
+
+do_install() {
+
+install -m 0644 ${WORKDIR}/psb-video-cdv-0.12-1.1.i586.rpm ${D}
+install -m 0644 ${WORKDIR}/pvr-bin-cdv-1.7.788837_05-1.1.i586.rpm ${D}
+install -m 0644 ${WORKDIR}/libwsbm-cdv-1.1.0-3.1.i586.rpm ${D}
+
+cd ${D}
+
+rpm2cpio psb-video-cdv-0.12-1.1.i586.rpm | cpio -idmv
+rpm2cpio pvr-bin-cdv-1.7.788837_05-1.1.i586.rpm | cpio -idmv
+rpm2cpio libwsbm-cdv-1.1.0-3.1.i586.rpm | cpio -idmv
+
+install -m 0755 ${D}/${libdir}/libpvr2d.so.1.7.788837  
${D}/${libdir}/libpvr2d.so
+install -m 0755 ${D}/${libdir}/libsrv_um.so.1.7.788837 
${D}/${libdir}/libsrv_um.so
+install -m 0755 ${D}/${libdir}/libegl4ogl.so.1.7.788837 
${D}/${libdir}/libegl4ogl.so
+install -m 0755 ${D}/${libdir}/libPVROGL_MESA.so.1.7.788837 
${D}/${libdir}/libPVROGL_MESA.so
+install -m 0755 ${D}/${libdir}/libIMGegl.so.1.7.788837 
${D}/${libdir}/libIMGegl.so
+install -m 0755 ${D}/${libdir}/libusc.so.1.7.788837 ${D}/${libdir}/libusc.so
+install -m 0755 ${D}/${libdir}/libOpenVG.so.1.7.788837 
${D}/${libdir}/libOpenVG.so
+
+install -m 0644 ${S}/usr/share/doc/psb-video-cdv-0.12/license.txt 
${WORKDIR}/license-destdir/cdv-graphics-drivers/license.txt  
+
+rm -f *.rpm
+}
+
+FILES_${PN} += "${libdir}/pvr/cdv/lib*.so.*"
+FILES_${PN} += "${base_libdir}/firmware"
+FILES_${PN} += "${libdir}/debug/usr/bin"
+FILES_${PN} += "${libdir}/debug/usr/lib"
+FILES_${PN} += "${libdir}/lib*.so"
+
+FILES_${PN} += "${libdir}/dri/*.so"
+FILES_${PN} += "${libdir}/pvr/cdv/dri/*.so"
+FILES_${PN} += "${libdir}/xorg/modules/drivers/*.so"
+FILES_${PN} += "${libdir}/pvr/cdv/xorg/modules/drivers/*.so"
+
+FILES_${PN}-dbg += "${libdir}/dri/.debug/*"
+
+addtask check_pvr_license before do_fetch
+
+python do_check_pvr_license() {
+pn = bb.data.getVar('PN', d, 1)
+pvr_license = bb.data.getVar('PVR_LICENSE', d, 1)
+if not pvr_license or not pvr_license.lower() == "yes":
+bb.debug(1, "Skipping %s because it may have a non-free license" % pn)
+raise bb.parse.SkipPackage("because it requires PVR_LICENSE =

[yocto] [PATCH 07/13] meta-cedartrail: update Kernel recipes to add support for pvr driver

2012-03-22 Thread rahul . saxena
From: Rahul Saxena 

Modify kernel recipes to enable pvr kernel patches and to include
additional Kernel config files for pvr driver

Signed-off-by: Rahul Saxena 
---
 .../linux/linux-yocto-rt_3.0.bbappend  |   13 -
 .../recipes-kernel/linux/linux-yocto_3.0.bbappend  |   15 +++
 2 files changed, 23 insertions(+), 5 deletions(-)

diff --git a/meta-cedartrail/recipes-kernel/linux/linux-yocto-rt_3.0.bbappend 
b/meta-cedartrail/recipes-kernel/linux/linux-yocto-rt_3.0.bbappend
index 3978951..828e6fd 100755
--- a/meta-cedartrail/recipes-kernel/linux/linux-yocto-rt_3.0.bbappend
+++ b/meta-cedartrail/recipes-kernel/linux/linux-yocto-rt_3.0.bbappend
@@ -2,10 +2,21 @@ FILESEXTRAPATHS_prepend := "${THISDIR}/${PN}:"
 COMPATIBLE_MACHINE_cedartrail = "cedartrail"
 KMACHINE_cedartrail  = "cedartrail"
 
-# The Cedarview processors have hyperthreading and includes dual-core versions
+COMPATIBLE_MACHINE_cedartrail-nopvr = "cedartrail"
+KMACHINE_cedartrail-nopvr  = "cedartrail"
+KERNEL_FEATURES_append_cedartrail-nopvr += " cfg/smp.scc"
+
+COMPATIBLE_MACHINE_cedartrail = "cedartrail"
+KMACHINE_cedartrail  = "cedartrail"
 KERNEL_FEATURES_append_cedartrail += " cfg/smp.scc"
+KERNEL_FEATURES_append_cedartrail += " cfg/drm-cdvpvr.scc"
+KERNEL_FEATURES_append_cedartrail += " bsp/cedartrail/cedartrail-pvr-merge.scc"
 
 # Update the following to use a different BSP branch or meta SRCREV
+#KBRANCH_cedartrail-nopvr = "yocto/standard/preempt-rt/base"
+#SRCREV_machine_pn-linux-yocto-rt_cedartrail-nopvr ?= 
+#SRCREV_meta_pn-linux-yocto-rt_cedartrail-nopvr ?= 
+
 #KBRANCH_cedartrail  = "yocto/standard/preempt-rt/base"
 #SRCREV_machine_pn-linux-yocto-rt_cedartrail ?= 
 #SRCREV_meta_pn-linux-yocto-rt_cedartrail ?= 
diff --git a/meta-cedartrail/recipes-kernel/linux/linux-yocto_3.0.bbappend 
b/meta-cedartrail/recipes-kernel/linux/linux-yocto_3.0.bbappend
index 858db15..14c0b9d 100755
--- a/meta-cedartrail/recipes-kernel/linux/linux-yocto_3.0.bbappend
+++ b/meta-cedartrail/recipes-kernel/linux/linux-yocto_3.0.bbappend
@@ -1,10 +1,17 @@
 FILESEXTRAPATHS_prepend := "${THISDIR}/${PN}:"
 
+COMPATIBLE_MACHINE_cedartrail-nopvr = "cedartrail"
+KMACHINE_cedartrail-nopvr  = "yocto/standard/cedartrail"
+KERNEL_FEATURES_append_cedartrail-nopvr += " cfg/smp.scc"
+
 COMPATIBLE_MACHINE_cedartrail = "cedartrail"
 KMACHINE_cedartrail  = "yocto/standard/cedartrail"
-
-# The Cedarview processors have hyperthreading and includes dual-core versions
 KERNEL_FEATURES_append_cedartrail += " cfg/smp.scc"
+KERNEL_FEATURES_append_cedartrail += " cfg/drm-cdvpvr.scc"
+KERNEL_FEATURES_append_cedartrail += " bsp/cedartrail/cedartrail-pvr-merge.scc"
+
+SRCREV_machine_pn-linux-yocto_cedartrail ?= 
"5746120ee0afefd1e28400bea4b74f285bd5e59a"
+SRCREV_meta_pn-linux-yocto_cedartrail ?= 
"a4ac64fe873f08ef718e2849b88914725dc99c1c"
 
-SRCREV_machine_pn-linux-yocto_cedartrail ?= 
"f389d310965a56091f688b28ea8be6d9cbb7fbbe"
-SRCREV_meta_pn-linux-yocto_cedartrail ?= 
"04a52a32cbdf0972033b97b83eaa83eb275dfdc9"
+SRCREV_machine_pn-linux-yocto_cedartrail-nopvr ?= 
"5746120ee0afefd1e28400bea4b74f285bd5e59a"
+SRCREV_meta_pn-linux-yocto_cedartrail-nopvr ?= 
"d588bdafc0d9b4d2386144b7d76a1d379e2d16c0"
-- 
1.7.4.1

___
yocto mailing list
yocto@yoctoproject.org
https://lists.yoctoproject.org/listinfo/yocto


[yocto] [PATCH 08/13] meta-cedartrail: add Cedar Trail specific libva

2012-03-22 Thread rahul . saxena
From: Rahul Saxena 

Add recipe for Cedartrail specific libva

Signed-off-by: Rahul Saxena 
---
 meta-cedartrail/recipes-multimedia/libva/libva.inc |   59 
 .../recipes-multimedia/libva/libva_1.0.15.bb   |   31 ++
 2 files changed, 90 insertions(+), 0 deletions(-)
 create mode 100644 meta-cedartrail/recipes-multimedia/libva/libva.inc
 create mode 100644 meta-cedartrail/recipes-multimedia/libva/libva_1.0.15.bb

diff --git a/meta-cedartrail/recipes-multimedia/libva/libva.inc 
b/meta-cedartrail/recipes-multimedia/libva/libva.inc
new file mode 100644
index 000..2c1c75d
--- /dev/null
+++ b/meta-cedartrail/recipes-multimedia/libva/libva.inc
@@ -0,0 +1,59 @@
+SUMMARY = "Video Acceleration (VA) API for Linux"
+DESCRIPTION = "Video Acceleration API (VA API) is a library (libVA) \
+and API specification which enables and provides access to graphics \
+hardware (GPU) acceleration for video processing on Linux and UNIX \
+based operating systems. Accelerated processing includes video \
+decoding, video encoding, subpicture blending and rendering. The \
+specification was originally designed by Intel for its GMA (Graphics \
+Media Accelerator) series of GPU hardware, the API is however not \
+limited to GPUs or Intel specific hardware, as other hardware and \
+manufacturers can also freely use this API for hardware accelerated \
+video decoding."
+
+HOMEPAGE = "http://www.freedesktop.org/wiki/Software/vaapi";
+BUGTRACKER = "https://bugs.freedesktop.org";
+
+SECTION = "x11"
+
+INC_PR = "r1"
+
+DEPENDS = "libxext libxfixes libdrm mesa-dri"
+
+inherit autotools pkgconfig
+
+PACKAGES =+ "${PN}-x11 ${PN}-tpi ${PN}-glx ${PN}-egl"
+PROVIDES =+ "${PN}-x11 ${PN}-tpi ${PN}-glx ${PN}-egl"
+PACKAGES =+ "${PN}-x11-dev ${PN}-tpi-dev ${PN}-glx-dev ${PN}-egl-dev"
+PACKAGES =+ "${PN}-x11-dbg ${PN}-tpi-dbg ${PN}-glx-dbg ${PN}-egl-dbg"
+RPROVIDES_${PN}-dev =+ "${PN}-x11-dev ${PN}-tpi-dev ${PN}-glx-dev 
${PN}-egl-dev"
+
+RDEPENDS_${PN}-tpi =+ "${PN}"
+RDEPENDS_${PN}-x11 =+ "${PN}"
+RDEPENDS_${PN}-glx =+ "${PN}-x11"
+RDEPENDS_${PN}-egl =+ "${PN}-x11"
+
+FILES_${PN}-dbg += "${libdir}/dri/.debug"
+FILES_${PN} += "${libdir}/dri"
+
+FILES_${PN}-x11 =+ "${libdir}/libva-x11*${SOLIBS}"
+FILES_${PN}-tpi =+ "${libdir}/libva-tpi*${SOLIBS}"
+FILES_${PN}-glx =+ "${libdir}/libva-glx*${SOLIBS}"
+FILES_${PN}-egl =+ "${libdir}/libva-egl*${SOLIBS}"
+
+FILES_${PN}-x11-dev =+ "${libdir}/libva-x11*${SOLIBSDEV}"
+FILES_${PN}-tpi-dev =+ "${libdir}/libva-tpi*${SOLIBSDEV}"
+FILES_${PN}-glx-dev =+ "${libdir}/libva-glx*${SOLIBSDEV}"
+FILES_${PN}-egl-dev =+ "${libdir}/libva-egl*${SOLIBSDEV}"
+FILES_${PN}-x11-dev =+ "${libdir}/libva-x11*.la"
+FILES_${PN}-tpi-dev =+ "${libdir}/libva-tpi*.la"
+FILES_${PN}-glx-dev =+ "${libdir}/libva-glx*.la"
+FILES_${PN}-egl-dev =+ "${libdir}/libva-egl*.la"
+FILES_${PN}-x11-dev =+ "${libdir}/pkgconfig/libva-x11*.pc"
+FILES_${PN}-tpi-dev =+ "${libdir}/pkgconfig/libva-tpi*.pc"
+FILES_${PN}-glx-dev =+ "${libdir}/pkgconfig/libva-glx*.pc"
+FILES_${PN}-egl-dev =+ "${libdir}/pkgconfig/libva-egl*.pc"
+
+FILES_${PN}-x11-dbg =+ "${libdir}/.debug/libva-x11.*"
+FILES_${PN}-tpi-dbg =+ "${libdir}/.debug/libva-tpi.*"
+FILES_${PN}-glx-dbg =+ "${libdir}/.debug/libva-glx.*"
+FILES_${PN}-egl-dbg =+ "${libdir}/.debug/libva-egl.*"
diff --git a/meta-cedartrail/recipes-multimedia/libva/libva_1.0.15.bb 
b/meta-cedartrail/recipes-multimedia/libva/libva_1.0.15.bb
new file mode 100644
index 000..2800464
--- /dev/null
+++ b/meta-cedartrail/recipes-multimedia/libva/libva_1.0.15.bb
@@ -0,0 +1,31 @@
+require libva.inc
+
+LICENSE = "CC-BY-3.0"
+LIC_FILES_CHKSUM = 
"file://${COMMON_LICENSE_DIR}/CC-BY-3.0;md5=dfa02b5755629022e267f10b9c0a2ab7"
+
+PR = R0 
+
+CDR_TRAIL = "download.meego.com/live/MeeGo:/1.2.0:/CedarTrail:"
+
+SRC_URI = " \
+
http://${CDR_TRAIL}/oss/standard/i586/libva-1.0.15-1.1.i586.rpm;name=binary  \
+
http://${CDR_TRAIL}/oss/standard/i586/libva-devel-1.0.15-1.1.i586.rpm;name=devel
  \
+"
+
+SRC_URI[binary.md5sum] = "cb326945cec5ea4d1d369efc7a56e4f4"
+SRC_URI[binary.sha256sum] = 
"e96f44647d5e9a4e2a7c769ed24d6bc142d928041300ea3e2e76e6af2d154926"
+SRC_URI[devel.md5sum] = "799348cf8b6d239076d1b11844b94299"
+SRC_URI[devel.sha256sum] = 
"f1ae4028d471790a1e7d601b69106824e4628e6db380e91eaaf08fa493e1a802"
+
+do_install() {
+
+install -m 0644 ${WORKDIR}/libva-1.0.15-1.1.i586.rpm ${D}
+install -m 0644 ${WORKDIR}/libva-devel-1.0.15-1.1.i586.rpm ${D}
+
+cd ${D}
+
+rpm2cpio libva-1.0.15-1.1.i586.rpm | cpio -idmv
+rpm2cpio libva-devel-1.0.15-1.1.i586.rpm | cpio -idmv
+
+rm -f *.rpm
+}
-- 
1.7.4.1

___
yocto mailing list
yocto@yoctoproject.org
https://lists.yoctoproject.org/listinfo/yocto


[yocto] [PATCH 10/13] meta-cedartrail: update formfactor recipe for pvr and no-pvr case

2012-03-22 Thread rahul . saxena
From: Rahul Saxena 

Seperate machconfig files for pvr and no-pvr case

Signed-off-by: Rahul Saxena 
---
 .../formfactor/cedartrail-nopvr/machconfig |3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)
 create mode 100644 
meta-cedartrail/recipes-bsp/formfactor/formfactor/cedartrail-nopvr/machconfig
 mode change 100755 => 100644 
meta-cedartrail/recipes-bsp/formfactor/formfactor/cedartrail/machconfig

diff --git 
a/meta-cedartrail/recipes-bsp/formfactor/formfactor/cedartrail-nopvr/machconfig 
b/meta-cedartrail/recipes-bsp/formfactor/formfactor/cedartrail-nopvr/machconfig
new file mode 100644
index 000..ffce012
--- /dev/null
+++ 
b/meta-cedartrail/recipes-bsp/formfactor/formfactor/cedartrail-nopvr/machconfig
@@ -0,0 +1,3 @@
+# Assume a USB mouse and keyboard are connected
+HAVE_TOUCHSCREEN=0
+HAVE_KEYBOARD=1
diff --git 
a/meta-cedartrail/recipes-bsp/formfactor/formfactor/cedartrail/machconfig 
b/meta-cedartrail/recipes-bsp/formfactor/formfactor/cedartrail/machconfig
old mode 100755
new mode 100644
-- 
1.7.4.1

___
yocto mailing list
yocto@yoctoproject.org
https://lists.yoctoproject.org/listinfo/yocto


[yocto] [PATCH 11/13] meta-cedartrail: Add web-webkit, audio and video samples to sato image

2012-03-22 Thread rahul . saxena
From: Rahul Saxena 

Update sato images to include web-webkit and audio & video samples

Signed-off-by: Rahul Saxena 
---
 .../images/core-image-sato-dev.bbappend|3 +++
 .../images/core-image-sato-sdk.bbappend|3 +++
 .../recipes-sato/images/core-image-sato.bbappend   |3 +++
 3 files changed, 9 insertions(+), 0 deletions(-)
 create mode 100644 
meta-cedartrail/recipes-sato/images/core-image-sato-dev.bbappend
 create mode 100644 
meta-cedartrail/recipes-sato/images/core-image-sato-sdk.bbappend
 create mode 100644 meta-cedartrail/recipes-sato/images/core-image-sato.bbappend

diff --git a/meta-cedartrail/recipes-sato/images/core-image-sato-dev.bbappend 
b/meta-cedartrail/recipes-sato/images/core-image-sato-dev.bbappend
new file mode 100644
index 000..4022c58
--- /dev/null
+++ b/meta-cedartrail/recipes-sato/images/core-image-sato-dev.bbappend
@@ -0,0 +1,3 @@
+IMAGE_INSTALL += "web-webkit"
+IMAGE_INSTALL += "bigbuckbunny-ogg"
+IMAGE_INSTALL += "ogg-CC-BY-3.0-music-samples"
diff --git a/meta-cedartrail/recipes-sato/images/core-image-sato-sdk.bbappend 
b/meta-cedartrail/recipes-sato/images/core-image-sato-sdk.bbappend
new file mode 100644
index 000..4022c58
--- /dev/null
+++ b/meta-cedartrail/recipes-sato/images/core-image-sato-sdk.bbappend
@@ -0,0 +1,3 @@
+IMAGE_INSTALL += "web-webkit"
+IMAGE_INSTALL += "bigbuckbunny-ogg"
+IMAGE_INSTALL += "ogg-CC-BY-3.0-music-samples"
diff --git a/meta-cedartrail/recipes-sato/images/core-image-sato.bbappend 
b/meta-cedartrail/recipes-sato/images/core-image-sato.bbappend
new file mode 100644
index 000..4022c58
--- /dev/null
+++ b/meta-cedartrail/recipes-sato/images/core-image-sato.bbappend
@@ -0,0 +1,3 @@
+IMAGE_INSTALL += "web-webkit"
+IMAGE_INSTALL += "bigbuckbunny-ogg"
+IMAGE_INSTALL += "ogg-CC-BY-3.0-music-samples"
-- 
1.7.4.1

___
yocto mailing list
yocto@yoctoproject.org
https://lists.yoctoproject.org/listinfo/yocto


[yocto] [PATCH 12/13] meta-cedartrail: Update SRC_URI in kernel recipe append files to point to linux-yocto_3.0

2012-03-22 Thread rahul . saxena
From: Rahul Saxena 

Current poky/edison points to linux-yocto-3.0-1.1.x.git repo. However this repo 
does not have
cedartrail branch. Hence  point to linux-yocto_3.0 via kernel recipe append 
files

Signed-off-by: Rahul Saxena 
---
 .../linux/linux-yocto-rt_3.0.bbappend  |3 +++
 .../recipes-kernel/linux/linux-yocto_3.0.bbappend  |2 ++
 2 files changed, 5 insertions(+), 0 deletions(-)

diff --git a/meta-cedartrail/recipes-kernel/linux/linux-yocto-rt_3.0.bbappend 
b/meta-cedartrail/recipes-kernel/linux/linux-yocto-rt_3.0.bbappend
index 828e6fd..759c3b7 100755
--- a/meta-cedartrail/recipes-kernel/linux/linux-yocto-rt_3.0.bbappend
+++ b/meta-cedartrail/recipes-kernel/linux/linux-yocto-rt_3.0.bbappend
@@ -1,4 +1,7 @@
 FILESEXTRAPATHS_prepend := "${THISDIR}/${PN}:"
+
+SRC_URI = 
"git://git.yoctoproject.org/linux-yocto-3.0.git;protocol=git;nocheckout=1;branch=${KBRANCH},meta;name=machine,meta"
+
 COMPATIBLE_MACHINE_cedartrail = "cedartrail"
 KMACHINE_cedartrail  = "cedartrail"
 
diff --git a/meta-cedartrail/recipes-kernel/linux/linux-yocto_3.0.bbappend 
b/meta-cedartrail/recipes-kernel/linux/linux-yocto_3.0.bbappend
index 14c0b9d..0a05d8b 100755
--- a/meta-cedartrail/recipes-kernel/linux/linux-yocto_3.0.bbappend
+++ b/meta-cedartrail/recipes-kernel/linux/linux-yocto_3.0.bbappend
@@ -1,5 +1,7 @@
 FILESEXTRAPATHS_prepend := "${THISDIR}/${PN}:"
 
+SRC_URI = 
"git://git.yoctoproject.org/linux-yocto-3.0;protocol=git;nocheckout=1;branch=${KBRANCH},meta;name=machine,meta"
+
 COMPATIBLE_MACHINE_cedartrail-nopvr = "cedartrail"
 KMACHINE_cedartrail-nopvr  = "yocto/standard/cedartrail"
 KERNEL_FEATURES_append_cedartrail-nopvr += " cfg/smp.scc"
-- 
1.7.4.1

___
yocto mailing list
yocto@yoctoproject.org
https://lists.yoctoproject.org/listinfo/yocto


[yocto] [PATCH 04/13] meta-cedatrail: add recipe for setting audio mixer settings during boot

2012-03-22 Thread rahul . saxena
From: Rahul Saxena 

Recipe is copied from n450-audio.bb with a few parameters changed
to adjust volume settings for Front mixer during boot.

Signed-off-by: Rahul Saxena 
---
 .../cedartrail-audio/cedartrail-audio.bb   |   30 ++
 .../cedartrail-audio/cedartrail-audio  |   42 
 2 files changed, 72 insertions(+), 0 deletions(-)
 create mode 100644 
meta-cedartrail/recipes-bsp/cedartrail-audio/cedartrail-audio.bb
 create mode 100644 
meta-cedartrail/recipes-bsp/cedartrail-audio/cedartrail-audio/cedartrail-audio

diff --git a/meta-cedartrail/recipes-bsp/cedartrail-audio/cedartrail-audio.bb 
b/meta-cedartrail/recipes-bsp/cedartrail-audio/cedartrail-audio.bb
new file mode 100644
index 000..9a43f02
--- /dev/null
+++ b/meta-cedartrail/recipes-bsp/cedartrail-audio/cedartrail-audio.bb
@@ -0,0 +1,30 @@
+SUMMARY = "Provide a basic init script to enable audio"
+DESCRIPTION = "Set the volume and unmute the Front mixer setting during boot."
+SECTION = "base"
+LICENSE = "MIT"
+LIC_FILES_CHKSUM = 
"file://${COREBASE}/LICENSE;md5=3f40d7994397109285ec7b81fdeb3b58"
+
+PR = "r0"
+
+inherit update-rc.d
+
+RDEPENDS = "alsa-utils-amixer"
+
+SRC_URI = "file://cedartrail-audio"
+
+INITSCRIPT_NAME = "cedartrail-audio"
+INITSCRIPT_PARAMS = "defaults 90"
+
+do_install() {
+   install -d ${D}${sysconfdir} \
+  ${D}${sysconfdir}/init.d
+   install -m 0755 ${WORKDIR}/cedartrail-audio ${D}${sysconfdir}/init.d
+cat ${WORKDIR}/${INITSCRIPT_NAME} | \
+sed -e 's,/etc,${sysconfdir},g' \
+-e 's,/usr/sbin,${sbindir},g' \
+-e 's,/var,${localstatedir},g' \
+-e 's,/usr/bin,${bindir},g' \
+-e 's,/usr,${prefix},g' > 
${D}${sysconfdir}/init.d/${INITSCRIPT_NAME}
+chmod 755 ${D}${sysconfdir}/init.d/${INITSCRIPT_NAME}
+}
+
diff --git 
a/meta-cedartrail/recipes-bsp/cedartrail-audio/cedartrail-audio/cedartrail-audio
 
b/meta-cedartrail/recipes-bsp/cedartrail-audio/cedartrail-audio/cedartrail-audio
new file mode 100644
index 000..efd08d3
--- /dev/null
+++ 
b/meta-cedartrail/recipes-bsp/cedartrail-audio/cedartrail-audio/cedartrail-audio
@@ -0,0 +1,42 @@
+#!/bin/sh
+### BEGIN INIT INFO
+# Provides:  cedartrail mixer setup
+# Required-Start:$syslog
+# Required-Stop: $syslog
+# Default-Start: 2 3 4 5
+# Default-Stop:  0 1 6
+# Short-Description: Initialize the cedartrail audio mixer
+# Description:   Unmute FRONT and set volume 
+### END INIT INFO
+
+# Author: Darren Hart 
+# Based on /etc/init.d/skeleton
+
+PATH=/sbin:/usr/sbin:/bin:/usr/bin
+DESC="Audio mixer settings"
+NAME=cedartrail-audio
+AMIXER=`which amixer`
+SCRIPTNAME=/etc/init.d/$NAME
+
+# Exit if amixer is not installed
+[ -x "$AMIXER" ] || exit 0
+
+do_start() {
+   # Enable the "Front" simple controls (black phones jack)
+   $AMIXER sset Front 90 on > /dev/null
+}
+
+case "$1" in
+start)
+   echo "$NAME: setting default mixer settings."
+   do_start
+   ;;
+stop)
+   ;;
+*)
+   echo "Usage: $SCRIPTNAME {start|stop}" >&2
+   exit 3
+   ;;
+esac
+
+exit 0
-- 
1.7.4.1

___
yocto mailing list
yocto@yoctoproject.org
https://lists.yoctoproject.org/listinfo/yocto


[yocto] [PATCH 09/13] meta-cedartrail: add recipes to instal audio and video samples

2012-03-22 Thread rahul . saxena
From: Rahul Saxena 

Install Ogg format audio and video sample files

Signed-off-by: Rahul Saxena 
---
 .../ogg-CC-BY-3.0-music-samples_0.1.bb |   20 
 .../video-samples/bigbuckbunny-ogg.bb  |   20 
 2 files changed, 40 insertions(+), 0 deletions(-)
 create mode 100644 
meta-cedartrail/recipes-mediasamples/music-samples/ogg-CC-BY-3.0-music-samples_0.1.bb
 create mode 100644 
meta-cedartrail/recipes-mediasamples/video-samples/bigbuckbunny-ogg.bb

diff --git 
a/meta-cedartrail/recipes-mediasamples/music-samples/ogg-CC-BY-3.0-music-samples_0.1.bb
 
b/meta-cedartrail/recipes-mediasamples/music-samples/ogg-CC-BY-3.0-music-samples_0.1.bb
new file mode 100644
index 000..5da3e10
--- /dev/null
+++ 
b/meta-cedartrail/recipes-mediasamples/music-samples/ogg-CC-BY-3.0-music-samples_0.1.bb
@@ -0,0 +1,20 @@
+SUMMARY = "ogg file format music samples"
+DESCRIPTION = "Installs ogg file format music samples in /home/Music dir"
+
+LICENSE = "CC-BY-3.0"
+LIC_FILES_CHKSUM = 
"file://${COMMON_LICENSE_DIR}/CC-BY-3.0;md5=dfa02b5755629022e267f10b9c0a2ab7"
+
+DEPENDS += " " 
+
+
+PR = r0
+SRC_URI = 
"http://downloads.yoctoproject.org/releases/media/music/ogg-CC-BY-3.0-music-samples-${PV}.tar.bz2
 \
+"
+
+do_install() {
+
+install -d ${D}${base_prefix}/home/music
+install -m 0644  ${WORKDIR}/ogg-CC-BY-3.0-music-samples-${PV}/*/*.ogg 
${D}${base_prefix}/home/music
+}
+
+FILES_${PN} += "${base_prefix}/home/music/*.ogg"
diff --git 
a/meta-cedartrail/recipes-mediasamples/video-samples/bigbuckbunny-ogg.bb 
b/meta-cedartrail/recipes-mediasamples/video-samples/bigbuckbunny-ogg.bb
new file mode 100644
index 000..2225af4
--- /dev/null
+++ b/meta-cedartrail/recipes-mediasamples/video-samples/bigbuckbunny-ogg.bb
@@ -0,0 +1,20 @@
+SUMMARY = "Big Buck Bunny video OGG sample "
+DESCRIPTION = "Installs Big Buck Bunny Video OGG file samples in /home/video 
dir "
+
+LICENSE = "CC-BY-3.0"
+LIC_FILES_CHKSUM = 
"file://${COMMON_LICENSE_DIR}/CC-BY-3.0;md5=dfa02b5755629022e267f10b9c0a2ab7"
+
+DEPENDS += " " 
+
+
+PR = r0
+SRC_URI = 
"http://blender-mirror.kino3d.org/peach/bigbuckbunny_movies/big_buck_bunny_720p_stereo.ogg
 \
+"
+
+do_install() {
+
+install -d ${D}${base_prefix}/home/Videos
+install -m 0644  ${WORKDIR}/*.ogg ${D}${base_prefix}/home/Videos
+}
+
+FILES_${PN} += "${base_prefix}/home/Videos/*.ogg"
-- 
1.7.4.1

___
yocto mailing list
yocto@yoctoproject.org
https://lists.yoctoproject.org/listinfo/yocto


[yocto] [PATCH 13/13] meta-cedartrail: update SRC_REV_meta for no-pvr case

2012-03-22 Thread rahul . saxena
From: Rahul Saxena 

SRC_REV_meta for no-pvr case updated to be same as that used for pvr build

Signed-off-by: Rahul Saxena 
---
 .../recipes-kernel/linux/linux-yocto_3.0.bbappend  |2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/meta-cedartrail/recipes-kernel/linux/linux-yocto_3.0.bbappend 
b/meta-cedartrail/recipes-kernel/linux/linux-yocto_3.0.bbappend
index 0a05d8b..03c5a27 100755
--- a/meta-cedartrail/recipes-kernel/linux/linux-yocto_3.0.bbappend
+++ b/meta-cedartrail/recipes-kernel/linux/linux-yocto_3.0.bbappend
@@ -16,4 +16,4 @@ SRCREV_machine_pn-linux-yocto_cedartrail ?= 
"5746120ee0afefd1e28400bea4b74f285bd
 SRCREV_meta_pn-linux-yocto_cedartrail ?= 
"a4ac64fe873f08ef718e2849b88914725dc99c1c"
 
 SRCREV_machine_pn-linux-yocto_cedartrail-nopvr ?= 
"5746120ee0afefd1e28400bea4b74f285bd5e59a"
-SRCREV_meta_pn-linux-yocto_cedartrail-nopvr ?= 
"d588bdafc0d9b4d2386144b7d76a1d379e2d16c0"
+SRCREV_meta_pn-linux-yocto_cedartrail-nopvr ?= 
"a4ac64fe873f08ef718e2849b88914725dc99c1c"
-- 
1.7.4.1

___
yocto mailing list
yocto@yoctoproject.org
https://lists.yoctoproject.org/listinfo/yocto


Re: [yocto] [PATCH 00/13][meta-intel] Cover letter for updating meta-cedartrail BSP with PVR Graphics driver -- Testing information

2012-03-22 Thread Saxena, Rahul
I did not include the BSP testing information in the cover-letter.
The tests on  the BSP built with these patches included the following:

 -- Ports tested: SATA, USB, VGA, HDMI, LVDS
 -- Basic networking via Ethernet port
 -- Shutdown, Reboot
 -- Switch between multiple applications
 --  Sato Audio and Video player
 --  web-web kit
 -- RTC date and time set
 -- command such as lspci, ssh, lspci
 -- glxgears  (Check graphics acceleration) 
 -- Mplayer   (Check Video acceleration, note mplayer recipe is not included in 
this  BSP)
 -- Check all CPU cores are active

All the above testing was done on the Cedar Trail desktop engineering sample 
board. A subset of
The above testing was done on the CRB and mobile engineering sample board. The 
behavior was found
to be OK (i.e. all tests passed) for all the above tests.

In the past test behavior was found to be always consistent across the three 
boards.


Rahul
 


-Original Message-
From: yocto-boun...@yoctoproject.org [mailto:yocto-boun...@yoctoproject.org] On 
Behalf Of rahul.sax...@intel.com
Sent: Thursday, March 22, 2012 10:32 AM
To: yocto@yoctoproject.org; Zanussi, Tom
Subject: [yocto] [PATCH 00/13][meta-intel] Cover letter for updating 
meta-cedartrail BSP with PVR Graphics driver

From: Rahul Saxena 

Cover letter for updating the Cedar Trail BSP (meta-cedartrail) with 
PVR Graphics driver.  This patch set updates meta-cedartrail (edison branch)
to include Power VR driver for Graphics and Video hardware acceleration.
The patches enable BSP build with PVR driver or VESA driver depending
upon MACHINE setting in local.conf.

In addition the patches add web-webkit, audio and video samples to sato image.

The Cedar Trail platform is based on the Cedarview processor (Intel® Atom™
N2600, N2800 and D2700 processor)and Tiger Point Chipset (Intel® NM10 Express)

Signed-off-by: Rahul Saxena 

--

The following changes since commit 31eaee8e24d570207338ada64f2df36cdbd5353d:

  meta-intel: update SRCREVs (2012-02-22 11:58:38 -0600)

are available in the git repository at:
  git://git.pokylinux.org/meta-intel-contrib rsaxena-cedartrailpvrrelease22March
  
http://git.pokylinux.org/cgit.cgi/meta-intel-contrib/log/?h=rsaxena-cedartrailpvrrelease22March

Rahul Saxena (13):
  meta-cedartrail: Separate conf files for the Cedar Trail BSP boot
cases of with and without pvr driver
  meta-cedartrail: update BBFILES to include meta-intel/common path
  meta-cedartrail: update README with instructions for PVR Graphics
driver build
  meta-cedatrail: add recipe for setting audio mixer settings during
boot
  meta-cedartrail: seperate xorg.conf files for pvr and no-pvr cases
  meta-cedartrail: add Cedar Trail PVR driver
  meta-cedartrail: update Kernel recipes to add support for pvr driver
  meta-cedartrail: add Cedar Trail specific libva
  meta-cedartrail: add recipes to instal audio and video samples
  meta-cedartrail: update formfactor recipe for pvr and no-pvr case
  meta-cedartrail: Add web-webkit, audio and video samples to sato
image
  meta-cedartrail: Update SRC_URI in kernel recipe append files to
point to linux-yocto_3.0
  meta-cedartrail: update SRC_REV_meta for no-pvr case

 meta-cedartrail/README |   50 +++-
 meta-cedartrail/conf/layer.conf|4 +-
 meta-cedartrail/conf/machine/cedartrail-nopvr.conf |   41 +
 meta-cedartrail/conf/machine/cedartrail.conf   |   15 +++-
 .../cedartrail-audio/cedartrail-audio.bb   |   30 +++
 .../cedartrail-audio/cedartrail-audio  |   42 +
 .../formfactor/cedartrail-nopvr/machconfig |3 +
 .../xorg-driver/cdv-graphics-drivers_1.0.bb|   89 
 .../xserver-xf86-config/cedartrail-nopvr/xorg.conf |   26 ++
 .../xserver-xf86-config/cedartrail/xorg.conf   |   24 ++
 .../linux/linux-yocto-rt_3.0.bbappend  |   16 -
 .../recipes-kernel/linux/linux-yocto_3.0.bbappend  |   17 +++-
 .../ogg-CC-BY-3.0-music-samples_0.1.bb |   20 +
 .../video-samples/bigbuckbunny-ogg.bb  |   20 +
 meta-cedartrail/recipes-multimedia/libva/libva.inc |   59 +
 .../recipes-multimedia/libva/libva_1.0.15.bb   |   31 +++
 .../images/core-image-sato-dev.bbappend|3 +
 .../images/core-image-sato-sdk.bbappend|3 +
 .../recipes-sato/images/core-image-sato.bbappend   |3 +
 19 files changed, 468 insertions(+), 28 deletions(-)
 create mode 100644 meta-cedartrail/conf/machine/cedartrail-nopvr.conf
 create mode 100644 
meta-cedartrail/recipes-bsp/cedartrail-audio/cedartrail-audio.bb
 create mode 100644 
meta-cedartrail/recipes-bsp/cedartrail-audio/cedartrail-audio/cedartrail-audio
 create mode 100644 
meta-cedartrail/recipes-bsp/formfactor/formfactor/cedartrail-nopvr/machconfig
 mode change 100755 => 100644 
meta-cedartrail/recipes-bsp/formfactor/formfactor/cedartrail/machconfig
 create mode 100644 
meta-

Re: [yocto] pseudo interaction issue

2012-03-22 Thread Xu, Dongxiao
On Thu, 2012-03-22 at 11:18 -0500, Peter Seebach wrote:
> On Thu, 22 Mar 2012 09:49:41 +0800
> "Xu, Dongxiao"  wrote:
> 
> > Hi Mark,
> > 
> > Any update on this one? I think we may need to track it in bugzilla.
> 
> I have been looking into this.  I've convinced myself that popen() is
> broken under pseudo, but that's not enough to explain this:
> 
> * I have a fixed pseudo where popen works.  It still fails sometimes
>   under hob.
> * When it fails, the popen() wrapper isn't even getting called.
> * Still looking into this.
> 
> Interestingly, I can't get this failure to occur at all outside of hob.

I think the difference between Hob and other UI (e.x., knotty) is that,
when building image is finished in knotty, the UI, bitbake server, and
pseudo all quit. But in Hob, everything still alive after a build. I
noticed that the pseudo error happens only when Hob is trying to issue a
second build.

Thanks,
Dongxiao

> 
> -s


___
yocto mailing list
yocto@yoctoproject.org
https://lists.yoctoproject.org/listinfo/yocto


Re: [yocto] pseudo interaction issue

2012-03-22 Thread Peter Seebach
On Fri, 23 Mar 2012 09:01:16 +0800
"Xu, Dongxiao"  wrote:

> I think the difference between Hob and other UI (e.x., knotty) is
> that, when building image is finished in knotty, the UI, bitbake
> server, and pseudo all quit. But in Hob, everything still alive after
> a build. I noticed that the pseudo error happens only when Hob is
> trying to issue a second build.

I get it on the first build.

... You see the issue.

Pseudo shouldn't be having a problem, it's designed to restart as
needed.

Right now, what I know is:
1.  I didn't catch popen(), and this can actually be an issue with
stuff like PSEUDO_UNLOAD or PSEUDO_DISABLED in play.
2.  If I wrap popen, and have the wrapper unconditionally emit a
diagnostic, that works for simple os.popen() test cases.
3.  But not for the case that's triggering this.

So it looks like, when this runs, we have a Python session which has
had pseudo unloaded, not just disabled, which then sets LD_PRELOAD but
doesn't set PSEUDO_PREFIX.  Or something.

I'm still trying to get better data on this, like figure out how the
sub-process is even getting invoked.

-s
-- 
Listen, get this.  Nobody with a good compiler needs to be justified.
___
yocto mailing list
yocto@yoctoproject.org
https://lists.yoctoproject.org/listinfo/yocto


Re: [yocto] pseudo interaction issue

2012-03-22 Thread Xu, Dongxiao
On Thu, 2012-03-22 at 21:29 -0500, Peter Seebach wrote:
> On Fri, 23 Mar 2012 09:01:16 +0800
> "Xu, Dongxiao"  wrote:
> 
> > I think the difference between Hob and other UI (e.x., knotty) is
> > that, when building image is finished in knotty, the UI, bitbake
> > server, and pseudo all quit. But in Hob, everything still alive after
> > a build. I noticed that the pseudo error happens only when Hob is
> > trying to issue a second build.
> 
> I get it on the first build.

What do you mean by first build? Did you click "Just bake" button?

Actually "Just bake" button is divided into two steps:

1) build_target(packages)
2) build_target(image)

I noticed the pseudo error will happen when calling build_target(image).
Therefore I also treated it as second build.

Thanks,
Dongxiao

> 
> ... You see the issue.
> 
> Pseudo shouldn't be having a problem, it's designed to restart as
> needed.
> 
> Right now, what I know is:
> 1.  I didn't catch popen(), and this can actually be an issue with
> stuff like PSEUDO_UNLOAD or PSEUDO_DISABLED in play.
> 2.  If I wrap popen, and have the wrapper unconditionally emit a
> diagnostic, that works for simple os.popen() test cases.
> 3.  But not for the case that's triggering this.
> 
> So it looks like, when this runs, we have a Python session which has
> had pseudo unloaded, not just disabled, which then sets LD_PRELOAD but
> doesn't set PSEUDO_PREFIX.  Or something.
> 
> I'm still trying to get better data on this, like figure out how the
> sub-process is even getting invoked.
> 
> -s


___
yocto mailing list
yocto@yoctoproject.org
https://lists.yoctoproject.org/listinfo/yocto