Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added support for stm32mp1-eval including running container-qt-evcs app #5

Open
wants to merge 14 commits into
base: thud
Choose a base branch
from

Conversation

pjgorka88
Copy link

Unfortunately we dont have disco board in Friedberg so im not 100% sure if i didn't crash anything connected with disco board.

Probably kms eglfs config file (container-qt-evcs/stm32mp1-disco/config.json) should be set properly

I also need some information what should be done with my fork (github.com/pjgorka88/evcs-demo) of evcs-demo app. Some changes were necessary to display everything in correct way in stm32mp1-eval

@lquinet
Copy link

lquinet commented Mar 24, 2020

I tested if the changes made by this pull request broke sth on the stm32mp1-disco... It didn't succeed to build the image with FMU for the disco board. I tested it by using:

I rebased pjgorka88/stm32mp1-eval in lquinet/thud.

This is the detail of the errors I had during the build:

lquinet@lquinet-HP-ZBook-15u-G6:/media/lquinet/ca7c8af6-d553-466c-bd64-40c7508053e6/FullMetalUpdate_fork_2/fullmetalupdate-yocto-demo$ ./StartBuild.sh sync stm32mp1-disco thud dev
repo: warning: Python 2 is no longer supported; Please upgrade to Python 3.6+.

... A new version of repo (2.4) is available.
... You should upgrade soon:

    cp /data/yocto/.repo/repo/repo /usr/local/bin/repo


repo has been initialized in /data/yocto
repo: warning: Python 2 is no longer supported; Please upgrade to Python 3.6+.

... A new version of repo (2.4) is available.
... You should upgrade soon:

    cp /data/yocto/.repo/repo/repo /usr/local/bin/repo

Fetching projects: 100% (8/8), done.
Checking out projects: 100% (8/8), done.
repo sync has finished successfully.
'/data/yocto/sources/meta-fullmetalupdate-extra/conf/stm32mp1-disco/bblayers.conf.sample' -> '/data/yocto/sources/meta-fullmetalupdate-extra/conf/bblayers.conf.sample'
'/data/yocto/sources/meta-fullmetalupdate-extra/conf/stm32mp1-disco/layer.conf' -> '/data/yocto/sources/meta-fullmetalupdate-extra/conf/layer.conf'
'/data/yocto/sources/meta-fullmetalupdate-extra/conf/stm32mp1-disco/local.conf.sample' -> '/data/yocto/sources/meta-fullmetalupdate-extra/conf/local.conf.sample'
lquinet@lquinet-HP-ZBook-15u-G6:/media/lquinet/ca7c8af6-d553-466c-bd64-40c7508053e6/FullMetalUpdate_fork_2/fullmetalupdate-yocto-demo$ ./StartBuild.sh all
WARNING: Layer machinelearning should set LAYERSERIES_COMPAT_machinelearning in its conf/layer.conf file to list the core layer names it is compatible with.
WARNING: Layer machinelearning should set LAYERSERIES_COMPAT_machinelearning in its conf/layer.conf file to list the core layer names it is compatible with.
Parsing recipes: 100% |######################################################################################################################################################################| Time: 0:01:50
Parsing of 2337 .bb files complete (0 cached, 2337 parsed). 3340 targets, 339 skipped, 0 masked, 0 errors.
NOTE: Resolving any missing task queue dependencies

Build Configuration:
BB_VERSION           = "1.40.0"
BUILD_SYS            = "x86_64-linux"
NATIVELSBSTRING      = "universal"
TARGET_SYS           = "arm-fullmetalupdatecontainers-linux-gnueabi"
MACHINE              = "stm32mp1-disco"
DISTRO               = "fullmetalupdate-containers"
DISTRO_VERSION       = "1.0"
TUNE_FEATURES        = "arm armv7ve vfp thumb neon vfpv4 callconvention-hard cortexa7"
TARGET_FPU           = "hard"
meta                 
meta-poky            
meta-yocto-bsp       = "HEAD:958427e9d2ee7276887f2b02ba85cf0996dea553"
meta-fullmetalupdate = "HEAD:4b7938309b22b7df7aa073e7e6c802f48443e464"
meta-fullmetalupdate-extra = "HEAD:faa5710a599c6e905bd23a66afb36e3efd885c25"
meta-updater         = "HEAD:64bf6f04f93f49160811e371d5ab572bad8621ae"
meta-st-stm32mp      = "HEAD:8055ad11c92144e4a147a00834de53a2de21e42d"
meta-machinelearning = "HEAD:335fc78e9715947af2b0dacc06597459d005865c"
meta-oe              
meta-python          
meta-filesystems     
meta-networking      
meta-multimedia      = "HEAD:446bd615fd7cb9bc7a159fe5c2019ed08d1a7a93"
meta-qt5             = "HEAD:e6e464c9ed9266ce46452f953c1bdcb0e7b2d95f"

Initialising tasks: 100% |###################################################################################################################################################################| Time: 0:00:02
Sstate summary: Wanted 91 Found 1 Missed 90 Current 1042 (1% match, 92% complete)
NOTE: Executing SetScene Tasks
NOTE: Executing RunQueue Tasks
WARNING: u-boot-stm32mp-2018.11-r0 do_patch: 
Some of the context lines in patches were ignored. This can lead to incorrectly applied patches.
The context lines in the patches can be updated with devtool:

    devtool modify <recipe>
    devtool finish --force-patch-refresh <recipe> <layer_path>

Then the updated patches and the source tree (in devtool's workspace)
should be reviewed to make sure the patches apply in the correct place
and don't introduce duplicate lines (which can, and does happen
when some of the context is ignored). Further information:
http://lists.openembedded.org/pipermail/openembedded-core/2018-March/148675.html
https://bugzilla.yoctoproject.org/show_bug.cgi?id=10450
Details:
Applying patch 0009-ARM-v2018.11-stm32mp-r1-CONFIG.patch
patching file configs/stm32mp15_trusted_defconfig
patch unexpectedly ends in middle of line
Hunk #1 succeeded at 11 with fuzz 1 (offset 2 lines).

Now at patch 0009-ARM-v2018.11-stm32mp-r1-CONFIG.patch
WARNING: container-hello-world-1.0-r0 do_image: Android repo tool not found; manifest not copied.
WARNING: container-qt-evcs-1.0-r0 do_image: Android repo tool not found; manifest not copied.
NOTE: Tasks Summary: Attempted 3533 tasks of which 3317 didn't need to be rerun and all succeeded.

Summary: There were 5 WARNING messages shown.
WARNING: Layer machinelearning should set LAYERSERIES_COMPAT_machinelearning in its conf/layer.conf file to list the core layer names it is compatible with.
WARNING: Layer machinelearning should set LAYERSERIES_COMPAT_machinelearning in its conf/layer.conf file to list the core layer names it is compatible with.
Loading cache: 100% |########################################################################################################################################################################| Time: 0:00:00
Loaded 3340 entries from dependency cache.
Parsing recipes: 100% |######################################################################################################################################################################| Time: 0:01:55
Parsing of 2337 .bb files complete (0 cached, 2337 parsed). 3340 targets, 329 skipped, 0 masked, 0 errors.
Removing 1 recipes from the cortexa7t2hf-neon-vfpv4 sysroot: 100% |##########################################################################################################################| Time: 0:00:00
Removing 1 recipes from the stm32mp1_disco sysroot: 100% |###################################################################################################################################| Time: 0:00:00
NOTE: Resolving any missing task queue dependencies

Build Configuration:
BB_VERSION           = "1.40.0"
BUILD_SYS            = "x86_64-linux"
NATIVELSBSTRING      = "universal"
TARGET_SYS           = "arm-fullmetalupdate-linux-gnueabi"
MACHINE              = "stm32mp1-disco"
DISTRO               = "fullmetalupdate-os"
DISTRO_VERSION       = "1.0"
TUNE_FEATURES        = "arm armv7ve vfp thumb neon vfpv4 callconvention-hard cortexa7"
TARGET_FPU           = "hard"
meta                 
meta-poky            
meta-yocto-bsp       = "HEAD:958427e9d2ee7276887f2b02ba85cf0996dea553"
meta-fullmetalupdate = "HEAD:4b7938309b22b7df7aa073e7e6c802f48443e464"
meta-fullmetalupdate-extra = "HEAD:faa5710a599c6e905bd23a66afb36e3efd885c25"
meta-updater         = "HEAD:64bf6f04f93f49160811e371d5ab572bad8621ae"
meta-st-stm32mp      = "HEAD:8055ad11c92144e4a147a00834de53a2de21e42d"
meta-machinelearning = "HEAD:335fc78e9715947af2b0dacc06597459d005865c"
meta-oe              
meta-python          
meta-filesystems     
meta-networking      
meta-multimedia      = "HEAD:446bd615fd7cb9bc7a159fe5c2019ed08d1a7a93"
meta-qt5             = "HEAD:e6e464c9ed9266ce46452f953c1bdcb0e7b2d95f"

Initialising tasks: 100% |###################################################################################################################################################################| Time: 0:00:02
Sstate summary: Wanted 35 Found 0 Missed 35 Current 1191 (0% match, 97% complete)
NOTE: Executing SetScene Tasks
NOTE: Executing RunQueue Tasks
WARNING: u-boot-stm32mp-2018.11-r0 do_patch: 
Some of the context lines in patches were ignored. This can lead to incorrectly applied patches.
The context lines in the patches can be updated with devtool:

    devtool modify <recipe>
    devtool finish --force-patch-refresh <recipe> <layer_path>

Then the updated patches and the source tree (in devtool's workspace)
should be reviewed to make sure the patches apply in the correct place
and don't introduce duplicate lines (which can, and does happen
when some of the context is ignored). Further information:
http://lists.openembedded.org/pipermail/openembedded-core/2018-March/148675.html
https://bugzilla.yoctoproject.org/show_bug.cgi?id=10450
Details:
Applying patch 0009-ARM-v2018.11-stm32mp-r1-CONFIG.patch
patching file configs/stm32mp15_trusted_defconfig
patch unexpectedly ends in middle of line
Hunk #1 succeeded at 11 with fuzz 1 (offset 2 lines).

Now at patch 0009-ARM-v2018.11-stm32mp-r1-CONFIG.patch
WARNING: fullmetalupdate-os-package-1.0-r0 do_image_ostreepush: SOTA_PACKED_CREDENTIALS not set. Please add SOTA_PACKED_CREDENTIALS.
ERROR: fullmetalupdate-os-package-1.0-r0 do_image_wic: Function failed: do_image_wic (log file is located at /data/yocto/build/tmp/fullmetalupdate-os/work/stm32mp1_disco-fullmetalupdate-linux-gnueabi/fullmetalupdate-os-package/1.0-r0/temp/log.do_image_wic.15323)
ERROR: Logfile of failure stored in: /data/yocto/build/tmp/fullmetalupdate-os/work/stm32mp1_disco-fullmetalupdate-linux-gnueabi/fullmetalupdate-os-package/1.0-r0/temp/log.do_image_wic.15323
Log data follows:
| DEBUG: Executing python function set_image_size
| DEBUG: 321528.000000 = 160764 * 2.000000
| DEBUG: 321528.000000 = max(321528.000000, 65536)[321528.000000] + 2
| DEBUG: 321528.000000 = int(321528.000000)
| DEBUG: 321528 = aligned(321528)
| DEBUG: returning 321528
| DEBUG: Python function set_image_size finished
| DEBUG: Executing python function extend_recipe_sysroot
| NOTE: Direct dependencies are ['/data/yocto/sources/poky/meta/recipes-devtools/binutils/binutils-cross_2.31.bb:do_populate_sysroot', '/data/yocto/sources/poky/meta/recipes-devtools/python/python-native_2.7.16.bb:do_populate_sysroot', '/data/yocto/sources/meta-st-stm32mp/recipes-bsp/u-boot/u-boot-stm32mp_2018.11.bb:do_populate_sysroot', 'virtual:native:/data/yocto/sources/poky/meta/recipes-core/coreutils/coreutils_8.30.bb:do_populate_sysroot', 'virtual:native:/data/yocto/sources/poky/meta/recipes-devtools/opkg-utils/opkg-utils_0.3.6.bb:do_populate_sysroot', 'virtual:native:/data/yocto/sources/poky/meta/recipes-devtools/swig/swig_3.0.12.bb:do_populate_sysroot', '/data/yocto/sources/poky/meta/recipes-devtools/mklibs/mklibs-native_0.1.43.bb:do_populate_sysroot', 'virtual:native:/data/yocto/sources/poky/meta/recipes-devtools/fdisk/gptfdisk_1.0.4.bb:do_populate_sysroot', 'virtual:native:/data/yocto/sources/poky/meta/recipes-connectivity/openssl/openssl_1.1.1b.bb:do_populate_sysroot', '/data/yocto/sources/poky/meta/recipes-core/glibc/glibc_2.28.bb:do_populate_sysroot', 'virtual:native:/data/yocto/sources/poky/meta/recipes-extended/bc/bc_1.07.1.bb:do_populate_sysroot', '/data/yocto/sources/poky/meta/recipes-devtools/quilt/quilt-native_0.65.bb:do_populate_sysroot', 'virtual:native:/data/yocto/sources/poky/meta/recipes-devtools/bison/bison_3.0.4.bb:do_populate_sysroot', 'virtual:native:/data/yocto/sources/poky/meta/recipes-support/lzop/lzop_1.03.bb:do_populate_sysroot', '/data/yocto/sources/poky/meta/recipes-kernel/kmod/kmod-native_git.bb:do_populate_sysroot', '/data/yocto/sources/meta-st-stm32mp/recipes-bsp/trusted-firmware-a/tf-a-stm32mp_2.0.bb:do_populate_sysroot', 'virtual:native:/data/yocto/sources/poky/meta/recipes-devtools/pseudo/pseudo_git.bb:do_populate_sysroot', '/data/yocto/sources/poky/meta/recipes-kernel/kmod/depmodwrapper-cross_1.0.bb:do_populate_sysroot', 'virtual:devupstream:target:/data/yocto/sources/meta-st-stm32mp/recipes-kernel/linux/linux-stm32mp_4.19.bb:do_populate_sysroot', 'virtual:native:/data/yocto/sources/poky/meta/recipes-devtools/e2fsprogs/e2fsprogs_1.44.3.bb:do_populate_sysroot', 'virtual:native:/data/yocto/sources/poky/meta/recipes-devtools/rpm/rpm_4.14.2.bb:do_populate_sysroot', '/data/yocto/sources/poky/meta/recipes-devtools/gcc/gcc-runtime_8.2.bb:do_populate_sysroot', '/data/yocto/sources/poky/meta/recipes-devtools/gcc/gcc-cross_8.2.bb:do_populate_sysroot', 'virtual:native:/data/yocto/sources/poky/meta/recipes-extended/pigz/pigz_2.4.bb:do_populate_sysroot', 'virtual:native:/data/yocto/sources/poky/meta/recipes-devtools/dosfstools/dosfstools_4.1.bb:do_populate_sysroot', 'virtual:native:/data/yocto/sources/poky/meta/recipes-extended/parted/parted_3.2.bb:do_populate_sysroot', '/data/yocto/sources/meta-fullmetalupdate-extra/dynamic-layers/stm-st-stm32mp-layer/recipes-bsp/u-boot/stm32mp1-bootfiles.bb:do_populate_sysroot', '/data/yocto/sources/poky/meta/recipes-core/glibc/cross-localedef-native_2.28.bb:do_populate_sysroot', 'virtual:native:/data/yocto/sources/poky/meta/recipes-extended/pbzip2/pbzip2_1.1.13.bb:do_populate_sysroot', 'virtual:native:/data/yocto/sources/poky/meta/recipes-devtools/mtools/mtools_4.0.18.bb:do_populate_sysroot', 'virtual:native:/data/yocto/sources/poky/meta/recipes-devtools/dnf/dnf_2.7.5.bb:do_populate_sysroot', '/data/yocto/sources/poky/meta/recipes-devtools/qemu/qemuwrapper-cross_1.0.bb:do_populate_sysroot', 'virtual:native:/data/yocto/sources/poky/meta/recipes-devtools/createrepo-c/createrepo-c_git.bb:do_populate_sysroot', 'virtual:native:/data/yocto/sources/poky/meta/recipes-devtools/makedevs/makedevs_1.0.1.bb:do_populate_sysroot', 'virtual:native:/data/yocto/sources/poky/meta/recipes-core/update-rc.d/update-rc.d_0.8.bb:do_populate_sysroot', 'virtual:native:/data/yocto/sources/poky/meta/recipes-devtools/flex/flex_2.6.0.bb:do_populate_sysroot', 'virtual:native:/data/yocto/sources/meta-updater/recipes-sota/ostree/ostree_git.bb:do_populate_sysroot', 'virtual:native:/data/yocto/sources/poky/meta/recipes-kernel/dtc/dtc_1.4.7.bb:do_populate_sysroot', 'virtual:native:/data/yocto/sources/poky/meta/recipes-core/util-linux/util-linux_2.32.1.bb:do_populate_sysroot', 'virtual:native:/data/yocto/sources/poky/meta/recipes-devtools/opkg/opkg_0.3.6.bb:do_populate_sysroot', '/data/yocto/sources/poky/meta/recipes-core/glibc/ldconfig-native_2.12.1.bb:do_populate_sysroot', 'virtual:native:/data/yocto/sources/poky/meta/recipes-bsp/u-boot/u-boot-mkimage_2018.07.bb:do_populate_sysroot', 'virtual:native:/data/yocto/sources/poky/meta/recipes-extended/xz/xz_5.2.4.bb:do_populate_sysroot']
| NOTE: Installed into sysroot: []
| NOTE: Skipping as already exists in sysroot: ['binutils-cross-arm', 'python-native', 'u-boot-stm32mp', 'coreutils-native', 'opkg-utils-native', 'swig-native', 'mklibs-native', 'gptfdisk-native', 'openssl-native', 'glibc', 'bc-native', 'quilt-native', 'bison-native', 'lzop-native', 'kmod-native', 'tf-a-stm32mp', 'pseudo-native', 'depmodwrapper-cross', 'linux-stm32mp', 'e2fsprogs-native', 'rpm-native', 'gcc-runtime', 'gcc-cross-arm', 'pigz-native', 'dosfstools-native', 'parted-native', 'stm32mp1-bootfiles', 'cross-localedef-native', 'pbzip2-native', 'mtools-native', 'dnf-native', 'qemuwrapper-cross', 'createrepo-c-native', 'makedevs-native', 'update-rc.d-native', 'flex-native', 'ostree-native', 'dtc-native', 'util-linux-native', 'opkg-native', 'ldconfig-native', 'u-boot-mkimage-native', 'xz-native', 'autoconf-native', 'zlib-native', 'gnu-config-native', 'texinfo-dummy-native', 'libtool-native', 'bzip2-native', 'expat-native', 'db-native', 'sqlite3-native', 'readline-native', 'automake-native', 'gdbm-native', 'pkgconfig-native', 'systemd-systemctl-native', 'shadow-native', 'attr-native', 'gettext-minimal-native', 'python3-native', 'libpcre-native', 'qemu-native', 'lzo-native', 'libarchive-native', 'popt-native', 'nss-native', 'elfutils-native', 'file-native', 'dbus-native', 'ncurses-native', 'curl-native', 'glib-2.0-native', 'gpgme-native', 'libcap-native', 'gobject-introspection-native', 'fuse-native', 'libsolv-native', 'linux-libc-headers', 'cpio-native', 'gdb-cross-arm', 'sdcard-raw-tools-native', 'openocd-stm32mp-native', 'gtk-doc-native', 'libgcc', 'gmp-native', 'libmpc-native', 'mpfr-native', 'debianutils-native', 'ninja-native', 'libcomps-native', 'librepo-native', 'python3-iniparse-native', 'libdnf-native', 'cmake-native', 'libxml2-native', 'm4-native', 'libsdl2-native', 'pixman-native', 'alsa-lib-native', 'nspr-native', 'gettext-native', 'libffi-native', 'libgpg-error-native', 'libassuan-native', 'gperf-native', 'hidapi-stm32mp-native', 're2c-native', 'libcheck-native', 'python3-six-native', 'libxext-native', 'libxrender-native', 'libxrandr-native', 'libx11-native', 'libpng-native', 'util-macros-native', 'libusb-compat-native', 'python3-setuptools-native', 'xorgproto-native', 'xtrans-native', 'libxcb-native', 'libusb1-native', 'unzip-native', 'libxdmcp-native', 'libxau-native', 'xcb-proto-native', 'libpthread-stubs-native']
| DEBUG: Python function extend_recipe_sysroot finished
| DEBUG: Executing shell function do_image_wic
| usage: wic [-h] [--version] {create,list,help,rm,ls,write,cp} ...
| wic: error: unrecognized arguments: --no-fstab-update--no-fstab-update
| WARNING: exit code 2 from a shell command.
| ERROR: Function failed: do_image_wic (log file is located at /data/yocto/build/tmp/fullmetalupdate-os/work/stm32mp1_disco-fullmetalupdate-linux-gnueabi/fullmetalupdate-os-package/1.0-r0/temp/log.do_image_wic.15323)
ERROR: Task (/data/yocto/sources/meta-fullmetalupdate/recipes-core/images/fullmetalupdate-os-package.bb:do_image_wic) failed with exit code '1'
NOTE: Tasks Summary: Attempted 3773 tasks of which 3658 didn't need to be rerun and 1 failed.

Summary: 1 task failed:
  /data/yocto/sources/meta-fullmetalupdate/recipes-core/images/fullmetalupdate-os-package.bb:do_image_wic
Summary: There were 4 WARNING messages shown.
Summary: There was 1 ERROR message shown, returning a non-zero exit code.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants