Return-Path: Received: by yocto-www.yoctoproject.org (Postfix, from userid 118) id 62246E009F3; Thu, 19 Jan 2017 02:07:02 -0800 (PST) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on yocto-www.yoctoproject.org X-Spam-Level: X-Spam-Status: No, score=-1.4 required=5.0 tests=BAYES_00,HTML_MESSAGE, RCVD_IN_DNSWL_NONE,RCVD_IN_SORBS_SPAM autolearn=no version=3.3.1 X-Spam-HAM-Report: * -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at http://www.dnswl.org/, no * trust * [212.227.126.131 listed in list.dnswl.org] * 0.5 RCVD_IN_SORBS_SPAM RBL: SORBS: sender is a spam source * [212.227.126.131 listed in dnsbl.sorbs.net] * -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% * [score: 0.0000] * 0.0 HTML_MESSAGE BODY: HTML included in message Received: from mout.kundenserver.de (mout.kundenserver.de [212.227.126.131]) by yocto-www.yoctoproject.org (Postfix) with ESMTP id CBAA5E009DB for ; Thu, 19 Jan 2017 02:06:58 -0800 (PST) Received: from LNSYSCH3 ([81.130.69.98]) by mrelayeu.kundenserver.de (mreue003 [212.227.15.163]) with ESMTPSA (Nemesis) id 0MJYS7-1cXAQ43Vhz-0033mT; Thu, 19 Jan 2017 11:06:51 +0100 From: To: "'ChenQi'" References: <049201d2719c$fea9e670$fbfdb350$@ln-systems.com> <060101d27224$ad344a00$079cde00$@ln-systems.com> <53576169-6d7a-5db2-72c7-20e8d04ab5c5@windriver.com> In-Reply-To: <53576169-6d7a-5db2-72c7-20e8d04ab5c5@windriver.com> Date: Thu, 19 Jan 2017 10:06:50 -0000 Organization: LN Systems Limited Message-ID: <069b01d2723b$c14be860$43e3b920$@ln-systems.com> MIME-Version: 1.0 X-Mailer: Microsoft Outlook 15.0 Thread-Index: AQHftmx71IEooMCGrNMDnT4mUuYiOAMHaxycAYiQnzUArlHioQJ0NfAEoOd1uCA= X-Provags-ID: V03:K0:d5beNwA5ZNK2wI11UM00mqiRscSFsHA9u9pimoiFjefkS4ToFEm 5frEckDsm3fBXY4jau0wfMGnSzOPU4Paj5HlUdBmghU1yfXsh9Xs37LbBS3NF1qyr6BnC4N baIvLi9iTeikviMhoFKC0mdOTwct7sFE5ESXvfsrJOwkMeGurGjKNW6ClARPNKKtxdZzT8A kRQf0El0Gde8Jrg5yfMvQ== X-UI-Out-Filterresults: notjunk:1;V01:K0:IB8+nAhm0v0=:hfsEDTd5T01+f9HxMG780A EOkMBS/E9IAskAS+izX97BeFeG4Qhk2AI+/EsUsb6eqvx7sn+X+yWLkMas0+HbVe1wDWUpYd+ 4FdO/f2Gbu4fiy6PHWIYqdnt8e0fiGN6nQ+OzZfH5OUMUvUaHp54zgtjBgeSQm7KbTpsr2s4E EBl36wmpuamGOtQlAt7omPGiZow0lXxmzEBmIgRnlZRL0NUs861vco0FyKC86XwiSmyENwJmq 6ZhZpXzyVRqfZCNQcwDmQvPl6Y9bcVvGvmG/xuhV9YLWRlw+/k0KuMrDgoMQkt4Dr4n89RnDq cMEB2ltis0rLrRakHgZBC/BktBslUrSpeWf/kwcuRmTCqHkKWzpO0OJXXiE6mBR9cvnHOwQfp CAM9Dn7YCw8a43MB+3KTVq127rxD44mqigjzvPybh25Q5WjX9RPYfzxtnVZc16UyfLm7EUHb6 Uhxpnee/yocIGwuLTUFLxpwoVRn2xoE02nReJeLnYytHHYk3XRl5F97fbxYcvR2S67uverHKO qebXoM7py7nWxCFjEDYY9Nwz+wceqPIqeHknh9Tq9x/JNeaSO0qcznSbW5+hf6yGpHHljppy5 ChBz23XIAPwfL2xwDd9dAwak8ooY+XvIN2gO4+wgruSlKCeCDS+vC/Vpo609/thcHGd63SgA7 vjoGHwqQykaWgpDREH6caOfgmQ2Nv5FyUH150mRA+CQjjnAtoDPrbWv8uR9lRwgwmJ3cglJ9W b4oH+ACgedLga8cZ Cc: 'Yocto discussion list' Subject: Re: Changing over to systemd (no dhcp) X-BeenThere: yocto@yoctoproject.org X-Mailman-Version: 2.1.13 Precedence: list Reply-To: colin.helliwell@ln-systems.com List-Id: Discussion of all things Yocto Project List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 19 Jan 2017 10:07:02 -0000 Content-Type: multipart/alternative; boundary="----=_NextPart_000_069C_01D2723B.C14E3250" Content-Language: en-gb ------=_NextPart_000_069C_01D2723B.C14E3250 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Thanks Chen. Currently looking into getting networkd hooked in. (no luck yet!) I'll also look into moving stuff from local.conf to elsewhere, but where you say "Distro conf files are not suitable for such kinds of modification", I'm wondering what sort of modifications they *are* suitable/intended for? (i.e. the purpose of a distro as opposed to an image recipe) From: ChenQi [mailto:Qi.Chen@windriver.com] Sent: 19 January 2017 08:32 To: colin.helliwell@ln-systems.com; 'Rick Altherr' ; 'Andre McCurdy' Cc: 'Yocto discussion list' Subject: Re: [yocto] Changing over to systemd (no dhcp) Hi Colin, For the dhcp problem, what you need is a network manager. Any network manager that supports dhcp would do the job. systemd-networkd might be sufficient in your case. For the local.conf problem, you could use a layer to manage all common things shared by the team. For the package adding problem, it depends on the purpose. 1) if adding the package is only for local work (dev or test), do it in local.conf 2) otherwise, do it in image recipe Distro conf files are not suitable for such kinds of modification. Best Regards, Chen Qi On 01/19/2017 03:21 PM, colin.helliwell@ln-systems.com wrote: Yes, I'd agree with that, Rick. We run automated regression builds from a fresh version control checkout - but because local.conf is generated when the build environment is set up, it isn't suitable for version control. So any mods to it found during development have to be (remembered to be) put into local.conf.sample, so that the same build is assured for anyone anywhere. I've long felt/assumed that local.conf was for truly local mods, for that user and/or for their temporary try-outs. Similarly - and this is going even more off-topic so I'll save the detail for a separate thread - I've still not yet got to grips with whether, when I want to add a particular package, I should be modifying my image recipe or set up a custom distro) From: Rick Altherr [mailto:raltherr@google.com] Sent: 19 January 2017 00:22 To: Andre McCurdy Cc: colin.helliwell@ln-systems.com ; Yocto discussion list Subject: Re: [yocto] Changing over to systemd (no dhcp) I was wondering about this recently. Why are these snippets put in local.conf.sample.extended instead of separate, well-named .inc files that can be shared by multiple distros? The current model seems to encourage putting lots of configuration in local.conf that probably should be in the distro or machine conf. Rick On Wed, Jan 18, 2017 at 1:35 PM, Andre McCurdy > wrote: On Wed, Jan 18, 2017 at 7:10 AM, > wrote: > We have a configuration for our embedded system which is working via SysV, > but we're investigating moving over to systemd. > > Not sure if this is 'wise' - if anyone has technological arguments > for/against then I'd be interested - but I wanted to investigate it anyway. > > I've modified local.conf (right or wrong) with > > DISTRO_FEATURES_append = " systemd" > VIRTUAL-RUNTIME_init_manager = "systemd" > DISTRO_FEATURES_BACKFILL_CONSIDERED = "sysvinit" > VIRTUAL-RUNTIME_initscripts = "" > KERNEL_ENABLE_CGROUPS = "1" > > I also found a readme > (https://cgit.freedesktop.org/systemd/systemd/tree/README#n37) about the > kernel requirements for systemd, and it does at least now boot. > > However although eth0 is coming up ('ifconfig eth0'), there doesn't seem to > be any dhcp happening - no IP etc. > > Previously (under SysV) I had the busybox dhcp client; now it seems that is > missing. There's a symlink /etc/systemd/system/busybox-udhcpc.service to > /dev/null > > I'm using > > Poky Jethro > Kernel 4.4.0 > Busybox 1.23.2 (with 'CONFIG_FEATURE_SYSTEMD=y') > > I wondered if this is just a simple switch I'm missing somewhere, or is > there a whole load more modifications I need to dig into and hand-craft? > (Was hoping for something 'out of the box'..) Try: VIRTUAL-RUNTIME_initscripts = "systemd-compat-units" Enabling systemd is somewhat documented by the example in {meta-poky,openembedded-core/meta}/conf/local.conf.sample.extended, which is: # # Use systemd for system initialization # # DISTRO_FEATURES_append = " systemd" # DISTRO_FEATURES_BACKFILL_CONSIDERED += "sysvinit" # VIRTUAL-RUNTIME_init_manager = "systemd" # VIRTUAL-RUNTIME_initscripts = "systemd-compat-units" -- _______________________________________________ yocto mailing list yocto@yoctoproject.org https://lists.yoctoproject.org/listinfo/yocto ------=_NextPart_000_069C_01D2723B.C14E3250 Content-Type: text/html; charset="us-ascii" Content-Transfer-Encoding: quoted-printable

Thanks Chen.

Currently looking into getting networkd = hooked in. (no luck yet!)

I’ll also look into moving stuff from = local.conf to elsewhere, but where you say “Distro conf files are = not suitable for such kinds of modification”, I’m wondering = what sort of modifications they *are* suitable/intended for? (i.e. the = purpose of a distro as opposed to an image = recipe)

 

From: ChenQi [mailto:Qi.Chen@windriver.com]
Sent: 19 January = 2017 08:32
To: colin.helliwell@ln-systems.com; 'Rick Altherr' = <raltherr@google.com>; 'Andre McCurdy' = <armccurdy@gmail.com>
Cc: 'Yocto discussion list' = <yocto@yoctoproject.org>
Subject: Re: [yocto] Changing = over to systemd (no dhcp)

 

Hi = Colin,

For the dhcp problem, what you need is a network manager. = Any network manager that supports dhcp would do the job. = systemd-networkd might be sufficient in your case.

For the = local.conf problem, you could use a layer to manage all common things = shared by the team.

For the package adding problem, it depends on = the purpose.
1) if adding the package is only for local work (dev or = test), do it in local.conf
2) otherwise, do it in image = recipe
Distro conf files are not suitable for such kinds of = modification.

Best Regards,
Chen Qi

On 01/19/2017 03:21 = PM, colin.helliwell@ln-systems= .com wrote:

Yes, I’d agree with that, = Rick.

We run automated regression builds from a = fresh version control checkout – but because local.conf is = generated when the build environment is set up, it isn’t suitable = for version control. So any mods to it found during development have to = be (remembered to be) put into local.conf.sample, so that the same build = is assured for anyone anywhere.

I’ve long felt/assumed that local.conf = was for truly local mods, for that user and/or for their temporary = try-outs.

Similarly – and this is going even = more off-topic so I’ll save the detail for a separate thread = – I’ve still not yet got to grips with whether, when I want = to add a particular package, I should be modifying my image recipe or = set up a custom distro)

 

From:<= /b> Rick = Altherr [mailto:raltherr@google.com] =
Sent: 19 January 2017 00:22
To: Andre McCurdy <armccurdy@gmail.com>
Cc:
colin.helliwell@ln-systems= .com; Yocto discussion list <yocto@yoctoproject.org>=
Subject: Re: [yocto] Changing over to systemd (no = dhcp)

 

I was = wondering about this recently.  Why are these snippets put in = local.conf.sample.extended instead of separate, well-named .inc files = that can be shared by multiple distros?  The current model seems to = encourage putting lots of configuration in local.conf that probably = should be in the distro or machine conf.

 

Rick

 

On Wed, = Jan 18, 2017 at 1:35 PM, Andre McCurdy <armccurdy@gmail.com> = wrote:

On Wed, Jan 18, 2017 at 7:10 AM,  <colin.helliwell@ln-systems= .com> wrote:

> We have a configuration for our = embedded system which is working via SysV,
> but we’re = investigating moving over to systemd.
>
> Not sure if this = is ‘wise’ – if anyone has technological = arguments
> for/against then I’d be interested – but I = wanted to investigate it anyway.
>
> I’ve modified = local.conf (right or wrong) with
>
>  =  DISTRO_FEATURES_append =3D " systemd"
>  =  VIRTUAL-RUNTIME_init_manager =3D "systemd"
>  =  DISTRO_FEATURES_BACKFILL_CONSIDERED =3D = "sysvinit"
>   VIRTUAL-RUNTIME_initscripts =3D = ""
>   KERNEL_ENABLE_CGROUPS =3D = "1"
>
> I also found a readme
> (https://cgit.freedesktop.org/systemd/systemd/tree/READM= E#n37) about the
> kernel requirements for systemd, and it = does at least now boot.
>
> However although eth0 is coming = up (‘ifconfig eth0’), there doesn’t seem to
> be = any dhcp happening – no IP etc.
>
> Previously (under = SysV) I had the busybox dhcp client; now it seems that is
> = missing. There’s a symlink = /etc/systemd/system/busybox-udhcpc.service to
> = /dev/null
>
> I’m using
>
>  =  Poky Jethro
>   Kernel 4.4.0
>  =  Busybox 1.23.2 (with = ‘CONFIG_FEATURE_SYSTEMD=3Dy’)
>
> I wondered if = this is just a simple switch I’m missing somewhere, or is
> = there a whole load more modifications I need to dig into and = hand-craft?
> (Was hoping for something ‘out of the = box’….)

Try:

  VIRTUAL-RUNTIME_initscripts =3D = "systemd-compat-units"

Enabling systemd is somewhat = documented by the example = in
{meta-poky,openembedded-core/meta}/conf/local.conf.sample.extended,=
which is:

#
# Use systemd for system = initialization
#
# DISTRO_FEATURES_append =3D " = systemd"
# DISTRO_FEATURES_BACKFILL_CONSIDERED +=3D = "sysvinit"
# VIRTUAL-RUNTIME_init_manager =3D = "systemd"
# VIRTUAL-RUNTIME_initscripts =3D = "systemd-compat-units"

--
_______________________________________________yocto mailing list
yocto@yoctoproject.org
https://lists.yoctoproject.org/listinfo/yocto<= /o:p>

 



 

------=_NextPart_000_069C_01D2723B.C14E3250--