Skip to content

Try building the GENIVI Demo Platform

gmacario edited this page Nov 23, 2014 · 5 revisions

NOTE: The following instructions are adapted from gmacario/easy-build/build-yocto-genivi/README.md

Prerequisites

  1. A Docker container gmacario/build-yocto-genivi is up and running
  2. The terminal is attached to a shell running as user build

Step-by-step instructions

Initialize the build environment

export GENIVI=~/genivi-baseline
source $GENIVI/poky/oe-init-build-env ~/shared/my-genivi-build
export TOPDIR=$PWD

TODO: s/GENIVI/OEDIR/

TODO: s/TOPDIR/BUILDDIR/

Check-out additional layers

Until the meta-qt5 layer is already available to the gmacario/build-yocto-genivi container, just clone it after the container is launched.

cd $GENIVI
git clone https://github.com/meta-qt5/meta-qt5.git
cd -

Customize the build

Execute the configure_build.sh script:

sh ~/configure_build.sh

Edit file conf/bblayers.conf to add a few additional layers:

build@a3840a3de79d:~/shared/my-genivi-build$ diff -uw conf/bblayers.conf.ORIG conf/bblayers.conf
--- conf/bblayers.conf.ORIG     2014-10-09 20:38:23.829314729 +0000
+++ conf/bblayers.conf  2014-10-10 17:59:45.358455233 +0000
@@ -14,3 +14,14 @@
   /home/build/genivi-baseline/poky/meta \
   /home/build/genivi-baseline/poky/meta-yocto \
   "
+BBLAYERS += " \
+  /home/build/genivi-baseline/meta-ivi/meta-ivi \
+  /home/build/genivi-baseline/meta-ivi/meta-ivi-bsp \
+  /home/build/genivi-baseline/meta-openembedded/meta-oe \
+  "
+
+BBLAYERS += " \
+  /home/build/genivi-baseline/meta-ivi/meta-ivi-demo \
+  /home/build/genivi-baseline/meta-qt5 \
+  /home/build/genivi-baseline/meta-openembedded/meta-ruby \
+  "
build@a3840a3de79d:~/shared/my-genivi-build$

Start the build

bitbake ivi-image-demo

Results

build@01ca7367eab8:~/shared/my-genivi-build$ bitbake ivi-image-demo
Loading cache: 100% |#############################################################################################################################################################################| ETA:  00:00:00
Loaded 1955 entries from dependency cache.
NOTE: Resolving any missing task queue dependencies
NOTE: preferred version 3.10% of linux-yocto not available (for item virtual/kernel)
NOTE: versions of linux-yocto available: 3.14.19+gitAUTOINC+0bd3ec19b6_bdef75805e 3.17-rc6+gitAUTOINC+eebdfd73e0_6cd8a70a8c
NOTE: preferred version 3.10% of linux-yocto not available (for item kernel-base)
NOTE: versions of linux-yocto available: 3.14.19+gitAUTOINC+0bd3ec19b6_bdef75805e 3.17-rc6+gitAUTOINC+eebdfd73e0_6cd8a70a8c
NOTE: preferred version 3.10% of linux-yocto not available (for item kernel-modules)
NOTE: preferred version 3.10% of linux-yocto not available (for item kernel-module-autofs4)
NOTE: versions of linux-yocto available: 3.14.19+gitAUTOINC+0bd3ec19b6_bdef75805e 3.17-rc6+gitAUTOINC+eebdfd73e0_6cd8a70a8c
NOTE: preferred version 3.10% of linux-yocto not available (for item kernel-module-unix)
NOTE: versions of linux-yocto available: 3.14.19+gitAUTOINC+0bd3ec19b6_bdef75805e 3.17-rc6+gitAUTOINC+eebdfd73e0_6cd8a70a8c
NOTE: preferred version 3.10% of linux-yocto not available (for item kernel-module-ipv6)
NOTE: versions of linux-yocto available: 3.14.19+gitAUTOINC+0bd3ec19b6_bdef75805e 3.17-rc6+gitAUTOINC+eebdfd73e0_6cd8a70a8c
NOTE: preferred version 3.10% of linux-yocto not available (for item kernel-module-binfmt-misc)
NOTE: versions of linux-yocto available: 3.14.19+gitAUTOINC+0bd3ec19b6_bdef75805e 3.17-rc6+gitAUTOINC+eebdfd73e0_6cd8a70a8c
NOTE: preferred version 3.10% of linux-yocto not available (for item kernel-module-uvesafb)
NOTE: versions of linux-yocto available: 3.14.19+gitAUTOINC+0bd3ec19b6_bdef75805e 3.17-rc6+gitAUTOINC+eebdfd73e0_6cd8a70a8c
NOTE: preferred version 3.10% of linux-yocto not available (for item kernel-module-x-tables)
NOTE: versions of linux-yocto available: 3.14.19+gitAUTOINC+0bd3ec19b6_bdef75805e 3.17-rc6+gitAUTOINC+eebdfd73e0_6cd8a70a8c
NOTE: preferred version 3.10% of linux-yocto not available (for item kernel-module-ip-tables)
NOTE: versions of linux-yocto available: 3.14.19+gitAUTOINC+0bd3ec19b6_bdef75805e 3.17-rc6+gitAUTOINC+eebdfd73e0_6cd8a70a8c
NOTE: preferred version 3.10% of linux-yocto not available (for item kernel-module-iptable-filter)
NOTE: versions of linux-yocto available: 3.14.19+gitAUTOINC+0bd3ec19b6_bdef75805e 3.17-rc6+gitAUTOINC+eebdfd73e0_6cd8a70a8c
NOTE: preferred version 3.10% of linux-yocto not available (for item kernel-module-iptable-nat)
NOTE: versions of linux-yocto available: 3.14.19+gitAUTOINC+0bd3ec19b6_bdef75805e 3.17-rc6+gitAUTOINC+eebdfd73e0_6cd8a70a8c
NOTE: preferred version 3.10% of linux-yocto not available (for item kernel-module-nf-defrag-ipv4)
NOTE: versions of linux-yocto available: 3.14.19+gitAUTOINC+0bd3ec19b6_bdef75805e 3.17-rc6+gitAUTOINC+eebdfd73e0_6cd8a70a8c
NOTE: preferred version 3.10% of linux-yocto not available (for item kernel-module-nf-conntrack)
NOTE: versions of linux-yocto available: 3.14.19+gitAUTOINC+0bd3ec19b6_bdef75805e 3.17-rc6+gitAUTOINC+eebdfd73e0_6cd8a70a8c
NOTE: preferred version 3.10% of linux-yocto not available (for item kernel-module-nf-conntrack-ipv4)
NOTE: versions of linux-yocto available: 3.14.19+gitAUTOINC+0bd3ec19b6_bdef75805e 3.17-rc6+gitAUTOINC+eebdfd73e0_6cd8a70a8c
NOTE: preferred version 3.10% of linux-yocto not available (for item kernel-module-nf-nat)
NOTE: versions of linux-yocto available: 3.14.19+gitAUTOINC+0bd3ec19b6_bdef75805e 3.17-rc6+gitAUTOINC+eebdfd73e0_6cd8a70a8c
NOTE: preferred version 3.10% of linux-yocto not available (for item kernel-module-ipt-masquerade)
NOTE: versions of linux-yocto available: 3.14.19+gitAUTOINC+0bd3ec19b6_bdef75805e 3.17-rc6+gitAUTOINC+eebdfd73e0_6cd8a70a8c
NOTE: preferred version 3.10% of linux-yocto not available (for item kernel-module-snd-ens1370)
NOTE: versions of linux-yocto available: 3.14.19+gitAUTOINC+0bd3ec19b6_bdef75805e 3.17-rc6+gitAUTOINC+eebdfd73e0_6cd8a70a8c
NOTE: preferred version 3.10% of linux-yocto not available (for item kernel-module-snd-rawmidi)
NOTE: versions of linux-yocto available: 3.14.19+gitAUTOINC+0bd3ec19b6_bdef75805e 3.17-rc6+gitAUTOINC+eebdfd73e0_6cd8a70a8c

Build Configuration:
BB_VERSION        = "1.24.0"
BUILD_SYS         = "x86_64-linux"
NATIVELSBSTRING   = "Ubuntu-14.04"
TARGET_SYS        = "i586-poky-linux"
MACHINE           = "qemux86"
DISTRO            = "poky-ivi-systemd"
DISTRO_VERSION    = "7.0.1"
TUNE_FEATURES     = "m32 i586"
TARGET_FPU        = ""
meta
meta-yocto
meta-yocto-bsp    = "(detachedfrom39ca8b4):39ca8b429b6244e9649e7303cbb240adf007bf22"
meta-ivi
meta-ivi-bsp      = "(detachedfrom7.0.1):c78f40cfebb0f8d250045fde55b8b5449e99b1cf"
meta-oe           = "(detachedfrom0d01e1b):0d01e1b72333f49c29d1a27ad844c4cd9f90341c"
meta-ivi-demo     = "(detachedfrom7.0.1):c78f40cfebb0f8d250045fde55b8b5449e99b1cf"
meta-qt5          = "master:478fe949a957471a4d20450f6e9375fe1d628591"
meta-ruby         = "(detachedfrom0d01e1b):0d01e1b72333f49c29d1a27ad844c4cd9f90341c"

NOTE: Preparing runqueue
NOTE: Executing SetScene Tasks
NOTE: Executing RunQueue Tasks
WARNING: QA Issue: mesa: configure was passed unrecognised options: --with-llvm-shared-libs [unknown-configure-option]
WARNING: Failed to fetch URL http://www.apache.org/dist/apr/apr-util-1.5.3.tar.gz, attempting MIRRORS if available
WARNING: Failed to fetch URL http://www.apache.org/dist/subversion/subversion-1.8.9.tar.bz2, attempting MIRRORS if available
WARNING: Failed to fetch URL http://0pointer.de/lennart/projects/nss-mdns/nss-mdns-0.10.tar.gz, attempting MIRRORS if available
WARNING: Failed to fetch URL ftp://ftp.debian.org/debian/pool/main/d/dpkg/dpkg_1.17.4.tar.xz, attempting MIRRORS if available
WARNING: Failed to fetch URL http://ftp.de.debian.org/debian/pool/main/m/mklibs/mklibs_0.1.39.tar.xz, attempting MIRRORS if available
WARNING: QA Issue: ELF binary '/home/build/shared/my-genivi-build/tmp/work/i586-poky-linux/wayland-ivi-extension/1.2.0-r0/packages-split/wayland-ivi-extension/usr/lib/weston/ivi-controller.so' has relocations in .text [textrel]
WARNING: QA Issue: pulseaudio-module-console-kit rdepends on consolekit, but it isn't a build dependency? [build-deps]
WARNING: QA Issue: ELF binary '/home/build/shared/my-genivi-build/tmp/work/i586-poky-linux/qtwebkit/5.3.2-r0/packages-split/qtwebkit/usr/lib/libQt5WebKit.so.5.3.2' has relocations in .text [textrel]
NOTE: Tasks Summary: Attempted 3599 tasks of which 1231 didn't need to be rerun and all succeeded.

Summary: There were 9 WARNING messages shown.
build@01ca7367eab8:~/shared/my-genivi-build$
build@01ca7367eab8:~/shared/my-genivi-build$ ls -la tmp/deploy/images/qemux86/
total 769948
drwxrwxr-x 2 build build      4096 Oct 11 15:04 .
drwxrwxr-x 3 build build      4096 Oct 11 13:04 ..
-rw-r--r-- 2 build build       294 Oct 11 14:58 README_-_DO_NOT_DELETE_FILES_IN_THIS_DIRECTORY.txt
lrwxrwxrwx 1 build build        74 Oct 11 13:04 bzImage -> bzImage--3.17-rc6+git0+eebdfd73e0_6cd8a70a8c-r0-qemux86-20141011122900.bin
-rw-r--r-- 2 build build   6541584 Oct 11 13:04 bzImage--3.17-rc6+git0+eebdfd73e0_6cd8a70a8c-r0-qemux86-20141011122900.bin
lrwxrwxrwx 1 build build        74 Oct 11 13:04 bzImage-qemux86.bin -> bzImage--3.17-rc6+git0+eebdfd73e0_6cd8a70a8c-r0-qemux86-20141011122900.bin
-rw-r--r-- 1 build build 688082944 Oct 11 15:03 ivi-image-demo-qemux86-20141011122900.rootfs.ext3
-rw-r--r-- 1 build build     39259 Oct 11 15:02 ivi-image-demo-qemux86-20141011122900.rootfs.manifest
-rw-r--r-- 1 build build 149411354 Oct 11 15:03 ivi-image-demo-qemux86-20141011122900.rootfs.tar.bz2
lrwxrwxrwx 1 build build        49 Oct 11 15:04 ivi-image-demo-qemux86.ext3 -> ivi-image-demo-qemux86-20141011122900.rootfs.ext3
lrwxrwxrwx 1 build build        53 Oct 11 15:04 ivi-image-demo-qemux86.manifest -> ivi-image-demo-qemux86-20141011122900.rootfs.manifest
lrwxrwxrwx 1 build build        52 Oct 11 15:04 ivi-image-demo-qemux86.tar.bz2 -> ivi-image-demo-qemux86-20141011122900.rootfs.tar.bz2
-rw-rw-r-- 2 build build  79642557 Oct 11 13:04 modules--3.17-rc6+git0+eebdfd73e0_6cd8a70a8c-r0-qemux86-20141011122900.tgz
lrwxrwxrwx 1 build build        74 Oct 11 13:04 modules-qemux86.tgz -> modules--3.17-rc6+git0+eebdfd73e0_6cd8a70a8c-r0-qemux86-20141011122900.tgz
build@01ca7367eab8:~/shared/my-genivi-build$

Running GDP

TODO

EOF