Giter Site home page Giter Site logo

windriver-labs / wrlinux-x Goto Github PK

View Code? Open in Web Editor NEW
161.0 27.0 67.0 997 KB

setup tool for Wind River Linux (10.x) - start HERE!

License: GNU General Public License v2.0

Makefile 0.38% Python 84.46% Shell 14.90% C 0.04% BitBake 0.16% HTML 0.07%

wrlinux-x's Introduction

wrlinux setup

With this tool you can either create a new distribution builder platform project, or create a mirror that other projects can be based on.

In addition, you can use the tool to obtain information about available project configuration options.

The tool uses a layer index (such as layers.openembedded.org), as specified in the bin/settings.py file, to determine what layers are required to construct a distribution builder project.

The tool relies on 'repo' from the Android 'git-repo' project. It produces a repo style 'default.xml' file, and then calls repo to download all of the layer components necessary.

The tool also configures various sample files that are used by oe-init-build-env to construct your build directory.

Documentation

For documentation, see the Wind River Knowledge Library: https://knowledge.windriver.com

Select "Products > Operating Systems > Linux > Linux LTS" to view all documentation categories.

It is suggested that you start with: The Wind River Linux Platform Development Quick Start.

When following the quick start and other examples, use:

branchName: WRLINUX_10_21_BASE
repoURL: git://<git mirror>/git/wrlinux-x

Workflows

Basic setup/usage workflow:

The setup program is expected to have been cloned inside of a project directory, such as:

$ mkdir my-project
$ cd my-project
$ git clone --branch <branchName> <repoURL> wrlinux-x

Once cloned, simply run the setup.sh (./wrlinux-x/setup.sh) to get a list of options. The setup program will construct a new git repository in the current working directory. This repository is used to manage the output of the setup program.

You may re-run the setup program at any time to update/change the project settings. However, your build directory will not be touched. You will have to resync it with the updated project. (Specifically bblayers.conf and local.conf to the config/*.sample versions.)

To update your project, re-run the setup program with the same arguments. Note the original arguments are available in the generated README file.

Mirror workflow:

$ mkdir my-mirror
$ cd my-mirror
$ git clone --branch <branchName> <repoURL> wrlinux-x
$ ./wrlinux-x/setup.sh --all-layers --mirror

The above command will mirror all layers, including download layers into the current location, for the branch specified.

To update the mirror, re-run the setup.sh command with the same arguments. To add additional branches to your mirror, change the branch in the wrlinux-x, and re-run the setup.sh with the same arguments.

A user can reference this mirror by doing:

$ mkdir my-project
$ cd my-project
$ git clone --branch <branchName> <path_to_mirror>/wrlinux-x

and then run the wrlinux-x/setup.sh program as described above.

License

Copyright (C) 2016-2017 Wind River Systems, Inc.

This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License version 2 as published by the Free Software Foundation.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA

wrlinux-x's People

Contributors

caozou avatar chenqi1989 avatar haokexin avatar hongxu-jia avatar jackiehjm avatar jwessel avatar jwslater0823 avatar kkang-wr avatar kscherer avatar limeng-linux avatar liux2085 avatar liweisong-wr avatar masselstine avatar robertlinux avatar rwmacleod avatar sajal-wr avatar sandy-lcq avatar taoyuetao avatar wqyoung avatar xulinsun avatar yizhao1 avatar zhantaotang avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

wrlinux-x's Issues

Not able to from boot from wrlinux-image-glibc-std-sato-genericx86-64.wic

I was successfully able to build images for Wind River 10 but my device which is a UTX-3115 does not boot from it.

-rw-r--r-- 2 yocto yocto 2473617408 Apr 11 13:03 wrlinux-image-glibc-std-sato-genericx86-64-20180411171206.rootfs.wic
-rw-r--r-- 2 yocto yocto 3838 Apr 11 13:03 wrlinux-image-glibc-std-sato-genericx86-64-20180411171206.rootfs.wic.bmap
lrwxrwxrwx 2 yocto yocto 73 Apr 11 13:03 wrlinux-image-glibc-std-sato-genericx86-64.wic.bmap -> wrlinux-image-glibc-std-sato-genericx86-64-20180411171206.rootfs.wic.bmap
lrwxrwxrwx 2 yocto yocto 68 Apr 11 13:03 wrlinux-image-glibc-std-sato-genericx86-64.wic -> wrlinux-image-glibc-std-sato-genericx86-64-20180411171206.rootfs.wic

WRLINUX_10_19_BASE Error: qemu-native/4.1.0-r0/qemu-4.1.0/linux-user/syscall.c:7657: undefined reference to `stime'

When trying to compile WindRiver WRLINUX_10_19_BASE with the meta-virtualization layer, I am getting the error:

/mnt/yocto/test/tmp-glibc/hosttools/ld.bfd: linux-user/syscall.o: in function `do_syscall1':
| /mnt/yocto/test/tmp-glibc/work/x86_64-linux/qemu-native/4.1.0-r0/qemu-4.1.0/linux-user/syscall.c:7657: undefined reference to `stime'
| collect2: error: ld returned 1 exit status
| make[1]: *** [Makefile:209: qemu-i386] Error 1
| make: *** [Makefile:472: i386-linux-user/all] Error 2
|   LINK    riscv32-linux-user/qemu-riscv32
|   LINK    x86_64-linux-user/qemu-x86_64
|   LINK    mips64-linux-user/qemu-mips64
|   LINK    mips64el-linux-user/qemu-mips64el
|   LINK    mipsel-linux-user/qemu-mipsel

It seems to be related to: https://stackoverflow.com/questions/61367173/core-image-minimal-fails, yet it is not clear to me how to update oe-core without breaking more dependencies in WRLINUX_10_19_BASE.

Here is my setup process:

# start on Ubuntu 20.04
sudo apt-get install -y ca-certificates curl apt-transport-https lsb-release gnupg gawk wget git-core diffstat unzip texinfo gcc-multilib build-essential chrpath socat cpio python python3 python3-pip python3-pexpect xz-utils debianutils iputils-ping python3-git python3-jinja2 libegl1-mesa libsdl1.2-dev xterm locales

git clone -b WRLINUX_10_19_BASE https://github.com/WindRiver-Labs/wrlinux-x

wrlinux-x/setup.sh --machine intel-x86-64 --dl-layers --distro wrlinux-graphics --templates feature/xfce,feature/installer-support,feature/tpm2,feature/docker --layers meta-anaconda,meta-openstack,meta-virtualization

. ./environment-setup-x86_64-wrlinuxsdk-linux

. ./oe-init-build-env test

echo BB_NO_NETWORK = \'0\' >> conf/local.conf

# resolving bug: https://github.com/WindRiver-Labs/wrlinux-x/issues/12
# https://community.intel.com/t5/Intel-Edge-Software-Hub/ECI-poky-base-image-build-fails-when-retrieving-coreos-go/m-p/1291060
mkdir -p /mnt/yocto/layers/intel-x86/downloads/
cd /mnt/yocto/layers/intel-x86/downloads/
wget http://petalinux.xilinx.com/sswreleases/rel-v2020/downloads/git2_github.com.coreos.go-systemd.git.tar.gz
cd /mnt/yocto/test

bitbake wrlinux-image-core

Here is the full error:

$ bitbake wrlinux-image-core
WARNING: You have included the meta-openstack layer, but 'openstack' has not been enabled in your DISTRO_FEATURES. Some bbappend files and preferred version setting may not take effect. See the meta-openstack README for details on enabling openstack support.
----------------------------------------------------------------------
The meta-anaconda layer has been included, and the current build is a
regular target build. After it is finished, create a new installer
build with DISTRO = 'wrlinux-installer', INSTALLER_TARGET_BUILD =
'<target-build-topdir>|<target-build-image>' and
INSTALLER_TARGET_IMAGE = '<target-image-pn>' in local.conf
----------------------------------------------------------------------
Parsing recipes: 100% |#######################################################################################################################################################################################################################################################################################| Time: 0:00:31
Parsing of 3316 .bb files complete (0 cached, 3316 parsed). 7891 targets, 4891 skipped, 0 masked, 0 errors.
NOTE: Resolving any missing task queue dependencies

Build Configuration:
WRLINUX_VERSION      = "10.19.45.18"
WRLINUX_BRANCH       = "Base"
BB_VERSION           = "1.44.0"
BUILD_SYS            = "x86_64-linux"
NATIVELSBSTRING      = "ubuntu-20.04"
DISTRO               = "wrlinux-graphics"
DISTRO_VERSION       = "10.19.45.18"
MACHINE              = "intel-x86-64"
DEFAULTTUNE          = "corei7-64"
TARGET_SYS           = "x86_64-wrs-linux"
TUNE_FEATURES        = "m64 corei7"
TARGET_FPU           = ""
lib32:  TARGET_SYS        = "x86_64-wrsmllib32-linux"
lib32:  TUNE_FEATURES     = "m32 corei7"
wrlinux              = "WRLINUX_10_19_BASE:e93842ec2e3b473b6972094d06853a35ec3bad28"
meta-anaconda        = "wr-10.19-20191106:f7820be5fdb19365cb8798ff2c21902b2c753e99"
meta-openstack       = "wr-10.19-20191106:94be483424c5a5a74aaafd174342e141bb01dd9d"
meta-virtualization  = "wr-10.19-20191106:f48055a43b40932a26c952879346160f02b27804"
wrlinux-distro       = "WRLINUX_10_19_BASE:e93842ec2e3b473b6972094d06853a35ec3bad28"
intel-x86            = "WRLINUX_10_19_BASE:3ef86cf50febfe973f985a2d7cfe30b8f387ad33"
meta                 = "wr-10.19-20200305:9518f9da7d2f858374dacb15d66dedfc35433089"
wr-template          = "WRLINUX_10_19_BASE:a19a8fb456b0e70d068183cb0837c31f456b46b3"
meta-filesystems
meta-gnome
meta-initramfs
meta-python
meta-networking
meta-oe              = "wr-10.19-20191106:bf266dd193e51cc6395bb3c533a8248c159d171f"
meta-cloud-services  = "wr-10.19-20191106:94be483424c5a5a74aaafd174342e141bb01dd9d"
meta-webserver
meta-multimedia
meta-perl            = "wr-10.19-20191106:bf266dd193e51cc6395bb3c533a8248c159d171f"
meta-realtime        = "wr-10.19-20191106:adb18b84302475cffdf280f9da3cccbcb3a4ff8a"
meta-xfce            = "wr-10.19-20191106:bf266dd193e51cc6395bb3c533a8248c159d171f"
meta-intel           = "wr-10.19-20191106:5cc2043c9826ea5f39a68206a0b9e3d09b4fae94"
meta-intel-qat       = "wr-10.19-20191106:85e51b490faf9890420b2744ad40b956f07fee64"
meta-dpdk            = "wr-10.19-20191106:532a7d74df4c986fa0e2f4dc3592a1a89db9b98c"
meta-efi-secure-boot
meta-encrypted-storage
meta-ids
meta-integrity
meta                 = "wr-10.19-20191106:3902b4bc9e29f0e9c2ee3288a484c151c0144410"
meta-security        = "wr-10.19-20191106:2bc7e287b286f17e1708c4c3cf68988d4ef599e1"
meta-selinux         = "wr-10.19-20191106:9bd4e87926e4b029019b9361f69aa26c1044c25a"
meta-signing-key
meta-tpm
meta-tpm2            = "wr-10.19-20191106:3902b4bc9e29f0e9c2ee3288a484c151c0144410"
local                = "master:ac76945dcda2c955ac022f486f9206e37b4c3883"

NOTE: Fetching uninative binary shim from file:///mnt/yocto/layers/wrlinux/files/uninative-tarballs/a09922172c3a439105e0ae6b943daad2d83505b17da0aba97961ff433b8c21ab/x86_64-nativesdk-libc.tar.xz;sha256sum=a09922172c3a439105e0ae6b943daad2d83505b17da0aba97961ff433b8c21ab
Initialising tasks: 100% |####################################################################################################################################################################################################################################################################################| Time: 0:00:09
Sstate summary: Wanted 3625 Found 0 Missed 3625 Current 0 (0% match, 0% complete)
NOTE: Executing Tasks
NOTE: Setscene tasks completed
.....
|   CC      riscv32-linux-user/target/riscv/pmp.o
|   GEN     trace/generated-helpers.c
|   CC      riscv32-linux-user/trace/control-target.o
|   CC      arm-linux-user/target/arm/helper.o
|   CC      riscv32-linux-user/gdbstub-xml.o
|   CC      aarch64-linux-user/target/arm/translate.o
|   CC      ppc-linux-user/target/ppc/timebase_helper.o
|   CC      mips64el-linux-user/trace/generated-helpers.o
|   CC      mips-linux-user/target/mips/msa_helper.o
|   CC      ppc-linux-user/target/ppc/misc_helper.o
|   CC      x86_64-linux-user/target/i386/mem_helper.o
|   CC      riscv32-linux-user/target/riscv/translate.o
|   CC      ppc-linux-user/target/ppc/mem_helper.o
|   CC      mipsel-linux-user/trace/generated-helpers.o
|   GEN     trace/generated-helpers.c
|   CC      x86_64-linux-user/target/i386/misc_helper.o
|   CC      x86_64-linux-user/target/i386/mpx_helper.o
|   CC      mips-linux-user/trace/control-target.o
|   CC      ppc-linux-user/target/ppc/user_only_helper.o
|   CC      arm-linux-user/target/arm/vfp_helper.o
|   CC      ppc-linux-user/target/ppc/gdbstub.o
|   CC      arm-linux-user/target/arm/cpu.o
|   CC      aarch64-linux-user/target/arm/translate-sve.o
|   CC      riscv32-linux-user/trace/generated-helpers.o
|   CC      x86_64-linux-user/target/i386/seg_helper.o
|   CC      ppc-linux-user/target/ppc/../../libdecnumber/decContext.o
|   CC      mips-linux-user/trace/generated-helpers.o
|   CC      arm-linux-user/target/arm/gdbstub.o
|   CC      ppc-linux-user/target/ppc/../../libdecnumber/decNumber.o
|   CC      x86_64-linux-user/target/i386/smm_helper.o
|   CC      ppc-linux-user/target/ppc/../../libdecnumber/dpd/decimal32.o
|   CC      ppc-linux-user/target/ppc/../../libdecnumber/dpd/decimal64.o
|   CC      ppc-linux-user/target/ppc/../../libdecnumber/dpd/decimal128.o
|   GEN     trace/generated-helpers.c
|   CC      x86_64-linux-user/target/i386/svm_helper.o
|   CC      ppc-linux-user/trace/control-target.o
|   CC      ppc-linux-user/gdbstub-xml.o
|   CC      arm-linux-user/target/arm/kvm-stub.o
|   CC      arm-linux-user/target/arm/tlb_helper.o
|   CC      aarch64-linux-user/trace/generated-helpers.o
|   CC      arm-linux-user/target/arm/debug_helper.o
|   GEN     arm-linux-user/target/arm/decode-vfp.inc.c
|   CC      x86_64-linux-user/target/i386/kvm-stub.o
|   GEN     arm-linux-user/target/arm/decode-vfp-uncond.inc.c
|   CC      x86_64-linux-user/target/i386/sev-stub.o
|   CC      arm-linux-user/target/arm/op_helper.o
|   CC      ppc-linux-user/trace/generated-helpers.o
|   CC      arm-linux-user/target/arm/crypto_helper.o
|   CC      arm-linux-user/target/arm/iwmmxt_helper.o
|   CC      arm-linux-user/target/arm/vec_helper.o
|   CC      arm-linux-user/target/arm/neon_helper.o
|   GEN     trace/generated-helpers.c
|   CC      arm-linux-user/target/arm/m_helper.o
|   CC      x86_64-linux-user/trace/control-target.o
|   GEN     trace/generated-helpers.c
|   CC      arm-linux-user/trace/control-target.o
|   CC      arm-linux-user/gdbstub-xml.o
|   CC      x86_64-linux-user/gdbstub-xml.o
|   CC      arm-linux-user/target/arm/translate.o
|   CC      arm-linux-user/trace/generated-helpers.o
|   CC      x86_64-linux-user/trace/generated-helpers.o
|   LINK    riscv64-linux-user/qemu-riscv64
|   LINK    i386-linux-user/qemu-i386
| /mnt/yocto/test/tmp-glibc/hosttools/ld.bfd: linux-user/syscall.o: in function `do_syscall1':
| /mnt/yocto/test/tmp-glibc/work/x86_64-linux/qemu-native/4.1.0-r0/qemu-4.1.0/linux-user/syscall.c:7657: undefined reference to `stime'
| collect2: error: ld returned 1 exit status
| make[1]: *** [Makefile:209: qemu-i386] Error 1
| make: *** [Makefile:472: i386-linux-user/all] Error 2
|   LINK    riscv32-linux-user/qemu-riscv32
|   LINK    x86_64-linux-user/qemu-x86_64
|   LINK    mips64-linux-user/qemu-mips64
|   LINK    mips64el-linux-user/qemu-mips64el
|   LINK    mipsel-linux-user/qemu-mipsel
| /mnt/yocto/test/tmp-glibc/hosttools/ld.bfd: linux-user/syscall.o: in function `do_syscall1':
| /mnt/yocto/test/tmp-glibc/work/x86_64-linux/qemu-native/4.1.0-r0/qemu-4.1.0/linux-user/syscall.c:7657: undefined reference to `stime'
| collect2: error: ld returned 1 exit status
| make[1]: *** [Makefile:209: qemu-mipsel] Error 1
| make: *** [Makefile:472: mipsel-linux-user/all] Error 2
|   LINK    mips-linux-user/qemu-mips
| /mnt/yocto/test/tmp-glibc/hosttools/ld.bfd: linux-user/syscall.o: in function `do_syscall1':
| /mnt/yocto/test/tmp-glibc/work/x86_64-linux/qemu-native/4.1.0-r0/qemu-4.1.0/linux-user/syscall.c:7657: undefined reference to `stime'
| collect2: error: ld returned 1 exit status
| make[1]: *** [Makefile:209: qemu-mips] Error 1
| make: *** [Makefile:472: mips-linux-user/all] Error 2
|   LINK    aarch64-linux-user/qemu-aarch64
|   LINK    arm-linux-user/qemu-arm
| /mnt/yocto/test/tmp-glibc/hosttools/ld.bfd: linux-user/syscall.o: in function `do_syscall1':
| /mnt/yocto/test/tmp-glibc/work/x86_64-linux/qemu-native/4.1.0-r0/qemu-4.1.0/linux-user/syscall.c:7657: undefined reference to `stime'
| collect2: error: ld returned 1 exit status
| make[1]: *** [Makefile:209: qemu-arm] Error 1
| make: *** [Makefile:472: arm-linux-user/all] Error 2
|   LINK    ppc-linux-user/qemu-ppc
| /mnt/yocto/test/tmp-glibc/hosttools/ld.bfd: linux-user/syscall.o: in function `do_syscall1':
| /mnt/yocto/test/tmp-glibc/work/x86_64-linux/qemu-native/4.1.0-r0/qemu-4.1.0/linux-user/syscall.c:7657: undefined reference to `stime'
| collect2: error: ld returned 1 exit status
| make[1]: *** [Makefile:209: qemu-ppc] Error 1
| make: *** [Makefile:472: ppc-linux-user/all] Error 2
|   LINK    ppc64-linux-user/qemu-ppc64
| /mnt/yocto/test/tmp-glibc/hosttools/ld.bfd: linux-user/syscall.o: in function `do_syscall1':
| /mnt/yocto/test/tmp-glibc/work/x86_64-linux/qemu-native/4.1.0-r0/qemu-4.1.0/linux-user/syscall.c:7657: undefined reference to `stime'
| collect2: error: ld returned 1 exit status
| make[1]: *** [Makefile:209: qemu-ppc64] Error 1
| make: *** [Makefile:472: ppc64-linux-user/all] Error 2
| WARNING: exit code 1 from a shell command.

Second Keyboard Interrupt, stopping...


Summary: 1 task failed:
  /mnt/yocto/layers/oe-core/meta/recipes-devtools/qemu/qemu-native_4.1.0.bb:do_compile
Summary: There were 12 WARNING messages shown.
Summary: There were 2 ERROR messages shown, returning a non-zero exit code.

ERROR: go-systemd-4+gitAUTOINC+b4a58d9518-r0 do_fetch: Fetcher failure for URL: 'git://github.com/coreos/go-systemd.git'

Building BASE_19 UPDATE0018 for nxp-imx8 board. Hit this bug: https://community.intel.com/t5/Intel-Edge-Software-Hub/ECI-poky-base-image-build-fails-when-retrieving-coreos-go/td-p/1291060
As the article mentions, the workaround is to point the SRC_URI to the main branch:

#Edit this bitbake recipe file:
/home/your_home/your_project/layers/meta-virtualization/recipes-devtools/go/go-systemd_git.bb
#Add the bold text (;branch=main) to the end of the SRC_URI in the file.
SRC_URI = "git://${PKG_NAME}.git**;branch=main**"
#Save the recipe file and continue the build - it works!

Unable to build image - rpi4

I am getting following error when trying to build image for rpi.

_ERROR: wrlinux-image-small-1.0-r1 do_image_wic: Execution of '/home/user/windriver/build/tmp-glibc/work/bcm_2xxx_rpi4-wrs-linux/wrlinux-image-small/1.0-r1/temp/run.do_image_wic.2424' failed with exit code 1:
INFO: Creating image(s)...

WARNING: bootloader config not specified, using defaults

ERROR: _exec_cmd: install -m 0644 -D /home/user/windriver/build/tmp-glibc/deploy/images/bcm-2xxx-rpi4/make_dtb_boot_files /home/user/windriver/build/tmp-glibc/work/bcm_2xxx_rpi4-wrs-linux/wrlinux-image-small/1.0-r1/deploy-wrlinux-image-small-image-complete/wrlinux-image-small-bcm-2xxx-rpi4-20191226045200/tmp.wic.v8jgakwv/boot.1/make_dtb_boot_files returned '1' instead of 0
output: install: cannot stat '/home/user/windriver/build/tmp-glibc/deploy/images/bcm-2xxx-rpi4/make_dtb_boot_files': No such file or directory

WARNING: exit code 1 from a shell command.

ERROR: Logfile of failure stored in: /home/user/windriver/build/tmp-glibc/work/bcm_2xxx_rpi4-wrs-linux/wrlinux-image-small/1.0-r1/temp/log.do_image_wic.2424
ERROR: Task (/home/user/windriver/layers/wrlinux/wrlinux-distro/recipes-base/images/wrlinux-image-small.bb:do_image_wic) failed with exit code '1'
NOTE: Tasks Summary: Attempted 3002 tasks of which 3001 didn't need to be rerun and 1 failed._

BB_NO_NETWORK might need to be edited in local.conf

Cloning and creating a mirrored install according to README and then creating a project from that mirror without editing local.conf will cause a build error. Network access is disabled in local.conf by default and downloads can't be accessed.
In order to access and download packages during a bitbake build, the variable "BB_NO_NETWORK" should be commented out in local.conf or set to "0"

OSX build with 10.15.2 is broken

Hi,

Your instructions are broken. Please fix

Followed github instruction and running this command
Searching for buildtools-standalone-20191202...
Fetching buildtools..
remote: Enumerating objects: 238, done.
remote: Counting objects: 100% (238/238), done.
remote: Compressing objects: 100% (126/126), done.
remote: Total 238 (delta 34), reused 238 (delta 34), pack-reused 0
Receiving objects: 100% (238/238), 27.88 MiB | 2.53 MiB/s, done.
Resolving deltas: 100% (34/34), done.
From https://github.com/WindRiver-Labs/buildtools-standalone-20191202

  • [new branch] WRLINUX_10_19_BASE -> buildtools-standalone-20191202
    Switched to branch 'buildtools-standalone-20191202'
    Done
    Installing buildtools..
    Configured with: --prefix=/Applications/Xcode.app/Contents/Developer/usr --with-gxx-include-dir=/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/c++/4.2.1
    Build tools installer version 19.45
    ===================================
    readlink: illegal option -- m
    usage: readlink [-n] [file ...]
    You are about to install the SDK to "". Proceed [Y/n]? Y
    bin/buildtools.git/x86_64-buildtools-nativesdk-standalone-10.19.45.2.sh: line 222: [: too many arguments
    Extracting SDK...tar: could not chdir to '--checkpoint=.2500'

Error installing the buildtools-nativesdk-standalone archive: bin/buildtools.git/x86_64-buildtools-nativesdk-standalone-10.19.45.2.sh
Stopping: an error occurred in buildtools_setup.

nxp-imx6 BSP is not currently working

An error during building similar to:

ERROR: Fetcher failure: Unable to find revision 0b4452f3be9a67f6caa5b971402a24d659c0a921 in branch yocto-4.18-wr even from upstream
ERROR: Fetcher failure for URL: 'git:///.../git/lpd/github/WRLINUX_10_18_BASE/layers/wrlinux/git/yocto-kernel-cache.git;protocol=file;type=kmeta;name=meta;branch=yocto-4.18-wr;destsuffix=kernel-meta'. Unable to fetch URL from any source.

setup.sh doesn't work behind a proxy OpenSSL

WRL17 branch works as expected witout failures behind a proxy.

kernel.img is not found in build folder

Hai team,

    I'am trying to build the Windriver images for  raspberry PI 3b+  and i'm following this link https://docs.windriver.com/bundle/Start_here_Wind_River_Linux_Platform_Development_Quick_Start_LTS_21/page/tpp1630358079670.html and  coming to cloning part from git  i tried branch(WRLINUX_10_19_BASE and WRLINUX_10_21_BASE) with url and i'm able to build  platform project image successfully but kernel.img file is not found in any of build sub folder(build/tmp-glibc/deploy/images/bcm-2xxx-rpi4) and tar.bz2 .

Can any please let me know what could be problem and how to solve it.

Following are the machine name , image and template i used to build the project
1.machine is bcm-2xxx-rpi4
2.WRTEMPLATE ?= "feature/gdb feature/busybox"
3.bitbake wrlinux-image-small

sota-tools-native-git-r0 do_fetch: failed to fetch URL

I was following this tutorial
https://docs.windriver.com/bundle/Wind_River_Linux_Tutorial_Using_OSTree_for_Updates_at_Run_Time_LTS_19/page/vpu1573077211787.html
to try OSTree using WRLINUX_10_19_BASE_UPDATE0014 as the starting point.
I could not build the image sucecsfully because of the error mentioned in the title.
I tried to fix it by updating a couple of entries in the recipe "sota-tools_git.bb" located in $WIND_RIVER/layers/wr-ostree/recipes-sota/sota-tools.

I updated the License
LIC_FILES_CHKSUM = "file://LICENSE;md5=815ca599c9df247a0c7f619bab123dad"
and repository
SRC_URI = "gitsm://github.com/advancedtelematic/aktualizr.git;branch=master"

I did not install the patch file://0001-tools-CMakeLists.txt-append-boost_log_setup-to-Boost.patch
since that gave an error

However, I got another error:
Could NOT find LibArchive (missing: LibArchive_LIBRARY

This is the error message logged in CMakeError.log in $WIND_RIVER/build/tmp-glibc/work/x86_64-linux/sota-tools-native/git-r0/build/CMakeFiles:

Run Build Command(s):ninja cmTC_52a77 && [1/2] Building C object CMakeFiles/cmTC_52a77.dir/src.c.o
[2/2] Linking C executable cmTC_52a77
FAILED: cmTC_52a77 
: && [...]/build/tmp-glibc/hosttools/gcc -isystem[...]/build/tmp-glibc/work/x86_64-linux/sota-tools-native/git-r0/recipe-sysroot-native/usr/include -O2 -pipe -DCMAKE_HAVE_LIBC_PTHREAD   -isystem[...]/build/tmp-glibc/work/x86_64-linux/sota-tools-native/git-r0/recipe-sysroot-native/usr/include -L[...]/build/tmp-glibc/work/x86_64-linux/sota-tools-native/git-r0/recipe-sysroot-native/usr/lib                         -L[...]/build/tmp-glibc/work/x86_64-linux/sota-tools-native/git-r0/recipe-sysroot-native/lib                         -Wl,--enable-new-dtags                         -Wl,-rpath-link,[...]/build/tmp-glibc/work/x86_64-linux/sota-tools-native/git-r0/recipe-sysroot-native/usr/lib                         -Wl,-rpath-link,[...]/build/tmp-glibc/work/x86_64-linux/sota-tools-native/git-r0/recipe-sysroot-native/lib                         -Wl,-rpath,[...]/build/tmp-glibc/work/x86_64-linux/sota-tools-native/git-r0/recipe-sysroot-native/usr/lib                         -Wl,-rpath,[...]/build/tmp-glibc/work/x86_64-linux/sota-tools-native/git-r0/recipe-sysroot-native/lib                         -Wl,-O1 -Wl,--allow-shlib-undefined -Wl,--dynamic-linker=[...]/build/tmp-glibc/sysroots-uninative/x86_64-linux/lib/ld-linux-x86-64.so.2 -L[...]/build/tmp-glibc/work/x86_64-linux/sota-tools-native/git-r0/recipe-sysroot-native/usr/lib                         -L[...]/build/tmp-glibc/work/x86_64-linux/sota-tools-native/git-r0/recipe-sysroot-native/lib                         -Wl,--enable-new-dtags                         -Wl,-rpath-link,[...]/build/tmp-glibc/work/x86_64-linux/sota-tools-native/git-r0/recipe-sysroot-native/usr/lib                         -Wl,-rpath-link,[...]/build/tmp-glibc/work/x86_64-linux/sota-tools-native/git-r0/recipe-sysroot-native/lib                         -Wl,-rpath,[...]/build/tmp-glibc/work/x86_64-linux/sota-tools-native/git-r0/recipe-sysroot-native/usr/lib                         -Wl,-rpath,[...]/build/tmp-glibc/work/x86_64-linux/sota-tools-native/git-r0/recipe-sysroot-native/lib                         -Wl,-O1 -Wl,--allow-shlib-undefined -Wl,--dynamic-linker=[...]/build/tmp-glibc/sysroots-uninative/x86_64-linux/lib/ld-linux-x86-64.so.2 CMakeFiles/cmTC_52a77.dir/src.c.o  -o cmTC_52a77   && :
CMakeFiles/cmTC_52a77.dir/src.c.o: In function `main':
src.c:(.text.startup+0x23): undefined reference to `pthread_create'
src.c:(.text.startup+0x2c): undefined reference to `pthread_detach'
src.c:(.text.startup+0x37): undefined reference to `pthread_join'
src.c:(.text.startup+0x42): undefined reference to `pthread_atfork'
collect2: error: ld returned 1 exit status
ninja: build stopped: subcommand failed.

I am not sure how to solve this problem.
Best,
Anthony

PCR7 changes on a transition from pulsar-8 to wrlinux

We use pulsar-8 based Linux with encrypted root file system. The LUKS key is protected by TPM, using cryptfs-tpm2 package. The key is sealed with a policy, preventing using it when PCR7 is different from the expected one.

The change in PCR7 is caused by some change in new version of shim (12+git0+5202f80c32). I was not able to determine what exactly caused it. As a workaround I had to downgrade shim version back to the version from pulsar-8 (11+git0+0fe4a80e9c).

Resealing the key under new policy would only be a part of the solution, because we have other key materials, for which changing the policy is not possible.

So, the question is, which change in shim caused PCR7 change and if there is a way to have the same PCR7 value with the new version of shim?

Error: Fetcher failure for URL: 'git://github.com/coreos/go-systemd.git'. Unable to fetch URL from any source.

When using either: WRLINUX_10_19_BASE or vWRLINUX_10_19_BASE_UPDATE0018, I get the error below.

I do not get this error with WRLINUX_10_21_BASE, but I have a hard dependency on WRLINUX_10_19_BASE

kevinsay@yoctobuild:/mnt/c/yocto3/test$ echo BB_NO_NETWORK = \'0\' >> conf/local.conf
kevinsay@yoctobuild:/mnt/c/yocto3/test$ bitbake wrlinux-image-core
Processing Wind River templates files...
WARNING: You have included the meta-openstack layer, but 'openstack' has not been enabled in your DISTRO_FEATURES. Some bbappend files and preferred version setting may not take effect. See the meta-openstack README for details on enabling openstack support.
----------------------------------------------------------------------
The meta-anaconda layer has been included, and the current build is a
regular target build. After it is finished, create a new installer
build with DISTRO = 'wrlinux-installer', INSTALLER_TARGET_BUILD =
'<target-build-topdir>|<target-build-image>' and
INSTALLER_TARGET_IMAGE = '<target-image-pn>' in local.conf
----------------------------------------------------------------------
Parsing recipes: 100% |#######################################################################################################################################################################################################################################################################################| Time: 0:00:33
Parsing of 3316 .bb files complete (0 cached, 3316 parsed). 7891 targets, 4891 skipped, 0 masked, 0 errors.
NOTE: Resolving any missing task queue dependencies

Build Configuration:
WRLINUX_VERSION      = "10.19.45.18"
WRLINUX_BRANCH       = "Base"
BB_VERSION           = "1.44.0"
BUILD_SYS            = "x86_64-linux"
NATIVELSBSTRING      = "ubuntu-20.04"
DISTRO               = "wrlinux-graphics"
DISTRO_VERSION       = "10.19.45.18"
MACHINE              = "intel-x86-64"
DEFAULTTUNE          = "corei7-64"
TARGET_SYS           = "x86_64-wrs-linux"
TUNE_FEATURES        = "m64 corei7"
TARGET_FPU           = ""
lib32:  TARGET_SYS        = "x86_64-wrsmllib32-linux"
lib32:  TUNE_FEATURES     = "m32 corei7"
wrlinux              = "vWRLINUX_10_19_BASE_UPDATE0018:e93842ec2e3b473b6972094d06853a35ec3bad28"
meta-anaconda        = "vWRLINUX_10_19_BASE_UPDATE0018:f7820be5fdb19365cb8798ff2c21902b2c753e99"
meta-openstack       = "vWRLINUX_10_19_BASE_UPDATE0018:94be483424c5a5a74aaafd174342e141bb01dd9d"
meta-virtualization  = "vWRLINUX_10_19_BASE_UPDATE0018:f48055a43b40932a26c952879346160f02b27804"
wrlinux-distro       = "vWRLINUX_10_19_BASE_UPDATE0018:e93842ec2e3b473b6972094d06853a35ec3bad28"
intel-x86            = "vWRLINUX_10_19_BASE_UPDATE0018:3ef86cf50febfe973f985a2d7cfe30b8f387ad33"
meta                 = "vWRLINUX_10_19_BASE_UPDATE0018:9518f9da7d2f858374dacb15d66dedfc35433089"
wr-template          = "vWRLINUX_10_19_BASE_UPDATE0018:a19a8fb456b0e70d068183cb0837c31f456b46b3"
meta-filesystems
meta-gnome
meta-initramfs
meta-python
meta-networking
meta-oe              = "vWRLINUX_10_19_BASE_UPDATE0018:bf266dd193e51cc6395bb3c533a8248c159d171f"
meta-cloud-services  = "vWRLINUX_10_19_BASE_UPDATE0018:94be483424c5a5a74aaafd174342e141bb01dd9d"
meta-webserver
meta-multimedia
meta-perl            = "vWRLINUX_10_19_BASE_UPDATE0018:bf266dd193e51cc6395bb3c533a8248c159d171f"
meta-realtime        = "vWRLINUX_10_19_BASE_UPDATE0018:adb18b84302475cffdf280f9da3cccbcb3a4ff8a"
meta-xfce            = "vWRLINUX_10_19_BASE_UPDATE0018:bf266dd193e51cc6395bb3c533a8248c159d171f"
meta-intel           = "vWRLINUX_10_19_BASE_UPDATE0018:5cc2043c9826ea5f39a68206a0b9e3d09b4fae94"
meta-intel-qat       = "vWRLINUX_10_19_BASE_UPDATE0018:85e51b490faf9890420b2744ad40b956f07fee64"
meta-dpdk            = "vWRLINUX_10_19_BASE_UPDATE0018:532a7d74df4c986fa0e2f4dc3592a1a89db9b98c"
meta-efi-secure-boot
meta-encrypted-storage
meta-ids
meta-integrity
meta                 = "vWRLINUX_10_19_BASE_UPDATE0018:3902b4bc9e29f0e9c2ee3288a484c151c0144410"
meta-security        = "vWRLINUX_10_19_BASE_UPDATE0018:2bc7e287b286f17e1708c4c3cf68988d4ef599e1"
meta-selinux         = "vWRLINUX_10_19_BASE_UPDATE0018:9bd4e87926e4b029019b9361f69aa26c1044c25a"
meta-signing-key
meta-tpm
meta-tpm2            = "vWRLINUX_10_19_BASE_UPDATE0018:3902b4bc9e29f0e9c2ee3288a484c151c0144410"
local                = "master:5582c3587d17cf9264ef08e495bda2c318bdcde8"

NOTE: Fetching uninative binary shim from file:///mnt/c/yocto3/layers/wrlinux/files/uninative-tarballs/a09922172c3a439105e0ae6b943daad2d83505b17da0aba97961ff433b8c21ab/x86_64-nativesdk-libc.tar.xz;sha256sum=a09922172c3a439105e0ae6b943daad2d83505b17da0aba97961ff433b8c21ab
Initialising tasks: 100% |####################################################################################################################################################################################################################################################################################| Time: 0:00:10
Sstate summary: Wanted 3625 Found 0 Missed 3625 Current 0 (0% match, 0% complete)
NOTE: Executing Tasks
NOTE: Setscene tasks completed
WARNING: expat-native-2.2.8-r0 do_fetch: Failed to fetch URL https://downloads.sourceforge.net/expat/expat-2.2.8.tar.bz2, attempting MIRRORS if available
WARNING: icu-native-64.2-r0 do_fetch: Checksum mismatch for local file /mnt/c/yocto3/test/downloads/icu4c-64_2-src.tgz
Cleaning and trying again.
WARNING: icu-native-64.2-r0 do_fetch: Renaming /mnt/c/yocto3/test/downloads/icu4c-64_2-src.tgz to /mnt/c/yocto3/test/downloads/icu4c-64_2-src.tgz_bad-checksum_b441ec412eca9b95e9eae9dd07357734
WARNING: icu-native-64.2-r0 do_fetch: Checksum failure encountered with download of http://download.icu-project.org/files/icu4c/64.2/icu4c-64_2-src.tgz - will attempt other sources if available
WARNING: mozjs-60.5.2-r0 do_fetch: Failed to fetch URL https://dev.gentoo.org/~axs/distfiles/mozjs-60.5.2.tar.bz2, attempting MIRRORS if available
WARNING: bjam-native-1.71.0-r0 do_fetch: Failed to fetch URL https://dl.bintray.com/boostorg/release/1.71.0/source/boost_1_71_0.tar.bz2, attempting MIRRORS if available
WARNING: go-systemd-4+gitAUTOINC+b4a58d9518-r0 do_fetch: Failed to fetch URL git://github.com/coreos/go-systemd.git, attempting MIRRORS if available
ERROR: go-systemd-4+gitAUTOINC+b4a58d9518-r0 do_fetch: Fetcher failure: Unable to find revision b4a58d95188dd092ae20072bac14cece0e67c388 in branch master even from upstream
ERROR: go-systemd-4+gitAUTOINC+b4a58d9518-r0 do_fetch: Fetcher failure for URL: 'git://github.com/coreos/go-systemd.git'. Unable to fetch URL from any source.
ERROR: Logfile of failure stored in: /mnt/c/yocto3/test/tmp-glibc/work/corei7-64-wrs-linux/go-systemd/4+gitAUTOINC+b4a58d9518-r0/temp/log.do_fetch.1623519
ERROR: Task (/mnt/c/yocto3/layers/meta-virtualization/recipes-devtools/go/go-systemd_git.bb:do_fetch) failed with exit code '1'
NOTE: Tasks Summary: Attempted 1034 tasks of which 0 didn't need to be rerun and 1 failed.

Summary: 1 task failed:
  /mnt/c/yocto3/layers/meta-virtualization/recipes-devtools/go/go-systemd_git.bb:do_fetch
Summary: There were 8 WARNING messages shown.
Summary: There were 2 ERROR messages shown, returning a non-zero exit code.
kevinsay@yoctobuild:/mnt/c/yocto3/test$

Here are my install steps which could be part of the issue:

sudo apt-get install -y ca-certificates curl apt-transport-https lsb-release gnupg gawk wget git-core diffstat unzip texinfo gcc-multilib build-essential chrpath socat cpio python python3 python3-pip python3-pexpect xz-utils debianutils iputils-ping python3-git python3-jinja2 libegl1-mesa libsdl1.2-dev xterm locales

sudo mkdir -p /mnt/c/yocto3 && sudo chown kevinsay:kevinsay /mnt/c/yocto3 && cd /mnt/c/yocto3
git clone -b WRLINUX_10_19_BASE https://github.com/WindRiver-Labs/wrlinux-x
cd wrlinux-x
git checkout vWRLINUX_10_19_BASE_UPDATE0018
cd ..

wrlinux-x/setup.sh --machine intel-x86-64 --dl-layers --distro wrlinux-graphics --templates feature/xfce,feature/installer-support,feature/tpm2,feature/docker --layers meta-anaconda,meta-openstack,meta-virtualization
. ./environment-setup-x86_64-wrlinuxsdk-linux
. ./oe-init-build-env test

echo BB_NO_NETWORK = \'0\' >> conf/local.conf
bitbake wrlinux-image-core

MACHINE=intel-corei7-64 is invalid.

yocto@yocto-PowerEdge-T130:~/dev/windriver10/my-project/build$ bitbake wrlinux-image-glibc-std-sato
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:

MACHINE=intel-corei7-64 is invalid. Please set a valid MACHINE in your local.conf, environment or other configuration file.

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

bitbake does not like the MACHINE=intel-corei7-64 target. But ./wrlinux-x/ says it supports it.

yocto@yocto-PowerEdge-T130:~/dev/windriver10/my-project$ ./wrlinux-x/setup.sh --list-machines
Loading the mirror index from /home/yocto/dev/windriver10/my-mirror/mirror-index (WRLINUX_10_17_BASE)...
Using index Wind River Developer Layer Index from the mirror index...
Index: Wind River Developer Layer Index
machine description layer

qemuarm arm_versatile_926ejs openembedded-core
qemuppc PPC system under qemu emulation openembedded-core
qemumips64 mti-malta64-be openembedded-core
qemumips mti_malta32_be openembedded-core
qemux86-64 a common x86 openembedded-core
qemuarm64 a generic armv8 openembedded-core
qemux86 a common x86 openembedded-core
intel-quark Quark systems meta-intel
intel-core2-32 32 bit Intel Core 2 CPU (and later meta-intel
intel-corei7-64 64 bit Intel Core i7 CPU (and late meta-intel
mpc8315e-rdb mpc8315e-rdb meta-yocto-bsp
beaglebone Reference machine configuration fo meta-yocto-bsp
genericx86 generic X86 (32-bit) PCs. Supports meta-yocto-bsp
edgerouter Edgerouter meta-yocto-bsp
genericx86-64 generic X86_64 (64-bit) PCs and se meta-yocto-bsp
qemuarma9 a9 vexpress meta-qemuarma9

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.