From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by yocto-www.yoctoproject.org (Postfix, from userid 118) id 361F9E0083A; Mon, 26 Jan 2015 14:23:25 -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.9 required=5.0 tests=BAYES_00,HTML_MESSAGE, SPF_HELO_PASS autolearn=ham version=3.3.1 X-Spam-HAM-Report: * -0.0 SPF_HELO_PASS SPF: HELO matches SPF record * -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 mx-mn.atk.com (mx-mn.atk.com [192.107.248.84]) by yocto-www.yoctoproject.org (Postfix) with ESMTP id 6D2B5E00836 for ; Mon, 26 Jan 2015 14:23:14 -0800 (PST) Received: from unknown (HELO UT40SVEH4.atk.com) ([146.168.70.141]) by mx-mn.atk.com with ESMTP; 26 Jan 2015 16:15:08 -0600 Received: from UT40SVCWEM001.atk.com ([169.254.4.192]) by UT40SVEH4.atk.com ([146.168.70.141]) with mapi id 14.03.0174.001; Mon, 26 Jan 2015 15:23:13 -0700 From: "Moore, Thomas (FtWorth)" To: Jim Abernathy Thread-Topic: [yocto] adding all the pieces of WiFi to core-image-minimal Thread-Index: AQHQNzHOBXOT+dvbvEumcsdhxTNa8JzObX0AgARxsICAAAWRAIAAGw4AgAAHQ4CAAATJgIAAOJKAgAAPuQD//4uoAIAAezgA//+KzmCAAIG/gP//jmCQAA7IaoAADdaVIA== Date: Mon, 26 Jan 2015 22:23:12 +0000 Message-ID: <7B6FE55CD594D7478CED8A39DF3BFC0A5E73FE0D@UT40SVCWEM001.atk.com> References: , <54C286DC.2030708@mlbassoc.com>, , <54C645E4.9090801@mlbassoc.com>, , <54C662AD.5070209@mlbassoc.com>, , , , <7B6FE55CD594D7478CED8A39DF3BFC0A5E73ED7A@UT40SVCWEM001.atk.com>, , <7B6FE55CD594D7478CED8A39DF3BFC0A5E73FDA7@UT40SVCWEM001.atk.com>, , <7B6FE55CD594D7478CED8A39DF3BFC0A5E73FDDB@UT40SVCWEM001.atk.com> In-Reply-To: Accept-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [10.99.32.35] MIME-Version: 1.0 Cc: "yocto@yoctoproject.org" , Gary Thomas Subject: Re: adding all the pieces of WiFi to core-image-minimal 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: Mon, 26 Jan 2015 22:23:25 -0000 Content-Language: en-US Content-Type: multipart/alternative; boundary="_000_7B6FE55CD594D7478CED8A39DF3BFC0A5E73FE0DUT40SVCWEM001at_" --_000_7B6FE55CD594D7478CED8A39DF3BFC0A5E73FE0DUT40SVCWEM001at_ Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable core-image-base installs packagegroup-base-extended, whereas core-image-min= imal doesn't. packagegroup-base-extended adds things like kernel modules an= d other package groups that you'll want for a more full-featured system. Thomas From: Jim Abernathy [mailto:jfabernathy@outlook.com] Sent: Monday, January 26, 2015 3:54 PM To: Moore, Thomas (FtWorth) Cc: Chris Tapp; yocto@yoctoproject.org; Gary Thomas Subject: RE: [yocto] adding all the pieces of WiFi to core-image-minimal ________________________________ From: Thomas.Moore2@ATK.COM To: jfabernathy@outlook.com CC: opensource@keylevel.com; yocto@yoctoproject.org; gary@mlbassoc.com Subject: RE: [yocto] adding all the pieces of WiFi to core-image-minimal Date: Mon, 26 Jan 2015 21:51:47 +0000 Looks like you also need to add ipv4 to the DISTRO_FEATURES: DISTRO_FEATURES +=3D "ipv4 wifi" Might be worth trying. Thomas I'll test with it, but why core-image-base vs. core-image-minimal? Jim A From: Jim Abernathy [mailto:jfabernathy@outlook.com] Sent: Monday, January 26, 2015 3:38 PM To: Moore, Thomas (FtWorth) Cc: Chris Tapp; yocto@yoctoproject.org; Gary Thomas Subject: RE: [yocto] adding all the pieces of WiFi to core-image-minimal > From: Thomas.Moore2@ATK.COM > To: jfabernathy@outlook.com > CC: opensource@keylevel.com; yocto@yoctoproject.org; gary@mlbassoc.com > Subject: RE: [yocto] adding all the pieces of WiFi to core-image-minimal > Date: Mon, 26 Jan 2015 21:04:54 +0000 > > For now, I'd just get everything working with the local.conf: > > DISTRO_FEATURES +=3D "wifi" > > bitbake core-image-base > > Ultimately, you may want to make a custom machine and distro config and i= ncorporate all of the things you've specified in local.conf in those config= s. For example, I have a system that's an intel-based single-board computer= with several expansion cards. I've created a machine configuration to defi= ne the basic hardware components (features, drivers, etc). I've also create= d a custom distro because we prefer system over systemv and to include some= other non-machine specific packages. Finally, I've created a custom image = that includes some other extras. > > The power of local.conf is nice, but it's a little tricky transitioning f= rom that to more of a BSP approach like I described above because most peop= le just say to add it to your local.conf, but that's not really how it shou= ld be done at the end. Think global variables vs classes. > > P.S. Never edit anything in the poky folder. If you want to modify an exi= sting recipe, create a new layer with a bbappend and modify away. > > Thomas > > I tried just adding DISTRO_FEATURES +=3D "wifi" to the local.conf and bitba= king core-image-base, but I got a lot of errors: NOTE: Resolving any missing task queue dependencies ERROR: Nothing PROVIDES 'glibc' ERROR: glibc was skipped: missing required distro feature 'ipv4' (not in DI= STRO_FEATURES) ERROR: Required build target 'core-image-base' has no buildable providers. Missing or unbuildable dependency chain was: ['core-image-base', 'glibc'] So I got it working with core-image-minimal as I mentioned earlier just bef= ore your reply. > -----Original Message----- > From: James Abernathy [mailto:jfabernathy@outlook.com] > Sent: Monday, January 26, 2015 2:53 PM > To: Moore, Thomas (FtWorth) > Cc: Chris Tapp; yocto@yoctoproject.org; Ga= ry Thomas > Subject: Re: [yocto] adding all the pieces of WiFi to core-image-minimal > > > > On Jan 26, 2015, at 3:36 PM, Moore, Thomas (FtWorth) > wrote: > > > > Try building core-image-base or adding packagegroup-base-extended to yo= ur IMAGE_INSTALL. This should add the modules and firmware. > > > > core-image-minimal is just that and only includes just enough to boot t= he system. > > > > P.S. if you add "wifi" to your DISTRO_FEATURES, then packagegroup-base-= wifi should automatically get added to the image. Checkout meta/recipes-cor= e/packagegroups/packagegroup-base.bb to see how that works. > > > > Thomas > > > > Interesting! are we talking about doing this in the local.conf? or are we= talking about modifying existing recipes? I'd like to do this cleanly and = not mess up what's in the default files. Maybe create my own layer?? > > Jim A > > > From: yocto-bounces@yoctoproject.org > > [mailto:yocto-bounces@yoctoproject.org] On Behalf Of Chris Tapp > > Sent: Monday, January 26, 2015 2:28 PM > > To: James Abernathy > > Cc: yocto@yoctoproject.org; Gary Thomas > > Subject: Re: [yocto] adding all the pieces of WiFi to > > core-image-minimal > > > > > > On 26 Jan 2015, at 19:31, James Abernathy > wrote: > > > > > > I get a clean build when I add: CORE_IMAGE_EXTRA_INSTALL +=3D " package= group-base-wifi" > > > > However, I have no wireless drivers. I must have to add something to ad= d the drivers and firmware to the kernel. Not sure what though. > > > > I'm not an expert here, but I think that adding kernel-modules and linu= x-firmware to your extra_install should give you what you need. > > > > > > Jim A > > > > On Jan 26, 2015, at 11:09 AM, James Abernathy > wrote: > > > > > > On Jan 26, 2015, at 10:52 AM, Gary Thomas > wrote: > > > > On 2015-01-26 08:26, James Abernathy wrote: > > > > > > > > On Jan 26, 2015, at 8:49 AM, Gary Thomas >> wr= ote: > > > > On 2015-01-26 06:29, James Abernathy wrote: > > > > > > > > On Jan 23, 2015, at 12:37 PM, Gary Thomas >> w= rote: > > > > On 2015-01-23 10:24, Jim Abernathy wrote: > > > > I'm starting a project mostly for self-education. I have already done > > the project using Ubuntu Server 14.04 using a Intel NUC and a Pandaboar= d as targets. Now I want to see how easy it is to move it to Yocto. > > > > Starting with the NUC, I can boot Dizzy 1.7.1 core-image-minimal and > > core-image-sato, both built with bitbake and not the prebuilt images. H= owever, core-image-minimal doesn't have WiFi and core-image-sato does, but = I don't need all the GUI stuff. It's a headless application. > > > > So what is recommended; eliminating the GUI from sato or adding wifi > > and wpa-supplicant, etc to minimal?? Also any pointers to how to do the= adding/subtracting would be most helpful. > > > > Once this is working all I have to do is put apache-tomcat, and openjdk= -7-jre, then my application. > > > > We use just iw & wpa-supplicant and set up the configuration files > > manually (e.g. the wpa-supplicant configurations). > > > > Could you help with a little more details. What I envision is adding > > an append statement of some kind to local.conf to load in the wireless = related files to core-image-minimal, same with openjdk-7-jre and tomcat7, b= ut my first efforts have generated some unintelligible error for me. So tha= t's why I'm looking for direction on where to start with this. > > > > What was the error you got? I'll bet it was for 'iw' which is a > > package from meta-oe, so you'll need to add that layer > > > > Once you've added the meta-oe layer, you should be able to put this > > line in your local.conf: > > CORE_IMAGE_EXTRA_INSTALL +=3D " iw wpa-supplicant" > > Okay, what I don't get is the fact that without any additional layers, > > bitbake core-image-sato builds all the WiFi features I need. bitbake co= re-image-minimal does not. So I'm thinking that there is some CORE_IMAGE_EX= TRA_INSTALL statement that can just add what is needed without extra layers= . > > > > I guess it just doesn't make sense to me right now. > > > > Try using > > CORE_IMAGE_EXTRA_INSTALL +=3D " packagegroup-base-wifi" > > which will bring in 'wireless-tools' and 'wpa-supplicant'. > > > > I prefer 'iw' to 'wireless-tools' as it is newer and [IMO] simpler to > > use. > > Thanks, I found that I can clean build with just the wpa-supplicant add= ed and I'm hoping that will bring in the wifi drivers. If it does, all I wa= nt to do is edit the /etc/interfaces file with the Static IP of the wlan0, = the static IP of the eth0 and the wpa-xxx for the WKPA2_PSK information. > > > > Do I really need the tools? I don't need CLI commands to change any net= work parameters later. > > > > Jim A > > > > > > -- > > ------------------------------------------------------------ > > Gary Thomas | Consulting for the > > MLB Associates | Embedded world > > ------------------------------------------------------------ > > -- > > _______________________________________________ > > yocto mailing list > > yocto@yoctoproject.org > > https://lists.yoctoproject.org/listinfo/yocto > > > > -- > > _______________________________________________ > > yocto mailing list > > yocto@yoctoproject.org > > https://lists.yoctoproject.org/listinfo/yocto > > > > -- > > _______________________________________________ > > yocto mailing list > > yocto@yoctoproject.org > > https://lists.yoctoproject.org/listinfo/yocto > > > > -- > > > > Chris Tapp > > opensource@keylevel.com > > www.keylevel.com > > > > ---- > > You can tell you're getting older when your car insurance gets real che= ap! > > > --_000_7B6FE55CD594D7478CED8A39DF3BFC0A5E73FE0DUT40SVCWEM001at_ Content-Type: text/html; charset="us-ascii" Content-Transfer-Encoding: quoted-printable

core-image-base installs = packagegroup-base-extended, whereas core-image-minimal doesn’t. packa= gegroup-base-extended adds things like kernel modules and other package groups that you’ll want for a more full-featured system.

 <= /p>

Thomas

 <= /p>

From: Jim Aber= nathy [mailto:jfabernathy@outlook.com]
Sent: Monday, January 26, 2015 3:54 PM
To: Moore, Thomas (FtWorth)
Cc: Chris Tapp; yocto@yoctoproject.org; Gary Thomas
Subject: RE: [yocto] adding all the pieces of WiFi to core-image-min= imal

 

 <= /p>


From: Thomas.Moore2@ATK.C= OM
To: jfabernathy@outlook.com
CC: opensource@keylevel.com; yocto@yoctoproject.org; gary@mlbassoc.com
Subject: RE: [yocto] adding all the pieces of WiFi to core-image-minimal Date: Mon, 26 Jan 2015 21:51:47 +0000

Looks like you also need = to add ipv4 to the DISTRO_FEATURES:

 

DISTRO_FEATURES +=3D = "ipv4 wifi"

 

Might be worth trying.=

 

Thomas

 

I'll test with it, but wh= y core-image-base vs. core-image-minimal?

 

Jim A

From: Jim Aber= nathy [mailto:jfabernathy@outlook.com]
Sent: Monday, January 26, 2015 3:38 PM
To: Moore, Thomas (FtWorth)
Cc: Chris Tapp; yocto@yoctoproject.org; Gary Thomas
Subject: RE: [yocto] adding all the pieces of WiFi to core-image-min= imal

 

 

> From: Thomas.Moore2@ATK.COM
> To: jfabernathy@outlook.com
> CC: opensource@keylevel.com; yocto@yoctoproject.org; gary@mlbassoc.com=
> Subject: RE: [yocto] adding all the pieces of WiFi to core-image-minim= al
> Date: Mon, 26 Jan 2015 21:04:54 +0000
>
> For now, I'd just get everything working with the local.conf:
>
> DISTRO_FEATURES +=3D "wifi"
>
> bitbake core-image-base
>
> Ultimately, you may want to make a custom machine and distro config an= d incorporate all of the things you've specified in local.conf in those con= figs. For example, I have a system that's an intel-based single-board compu= ter with several expansion cards. I've created a machine configuration to define the basic hardware components (f= eatures, drivers, etc). I've also created a custom distro because we prefer= system over systemv and to include some other non-machine specific package= s. Finally, I've created a custom image that includes some other extras.
>
> The power of local.conf is nice, but it's a little tricky transitionin= g from that to more of a BSP approach like I described above because most p= eople just say to add it to your local.conf, but that's not really how it s= hould be done at the end. Think global variables vs classes.
>
> P.S. Never edit anything in the poky folder. If you want to modify an = existing recipe, create a new layer with a bbappend and modify away.
>
> Thomas
>
>
I tried just adding DISTRO_FEATURES +=3D "wifi" to the local.= conf and bitbaking core-image-base, but I got a lot of errors:

NOTE: Resolving any missing task queue dependencies
ERROR: Nothing PROVIDES 'glibc'
ERROR: glibc was skipped: missing required distro feature 'ipv4' (not in DI= STRO_FEATURES)
ERROR: Required build target 'core-image-base' has no buildable providers.<= br> Missing or unbuildable dependency chain was: ['core-image-base', 'glibc']
So I got it working with core-image-minimal as I mentioned earlier just bef= ore your reply.

> -----Original Message-----
> From: James Abernathy [mailto:jfabernathy@outlook.com]
> Sent: Monday, January 26, 2015 2:53 PM
> To: Moore, Thomas (FtWorth)
> Cc: Chris Tapp; yocto@yoctop= roject.org; Gary Thomas
> Subject: Re: [yocto] adding all the pieces of WiFi to core-image-minim= al
>
>
> > On Jan 26, 2015, at 3:36 PM, Moore, Thomas (FtWorth) <Thomas.Moore2@ATK.COM> wrote:
> >
> > Try building core-image-base or adding packagegroup-base-extended= to your IMAGE_INSTALL. This should add the modules and firmware.
> >
> > core-image-minimal is just that and only includes just enough to = boot the system.
> >
> > P.S. if you add "wifi" to your DISTRO_FEATURES, then pa= ckagegroup-base-wifi should automatically get added to the image. Checkout = meta/recipes-core/packagegroups/packagegroup-base.bb to see how that works.=
> >
> > Thomas
> >
>
> Interesting! are we talking about doing this in the local.conf? or are= we talking about modifying existing recipes? I'd like to do this cleanly a= nd not mess up what's in the default files. Maybe create my own layer??
>
> Jim A
>
> > From: yocto-bou= nces@yoctoproject.org
> > [mailt= o:yocto-bounces@yoctoproject.org] On Behalf Of Chris Tapp
> > Sent: Monday, January 26, 2015 2:28 PM
> > To: James Abernathy
> > Cc: yocto@yoctoproject.= org; Gary Thomas
> > Subject: Re: [yocto] adding all the pieces of WiFi to
> > core-image-minimal
> >
> >
> > On 26 Jan 2015, at 19:31, James Abernathy <jfabernathy@outlook.com> wrote:
> >
> >
> > I get a clean build when I add: CORE_IMAGE_EXTRA_INSTALL +=3D= " packagegroup-base-wifi"
> >
> > However, I have no wireless drivers. I must have to add something= to add the drivers and firmware to the kernel. Not sure what though.
> >
> > I'm not an expert here, but I think that adding kernel-modules an= d linux-firmware to your extra_install should give you what you need.
> >
> >
> > Jim A
> >
> > On Jan 26, 2015, at 11:09 AM, James Abernathy <jfabernathy@outlook.com> wrote:
> >
> >
> > On Jan 26, 2015, at 10:52 AM, Gary Thomas <gary@mlbassoc.com> wrote:
> >
> > On 2015-01-26 08:26, James Abernathy wrote:
> >
> >
> >
> > On Jan 26, 2015, at 8:49 AM, Gary Thomas <gary@mlbassoc.com <mailto= :gary@mlbassoc.com>> wrote:
> >
> > On 2015-01-26 06:29, James Abernathy wrote:
> >
> >
> >
> > On Jan 23, 2015, at 12:37 PM, Gary Thomas <gary@mlbassoc.com <mailt= o:gary@mlbassoc.com>> wrote:
> >
> > On 2015-01-23 10:24, Jim Abernathy wrote:
> >
> > I'm starting a project mostly for self-education. I have already = done
> > the project using Ubuntu Server 14.04 using a Intel NUC and a Pan= daboard as targets. Now I want to see how easy it is to move it to Yocto. > >
> > Starting with the NUC, I can boot Dizzy 1.7.1 core-image-minimal = and
> > core-image-sato, both built with bitbake and not the prebuilt ima= ges. However, core-image-minimal doesn't have WiFi and core-image-sato does= , but I don't need all the GUI stuff. It's a headless application.
> >
> > So what is recommended; eliminating the GUI from sato or adding w= ifi
> > and wpa-supplicant, etc to minimal?? Also any pointers to how to = do the adding/subtracting would be most helpful.
> >
> > Once this is working all I have to do is put apache-tomcat, and o= penjdk-7-jre, then my application.
> >
> > We use just iw & wpa-supplicant and set up the configuration = files
> > manually (e.g. the wpa-supplicant configurations).
> >
> > Could you help with a little more details. What I envision is add= ing
> > an append statement of some kind to local.conf to load in the wir= eless related files to core-image-minimal, same with openjdk-7-jre and tomc= at7, but my first efforts have generated some unintelligible error for me. = So that's why I'm looking for direction on where to start with this.
> >
> > What was the error you got? I'll bet it was for 'iw' which is a <= br> > > package from meta-oe, so you'll need to add that layer
> >
> > Once you've added the meta-oe layer, you should be able to put th= is
> > line in your local.conf:
> > CORE_IMAGE_EXTRA_INSTALL +=3D " iw wpa-supplicant"<= br> > > Okay, what I don't get is the fact that without any additional la= yers,
> > bitbake core-image-sato builds all the WiFi features I need. bitb= ake core-image-minimal does not. So I'm thinking that there is some CORE_IM= AGE_EXTRA_INSTALL statement that can just add what is needed without extra = layers.
> >
> > I guess it just doesn't make sense to me right now.
> >
> > Try using
> > CORE_IMAGE_EXTRA_INSTALL +=3D " packagegroup-base-wifi&q= uot;
> > which will bring in 'wireless-tools' and 'wpa-supplicant'.
> >
> > I prefer 'iw' to 'wireless-tools' as it is newer and [IMO] simple= r to
> > use.
> > Thanks, I found that I can clean build with just the wpa-supplica= nt added and I'm hoping that will bring in the wifi drivers. If it does, al= l I want to do is edit the /etc/interfaces file with the Static IP of the w= lan0, the static IP of the eth0 and the wpa-xxx for the WKPA2_PSK information.
> >
> > Do I really need the tools? I don't need CLI commands to change a= ny network parameters later.
> >
> > Jim A
> >
> >
> > --
> > ------------------------------------------------------------
> > Gary Thomas | Consulting for the
> > MLB Associates | Embedded world
> > ------------------------------------------------------------
> > --
> > _______________________________________________
> > yocto mailing list
> > yocto@yoctoproject.org<= /a>
> >
https://lists.yoctoproject.org/listinfo/yocto
> >
> > --
> > _______________________________________________
> > yocto mailing list
> > yocto@yoctoproject.org<= /a>
> >
https://lists.yoctoproject.org/listinfo/yocto
> >
> > --
> > _______________________________________________
> > yocto mailing list
> > yocto@yoctoproject.org<= /a>
> >
https://lists.yoctoproject.org/listinfo/yocto
> >
> > --
> >
> > Chris Tapp
> > opensource@keylevel.co= m
> > www.keyleve= l.com
> >
> > ----
> > You can tell you're getting older when your car insurance gets re= al cheap!
> >
>

--_000_7B6FE55CD594D7478CED8A39DF3BFC0A5E73FE0DUT40SVCWEM001at_--