This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

Starterware/AM4377: Weston/Wayland support

Part Number: AM4377

Tool/software: Starterware

Hi all,

I have a custom board based on am4377 processor. I want to integrate weston  suport  for this. I have ported the  processor sdk  v04.00.00.04 according

to our board but it has problem with loading the "pvrsrvkm" modules.

we have checked the description of am4377 processor it doesn't  contain 3D graphics acceleration.

Is it possible to make weston/wayland support working on this board??

Thanks.

  • The software team have been notified. They will respond here.
  • Yes you can. The feature is not part of released PLSDK but you can enable it following the link here -

  • Hi I tried to build as described on reference link. Normal build is over but when I tried to rebuild without sgx its throughing error in
    some wayland_ivi-extension*.bb:do_configure.

    Here are the log:

    $ MACHINE=am437x-gc150 bitbake arago-core-tisdk-image
    Loading cache: 100% |###########################################################################################################| Time: 0:00:00
    Loaded 3238 entries from dependency cache.
    NOTE: Resolving any missing task queue dependencies

    Build Configuration:
    BB_VERSION = "1.32.0"
    BUILD_SYS = "x86_64-linux"
    NATIVELSBSTRING = "Ubuntu-16.04"
    TARGET_SYS = "arm-linux-gnueabi"
    MACHINE = "am437x-gc150"
    DISTRO = "arago"
    DISTRO_VERSION = "2017.05"
    TUNE_FEATURES = "arm armv7a vfp thumb neon callconvention-hard"
    TARGET_FPU = "hard"
    meta-processor-sdk = "ms_am437x_gc150_ra:c30ed50e5128c750454d882f17726c22f3ec8055"
    meta-arago-distro
    meta-arago-extras = "ms_am437x_gc150_ra:b8f34c5a4e6b869cdc64853dab02b7d09e39238d"
    meta-browser = "HEAD:880a7bd1d3b9a1b2003f5b0620350f03158bbd43"
    meta-qt5 = "HEAD:3601fd2c5306ac6d5d0d536e0be8cbb90da9b4c1"
    meta-networking
    meta-ruby
    meta-python
    meta-oe
    meta-gnome = "HEAD:fe5c83312de11e80b85680ef237f8acb04b4b26e"
    meta-ti = "ms_am437x_gc150_ra:ff06d0828a619e7f0d42f53916cb9207713629de"
    meta-linaro-toolchain
    meta-optee = "HEAD:d84874bad834657dd04ea69c35a74dd9dbd535b8"
    meta = "ms_am437x_gc150_ra:4842f2df345a02339eb1710c56f146c2ddf6257a"

    WARNING: /home/pdi/bhargav/yocto/sources/meta-arago/meta-arago-distro/recipes-core/images/arago-core-tisdk-image.bb.do_build is tainted from a forced run
    Initialising tasks: 100% |######################################################################################################| Time: 0:00:12
    NOTE: Executing SetScene Tasks
    NOTE: Executing RunQueue Tasks
    ERROR: wayland-ivi-extension-1.11.0-r3 do_configure: Function failed: do_configure (log file is located at /home/pdi/bhargav/yocto/build/arago-tmp-external-linaro-toolchain/work/armv7ahf-neon-linux-gnueabi/wayland-ivi-extension/1.11.0-r3/temp/log.do_configure.29841)
    ERROR: Logfile of failure stored in: /home/pdi/bhargav/yocto/build/arago-tmp-external-linaro-toolchain/work/armv7ahf-neon-linux-gnueabi/wayland-ivi-extension/1.11.0-r3/temp/log.do_configure.29841
    Log data follows:
    | DEBUG: Executing python function sysroot_cleansstate
    | DEBUG: Python function sysroot_cleansstate finished
    | DEBUG: Executing shell function do_configure
    | -- The C compiler identification is GNU 6.2.1
    | -- The CXX compiler identification is GNU 6.2.1
    | -- Check for working C compiler: /home/pdi/bhargav/yocto/toolchain/gcc-linaro-6.2.1-2016.11-x86_64_arm-linux-gnueabihf/bin/arm-linux-gnueabihf-gcc
    | -- Check for working C compiler: /home/pdi/bhargav/yocto/toolchain/gcc-linaro-6.2.1-2016.11-x86_64_arm-linux-gnueabihf/bin/arm-linux-gnueabihf-gcc -- works
    | -- Detecting C compiler ABI info
    | -- Detecting C compiler ABI info - done
    | -- Detecting C compile features
    | -- Detecting C compile features - done
    | -- Check for working CXX compiler: /home/pdi/bhargav/yocto/toolchain/gcc-linaro-6.2.1-2016.11-x86_64_arm-linux-gnueabihf/bin/arm-linux-gnueabihf-g++
    | -- Check for working CXX compiler: /home/pdi/bhargav/yocto/toolchain/gcc-linaro-6.2.1-2016.11-x86_64_arm-linux-gnueabihf/bin/arm-linux-gnueabihf-g++ -- works
    | -- Detecting CXX compiler ABI info
    | -- Detecting CXX compiler ABI info - done
    | -- Detecting CXX compile features
    | -- Detecting CXX compile features - done
    | -- Found PkgConfig: /home/pdi/bhargav/yocto/build/arago-tmp-external-linaro-toolchain/sysroots/x86_64-linux/usr/bin/pkg-config (found version "0.29.1")
    | -- Checking for module 'wayland-client>=1.11.0'
    | -- Found wayland-client, version 1.11.0
    | -- Checking for module 'wayland-server>=1.11.0'
    | -- Found wayland-server, version 1.11.0
    | -- Checking for module 'weston>=1.11.0'
    | -- Found weston, version 1.11.0
    | -- Checking for module 'pixman-1'
    | -- Found pixman-1, version 0.34.0
    | -- Looking for pthread.h
    | -- Looking for pthread.h - found
    | -- Looking for pthread_create
    | -- Looking for pthread_create - not found
    | -- Looking for pthread_create in pthreads
    | -- Looking for pthread_create in pthreads - not found
    | -- Looking for pthread_create in pthread
    | -- Looking for pthread_create in pthread - found
    | -- Found Threads: TRUE
    | -- gtest_INCLUDE_DIRS: gtest_INCLUDE_DIRS-NOTFOUND
    | -- gtest_LIBRARIES:
    | -- gtest not found, disabling unit tests (BUILD_ILM_API_TESTS=OFF)
    | -- Checking for module 'glesv2'
    | -- Found glesv2, version 8.14
    | -- Checking for module 'egl'
    | -- Found egl, version 8.14
    | -- Checking for module 'wayland-egl'
    | -- No package 'wayland-egl' found
    | CMake Error at /home/pdi/bhargav/yocto/build/arago-tmp-external-linaro-toolchain/sysroots/x86_64-linux/usr/share/cmake-3.6/Modules/FindPkgConfig.cmake:424 (message):
    | A required package was not found
    | Call Stack (most recent call first):
    | /home/pdi/bhargav/yocto/build/arago-tmp-external-linaro-toolchain/sysroots/x86_64-linux/usr/share/cmake-3.6/Modules/FindPkgConfig.cmake:597 (_pkg_check_modules_internal)
    | ivi-layermanagement-examples/EGLWLMockNavigation/CMakeLists.txt:28 (pkg_check_modules)
    |
    |
    | -- Configuring incomplete, errors occurred!
    | See also "/home/pdi/bhargav/yocto/build/arago-tmp-external-linaro-toolchain/work/armv7ahf-neon-linux-gnueabi/wayland-ivi-extension/1.11.0-r3/build/CMakeFiles/CMakeOutput.log".
    | See also "/home/pdi/bhargav/yocto/build/arago-tmp-external-linaro-toolchain/work/armv7ahf-neon-linux-gnueabi/wayland-ivi-extension/1.11.0-r3/build/CMakeFiles/CMakeError.log".
    | WARNING: /home/pdi/bhargav/yocto/build/arago-tmp-external-linaro-toolchain/work/armv7ahf-neon-linux-gnueabi/wayland-ivi-extension/1.11.0-r3/temp/run.do_configure.29841:1 exit 1 from 'cmake ${OECMAKE_SITEFILE} /home/pdi/bhargav/yocto/build/arago-tmp-external-linaro-toolchain/work/armv7ahf-neon-linux-gnueabi/wayland-ivi-extension/1.11.0-r3/git -DCMAKE_INSTALL_PREFIX:PATH=/usr -DCMAKE_INSTALL_BINDIR:PATH=bin -DCMAKE_INSTALL_SBINDIR:PATH=sbin -DCMAKE_INSTALL_LIBEXECDIR:PATH=libexec -DCMAKE_INSTALL_SYSCONFDIR:PATH=/etc -DCMAKE_INSTALL_SHAREDSTATEDIR:PATH=../com -DCMAKE_INSTALL_LOCALSTATEDIR:PATH=/var -DCMAKE_INSTALL_LIBDIR:PATH=lib -DCMAKE_INSTALL_INCLUDEDIR:PATH=include -DCMAKE_INSTALL_DATAROOTDIR:PATH=share -DCMAKE_INSTALL_SO_NO_EXE=0 -DCMAKE_TOOLCHAIN_FILE=/home/pdi/bhargav/yocto/build/arago-tmp-external-linaro-toolchain/work/armv7ahf-neon-linux-gnueabi/wayland-ivi-extension/1.11.0-r3/toolchain.cmake -DCMAKE_VERBOSE_MAKEFILE=1 -DCMAKE_NO_SYSTEM_FROM_IMPORTED=1 -DWITH_ILM_INPUT=1 -DLIB_SUFFIX= ${PACKAGECONFIG_CONFARGS} -Wno-dev'
    | ERROR: Function failed: do_configure (log file is located at /home/pdi/bhargav/yocto/build/arago-tmp-external-linaro-toolchain/work/armv7ahf-neon-linux-gnueabi/wayland-ivi-extension/1.11.0-r3/temp/log.do_configure.29841)
    ERROR: Task (/home/pdi/bhargav/yocto/sources/meta-arago/meta-arago-distro/recipes-graphics/wayland/wayland-ivi-extension_1.11.0.bb:do_configure) failed with exit code '1'
    Waiting for 1 running tasks to finish:


    Any help in this, how to make it build completely without sgx?


    Thank you.
  • The building fails on wayland-ivi-extension because it requires wayland-egl. Please, exclude the wayland-ivi-extension from your build.

  • Actually when I am adding "MACHINE_FEATURES_remove = "sgx" in build/conf/local.conf then only its failing.

    I tried ti build only wayland-ivi-extension then also its failing. I am getting the same error with this command also:
    desktop$ MACHINE=am437x-gc150 bitbake wayland-ivi-extension

    I want to build the arago-core-tisdk-image without sgx.

    thanks.
  • Please, add

    BBMASK = "meta-arago/meta-arago-distro/recipes-graphics/wayland/wayland-ivi-extension_1.11.0.bb"
    GRAPHICS_WESTON_remove = "wayland-ivi-extension"

    in build/conf/local.conf then bitbake arago-core-tisdk-image and check the result.

  • Hi thanks for the quick suggestion.

    It worked for "wayland-ivi-extension"  but now i am getting error in building qtwayland.

    ERROR: qtwayland-5.7.1+gitAUTOINC+4b23163fb6-r0.arago0 do_compile: oe_runmake failed

    ERROR: Task (/home/pdi/bhargav/yocto/sources/meta-qt5/recipes-qt/qt5/qtwayland_git.bb:do_compile) failed with exit code '1'

    How can i remove this qtwayland from the build.

    thanks,

  • The configure task has succeed. The error you got is in do_compile task. Can you post the error log?

  • Hi I have attached the error log as .txt here.

    qtwayland_build_error.txt

  • Instead of removing the whole qtwayland, add this line to conf/local.conf and rebuild it without wayland-egl.

    PACKAGECONFIG_remove = "wayland-egl"