From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by yocto-www.yoctoproject.org (Postfix, from userid 118) id 7B3C8E009B3; Thu, 23 Jul 2015 11:28:32 -0700 (PDT) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on yocto-www.yoctoproject.org X-Spam-Level: X-Spam-Status: No, score=-2.6 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_LOW autolearn=ham version=3.3.1 X-Spam-HAM-Report: * -0.7 RCVD_IN_DNSWL_LOW RBL: Sender listed at http://www.dnswl.org/, low * trust * [54.187.51.154 listed in list.dnswl.org] * -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% * [score: 0.0000] Received: from lists.s-osg.org (lists.s-osg.org [54.187.51.154]) by yocto-www.yoctoproject.org (Postfix) with ESMTP id 4FA8FE0087F for ; Thu, 23 Jul 2015 11:28:26 -0700 (PDT) Received: from recife.lan (177.18.21.249.dynamic.adsl.gvt.net.br [177.18.21.249]) by lists.s-osg.org (Postfix) with ESMTPSA id BFC9A46329; Thu, 23 Jul 2015 11:28:24 -0700 (PDT) Date: Thu, 23 Jul 2015 15:28:21 -0300 From: Mauro Carvalho Chehab To: Herve Jourdain Message-ID: <20150723152821.352e1a52@recife.lan> In-Reply-To: <007301d0c564$360d30e0$a22792a0$@neuf.fr> References: <004101d0c55c$d068da20$713a8e60$@neuf.fr> <20150723130029.1268067b@recife.lan> <007301d0c564$360d30e0$a22792a0$@neuf.fr> Organization: Samsung X-Mailer: Claws Mail 3.11.1 (GTK+ 2.24.28; x86_64-redhat-linux-gnu) MIME-Version: 1.0 Cc: yocto@yoctoproject.org Subject: Re: [meta-raspberrypi][PATCH] Add networkd as default for RaspberryPi X-BeenThere: yocto@yoctoproject.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: Discussion of all things Yocto Project List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 23 Jul 2015 18:28:32 -0000 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Em Thu, 23 Jul 2015 18:25:29 +0200 Herve Jourdain escreveu: > Hi Mauro, >=20 > Well, that's precisely one of my concerns. I believe that one of the Tize= n layers might do just that.=20 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 b= bappend and a config file. > So honestly, since I was experimenting with system, I stumbled on this on= e, and I had initially put that patch in another layer - custom one. >=20 > The question that remains is how do we make sure that Poky on raspberry p= i 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 raspber= rypi 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. >=20 > BR, >=20 > Herve >=20 > -----Original Message----- > From: Mauro Carvalho Chehab [mailto:mchehab@osg.samsung.com]=20 > Sent: jeudi 23 juillet 2015 18:00 > To: Herve Jourdain > Cc: 'Andrei Gherzan'; 'Petter Mab=C3=A4cker'; yocto@yoctoproject.org > Subject: Re: [yocto] [meta-raspberrypi][PATCH] Add networkd as default fo= r RaspberryPi >=20 > Em Thu, 23 Jul 2015 17:32:35 +0200 > Herve Jourdain escreveu: >=20 > > This patch adds systemd-networkd for RaspberryPi in the=20 > > meta-raspberrypi layer, in order to have Ethernet and Networking work o= ut of the box. > >=20 > > =20 > >=20 > > This said, I=E2=80=99m not 100% sure if it should be enabled in=20 > > meta-raspberrypi, instead of another custom layer. > >=20 > > But something similar needs to be added somewhere, and with the=20 > > current version of Yocto on RaspberryPi, without this patch, network=20 > > just doesn=E2=80=99t start=E2=80=A6 >=20 > I guess putting it at BSP is not right. Ethernet network does work on Tiz= en on Yocto: > http://blogs.s-osg.org/tizen-rpi2-now-supporting-3d-acceleration/ >=20 > Regards, > Mauro >=20 >=20 > >=20 > > =20 > >=20 > > Signed-off-by: Herve Jourdain > > > >=20 > > --- > >=20 > > diff -Naur=20 > > meta-raspberrypi.orig/recipes-core/systemd/files/eth.network > > meta-raspberrypi/recipes-core/systemd/files/eth.network > >=20 > > --- meta-raspberrypi.orig/recipes-core/systemd/files/eth.network > > 1970-01-01 08:00:00.000000000 +0800 > >=20 > > +++ meta-raspberrypi/recipes-core/systemd/files/eth.network 2015-07-= 22 > > 12:01:53.587830690 +0800 > >=20 > > @@ -0,0 +1,6 @@ > >=20 > > +[Match] > >=20 > > +Name=3Deth* > >=20 > > + > >=20 > > +[Network] > >=20 > > +DHCP=3Dv4 > >=20 > > + > >=20 > > diff -Naur=20 > > meta-raspberrypi.orig/recipes-core/systemd/systemd_%.bbappend > > meta-raspberrypi/recipes-core/systemd/systemd_%.bbappend > >=20 > > --- meta-raspberrypi.orig/recipes-core/systemd/systemd_%.bbappend > > 1970-01-01 08:00:00.000000000 +0800 > >=20 > > +++ meta-raspberrypi/recipes-core/systemd/systemd_%.bbappend > > 2015-07-22 12:05:07.307838546 +0800 > >=20 > > @@ -0,0 +1,17 @@ > >=20 > > +FILESEXTRAPATHS_prepend :=3D "${THISDIR}/files:" > >=20 > > + > >=20 > > +EXTRA_OECONF +=3D "--disable-ldconfig" > >=20 > > + > >=20 > > +PACKAGECONFIG +=3D "networkd resolved" > >=20 > > + > >=20 > > +CFLAGS_append_arm =3D " -fno-lto" > >=20 > > + > >=20 > > +SRC_URI +=3D "file://eth.network" > >=20 > > + > >=20 > > +FILES_${PN} +=3D "{sysconfdir}/systemd/network/*" > >=20 > > + > >=20 > > +do_install_append() { > >=20 > > + install -d ${D}${sysconfdir}/systemd/network/ > >=20 > > + install -m 0644 ${WORKDIR}/*.network=20 > > + ${D}${sysconfdir}/systemd/network/ > >=20 > > +} > >=20 > > + > >=20 > > =20 > >=20 >=20