[yocto] How to use *.bb file to select different kernel config/feature?

2017-03-21 Thread Richard Zhang
Hi all


I want   to use one linux-kernel-myown.bb file to select different config for 
several boxes.

I think when I give MACHINE to box1\box2\box3, the kernel config and features 
select can be done.


Is it correct :


when use MACHINE=box1\box2\box3 and so on:


KERNEL_FEATURES_append_box1=" cfg/box1.scc"

KERNEL_CONFIG_box1=" cfg/box1_defconfig.cfg"


this instruction could work?or any suggestion.



Regards

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


[yocto] [meta-java][PATCH] commons-collections3: upgrade from 3.2.1 to 3.2.2

2017-03-21 Thread Zhenhua Luo
Signed-off-by: Zhenhua Luo 
---
 .../{commons-collections3_3.2.1.bb => commons-collections3_3.2.2.bb} | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)
 rename recipes-core/jakarta-commons/{commons-collections3_3.2.1.bb => 
commons-collections3_3.2.2.bb} (63%)

diff --git a/recipes-core/jakarta-commons/commons-collections3_3.2.1.bb 
b/recipes-core/jakarta-commons/commons-collections3_3.2.2.bb
similarity index 63%
rename from recipes-core/jakarta-commons/commons-collections3_3.2.1.bb
rename to recipes-core/jakarta-commons/commons-collections3_3.2.2.bb
index 852cac7..0a53d09 100644
--- a/recipes-core/jakarta-commons/commons-collections3_3.2.1.bb
+++ b/recipes-core/jakarta-commons/commons-collections3_3.2.2.bb
@@ -1,5 +1,6 @@
 require jakarta-commons.inc
 
+LIC_FILES_CHKSUM = "file://LICENSE.txt;md5=3b83ef96387f14655fc854ddc3c6bd57"
 PR = "${INC_PR}.1"
 
 DESCRIPTION = "A set of abstract data type interfaces and implementations that 
offer a wealth of useful functionality and a solid foundation for extending 
that functionality"
@@ -9,5 +10,5 @@ SRC_URI = 
"http://www.apache.org/dist/commons/collections/source/commons-collect
 S = "${WORKDIR}/commons-collections-${PV}-src"
 
 
-SRC_URI[md5sum] = "031ce05872ddb0462f0dcce1e5babbe9"
-SRC_URI[sha256sum] = 
"9a4a800cb7ecdaf3b6f608cd608682b88b506f1b1c4b727d15471ae3329fc63d"
+SRC_URI[md5sum] = "776b51a51312c1854ad8f6d344a47cda"
+SRC_URI[sha256sum] = 
"070d94fe77969d8949bd129a618e6a7bee6b83b5b5db3ef3f983395a5428b914"
-- 
2.9.3

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


Re: [yocto] How to use *.bb file to select different kernel config/feature?

2017-03-21 Thread Bruce Ashfield
On Tue, Mar 21, 2017 at 3:15 AM, Richard Zhang 
wrote:

> Hi all
>
>
> I want   to use one linux-kernel-myown.bb file to select different config
> for several boxes.
>
> I think when I give MACHINE to box1\box2\box3, the kernel config and
> features select can be done.
>
>
> Is it correct :
>
>
> when use MACHINE=box1\box2\box3 and so on:
>
>
> KERNEL_FEATURES_append_box1=" cfg/box1.scc"
>

These are variables like any other in bitbake. They can take a variety of
overrides, one of which is the machine
name. So yes, you could append a kernel feature only for your $MACHINE with
the line above.

But you must be using a kernel recipe that inherits kernel-yocto for the
feature to be processed.

> KERNEL_CONFIG_box1=" cfg/box1_defconfig.cfg"
>

Assuming KERNEL_CONFIG is a valid variable in your layers, this would also
work. But if you are using
configuration fragments and kernel-yocto, that isn't a variable that is
used.

Bruce


>
>
> this instruction could work?or any suggestion.
>
>
>
> Regards
>
> Richard
>
> --
> ___
> yocto mailing list
> yocto@yoctoproject.org
> https://lists.yoctoproject.org/listinfo/yocto
>
>


-- 
"Thou shalt not follow the NULL pointer, for chaos and madness await thee
at its end"
-- 
___
yocto mailing list
yocto@yoctoproject.org
https://lists.yoctoproject.org/listinfo/yocto


Re: [yocto] Random failure

2017-03-21 Thread Gary Thomas

On 2017-03-16 13:08, Gary Thomas wrote:

I've been running the same sequence many times today - basically
updating a source file for a recipe, then rebuilding it.  Out of
the 40+ times I've run it, I get these intermittent errors about
1 in 10 times.  Nothing changed except for one of the source files
included in my recipe.  Here's the output:

===
$ MACHINE=teton-p7621 bitbake production-tests && MACHINE=teton-p7621 bitbake 
package-index
NOTE: Started PRServer with DBfile: 
/build/p7619_2016-02-23/cache/prserv.sqlite3, IP: 127.0.0.1, PORT: 44600, PID: 
7064
Loading cache: 100% 
|#|
Time: 0:00:00
Loaded 1717 entries from dependency cache.
Parsing recipes: 100% 
|###|
Time: 0:00:00
Parsing of 1219 .bb files complete (1218 cached, 1 parsed). 1717 targets, 335 
skipped, 0 masked, 0 errors.
NOTE: Resolving any missing task queue dependencies

Build Configuration:
BB_VERSION= "1.33.2"
BUILD_SYS = "x86_64-linux"
NATIVELSBSTRING   = "universal"
TARGET_SYS= "arm-amltd-linux-gnueabi"
MACHINE   = "teton-p7621"
DISTRO= "amltd"
DISTRO_VERSION= "2.2+snapshot-20170316"
TUNE_FEATURES = "arm armv7ve vfp thumb neon callconvention-hard cortexa7"
TARGET_FPU= "hard"
meta  = "master:b1f09df0f664052e39d939b759a63b05d767b8ec"
meta-amltd= "master:a57fa8ec07224f1d1d87e0357158bcbe7a4bc010"
meta-teton-imx6-p761x = "master:a0b1a6c5e1f76ca74d93b26018eb0753a2306a29"

Initialising tasks: 100% 
||
Time: 0:00:00
Checking sstate mirror object availability: 100% 
||
Time: 0:00:00
NOTE: Executing SetScene Tasks
NOTE: Executing RunQueue Tasks
ERROR: production-tests-1.0-r0 do_configure: Function failed: do_configure (log 
file is located at
/build/p7619_2016-02-23/tmp/work/teton_p7621-amltd-linux-gnueabi/production-tests/1.0-r0/temp/log.do_configure.7131)
ERROR: Logfile of failure stored in:
/build/p7619_2016-02-23/tmp/work/teton_p7621-amltd-linux-gnueabi/production-tests/1.0-r0/temp/log.do_configure.7131
Log data follows:
| DEBUG: Executing python function sysroot_cleansstate
| DEBUG: Removing manifest:
/build/p7619_2016-02-23/tmp/sysroots-components/teton_p7621/production-tests/sysroot-providers/production-tests
| DEBUG: Removing manifest: 
/build/p7619_2016-02-23/tmp/sysroots-components/teton_p7621/production-tests/sysroot-providers/
| DEBUG: Python function sysroot_cleansstate finished
| DEBUG: Executing shell function do_configure
| find: 
‘/build/p7619_2016-02-23/tmp/work/teton_p7621-amltd-linux-gnueabi/production-tests/1.0-r0/license-destdir’:
 No
such file or directory
| WARNING: exit code 1 from a shell command.
| ERROR: Function failed: do_configure (log file is located at
/build/p7619_2016-02-23/tmp/work/teton_p7621-amltd-linux-gnueabi/production-tests/1.0-r0/temp/log.do_configure.7131)
ERROR: Task 
(/local/poky-cutting-edge/meta-teton-imx6-p761x/packages/misc/production-tests_1.0.bb:do_configure)
 failed
with exit code '1'
NOTE: Tasks Summary: Attempted 454 tasks of which 448 didn't need to be rerun 
and 1 failed.

===

If I immediately rerun the same sequence, the error goes away.

Any ideas what might be causing this?  It's more of an annoyance than
anything else, but it also might point to a deeper problem?


I'm still seeing these failures a lot and it seems to be related to how
busy my system is doing other things.  For example, every day the 'locate'
database is rebuilt and while that happens, this error seems to be much
more likely.  It's also obvious that this is a timing related issue given
that it occurs randomly and non-repeatably.

It's a bit frustrating to have it happen so much but if there are any clues
I can gather, I'm happy to provide more information if it helps.

--

Gary Thomas |  Consulting for the
MLB Associates  |Embedded world

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


[yocto] [meta-raspberrypi][PATCH 1/1] omxplayer: Add dependency on coreutils-native

2017-03-21 Thread Andrei Gherzan
Internal ffmpeg configure uses pr which is provided by coreutils-native:
| ./configure: line 471: pr: command not found

Signed-off-by: Andrei Gherzan 
---
 recipes-multimedia/omxplayer/omxplayer_git.bb | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/recipes-multimedia/omxplayer/omxplayer_git.bb 
b/recipes-multimedia/omxplayer/omxplayer_git.bb
index c196fbf..72297d0 100644
--- a/recipes-multimedia/omxplayer/omxplayer_git.bb
+++ b/recipes-multimedia/omxplayer/omxplayer_git.bb
@@ -7,7 +7,7 @@ SECTION = "console/utils"
 LICENSE = "GPLv2"
 LIC_FILES_CHKSUM = "file://COPYING;md5=94d55d512a9ba36caa9b7df079bae19f"
 
-DEPENDS = "libpcre libav virtual/egl boost freetype dbus openssl samba libssh 
libomxil"
+DEPENDS = "libpcre libav virtual/egl boost freetype dbus openssl samba libssh 
libomxil coreutils-native"
 PR = "r4"
 
 SRCREV = "62fb580260adb9b01e5694bb4374fb9a5f6f1021"
-- 
2.12.0

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


Re: [yocto] Bumping all packages versions

2017-03-21 Thread Leonardo Sandoval
have you tried the 'bitbake-layes show-recipes' script? that scripts
list the recipes, layer it belongs and the recipe's PV, unfortunately
not in a single line, but data is there.


Leo

On Mon, 2017-03-20 at 11:35 -0600, Matthew Stanger wrote:
> No Thanks I'm a rookie :)
> 
> On Mon, Mar 20, 2017 at 11:22 AM, Gary Thomas 
> wrote:
> On 2017-03-20 16:52, Matthew Stanger wrote:
> Hi,
> 
> I'm running Yocto 1.7.1 and was wondering if there was
> a simple way to roll/bump all package versions. For
> example in
> every .bb I want to bump PV = $version higher. I'm
> trying to do this as we've designed our headless
> system to update
> using opkg but now we are struggling to find a simple
> way to update package versions, we're trying to stay
> away from
> manually doing it as there is a lot of room for error
> when touching so many packages. First, is there a way
> to brute
> force bump all package versions and 2nd is there a way
> to only bump packages that have changed code (like
> auto git hash
> diff or something) without manually bumping the PV
> version in the .bb? What is the proper way to handle
> you distro's
> versioning at the package level?
> 
> Are you using the PR server?  That's pretty much what it's
> for.
> 
> -- 
> 
> 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


Re: [yocto] [meta-raspberrypi] Consolidated pull

2017-03-21 Thread Andrei Gherzan
On Sun, Mar 12, 2017 at 03:18:45AM -0700, Khem Raj wrote:
> The following changes since commit c768a3d1aed8d16d08afe12fddb359914e0a203a:
>
>   linux-raspberrypi_dev: Fix build on rpi3 64bit (2017-02-16 20:53:18 +0100)
>
> are available in the git repository at:
>
>   https://github.com/kraj/meta-raspberrypi kraj/pu

Merged to master. Thanks.

--
Andrei Gherzan
gpg: rsa4096/D4D94F67AD0E9640 | t: @agherzan


signature.asc
Description: PGP signature
-- 
___
yocto mailing list
yocto@yoctoproject.org
https://lists.yoctoproject.org/listinfo/yocto


Re: [yocto] [meta-raspberrypi][PATCH 1/1] omxplayer: Add dependency on coreutils-native

2017-03-21 Thread Andrei Gherzan
On Tue, Mar 21, 2017 at 04:18:04PM +, Andrei Gherzan wrote:
> Internal ffmpeg configure uses pr which is provided by coreutils-native:
> | ./configure: line 471: pr: command not found
>
> Signed-off-by: Andrei Gherzan 
> ---
>  recipes-multimedia/omxplayer/omxplayer_git.bb | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/recipes-multimedia/omxplayer/omxplayer_git.bb 
> b/recipes-multimedia/omxplayer/omxplayer_git.bb
> index c196fbf..72297d0 100644
> --- a/recipes-multimedia/omxplayer/omxplayer_git.bb
> +++ b/recipes-multimedia/omxplayer/omxplayer_git.bb
> @@ -7,7 +7,7 @@ SECTION = "console/utils"
>  LICENSE = "GPLv2"
>  LIC_FILES_CHKSUM = "file://COPYING;md5=94d55d512a9ba36caa9b7df079bae19f"
>
> -DEPENDS = "libpcre libav virtual/egl boost freetype dbus openssl samba 
> libssh libomxil"
> +DEPENDS = "libpcre libav virtual/egl boost freetype dbus openssl samba 
> libssh libomxil coreutils-native"
>  PR = "r4"
>
>  SRCREV = "62fb580260adb9b01e5694bb4374fb9a5f6f1021"
> --
> 2.12.0
>

Merged to master.

--
Andrei Gherzan
gpg: rsa4096/D4D94F67AD0E9640 | t: @agherzan


signature.asc
Description: PGP signature
-- 
___
yocto mailing list
yocto@yoctoproject.org
https://lists.yoctoproject.org/listinfo/yocto


Re: [yocto] [meta-raspberrypi][PATCH] userland_git.bb: remove libgl RPROVIDES

2017-03-21 Thread Andrei Gherzan
On Wed, Mar 15, 2017 at 01:02:37PM -0400, Trevor Woerner wrote:
> On Wed, Mar 15, 2017 at 10:30 AM, Paul Barker  wrote:
> > I think Khem already has a similar patch staged for this:
> > https://github.com/kraj/meta-raspberrypi/commit/e070005aa8251c81323b393d49fd87f92e74cae1
>
>
> Oops! thanks :-)
> --
> ___
> yocto mailing list
> yocto@yoctoproject.org
> https://lists.yoctoproject.org/listinfo/yocto

As mentioned, a similar patches was included in Khem's PR which made it
in master.

--
Andrei Gherzan
gpg: rsa4096/D4D94F67AD0E9640 | t: @agherzan


signature.asc
Description: PGP signature
-- 
___
yocto mailing list
yocto@yoctoproject.org
https://lists.yoctoproject.org/listinfo/yocto


Re: [yocto] [meta-raspberrypi][PATCH] xserver-xf86-config: remove evdev configuration

2017-03-21 Thread Andrei Gherzan
On Thu, Feb 16, 2017 at 12:49:01PM +0100, Andreas Müller wrote:
> xorg-xserver recommends xf86-input-libinput since oe-core's commit
>
> | commit 2d005faff6341a81a2afae28860101ba9db51ae8
> | Author: Jussi Kukkonen 
> | Date:   Wed Oct 26 11:37:38 2016 +0300
> |
> |conf: Use xf86-input-libinput by default
> | ...
>
> As nice side effect warnings for missing evdev in Xorg.0.log are gone.
>
> Signed-off-by: Andreas Müller 

Merged to master as part if Khem's PR.
--
Andrei Gherzan
gpg: rsa4096/D4D94F67AD0E9640 | t: @agherzan


signature.asc
Description: PGP signature
-- 
___
yocto mailing list
yocto@yoctoproject.org
https://lists.yoctoproject.org/listinfo/yocto


Re: [yocto] [meta-raspberrypi][PATCH] gstreamer1.0-omx: remove bbappend for version 1.2.0

2017-03-21 Thread Andrei Gherzan
On Fri, Mar 10, 2017 at 05:36:19PM -0800, Khem Raj wrote:
>
>
> On 3/7/17 4:07 AM, Paul Barker wrote:
> > On Mon,  6 Mar 2017 17:28:03 +0200
> > "Maxin B. John"  wrote:
> >
> >> OE-Core rev: aa06a18d59eb391d1a7ace9daa0681bdf8daf17f
> >> removed gstreamer1.0-omx_1.2.0 recipe.
> >>
> >> Signed-off-by: Maxin B. John 
> >> ---
> >>  ...o-acquire-buffer-when-src-pad-isn-t-activ.patch |  48 
> >>  .../0001-config-files-path.patch   | 137
> >> - .../0002-fix-decoder-flushing.patch
> >> |  16 --- .../0003-no-timeout-on-get-state.patch |  16 ---
> >>  ...erly-handle-drain-requests-while-flushing.patch |  69 ---
> >>  ...-gst_omx_video_dec_set_format-if-there-s-.patch |  30 -
> >>  ...-unref-allocator-after-getting-it-from-al.patch |  48 
> >>  ...mxvideodec-Use-gstglmemoryegl-for-the-RPi.patch | 115
> >> - .../gstreamer/gstreamer1.0-omx_1.2.0.bbappend
> >> |  14 --- 9 files changed, 493 deletions(-)
> >>  delete mode 100644
> >> recipes-multimedia/gstreamer/gstreamer1.0-omx-1.2.0/0001-Don-t-try-to-acquire-buffer-when-src-pad-isn-t-activ.patch
> >> delete mode 100644
> >> recipes-multimedia/gstreamer/gstreamer1.0-omx-1.2.0/0001-config-files-path.patch
> >> delete mode 100644
> >> recipes-multimedia/gstreamer/gstreamer1.0-omx-1.2.0/0002-fix-decoder-flushing.patch
> >> delete mode 100644
> >> recipes-multimedia/gstreamer/gstreamer1.0-omx-1.2.0/0003-no-timeout-on-get-state.patch
> >> delete mode 100644
> >> recipes-multimedia/gstreamer/gstreamer1.0-omx-1.2.0/0004-Properly-handle-drain-requests-while-flushing.patch
> >> delete mode 100644
> >> recipes-multimedia/gstreamer/gstreamer1.0-omx-1.2.0/0005-Don-t-abort-gst_omx_video_dec_set_format-if-there-s-.patch
> >> delete mode 100644
> >> recipes-multimedia/gstreamer/gstreamer1.0-omx-1.2.0/0006-omxvideodec-unref-allocator-after-getting-it-from-al.patch
> >> delete mode 100644
> >> recipes-multimedia/gstreamer/gstreamer1.0-omx-1.2.0/0007-omxvideodec-Use-gstglmemoryegl-for-the-RPi.patch
> >> delete mode 100644
> >> recipes-multimedia/gstreamer/gstreamer1.0-omx_1.2.0.bbappend
> >
> > I got a parse failure on all my scheduled builds last night. This patch
> > fixes the builds for me :)
>
> These are now staged in kraj/master on my github with few other changes.

... which made it to master.

--
Andrei Gherzan
gpg: rsa4096/D4D94F67AD0E9640 | t: @agherzan


signature.asc
Description: PGP signature
-- 
___
yocto mailing list
yocto@yoctoproject.org
https://lists.yoctoproject.org/listinfo/yocto


Re: [yocto] [meta-raspberrypi][PATCH 1/1] omxplayer: Add dependency on coreutils-native

2017-03-21 Thread Andrei Gherzan
On Tue, Mar 21, 2017 at 09:48:52AM -0700, Khem Raj wrote:
> On Tue, Mar 21, 2017 at 9:18 AM, Andrei Gherzan  wrote:
> > Internal ffmpeg configure uses pr which is provided by coreutils-native:
> > | ./configure: line 471: pr: command not found
>
> this should probably we added to OE-core allowed binaries whitelist.

Right. I'm fine either way. For now this fixes a racing issue so I
merged it to master.
--
Andrei Gherzan
gpg: rsa4096/D4D94F67AD0E9640 | t: @agherzan


signature.asc
Description: PGP signature
-- 
___
yocto mailing list
yocto@yoctoproject.org
https://lists.yoctoproject.org/listinfo/yocto


Re: [yocto] [meta-raspberrypi] WiFi on rpi3?

2017-03-21 Thread Andrei Gherzan
On Thu, Feb 16, 2017 at 06:09:02PM -0800, Khem Raj wrote:
>
>
> On 1/20/17 3:52 AM, Gary Thomas wrote:
> > On 2017-01-20 12:30, Gary Thomas wrote:
> >> Can someone give me pointers to get the onboard WiFi on the
> >> RaspberryPi3 going?  What kernel settings/hoops I need to do,
> >> what packages I might need, etc?
> >>
> >> Thanks
> >>
> >
> > Actually, I've found that with an older kernel (4.1.21) the WiFi
> > device is discovered, but with the newer kernels (4.4.x and 4.9.x)
> > it's not.
> >
> > Any clues?
> >
>
> Please try out the patch I posted to ml
>
> https://lists.yoctoproject.org/pipermail/yocto/2017-February/034624.html
>
> or from my gh fork.
>
> https://github.com/kraj/meta-raspberrypi/commit/6ce6e57782c23fd21ad47286ac8b809ce989ea78
>
> and let us know.
>
> Cheers
> -Khem
> --
> ___
> yocto mailing list
> yocto@yoctoproject.org
> https://lists.yoctoproject.org/listinfo/yocto

Available now in master too.

--
Andrei Gherzan
gpg: rsa4096/D4D94F67AD0E9640 | t: @agherzan


signature.asc
Description: PGP signature
-- 
___
yocto mailing list
yocto@yoctoproject.org
https://lists.yoctoproject.org/listinfo/yocto


Re: [yocto] [meta-raspberrypi][PATCH 1/1] omxplayer: Add dependency on coreutils-native

2017-03-21 Thread Khem Raj
On Tue, Mar 21, 2017 at 9:18 AM, Andrei Gherzan  wrote:
> Internal ffmpeg configure uses pr which is provided by coreutils-native:
> | ./configure: line 471: pr: command not found

this should probably we added to OE-core allowed binaries whitelist.

>
> Signed-off-by: Andrei Gherzan 
> ---
>  recipes-multimedia/omxplayer/omxplayer_git.bb | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/recipes-multimedia/omxplayer/omxplayer_git.bb 
> b/recipes-multimedia/omxplayer/omxplayer_git.bb
> index c196fbf..72297d0 100644
> --- a/recipes-multimedia/omxplayer/omxplayer_git.bb
> +++ b/recipes-multimedia/omxplayer/omxplayer_git.bb
> @@ -7,7 +7,7 @@ SECTION = "console/utils"
>  LICENSE = "GPLv2"
>  LIC_FILES_CHKSUM = "file://COPYING;md5=94d55d512a9ba36caa9b7df079bae19f"
>
> -DEPENDS = "libpcre libav virtual/egl boost freetype dbus openssl samba 
> libssh libomxil"
> +DEPENDS = "libpcre libav virtual/egl boost freetype dbus openssl samba 
> libssh libomxil coreutils-native"
>  PR = "r4"
>
>  SRCREV = "62fb580260adb9b01e5694bb4374fb9a5f6f1021"
> --
> 2.12.0
>
> --
> ___
> 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] Morty 2.2.1 build failure

2017-03-21 Thread Greg Wilson-Lindberg
Hello List,

I got a copy of the book "Embedded Linux Systems with the Yocto Project" at the 
SCALE 15x conference and this prompted me to try building the Yocto Poky build 
before getting the Boot to Qt Yocto build environment.

I tried building on 2 x86 systems, a 64 bit system at work and a 32 bit system 
at my home, both failed in the same way:

gwilson 11:06:54:~/yocto/poky-morty-16.0.1$ source ./oe-init-build-env
You had no conf/local.conf file. This configuration file has therefore been
created for you with some default values. You may wish to edit it to, for
example, select a different MACHINE (target hardware). See conf/local.conf
for more information as common configuration options are commented.

You had no conf/bblayers.conf file. This configuration file has therefore been
created for you with some default values. To add additional metadata layers
into your configuration please add entries to conf/bblayers.conf.

The Yocto Project has extensive documentation about OE including a reference
manual which can be found at:
http://yoctoproject.org/documentation

For more information about OpenEmbedded see their website:
http://www.openembedded.org/


### Shell environment set up for builds. ###

You can now run 'bitbake '

Common targets are:
core-image-minimal
core-image-sato
meta-toolchain
meta-ide-support

You can also run generated qemu images with a command like 'runqemu qemux86'
gwilson 11:07:08:~/yocto/poky-morty-16.0.1/build$
gwilson 11:07:10:~/yocto/poky-morty-16.0.1/build$
gwilson 11:07:11:~/yocto/poky-morty-16.0.1/build$ bitbake core-image-sato
Parsing recipes: 100% 
||
 Time: 0:00:29
Parsing of 864 .bb files complete (0 cached, 864 parsed). 1318 targets, 50 
skipped, 0 masked, 0 errors.
NOTE: Resolving any missing task queue dependencies

Build Configuration:
BB_VERSION= "1.32.0"
BUILD_SYS = "x86_64-linux"
NATIVELSBSTRING   = "Ubuntu-14.04"
TARGET_SYS= "i586-poky-linux"
MACHINE   = "qemux86"
DISTRO= "poky"
DISTRO_VERSION= "2.2.1"
TUNE_FEATURES = "m32 i586"
TARGET_FPU= ""
meta
meta-poky
meta-yocto-bsp= ":"

NOTE: Fetching uninative binary shim from 
http://downloads.yoctoproject.org/releases/uninative/1.4/x86_64-nativesdk-libc.tar.bz2;sha256sum=101ff8f2580c193488db9e76f9646fb6ed38b65fb76f403acb0e2178ce7127ca
--2017-03-20 11:07:57--  
http://downloads.yoctoproject.org/releases/uninative/1.4/x86_64-nativesdk-libc.tar.bz2
Resolving downloads.yoctoproject.org (downloads.yoctoproject.org)... 
198.145.20.127
Connecting to downloads.yoctoproject.org 
(downloads.yoctoproject.org)|198.145.20.127|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 2473216 (2.4M) [application/octet-stream]
Saving to: 
'/home/gwilson/yocto/poky-morty-16.0.1/build/downloads/uninative/101ff8f2580c193488db9e76f9646fb6ed38b65fb76f403acb0e2178ce7127ca/x86_64-nativesdk-libc.tar.bz2'


2017-03-20 11:07:58 (6.62 MB/s) - 
'/home/gwilson/yocto/poky-morty-16.0.1/build/downloads/uninative/101ff8f2580c193488db9e76f9646fb6ed38b65fb76f403acb0e2178ce7127ca/x86_64-nativesdk-libc.tar.bz2'
 saved [2473216/2473216]

Initialising tasks: 100% 
|#|
 Time: 0:00:15
NOTE: Executing SetScene Tasks
NOTE: Executing RunQueue Tasks
WARNING: flex-native-2.6.0-r0 do_fetch: Failed to fetch URL 
http://downloads.sourceforge.net/flex/flex-2.6.0.tar.bz2, attempting MIRRORS if 
available
WARNING: file-native-5.28-r0 do_fetch: Failed to fetch URL 
git://github.com/file/file.git, attempting MIRRORS if available
ERROR: file-native-5.28-r0 do_fetch: Fetcher failure: Unable to find revision 
3c521817322a6bf5160cfeb09b9145ccde587b2a in branch master even from upstream
ERROR: file-native-5.28-r0 do_fetch: Fetcher failure for URL: 
'git://github.com/file/file.git'. Unable to fetch URL from any source.
ERROR: file-native-5.28-r0 do_fetch: Function failed: base_do_fetch
ERROR: Logfile of failure stored in: 
/home/gwilson/yocto/poky-morty-16.0.1/build/tmp/work/x86_64-linux/file-native/5.28-r0/temp/log.do_fetch.23747
ERROR: Task 
(virtual:native:/home/gwilson/yocto/poky-morty-16.0.1/meta/recipes-devtools/file/file_5.28.bb:do_fetch)
 failed with exit code '1'
NOTE: Tasks Summary: Attempted 203 tasks of which 0 didn't need to be rerun and 
1 failed.

Summary: 1 task failed:
  
virtual:native:/home/gwilson/yocto/poky-morty-16.0.1/meta/recipes-devtools/file/file_5.28.bb:do_fetch
Summary: There were 2 WARNING messages shown.
Summary: There were 3 ERROR messages shown, returning a non-zero exit code.
gwilson 11:13:14:~/yocto/poky-morty-16.0.1/build$

I get 1 file that needs to go to a mirror and a second file that can't be found 
at all.

Are these known bugs? Do I need to just back up and use Morty 2.2?

Regards,

Greg Wilson-Lindberg
Sakura Finetek
310-783-5075
-- 
__

Re: [yocto] How to use *.bb file to select different kernel config/feature?

2017-03-21 Thread Richard Zhang
So, maybe I should take a KERNEL_CONFIG into my own kernel recipe.


Thanks


Richard


From: Bruce Ashfield 
Sent: Tuesday, March 21, 2017 8:33:09 PM
To: Richard Zhang
Cc: yocto@yoctoproject.org
Subject: Re: [yocto] How to use *.bb file to select different kernel 
config/feature?



On Tue, Mar 21, 2017 at 3:15 AM, Richard Zhang 
mailto:richard.zh...@pica8.com>> wrote:

Hi all


I want   to use one linux-kernel-myown.bb file to 
select different config for several boxes.

I think when I give MACHINE to box1\box2\box3, the kernel config and features 
select can be done.


Is it correct :


when use MACHINE=box1\box2\box3 and so on:


KERNEL_FEATURES_append_box1=" cfg/box1.scc"

These are variables like any other in bitbake. They can take a variety of 
overrides, one of which is the machine
name. So yes, you could append a kernel feature only for your $MACHINE with the 
line above.

But you must be using a kernel recipe that inherits kernel-yocto for the 
feature to be processed.

KERNEL_CONFIG_box1=" cfg/box1_defconfig.cfg"

Assuming KERNEL_CONFIG is a valid variable in your layers, this would also 
work. But if you are using
configuration fragments and kernel-yocto, that isn't a variable that is used.

Bruce




this instruction could work?or any suggestion.



Regards

Richard

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




--
"Thou shalt not follow the NULL pointer, for chaos and madness await thee at 
its end"
-- 
___
yocto mailing list
yocto@yoctoproject.org
https://lists.yoctoproject.org/listinfo/yocto


Re: [yocto] Morty 2.2.1 build failure

2017-03-21 Thread akuster808


Greg,

On 03/21/2017 04:29 PM, Greg Wilson-Lindberg wrote:

Hello List,

I got a copy of the book "Embedded Linux Systems with the Yocto Project" at the 
SCALE 15x conference and this prompted me to try building the Yocto Poky build before 
getting the Boot to Qt Yocto build environment.

I tried building on 2 x86 systems, a 64 bit system at work and a 32 bit system 
at my home, both failed in the same way:

gwilson 11:06:54:~/yocto/poky-morty-16.0.1$ source ./oe-init-build-env
You had no conf/local.conf file. This configuration file has therefore been
created for you with some default values. You may wish to edit it to, for
example, select a different MACHINE (target hardware). See conf/local.conf
for more information as common configuration options are commented.

You had no conf/bblayers.conf file. This configuration file has therefore been
created for you with some default values. To add additional metadata layers
into your configuration please add entries to conf/bblayers.conf.

The Yocto Project has extensive documentation about OE including a reference
manual which can be found at:
 http://yoctoproject.org/documentation

For more information about OpenEmbedded see their website:
 http://www.openembedded.org/


### Shell environment set up for builds. ###

You can now run 'bitbake '

Common targets are:
 core-image-minimal
 core-image-sato
 meta-toolchain
 meta-ide-support

You can also run generated qemu images with a command like 'runqemu qemux86'
gwilson 11:07:08:~/yocto/poky-morty-16.0.1/build$
gwilson 11:07:10:~/yocto/poky-morty-16.0.1/build$
gwilson 11:07:11:~/yocto/poky-morty-16.0.1/build$ bitbake core-image-sato
Parsing recipes: 100% 
||
 Time: 0:00:29
Parsing of 864 .bb files complete (0 cached, 864 parsed). 1318 targets, 50 
skipped, 0 masked, 0 errors.
NOTE: Resolving any missing task queue dependencies

Build Configuration:
BB_VERSION= "1.32.0"
BUILD_SYS = "x86_64-linux"
NATIVELSBSTRING   = "Ubuntu-14.04"
TARGET_SYS= "i586-poky-linux"
MACHINE   = "qemux86"
DISTRO= "poky"
DISTRO_VERSION= "2.2.1"
TUNE_FEATURES = "m32 i586"
TARGET_FPU= ""
meta
meta-poky
meta-yocto-bsp= ":"

NOTE: Fetching uninative binary shim from 
http://downloads.yoctoproject.org/releases/uninative/1.4/x86_64-nativesdk-libc.tar.bz2;sha256sum=101ff8f2580c193488db9e76f9646fb6ed38b65fb76f403acb0e2178ce7127ca
--2017-03-20 11:07:57--  
http://downloads.yoctoproject.org/releases/uninative/1.4/x86_64-nativesdk-libc.tar.bz2
Resolving downloads.yoctoproject.org (downloads.yoctoproject.org)... 
198.145.20.127
Connecting to downloads.yoctoproject.org 
(downloads.yoctoproject.org)|198.145.20.127|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 2473216 (2.4M) [application/octet-stream]
Saving to: 
'/home/gwilson/yocto/poky-morty-16.0.1/build/downloads/uninative/101ff8f2580c193488db9e76f9646fb6ed38b65fb76f403acb0e2178ce7127ca/x86_64-nativesdk-libc.tar.bz2'


2017-03-20 11:07:58 (6.62 MB/s) - 
'/home/gwilson/yocto/poky-morty-16.0.1/build/downloads/uninative/101ff8f2580c193488db9e76f9646fb6ed38b65fb76f403acb0e2178ce7127ca/x86_64-nativesdk-libc.tar.bz2'
 saved [2473216/2473216]

Initialising tasks: 100% 
|#|
 Time: 0:00:15
NOTE: Executing SetScene Tasks
NOTE: Executing RunQueue Tasks
WARNING: flex-native-2.6.0-r0 do_fetch: Failed to fetch URL 
http://downloads.sourceforge.net/flex/flex-2.6.0.tar.bz2, attempting MIRRORS if 
available
WARNING: file-native-5.28-r0 do_fetch: Failed to fetch URL 
git://github.com/file/file.git, attempting MIRRORS if available
ERROR: file-native-5.28-r0 do_fetch: Fetcher failure: Unable to find revision 
3c521817322a6bf5160cfeb09b9145ccde587b2a in branch master even from upstream
ERROR: file-native-5.28-r0 do_fetch: Fetcher failure for URL: 
'git://github.com/file/file.git'. Unable to fetch URL from any source.


this is a known issue and should be fixed now (again). The upstream repo 
had issues which caused the hashes to not match. I heard the repo got 
corrected.



ERROR: file-native-5.28-r0 do_fetch: Function failed: base_do_fetch
ERROR: Logfile of failure stored in: 
/home/gwilson/yocto/poky-morty-16.0.1/build/tmp/work/x86_64-linux/file-native/5.28-r0/temp/log.do_fetch.23747
ERROR: Task 
(virtual:native:/home/gwilson/yocto/poky-morty-16.0.1/meta/recipes-devtools/file/file_5.28.bb:do_fetch)
 failed with exit code '1'
NOTE: Tasks Summary: Attempted 203 tasks of which 0 didn't need to be rerun and 
1 failed.

Summary: 1 task failed:
   
virtual:native:/home/gwilson/yocto/poky-morty-16.0.1/meta/recipes-devtools/file/file_5.28.bb:do_fetch
Summary: There were 2 WARNING messages shown.
Summary: There were 3 ERROR messages shown, returning a non-zero exit code.
gwilson 11:13:14:~/yocto/poky-morty-16.0.1/build$

I get 1 file