Re: [yocto] [meta-raspberrypi] meta-ivi & meta-raspberrypi

2015-04-29 Thread Mauro Carvalho Chehab
Em Wed, 29 Apr 2015 16:05:58 +0200
Alex J Lennon  escreveu:

> 
> On 29/04/2015 15:30, Oliver wrote:
> > Hello
> >
> > I have been working building together the meta-raspberrypi & the meta-ivi 
> > layers.
> > I have been stuck with configuration/compilation of weston(from mata-ivi 
> > layer):
> >
> > 1)
> >
> > You can check the intial thread 
> > http://lists.genivi.org/pipermail/genivi-meta-ivi/2015-April/000508.html
> >
> >
> > egl provided by userlad is not detected as the *.pc files are not deployed
> > Someone has faced similar problems:
> >
> >
> > http://git.buildroot.net/buildroot/commit/?id=2282b93f4248a32de84805456efa352f69b28624
> >
> > 2)
> > With this I am able to reach the do_compile stage but there are errors 
> > related to the undefined type
> >
> > PFNEGLQUERYWAYLANDBUFFERWL
> > Hacked this one forcing the inclusion of  :-S
> >
> >
> > 3)
> > At linking time the next trouble is:
> >
> > /home/oliver/raspberry/build-rpi-ivi/tmp/sysroots/i686-linux/usr/libexec/arm-poky-linux-gnueabi/gcc/arm-poky-linux-gnueabi/4.9.1/ld:
> >  cannot find -lwayland-egl
> >
> > IIRC this lib is provided by mesa-gl, but in my build, mesa is 
> > configured(--disable-egl (is this ok being provided by userlad?)) which 
> > might be the reason why libwayland-egl is not getting deployed in the image?
> >
> > Any correction to my statements or hint to go further would be appreciated
> >
> > Best Regards & thanks for your time
> >
> > Oliver
> 
> Hi Oliver,
> 
> I was looking at wayland/weston last year.  I can't remember exactly
> where I was at with it I am afraid, but I think I had it building and
> have pushed some of the code I was playing with to GitHub
> 
> I think this was related to the .pc issue
> 
> https://github.com/DynamicDevices/meta-raspberrypi/commit/491dd14585efdb52378a57fa6ddacb1f15065257
> 
> And this was what I was doing with weston. Looks like I was disabling EGL.
> 
> https://github.com/DynamicDevices/meta-raspberrypi/commit/c657f69deb57035fc43319dd7d41745c17d7d6e1
> 
> Sorry I can't be more help but perhaps there's something in there that
> might be of use.

I was able to build weston/wayland with meta-raspberrypi, for
the Tizen distro:
http://blogs.s-osg.org/bringing-tizen-to-a-raspberry-pi-2-near-you/

I had to apply a few patches to make it work on both Tizen and
meta-raspberrypi. The forks are at:
http://git.s-osg.org/

The current version there is actually disabling EGL. Enabling
it seems to be possible, but we're still trying to make it work
(it compiles fine, though, so I think we're close).

Once done, my plan is to work on porting the patches back to
meta-raspberrypi (and tizen-distro).

The egl-enabled version (with doesn't run, currently), is at the
"devel" branch at both git trees.

I hope that helps.

Regards,
Mauro
-- 
___
yocto mailing list
yocto@yoctoproject.org
https://lists.yoctoproject.org/listinfo/yocto


Re: [yocto] [meta-raspberrypi][PATCH] Add networkd as default for RaspberryPi

2015-07-23 Thread Mauro Carvalho Chehab
Em Thu, 23 Jul 2015 17:32:35 +0200
Herve Jourdain  escreveu:

> This patch adds systemd-networkd for RaspberryPi in the meta-raspberrypi
> layer, in order to have Ethernet and Networking work out of the box.
> 
>  
> 
> This said, I’m not 100% sure if it should be enabled in meta-raspberrypi,
> instead of another custom layer.
> 
> But something similar needs to be added somewhere, and with the current
> version of Yocto on RaspberryPi, without this patch, network just doesn’t
> start…

I guess putting it at BSP is not right. Ethernet network does work on Tizen
on Yocto:
http://blogs.s-osg.org/tizen-rpi2-now-supporting-3d-acceleration/

Regards,
Mauro


> 
>  
> 
> Signed-off-by: Herve Jourdain   >
> 
> ---
> 
> diff -Naur meta-raspberrypi.orig/recipes-core/systemd/files/eth.network
> meta-raspberrypi/recipes-core/systemd/files/eth.network
> 
> --- meta-raspberrypi.orig/recipes-core/systemd/files/eth.network
> 1970-01-01 08:00:00.0 +0800
> 
> +++ meta-raspberrypi/recipes-core/systemd/files/eth.network2015-07-22
> 12:01:53.587830690 +0800
> 
> @@ -0,0 +1,6 @@
> 
> +[Match]
> 
> +Name=eth*
> 
> +
> 
> +[Network]
> 
> +DHCP=v4
> 
> +
> 
> diff -Naur meta-raspberrypi.orig/recipes-core/systemd/systemd_%.bbappend
> meta-raspberrypi/recipes-core/systemd/systemd_%.bbappend
> 
> --- meta-raspberrypi.orig/recipes-core/systemd/systemd_%.bbappend
> 1970-01-01 08:00:00.0 +0800
> 
> +++ meta-raspberrypi/recipes-core/systemd/systemd_%.bbappend
> 2015-07-22 12:05:07.307838546 +0800
> 
> @@ -0,0 +1,17 @@
> 
> +FILESEXTRAPATHS_prepend := "${THISDIR}/files:"
> 
> +
> 
> +EXTRA_OECONF += "--disable-ldconfig"
> 
> +
> 
> +PACKAGECONFIG += "networkd resolved"
> 
> +
> 
> +CFLAGS_append_arm = " -fno-lto"
> 
> +
> 
> +SRC_URI += "file://eth.network"
> 
> +
> 
> +FILES_${PN} += "{sysconfdir}/systemd/network/*"
> 
> +
> 
> +do_install_append() {
> 
> +install -d ${D}${sysconfdir}/systemd/network/
> 
> +install -m 0644 ${WORKDIR}/*.network ${D}${sysconfdir}/systemd/network/
> 
> +}
> 
> +
> 
>  
> 
-- 
___
yocto mailing list
yocto@yoctoproject.org
https://lists.yoctoproject.org/listinfo/yocto


Re: [yocto] [meta-raspberrypi][PATCH] Add networkd as default for RaspberryPi

2015-07-23 Thread Mauro Carvalho Chehab
Em Thu, 23 Jul 2015 18:25:29 +0200
Herve Jourdain  escreveu:

> Hi Mauro,
> 
> Well, that's precisely one of my concerns. I believe that one of the Tizen 
> layers might do just that. 

Yes, it does. It is at the meta-tizen layer.

> Maybe it should be at the Yocto layer.
>
> But it seems not to be with the one I'm using. And just enabling system - 
> which can be done at distro level - is not enough, there is a need for a 
> bbappend and a config file.
> So honestly, since I was experimenting with system, I stumbled on this one, 
> and I had initially put that patch in another layer - custom one.
> 
> The question that remains is how do we make sure that Poky on raspberry pi 
> has network enabled by default when people switch to system? Since I don't 
> know where else to put it, I decided to propose the patch for the raspberrypi 
> layer, knowing it probably makes more sense to put it somewhere else.

I'd say that it should not be at the Yocto layer, but at the layer specific for 
your distribution.

> 
> BR,
> 
> Herve
> 
> -Original Message-
> From: Mauro Carvalho Chehab [mailto:mche...@osg.samsung.com] 
> Sent: jeudi 23 juillet 2015 18:00
> To: Herve Jourdain
> Cc: 'Andrei Gherzan'; 'Petter Mabäcker'; yocto@yoctoproject.org
> Subject: Re: [yocto] [meta-raspberrypi][PATCH] Add networkd as default for 
> RaspberryPi
> 
> Em Thu, 23 Jul 2015 17:32:35 +0200
> Herve Jourdain  escreveu:
> 
> > This patch adds systemd-networkd for RaspberryPi in the 
> > meta-raspberrypi layer, in order to have Ethernet and Networking work out 
> > of the box.
> > 
> >  
> > 
> > This said, I’m not 100% sure if it should be enabled in 
> > meta-raspberrypi, instead of another custom layer.
> > 
> > But something similar needs to be added somewhere, and with the 
> > current version of Yocto on RaspberryPi, without this patch, network 
> > just doesn’t start…
> 
> I guess putting it at BSP is not right. Ethernet network does work on Tizen 
> on Yocto:
>   http://blogs.s-osg.org/tizen-rpi2-now-supporting-3d-acceleration/
> 
> Regards,
> Mauro
> 
> 
> > 
> >  
> > 
> > Signed-off-by: Herve Jourdain  > <mailto:herve.jourd...@neuf.fr> >
> > 
> > ---
> > 
> > diff -Naur 
> > meta-raspberrypi.orig/recipes-core/systemd/files/eth.network
> > meta-raspberrypi/recipes-core/systemd/files/eth.network
> > 
> > --- meta-raspberrypi.orig/recipes-core/systemd/files/eth.network
> > 1970-01-01 08:00:00.0 +0800
> > 
> > +++ meta-raspberrypi/recipes-core/systemd/files/eth.network2015-07-22
> > 12:01:53.587830690 +0800
> > 
> > @@ -0,0 +1,6 @@
> > 
> > +[Match]
> > 
> > +Name=eth*
> > 
> > +
> > 
> > +[Network]
> > 
> > +DHCP=v4
> > 
> > +
> > 
> > diff -Naur 
> > meta-raspberrypi.orig/recipes-core/systemd/systemd_%.bbappend
> > meta-raspberrypi/recipes-core/systemd/systemd_%.bbappend
> > 
> > --- meta-raspberrypi.orig/recipes-core/systemd/systemd_%.bbappend
> > 1970-01-01 08:00:00.0 +0800
> > 
> > +++ meta-raspberrypi/recipes-core/systemd/systemd_%.bbappend
> > 2015-07-22 12:05:07.307838546 +0800
> > 
> > @@ -0,0 +1,17 @@
> > 
> > +FILESEXTRAPATHS_prepend := "${THISDIR}/files:"
> > 
> > +
> > 
> > +EXTRA_OECONF += "--disable-ldconfig"
> > 
> > +
> > 
> > +PACKAGECONFIG += "networkd resolved"
> > 
> > +
> > 
> > +CFLAGS_append_arm = " -fno-lto"
> > 
> > +
> > 
> > +SRC_URI += "file://eth.network"
> > 
> > +
> > 
> > +FILES_${PN} += "{sysconfdir}/systemd/network/*"
> > 
> > +
> > 
> > +do_install_append() {
> > 
> > +install -d ${D}${sysconfdir}/systemd/network/
> > 
> > +install -m 0644 ${WORKDIR}/*.network 
> > + ${D}${sysconfdir}/systemd/network/
> > 
> > +}
> > 
> > +
> > 
> >  
> > 
> 
-- 
___
yocto mailing list
yocto@yoctoproject.org
https://lists.yoctoproject.org/listinfo/yocto