Wifx / meta-wifx

OpenEmbedded/Yocto Project layer for LORIX One gateway
MIT License
2 stars 1 forks source link

Unable to build image #1

Closed hallard closed 7 years ago

hallard commented 7 years ago

I followed the procedure described I'm on debian jessie Linux 3.16.0-4-amd64 #1 SMP Debian 3.16.43-2+deb8u2 (2017-06-26) x86_64 GNU/Linux

here is my local.conf as described in procedure (removed all other comments)

MACHINE ??= "sama5d4-lorix-one"
DISTRO = "poky-wifx"
PACKAGE_CLASSES ?= "package_ipk"
EXTRA_IMAGE_FEATURES ?= ""
USER_CLASSES ?= "buildstats image-mklibs"

PATCHRESOLVE = "noop"

BB_DISKMON_DIRS = "\
    STOPTASKS,${TMPDIR},1G,100K \
    STOPTASKS,${DL_DIR},1G,100K \
    STOPTASKS,${SSTATE_DIR},1G,100K \
    STOPTASKS,/tmp,100M,100K \
    ABORT,${TMPDIR},100M,1K \
    ABORT,${DL_DIR},100M,1K \
    ABORT,${SSTATE_DIR},100M,1K \
    ABORT,/tmp,10M,1K"

PACKAGECONFIG_append_pn-qemu-native = " sdl"
PACKAGECONFIG_append_pn-nativesdk-qemu = " sdl"
CONF_VERSION = "1"
~/lorix/poky/build-wifx$ bitbake wifx-base-image
ERROR:  OE-core's config sanity checker detected a potential misconfiguration.
    Either fix the cause of this error or at your own risk disable the checker (see sanity.conf).
    Following is the list of potential problems / advisories:

    DISTRO 'poky-wifx' not found. Please set a valid DISTRO in your local.conf
Please set a valid MACHINE in your local.conf or environment

Summary: There was 1 ERROR message shown, returning a non-zero exit code.

if I change an leave default "poky", now error is on MACHINE

:~/lorix/poky/build-wifx$ bitbake wifx-base-image
ERROR:  OE-core's config sanity checker detected a potential misconfiguration.
    Either fix the cause of this error or at your own risk disable the checker (see sanity.conf).
    Following is the list of potential problems / advisories:

    Please set a valid MACHINE in your local.conf or environment

Summary: There was 1 ERROR message shown, returning a non-zero exit code.

Any idea ?

hilt0n commented 7 years ago

What is the content of the file /conf/bblayers.conf ? Where is situated your directory meta-wifx ? You should have something like that:

<your yocto root directory>
|-- golang
|   `-- meta-golang
|-- meta-maker
|   |-- conf
|   |-- COPYING.MIT
|   |-- README
|   |-- recipes-devtools
|   |-- recipes-multimedia
|   |-- recipes-printing
|   |-- recipes-python
|   `-- recipes-webui
|-- meta-openembedded
|   |-- contrib
|   |-- COPYING.MIT
|   |-- meta-efl
|   |-- meta-filesystems
|   |-- meta-gnome
|   |-- meta-gpe
|   |-- meta-initramfs
|   |-- meta-multimedia
|   |-- meta-networking
|   |-- meta-oe
|   |-- meta-perl
|   |-- meta-python
|   |-- meta-ruby
|   |-- meta-systemd
|   |-- meta-webserver
|   |-- meta-xfce
|   `-- README
|-- meta-wifx
|   |-- conf
|   |-- COPYING.MIT
|   |-- flashing.txt
|   |-- licenses
|   |-- README
|   |-- README.new
|   |-- recipes-bsp
|   |-- recipes-connectivity
|   |-- recipes-core
|   |-- recipes-devtools
|   |-- recipes-kernel
|   |-- recipes-support
|   `-- recipes-wifx
`-- poky
    |-- bitbake
    |-- build-wifx
    |   |-- bitbake.lock
    |   |-- buildhistory
    |   |-- cache
    |   |-- conf
    |   |   |-- bblayers.conf
    |   |   |-- local.conf
    |   |   |-- sanity_info
    |   |   `-- templateconf.cfg
    |   |-- sstate-cache
    |   `-- tmp
    |-- documentation
    |-- LICENSE
    |-- meta
    |-- meta-poky
    |-- meta-selftest
    |-- meta-skeleton
    |-- meta-yocto
    |-- meta-yocto-bsp
    |-- oe-init-build-env
    |-- oe-init-build-env-memres
    |-- README
    |-- README.hardware
    `-- scripts

Concerning the image to build, there is a mistake in the README, the base image name is "wifx-base", the extended one is "wifx-extended" instead of "wifx-base-image" (old-name).

hallard commented 7 years ago

@hilt0n thanks, with correct image name it's better, you saved my day, compilation is in progress ;-)

~/lorix/poky/build-wifx$ bitbake wifx-base
Loading cache: 100% |###################################################################################| ETA:  00:00:00
Loaded 1300 entries from dependency cache.
Parsing recipes: 100% |#################################################################################| Time: 00:01:30
Parsing of 1981 .bb files complete (1104 cached, 877 parsed). 2608 targets, 381 skipped, 0 masked, 0 errors.
NOTE: Resolving any missing task queue dependencies

Build Configuration:
BB_VERSION        = "1.30.0"
BUILD_SYS         = "x86_64-linux"
NATIVELSBSTRING   = "Debian-8.9"
TARGET_SYS        = "arm-poky-linux-gnueabi"
MACHINE           = "sama5d4-lorix-one"
DISTRO            = "poky-wifx"
DISTRO_VERSION    = "2.1.3"
TUNE_FEATURES     = "arm armv7a vfp thumb neon       callconvention-hard       cortexa5"
TARGET_FPU        = "hard"
meta-wifx         = "krogoth:e895f3f66067ed03dfe7bafe1a2f1472d1dd0dcb"
meta
meta-poky
meta-yocto-bsp    = "krogoth:3ca9f90dffad3907ceec605a851ae949dd3b6bd6"
meta-oe
meta-networking
meta-perl
meta-python
meta-ruby
meta-multimedia   = "krogoth:55c8a76da5dc099a7bc3838495c672140cedb78e"
meta-golang       = "master:72e26c77e91311e79f38863424adca9536a2bde6"
meta-maker        = "master:c039fafa7a0276769d0928d16bdacd2012f2aff6"

NOTE: Fetching uninative binary shim from http://downloads.yoctoproject.org/releases/uninative/1.0.1/x86_64-nativesdk-libc.tar.bz2;sha256sum=acf1e44a0ac2e855e81da6426197d36358bf7b4e88e552ef933128498c8910f8
NOTE: Preparing RunQueue
NOTE: Executing SetScene Tasks
NOTE: Executing RunQueue Tasks
Currently 1 running tasks (74 of 3697):
0: pkgconfig-native-0.29+gitAUTOINC+5914edfe96-r0 do_configure (pid 1764)

here my <build_dir>/conf/bblayers.conf for those interested

# POKY_BBLAYERS_CONF_VERSION is increased each time build/conf/bblayers.conf
# changes incompatibly
POKY_BBLAYERS_CONF_VERSION = "2"

BBPATH = "${TOPDIR}"
BBFILES ?= ""

BSPDIR := "${@os.path.abspath(os.path.dirname(d.getVar('FILE', True)) + '/../../..')}"

BBLAYERS ?= " \
  ${BSPDIR}/meta-wifx \
  ${BSPDIR}/poky/meta \
  ${BSPDIR}/poky/meta-poky \
  ${BSPDIR}/poky/meta-yocto-bsp \
  ${BSPDIR}/meta-openembedded/meta-oe \
  ${BSPDIR}/meta-openembedded/meta-networking \
  ${BSPDIR}/meta-openembedded/meta-perl \
  ${BSPDIR}/meta-openembedded/meta-python \
  ${BSPDIR}/meta-openembedded/meta-ruby \
  ${BSPDIR}/meta-openembedded/meta-multimedia \
  ${BSPDIR}/golang/meta-golang \
  ${BSPDIR}/meta-maker \
  "

BBLAYERS_NON_REMOVABLE ?= " \
  ${BSPDIR}/poky/meta \
  ${BSPDIR}/poky/meta-poky \
  "