Yocto update from sumo to kirkstrone

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Yocto update from sumo to kirkstrone

2,509 Views
shravankumaralugala
Contributor II

Hardware : p2020 Qoirq

Requirement : Need to updated yocto distribution from sumo to Kirkstone.

Query : In the process of updating the yocto distribution from Sumo to Kirkstone I have ended up in the below error in glib , as illegal instruction.

Need help to rectify this.

Here are the logs.

shravan@shravan-VirtualBox:~/CIS_activities/latest_yocto/yocto-3.1/tng-bsp$ source poky/oe-init-build-env

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

You can now run 'bitbake <target>'

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

You can also run generated qemu images with a command like 'runqemu qemux86'

Other commonly useful commands are:
- 'devtool' and 'recipetool' handle common recipe tasks
- 'bitbake-layers' handles common layer tasks
- 'oe-pkgdata-util' handles common target package tasks
shravan@shravan-VirtualBox:~/CIS_activities/latest_yocto/yocto/build$ bitbake core-image-minimal
Loading cache: 100% |##########################################################################################################################| Time: 0:00:00
Loaded 1808 entries from dependency cache.
NOTE: Resolving any missing task queue dependencies

Build Configuration:
BB_VERSION = "2.0.0"
BUILD_SYS = "x86_64-linux"
NATIVELSBSTRING = "universal"
TARGET_SYS = "powerpc-poky-linux"
MACHINE = "p2020rdb"
DISTRO = "poky"
DISTRO_VERSION = "4.0.2"
TUNE_FEATURES = "m32 ppce500v2 bigendian"
TARGET_FPU = ""
meta
meta-poky = "kirkstone:236f30b8a9cb1751aae290cc94da06d8f6917b30"
meta-freescale = "kirkstone:2e785f257ad98581b684f0e32f6d4bb96faefb10"

Initialising tasks: 100% |#####################################################################################################################| Time: 0:00:01
Sstate summary: Wanted 881 Local 0 Mirrors 0 Missed 881 Current 227 (0% match, 20% complete)
NOTE: Executing Tasks
ERROR: glib-2.0-1_2.72.3-r0 do_configure: meson failed
ERROR: glib-2.0-1_2.72.3-r0 do_configure: ExecutionError('/home/shravan/CIS_activities/latest_yocto/yocto/build/tmp/work/ppce500v2-poky-linux/glib-2.0/1_2.72.3-r0/temp/run.do_configure.2549', 1, None, None)
ERROR: Logfile of failure stored in: /home/shravan/CIS_activities/latest_yocto/yocto/build/tmp/work/ppce500v2-poky-linux/glib-2.0/1_2.72.3-r0/temp/log.do_configure.2549
Log data follows:
| DEBUG: Executing python function extend_recipe_sysroot
| NOTE: Direct dependencies are ['/home/shravan/CIS_activities/latest_yocto/yocto/poky/meta/recipes-core/glibc/glibc_2.35.bb:do_populate_sysroot', '/home/shravan/CIS_activities/latest_yocto/yocto/poky/meta/recipes-core/util-linux/util-linux_2.37.4.bb:do_populate_sysroot', '/home/shravan/CIS_activities/latest_yocto/yocto-3.1/tng-bsp/poky/meta/recipes-core/zlib/zlib_1.2.11.bb:do_populate_sysroot', '/home/shravan/CIS_activities/latest_yocto/yocto-3.1/tng-bsp/poky/meta/recipes-devtools/gcc/gcc-cross_11.3.bb:do_populate_sysroot', '/home/shravan/CIS_activities/latest_yocto/yocto-3.1/tng-bsp/poky/meta/recipes-devtools/gcc/gcc-runtime_11.3.bb:do_populate_sysroot', '/home/shravan/CIS_activities/latest_yocto/yocto-3.1/tng-bsp/poky/meta/recipes-devtools/qemu/qemu-native_6.2.0.bb:do_populate_sysroot', '/home/shravan/CIS_activities/latest_yocto/yocto/poky/meta/recipes-devtools/quilt/quilt-native_0.67.bb:do_populate_sysroot', '/home/shravan/CIS_activities/latest_yocto/yocto/poky/meta/recipes-support/bash-completion/bash-completion_2.11.bb:do_populate_sysroot', '/home/shravan/CIS_activities/latest_yocto/yocto-/poky/meta/recipes-support/libffi/libffi_3.4.2.bb:do_populate_sysroot', '/home/shravan/CIS_activities/latest_yocto/yocto/poky/meta/recipes-support/libpcre/libpcre_8.45.bb:do_populate_sysroot', 'virtual:native:/home/shravan/CIS_activities/latest_yocto/yocto/poky/meta/recipes-core/gettext/gettext_0.21.bb:do_populate_sysroot', 'virtual:native:/home/shravan/CIS_activities/latest_yocto/yocto/poky/meta/recipes-core/glib-2.0/glib-2.0_2.72.3.bb:do_populate_sysroot', 'virtual:native:/home/shravan/CIS_activities/latest_yocto/yocto/poky/meta/recipes-devtools/meson/meson_0.61.3.bb:do_populate_sysroot', 'virtual:native:/home/shravan/CIS_activities/latest_yocto/yocto-3.1/tng-bsp/poky/meta/recipes-devtools/ninja/ninja_1.10.2.bb:do_populate_sysroot', 'virtual:native:/home/shravan/CIS_activities/latest_yocto/yocto/poky/meta/recipes-devtools/patch/patch_2.7.6.bb:do_populate_sysroot', 'virtual:native:/home/shravan/CIS_activities/latest_yocto/yocto/poky/meta/recipes-devtools/pkgconfig/pkgconfig_git.bb:do_populate_sysroot', 'virtual:native:/home/shravan/CIS_activities/latest_yocto/yocto/poky/meta/recipes-devtools/pseudo/pseudo_git.bb:do_populate_sysroot', 'virtual:native:/home/shravan/CIS_activities/latest_yocto/yocto/poky/meta/recipes-devtools/python/python3_3.10.4.bb:do_populate_sysroot', 'virtual:native:/home/shravan/CIS_activities/latest_yocto/yocto/poky/meta/recipes-extended/xz/xz_5.2.5.bb:do_populate_sysroot', 'virtual:native:/home/shravan/CIS_activities/latest_yocto/yocto/poky/meta/recipes-gnome/gtk-doc/gtk-doc_1.33.2.bb:do_populate_sysroot']
| NOTE: Installed into sysroot: []
| NOTE: Skipping as already exists in sysroot: ['glibc', 'util-linux', 'zlib', 'gcc-cross-powerpc', 'gcc-runtime', 'qemu-native', 'quilt-native', 'bash-completion', 'libffi', 'libpcre', 'gettext-native', 'glib-2.0-native', 'meson-native', 'ninja-native', 'patch-native', 'pkgconfig-native', 'pseudo-native', 'python3-native', 'xz-native', 'gtk-doc-native', 're2c-native', 'gettext-minimal-native', 'zlib-native', 'libffi-native', 'libpcre-native', 'util-linux-native', 'linux-libc-headers', 'bzip2-native', 'libtool-native', 'sqlite3-native', 'openssl-native', 'gdbm-native', 'readline-native', 'libnsl2-native', 'ncurses-native', 'util-linux-libuuid-native', 'libtirpc-native', 'bzip2', 'gnu-config-native', 'binutils-cross-powerpc', 'flex-native', 'gmp-native', 'texinfo-dummy-native', 'mpfr-native', 'libmpc-native', 'zstd-native', 'libgcc', 'python3-wheel-native', 'python3-setuptools-native', 'python3-installer-native', 'attr-native', 'libcap-ng', 'opkg-utils', 'libxcrypt', 'util-linux-libuuid', 'ncurses', 'libcap-ng-native', 'libpcre2-native', 'perl-native', 'm4-native', 'python3-flit-core-native', 'unzip-native', 'make-native']
| DEBUG: Python function extend_recipe_sysroot finished
| DEBUG: Executing shell function do_configure
| gtkdocize: neither configure.ac nor configure.in exist
| NOTE: Executing meson -Dgtk_doc=false -Ddtrace=false -Dfam=false -Dsystemtap=false -Dlibmount=enabled -Dman=false -Dselinux=disabled -Dinstalled_tests=true --cross-file=/home/shravan/CIS_activities/latest_yocto/yocto-3.1/tng-bsp/poky/meta/recipes-core/glib-2.0/glib-2.0/meson.cross.d/common-linux --cross-file=/home/shravan/CIS_activities/latest_yocto/yoctopoky/meta/recipes-core/glib-2.0/glib-2.0/meson.cross.d/common-glibc --cross-file=/home/shravan/CIS_activities/latest_yocto/yocto-3.1/tng-bsp/poky/meta/recipes-core/glib-2.0/glib-2.0/meson.cross.d/common...
| qemu: uncaught target signal 4 (Illegal instruction) - core dumped
| Illegal instruction (core dumped)
| The Meson build system
| Version: 0.61.3
| Source dir: /home/shravan/CIS_activities/latest_yocto/yocto-3.1/tng-bsp/build/tmp/work/ppce500v2-poky-linux/glib-2.0/1_2.72.3-r0/glib-2.72.3
| Build dir: /home/shravan/CIS_activities/latest_yocto/yocto-3.1/tng-bsp/build/tmp/work/ppce500v2-poky-linux/glib-2.0/1_2.72.3-r0/build
| Build type: cross build
| Project name: glib
| Project version: 2.72.3
|
| ../glib-2.72.3/meson.build:1:0: ERROR: Executables created by c compiler powerpc-poky-linux-gcc -mbig-endian -m32 -mcpu=8548 -fstack-protector-strong -O2 -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -Werror=format-security --sysroot=/home/shravan/CIS_activities/latest_yocto/yocto/build/tmp/work/ppce500v2-poky-linux/glib-2.0/1_2.72.3-r0/recipe-sysroot are not runnable.
|
| A full log can be found at /home/shravan/CIS_activities/latest_yocto/yocto/build/tmp/work/ppce500v2-poky-linux/glib-2.0/1_2.72.3-r0/build/meson-logs/meson-log.txt
| ERROR: meson failed
| WARNING: exit code 1 from a shell command.
ERROR: Task (/home/shravan/CIS_activities/latest_yocto/yocto/poky/meta/recipes-core/glib-2.0/glib-2.0_2.72.3.bb:do_configure) failed with exit code '1'

Second Keyboard Interrupt, stopping...

 

 

0 Kudos
6 Replies

2,467 Views
shravankumaralugala
Contributor II

I will try this and let you know the results 

0 Kudos

2,491 Views
yipingwang
NXP TechSupport
NXP TechSupport

I downloaded yocto recipes with procedure described in 

https://source.codeaurora.org/external/qoriq/qoriq-components/yocto-sdk/tree/readme?h=kirkstone

Then run the following command without any problem.

$ source ./setup-env -m p2020rdb

$ bitbake glib-2.0

My OS is ubuntu 18.04

$ python --version
Python 2.7.17

0 Kudos

2,448 Views
shravankumaralugala
Contributor II
Still I am observing compilation issue for the below procedure.
 
1. Clone the poky repository, and checkout to kirkstone branch:      
    ~~~
    $ cd ~/my_yocto  
    $ git clone git://git.yoctoproject.org/poky  
    $ cd poky  
    $ git checkout kirkstone   
    ~~~

2. Clone the Freescale layer, and checkout to kirkstone branch:  
    ~~~  
    $ cd ~/my_yocto  
    $ git clone git://git.yoctoproject.org/meta-freescale
    $ cd meta-freescale  
    $ git checkout kirkstone 
    ~~~  
3. cd ~/my_yocto
4. source /poky/oe-init-build-env
5. change the MACHINE name to p2020rdb in build/conf/local.conf
      #MACHINE ??= "qemux86-64"  // Remove this line
       MACHINE ??= "p2020rdb"      // Add this line
6. build$ bitbake core-image-minimal  
   // This gives me the error as mention above.
   
0 Kudos

2,443 Views
yipingwang
NXP TechSupport
NXP TechSupport

In your step 4, 5, 6, please try the following 

$ source ./setup-env -m p2020rdb

$ bitbake glib-2.0

0 Kudos

2,425 Views
shravankumaralugala
Contributor II

Now I am facing error in u-boot as below 

shravan@shravan-VirtualBox:~/CIS_activities/source_aurora/yocto-sdk/build_p2020rdb$ bitbake core-image-minimal
Loading cache: 100% |##########################################################################################################################| Time: 0:00:03
Loaded 4730 entries from dependency cache.
NOTE: Resolving any missing task queue dependencies

Build Configuration:
BB_VERSION = "2.0.0"
BUILD_SYS = "x86_64-linux"
NATIVELSBSTRING = "universal"
TARGET_SYS = "powerpc-fsl-linux"
MACHINE = "p2020rdb"
DISTRO = "fsl-qoriq"
DISTRO_VERSION = "4.0"
TUNE_FEATURES = "m32 ppce500v2 bigendian"
TARGET_FPU = ""
meta
meta-poky
meta-yocto-bsp = "HEAD:27de52e402ae000dfa502d52908cd6e6aef923ec"
meta-oe
meta-multimedia
meta-python
meta-networking
meta-gnome
meta-filesystems
meta-webserver
meta-perl = "HEAD:5357c7a40eaf8d1bcf7ff58edbba8e9527e40c7d"
meta-virtualization = "HEAD:973c8d0964c6f40338857efe5b8009b2f647d485"
meta-cloud-services = "HEAD:58de4a7436b0636ef7daf9dd635c5be780e9f4f8"
meta-security = "HEAD:7628a3e90b6c51f64fd80ab2180885da4a37412f"
meta-freescale = "HEAD:2fb1ce365338126aad365012ebb913b3e4a9f1be"
meta-freescale-distro = "HEAD:fc15f5003043da23212596be7366ae2547c308ad"
meta-qoriq = "HEAD:065e7ef5516d54c76f6dda50cdd1fdab56669256"

Initialising tasks: 100% |#####################################################################################################################| Time: 0:00:02
Sstate summary: Wanted 17 Local 0 Mirrors 0 Missed 17 Current 770 (0% match, 97% complete)
NOTE: Executing Tasks
ERROR: u-boot-qoriq-2022.04+AUTOINC+1c881f4da8+fslgit-r0 do_compile: oe_runmake failed
ERROR: u-boot-qoriq-2022.04+AUTOINC+1c881f4da8+fslgit-r0 do_compile: ExecutionError('/home/shravan/CIS_activities/source_aurora/yocto-sdk/build_p2020rdb/tmp/work/p2020rdb-fsl-linux/u-boot-qoriq/2022.04+AUTOINC+1c881f4da8+fslgit-r0/temp/run.do_compile.1623', 1, None, None)
ERROR: Logfile of failure stored in: /home/shravan/CIS_activities/source_aurora/yocto-sdk/build_p2020rdb/tmp/work/p2020rdb-fsl-linux/u-boot-qoriq/2022.04+AUTOINC+1c881f4da8+fslgit-r0/temp/log.do_compile.1623

 

Attached the file. 

0 Kudos

2,415 Views
yipingwang
NXP TechSupport
NXP TechSupport

I also encounter u-boot compilation error for P2020RDB in Yocto kirkstrone. I suggest you still use u-boot and Linux Kernel recipes from Yocto sumo.

Because P2020RDB is not in the support list in https://source.codeaurora.org/external/qoriq/qoriq-components/yocto-sdk/tree/readme?h=kirkstone

0 Kudos