Git Product home page Git Product logo

meta-coral's People

Contributors

asac avatar benjydel avatar ftagius avatar kraj avatar mirzak 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

Watchers

 avatar  avatar  avatar  avatar

meta-coral's Issues

Loading glsvgoverlaysink gstreamer python module fails within the python OpenGL

Example error:

root@coral-dev:~# gst-inspect-1.0 python
Traceback (most recent call last):
  File "/usr/lib/gstreamer-1.0/python/glbox.py", line 28, in <module>
    from OpenGL.GLES3 import (
  File "/usr/lib/python3.7/site-packages/OpenGL/GLES3/__init__.py", line 2, in <module>
    from OpenGL.raw.GLES3._types import *
  File "/usr/lib/python3.7/site-packages/OpenGL/raw/GLES3/__init__.py", line 1, in <module>
    from OpenGL.raw.GLES3._types import *
  File "/usr/lib/python3.7/site-packages/OpenGL/raw/GLES3/_types.py", line 1, in <module>
    from OpenGL.raw.GLES2._types import *
  File "/usr/lib/python3.7/site-packages/OpenGL/raw/GLES2/_types.py", line 5, in <module>
    _error_checker = _ErrorChecker( _p, _p.GLES2.glGetError )
  File "/usr/lib/python3.7/site-packages/OpenGL/error.py", line 183, in __init__
    self._isValid = platform.CurrentContextIsValid
  File "/usr/lib/python3.7/site-packages/OpenGL/platform/baseplatform.py", line 15, in __get__
    value = self.fget( obj )
  File "/usr/lib/python3.7/site-packages/OpenGL/platform/baseplatform.py", line 356, in CurrentContextIsValid
    return self.GetCurrentContext
  File "/usr/lib/python3.7/site-packages/OpenGL/platform/baseplatform.py", line 15, in __get__
    value = self.fget( obj )
  File "/usr/lib/python3.7/site-packages/OpenGL/platform/glx.py", line 95, in GetCurrentContext
    return self.GL.glXGetCurrentContext
AttributeError: 'NoneType' object has no attribute 'glXGetCurrentContext'
Traceback (most recent call last):
  File "/usr/lib/gstreamer-1.0/python/glsvgoverlaysink.py", line 36, in <module>
    from OpenGL.GLES3 import (
  File "/usr/lib/python3.7/site-packages/OpenGL/GLES3/__init__.py", line 2, in <module>
    from OpenGL.raw.GLES3._types import *
  File "/usr/lib/python3.7/site-packages/OpenGL/raw/GLES3/__init__.py", line 1, in <module>
    from OpenGL.raw.GLES3._types import *
  File "/usr/lib/python3.7/site-packages/OpenGL/raw/GLES3/_types.py", line 1, in <module>
    from OpenGL.raw.GLES2._types import *
  File "/usr/lib/python3.7/site-packages/OpenGL/raw/GLES2/_types.py", line 5, in <module>
    _error_checker = _ErrorChecker( _p, _p.GLES2.glGetError )
  File "/usr/lib/python3.7/site-packages/OpenGL/error.py", line 183, in __init__
    self._isValid = platform.CurrentContextIsValid
  File "/usr/lib/python3.7/site-packages/OpenGL/platform/baseplatform.py", line 15, in __get__
    value = self.fget( obj )
  File "/usr/lib/python3.7/site-packages/OpenGL/platform/baseplatform.py", line 356, in CurrentContextIsValid
    return self.GetCurrentContext
  File "/usr/lib/python3.7/site-packages/OpenGL/platform/baseplatform.py", line 15, in __get__
    value = self.fget( obj )
  File "/usr/lib/python3.7/site-packages/OpenGL/platform/glx.py", line 95, in GetCurrentContext
    return self.GL.glXGetCurrentContext
AttributeError: 'NoneType' object has no attribute 'glXGetCurrentContext'

glsvgoverlaysink is needed to be able to run e.g the following command:

edgetpu_classify \
--source /dev/video1:YUY2:1920x1080:30/1 \
--model models/mobilenet_v2_1.0_224_quant_edgetpu.tflite \
--labels models/imagenet_labels.txt

Yocto Zeus support

Since Yocto version Zeus was mentioned in conf/layer.con I was trying to use it with the master branch of the project or the wip/release-day branch. In both cases, I was not able to make it compile successfully. Steps I took:

repo init -u https://github.com/Freescale/fsl-community-bsp-platform -b zeus
repo sync
git clone https://github.com/kraj/meta-clang.git sources/meta-clang -b zeus
git clone https://github.com/mirzak/meta-coral.git sources/meta-coral -b wip/release-day
MACHINE=coral-dev DISTRO=fslc-wayland source ./setup-environment build
echo 'BBLAYERS += "${BSPDIR}/sources/meta-clang"' >> conf/bblayers.conf
echo 'BBLAYERS += "${BSPDIR}/sources/meta-coral"' >> conf/bblayers.conf
bitbake core-image-base

I'm getting the following error message:

Sstate summary: Wanted 876 Found 0 Missed 876 Current 322 (0% match, 26% complete)
NOTE: Executing Tasks
NOTE: Setscene tasks completed
ERROR: optee-os-3.2.0.imx-r0 do_compile: oe_runmake failed
ERROR: optee-os-3.2.0.imx-r0 do_compile: Execution of '/home/jens/coral/build/tmp/work/coral_dev-fslc-linux/optee-os/3.2.0.imx-r0/temp/run.do_compile.9065' failed with exit code 1:
make: Entering directory '/home/jens/coral/build/tmp/work/coral_dev-fslc-linux/optee-os/3.2.0.imx-r0/git'
core/arch/arm/plat-imx/conf.mk:112: *** Unsupported PLATFORM_FLAVOR "oral-dev".  Stop.
make: Leaving directory '/home/jens/coral/build/tmp/work/coral_dev-fslc-linux/optee-os/3.2.0.imx-r0/git'
WARNING: exit code 1 from a shell command.

ERROR: Logfile of failure stored in: /home/jens/coral/build/tmp/work/coral_dev-fslc-linux/optee-os/3.2.0.imx-r0/temp/log.do_compile.9065
Log data follows:
| DEBUG: Executing python function autotools_aclocals
| DEBUG: SITE files ['endian-little', 'bit-64', 'arm-common', 'arm-64', 'common-linux', 'common-glibc', 'aarch64-linux', 'common']
| DEBUG: Python function autotools_aclocals finished
| DEBUG: Executing shell function do_compile
| NOTE: make -j 6 PLATFORM=imx PLATFORM_FLAVOR=oral-dev CROSS_COMPILE=aarch64-fslc-linux- CROSS_COMPILE64=aarch64-fslc-linux- NOWERROR=1 LDFLAGS= O=/home/jens/coral/build/tmp/work/coral_dev-fslc-linux/optee-os/3.2.0.imx-r0/build.oral-dev CFG_SECURE_DATA_PATH=y CFG_TEE_SDP_MEM_BASE=0xCC000000 CFG_TEE_SDP_MEM_SIZE=0x02000000 CFG_TEE_SDP_NONCACHE=y -C /home/jens/coral/build/tmp/work/coral_dev-fslc-linux/optee-os/3.2.0.imx-r0/git all CFG_TEE_TA_LOG_LEVEL=0
| make: Entering directory '/home/jens/coral/build/tmp/work/coral_dev-fslc-linux/optee-os/3.2.0.imx-r0/git'
| core/arch/arm/plat-imx/conf.mk:112: *** Unsupported PLATFORM_FLAVOR "oral-dev".  Stop.
| make: Leaving directory '/home/jens/coral/build/tmp/work/coral_dev-fslc-linux/optee-os/3.2.0.imx-r0/git'
| ERROR: oe_runmake failed
| WARNING: exit code 1 from a shell command.
| ERROR: Execution of '/home/jens/coral/build/tmp/work/coral_dev-fslc-linux/optee-os/3.2.0.imx-r0/temp/run.do_compile.9065' failed with exit code 1:
| make: Entering directory '/home/jens/coral/build/tmp/work/coral_dev-fslc-linux/optee-os/3.2.0.imx-r0/git'
| core/arch/arm/plat-imx/conf.mk:112: *** Unsupported PLATFORM_FLAVOR "oral-dev".  Stop.
| make: Leaving directory '/home/jens/coral/build/tmp/work/coral_dev-fslc-linux/optee-os/3.2.0.imx-r0/git'
| WARNING: exit code 1 from a shell command.
| 
ERROR: Task (/home/jens/coral/sources/meta-freescale/recipes-security/optee-imx/optee-os_3.2.0.imx.bb:do_compile) failed with exit code '1'
NOTE: Tasks Summary: Attempted 1622 tasks of which 1616 didn't need to be rerun and 1 failed.
NOTE: Writing buildhistory
NOTE: Writing buildhistory took: 1 seconds

Summary: 1 task failed:
  /home/jens/coral/sources/meta-freescale/recipes-security/optee-imx/optee-os_3.2.0.imx.bb:do_compile
Summary: There were 2 ERROR messages shown, returning a non-zero exit code.

The problem seems to be caused by meta-freescale/recipes-security/optee-imx/optee-os_3.2.0.imx.bb not correctly handling the new machine corel-dev. That file seems to check for machine ids that start with the prefix imx*. Then during compilation, file build/tmp/work/coral_dev-fslc-linux/optee-os/3.2.0.imx-r0/git/core/arch/arm/plat-imx/conf.mk does not support corel-dev and stops the build.

I'm trying to find ways to make it compile but I'm very new in Yocto development. @mirzak would you have ideas how to best add this support? Is the usual Yocto practice to add a patch into the meta-coral layer that makes changes to the recipee optee-imx/optee-os_3.2.0.imx and the source code it pulls in during compilation? I'd appreciate any kind of guidance.

ttymxc not available

Hi mirzak,

I installed coral-demo-image on my coral-dev board. When I try to use uart device the linux kernel return the error message

[ 9196.589990] imx-sdma 30bd0000.sdma: sdma firmware not ready!
[ 9196.595673] imx-uart 30890000.serial: Prepare for the RX slave dma failed!

Both ttymxc1 and ttymxc2 return the same error.

Improvements

This is a list of improvements that we should have look at to improve the quality of this layer. These are up for grabs, ping this ticket if you are interested to help out.

zeus branch doesn't boot on eMMC

It looks like the zeus branch is broken w.r.t eMMC boot support.

Steps:

  1. Follow the Quick start guide and setup the sources and build area
  2. make the following modifications to the conf/local.conf file
    UBOOT_CONFIG = "emmc"
    UBOOT_CONFIG[emmc] = "mx8mq_phanbell_defconfig,sdcard"

The build is success.

Flashing:

  1. Interrupt u-boot (boot from sd-card) and enter ums 0 mmc 0
  2. dd the .wic.gz image to the enumerated disk
  3. Ctrl+C at uboot prompt and enter fastboot 0
  4. fastboot flash bootloader0 imx-boot
  5. change the dip switches to boot from MMC

Additional Info:
The above procedure works well for warrior branch.

imx-boot missing when building core-image-base

Testing a build on yocto/master, imx-boot does not get build when running:

bitbake core-image-base

Fails with:

Details

ERROR: core-image-base-1.0-r0 do_image_wic: ExecutionError('/home/ubuntu/src/coral/build/tmp/work/coral_dev-fslc-linux/core-image-base/1.0/temp/run.do_image_wic.1008013', 1, None, None)
ERROR: Logfile of failure stored in: /home/ubuntu/src/coral/build/tmp/work/coral_dev-fslc-linux/core-image-base/1.0/temp/log.do_image_wic.1008013
Log data follows:
| DEBUG: Executing python function extend_recipe_sysroot
| NOTE: Direct dependencies are ['/home/ubuntu/src/coral/sources/meta-coral/recipes-bsp/u-boot/u-boot-coral_2019.04.bb:do_populate_sysroot', '/home/ubuntu/src/coral/sources/poky/meta/recipes-core/glibc/cross-localedef-native_2.39.bb:do_populate_sysroot', '/home/ubuntu/src/coral/sources/poky/meta/recipes-core/glibc/ldconfig-native_2.12.1.bb:do_populate_sysroot', '/home/ubuntu/src/coral/sources/poky/meta/recipes-devtools/qemu/qemuwrapper-cross_1.0.bb:do_populate_sysroot', '/home/ubuntu/src/coral/sources/poky/meta/recipes-kernel/kmod/depmodwrapper-cross_1.0.bb:do_populate_sysroot', 'virtual:native:/home/ubuntu/src/coral/sources/poky/meta/recipes-core/update-rc.d/update-rc.d_0.8.bb:do_populate_sysroot', 'virtual:native:/home/ubuntu/src/coral/sources/poky/meta/recipes-devtools/createrepo-c/createrepo-c_1.1.0.bb:do_populate_sysroot', 'virtual:native:/home/ubuntu/src/coral/sources/poky/meta/recipes-devtools/dnf/dnf_4.19.2.bb:do_populate_sysroot', 'virtual:native:/home/ubuntu/src/coral/sources/poky/meta/recipes-devtools/dosfstools/dosfstools_4.2.bb:do_populate_sysroot', 'virtual:native:/home/ubuntu/src/coral/sources/poky/meta/recipes-devtools/e2fsprogs/e2fsprogs_1.47.0.bb:do_populate_sysroot', 'virtual:native:/home/ubuntu/src/coral/sources/poky/meta/recipes-devtools/fdisk/gptfdisk_1.0.10.bb:do_populate_sysroot', 'virtual:native:/home/ubuntu/src/coral/sources/poky/meta/recipes-devtools/makedevs/makedevs_1.0.1.bb:do_populate_sysroot', 'virtual:native:/home/ubuntu/src/coral/sources/poky/meta/recipes-devtools/mtools/mtools_4.0.43.bb:do_populate_sysroot', 'virtual:native:/home/ubuntu/src/coral/sources/poky/meta/recipes-devtools/opkg-utils/opkg-utils_0.6.3.bb:do_populate_sysroot', 'virtual:native:/home/ubuntu/src/coral/sources/poky/meta/recipes-devtools/pseudo/pseudo_git.bb:do_populate_sysroot', 'virtual:native:/home/ubuntu/src/coral/sources/poky/meta/recipes-devtools/rpm/rpm_4.19.1.1.bb:do_populate_sysroot', 'virtual:native:/home/ubuntu/src/coral/sources/poky/meta/recipes-extended/parted/parted_3.6.bb:do_populate_sysroot', 'virtual:native:/home/ubuntu/src/coral/sources/poky/meta/recipes-extended/pigz/pigz_2.8.bb:do_populate_sysroot', 'virtual:native:/home/ubuntu/src/coral/sources/poky/meta/recipes-support/bmaptool/bmaptool_git.bb:do_populate_sysroot']
| NOTE: Installed into sysroot: ['dosfstools-native', 'gptfdisk-native', 'mtools-native', 'parted-native']
| NOTE: Skipping as already exists in sysroot: ['coral-boot-script', 'u-boot-coral', 'gettext-minimal-native', 'cross-localedef-native', 'glibc', 'ldconfig-native', 'cmake-native', 'gcc-runtime', 'libgcc', 'libtool-native', 'm4-native', 'qemu-native', 'qemuwrapper-cross', 'texinfo-dummy-native', 'depmodwrapper-cross', 'linux-libc-headers', 'openssl-native', 'coreutils-native', 'expat-native', 'gettext-native', 'glib-2.0-native', 'libxml2-native', 'ncurses-native', 'readline-native', 'update-rc.d-native', 'util-linux-libuuid-native', 'util-linux-native', 'zlib-native', 'createrepo-c-native', 'dnf-native', 'e2fsprogs-native', 'elfutils-native', 'file-native', 'flex-native', 'gnu-config-native', 'json-c-native', 'libcomps-native', 'libdnf-native', 'libedit-native', 'libmodulemd-native', 'librepo-native', 'lua-native', 'make-native', 'makedevs-native', 'opkg-utils-native', 'perl-native', 'pseudo-native', 'python3-build-native', 'python3-flit-core-native', 'python3-iniparse-native', 'python3-installer-native', 'python3-packaging-native', 'python3-pyproject-hooks-native', 'python3-setuptools-native', 'python3-six-native', 'python3-wheel-native', 'python3-native', 'rpm-native', 'swig-native', 'bzip2-native', 'libarchive-native', 'libidn2-native', 'libnsl2-native', 'libsolv-native', 'libtirpc-native', 'lzlib-native', 'pigz-native', 'shadow-native', 'unzip-native', 'xz-native', 'zstd-native', 'gobject-introspection-native', 'kmod-native', 'acl-native', 'attr-native', 'bmaptool-native', 'curl-native', 'debianutils-native', 'gdbm-native', 'gmp-native', 'gnutls-native', 'libtasn1-native', 'gpgme-native', 'itstool-native', 'libassuan-native', 'libbsd-native', 'libcap-ng-native', 'libcap-native', 'libcheck-native', 'libffi-native', 'libgcrypt-native', 'libgpg-error-native', 'libmd-native', 'libmicrohttpd-native', 'libpcre2-native', 'libunistring-native', 'libyaml-native', 'nettle-native', 'popt-native', 'shared-mime-info-native', 'sqlite3-native']
| DEBUG: Python function extend_recipe_sysroot finished
| DEBUG: Executing python function set_image_size
| DEBUG: 708692.400000 = 545148 * 1.300000
| DEBUG: 708692.400000 = max(708692.400000, 65536)[708692.400000] + 0
| DEBUG: 708693.000000 = int(708692.400000)
| DEBUG: 708693 = aligned(708693)
| DEBUG: returning 708693
| DEBUG: Python function set_image_size finished
| DEBUG: Executing shell function do_image_wic
| INFO: Creating image(s)...
| 
| Traceback (most recent call last):
|   File "/home/ubuntu/src/coral/sources/poky/scripts/lib/wic/filemap.py", line 136, in _open_image_file
|     self._f_image = open(self._image_path, 'rb')
|                     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
| FileNotFoundError: [Errno 2] No such file or directory: '/home/ubuntu/src/coral/build/tmp/deploy/images/coral-dev/imx-boot'
| 
| During handling of the above exception, another exception occurred:
| 
| Traceback (most recent call last):
|   File "/home/ubuntu/src/coral/sources/poky/scripts/wic", line 547, in <module>
|     sys.exit(main(sys.argv[1:]))
|              ^^^^^^^^^^^^^^^^^^
|   File "/home/ubuntu/src/coral/sources/poky/scripts/wic", line 542, in main
|     return hlp.invoke_subcommand(args, parser, hlp.wic_help_usage, subcommands)
|            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|   File "/home/ubuntu/src/coral/sources/poky/scripts/lib/wic/help.py", line 83, in invoke_subcommand
|     subcmd[0](args, usage)
|   File "/home/ubuntu/src/coral/sources/poky/scripts/wic", line 222, in wic_create_subcommand
|     engine.wic_create(wks_file, rootfs_dir, bootimg_dir, kernel_dir,
|   File "/home/ubuntu/src/coral/sources/poky/scripts/lib/wic/engine.py", line 190, in wic_create
|     plugin.do_create()
|   File "/home/ubuntu/src/coral/sources/poky/scripts/lib/wic/plugins/imager/direct.py", line 98, in do_create
|     self.create()
|   File "/home/ubuntu/src/coral/sources/poky/scripts/lib/wic/plugins/imager/direct.py", line 186, in create
|     self._image.prepare(self)
|   File "/home/ubuntu/src/coral/sources/poky/scripts/lib/wic/plugins/imager/direct.py", line 367, in prepare
|     part.prepare(imager, imager.workdir, imager.oe_builddir,
|   File "/home/ubuntu/src/coral/sources/poky/scripts/lib/wic/partition.py", line 188, in prepare
|     plugin.do_prepare_partition(self, srcparams_dict, creator,
|   File "/home/ubuntu/src/coral/sources/poky/scripts/lib/wic/plugins/source/rawcopy.py", line 102, in do_prepare_partition
|     sparse_copy(src, dst)
|   File "/home/ubuntu/src/coral/sources/poky/scripts/lib/wic/filemap.py", line 534, in sparse_copy
|     fmap = api(src_fname)
|            ^^^^^^^^^^^^^^
|   File "/home/ubuntu/src/coral/sources/poky/scripts/lib/wic/filemap.py", line 513, in filemap
|     return FilemapFiemap(image, log)
|            ^^^^^^^^^^^^^^^^^^^^^^^^^
|   File "/home/ubuntu/src/coral/sources/poky/scripts/lib/wic/filemap.py", line 330, in __init__
|     _FilemapBase.__init__(self, image, log)
|   File "/home/ubuntu/src/coral/sources/poky/scripts/lib/wic/filemap.py", line 95, in __init__
|     self._open_image_file()
|   File "/home/ubuntu/src/coral/sources/poky/scripts/lib/wic/filemap.py", line 138, in _open_image_file
|     raise Error("cannot open image file '%s': %s"
| wic.filemap.Error: cannot open image file '/home/ubuntu/src/coral/build/tmp/deploy/images/coral-dev/imx-boot': [Errno 2] No such file or directory: '/home/ubuntu/src/coral/build/tmp/deploy/images/coral-dev/imx-boot'
| WARNING: exit code 1 from a shell command.
ERROR: Task (/home/ubuntu/src/coral/sources/poky/meta/recipes-core/images/core-image-base.bb:do_image_wic) failed with exit code '1'

Possible to workaround with:

bitbake imx-boot && bitbake core-image-base

bitbake core-image-base failure

Hi,

I followed the quickstart guide but the bitbake core-image-base failed with ERROR: Task (/home/shazz/projects/coral-yocto/coral/sources/meta-coral/recipes-kernel/linux/linux-coral_5.4.bb:do_patch) failed with exit code '1'

any idea what could be wrong?

Thanks! Really cool to see a replacement for Mendel Linux!

details:

Sstate summary: Wanted 1491 Local 0 Mirrors 0 Missed 1491 Current 1650 (0% match, 52% complete)############################################################               | ETA:  0:00:00
Initialising tasks: 100% |################################################################################################################################################| Time: 0:00:05
NOTE: Executing Tasks
ERROR: linux-coral-5.4.237+git-r0 do_patch: QA Issue: Missing Upstream-Status in patch
/home/shazz/projects/coral-yocto/coral/sources/meta-coral/recipes-kernel/linux/linux-coral-5.4/0001-regulator-bd718x7-Add-MODULE_ALIAS.patch
Please add according to https://docs.yoctoproject.org/contributor-guide/recipe-style-guide.html#patch-upstream-status . [patch-status]
ERROR: linux-coral-5.4.237+git-r0 do_patch: QA Issue: Missing Upstream-Status in patch
/home/shazz/projects/coral-yocto/coral/sources/meta-coral/recipes-kernel/linux/linux-coral-5.4/0002-regulator-bd718x7-Simplify-the-code-by-removing-stru.patch
Please add according to https://docs.yoctoproject.org/contributor-guide/recipe-style-guide.html#patch-upstream-status . [patch-status]
ERROR: linux-coral-5.4.237+git-r0 do_patch: QA Issue: Missing Upstream-Status in patch
/home/shazz/projects/coral-yocto/coral/sources/meta-coral/recipes-kernel/linux/linux-coral-5.4/0003-mfd-Rohm-PMICs-Use-platform_device_id-to-match-MFD-s.patch
Please add according to https://docs.yoctoproject.org/contributor-guide/recipe-style-guide.html#patch-upstream-status . [patch-status]
ERROR: linux-coral-5.4.237+git-r0 do_patch: QA Issue: Missing Upstream-Status in patch
/home/shazz/projects/coral-yocto/coral/sources/meta-coral/recipes-kernel/linux/linux-coral-5.4/0004-regulator-bd718x7-Split-driver-to-common-and-bd718x7.patch
Please add according to https://docs.yoctoproject.org/contributor-guide/recipe-style-guide.html#patch-upstream-status . [patch-status]
ERROR: linux-coral-5.4.237+git-r0 do_patch: QA Issue: Missing Upstream-Status in patch
/home/shazz/projects/coral-yocto/coral/sources/meta-coral/recipes-kernel/linux/linux-coral-5.4/0005-regulator-bd718x7-remove-voltage-change-restriction-.patch
Please add according to https://docs.yoctoproject.org/contributor-guide/recipe-style-guide.html#patch-upstream-status . [patch-status]
ERROR: linux-coral-5.4.237+git-r0 do_patch: QA Issue: Missing Upstream-Status in patch
/home/shazz/projects/coral-yocto/coral/sources/meta-coral/recipes-kernel/linux/linux-coral-5.4/0006-arm64-dts-freescale-add-initial-support-for-Google-i.patch
Please add according to https://docs.yoctoproject.org/contributor-guide/recipe-style-guide.html#patch-upstream-status . [patch-status]
ERROR: linux-coral-5.4.237+git-r0 do_patch: QA Issue: Missing Upstream-Status in patch
/home/shazz/projects/coral-yocto/coral/sources/meta-coral/recipes-kernel/linux/linux-coral-5.4/0007-arm64-dts-imx8mq-phanbell-Add-support-for-ethernet.patch
Please add according to https://docs.yoctoproject.org/contributor-guide/recipe-style-guide.html#patch-upstream-status . [patch-status]
ERROR: linux-coral-5.4.237+git-r0 do_patch: QA Issue: Missing Upstream-Status in patch
/home/shazz/projects/coral-yocto/coral/sources/meta-coral/recipes-kernel/linux/linux-coral-5.4/0008-arm64-dts-imx8mq-phanbell-Add-gpio-fan-thermal-suppo.patch
Please add according to https://docs.yoctoproject.org/contributor-guide/recipe-style-guide.html#patch-upstream-status . [patch-status]
ERROR: linux-coral-5.4.237+git-r0 do_patch: QA Issue: Missing Upstream-Status in patch
/home/shazz/projects/coral-yocto/coral/sources/meta-coral/recipes-kernel/linux/linux-coral-5.4/0009-arm64-dts-imx8mq-phanbell-Fix-Ethernet-PHY-post-rese.patch
Please add according to https://docs.yoctoproject.org/contributor-guide/recipe-style-guide.html#patch-upstream-status . [patch-status]
ERROR: linux-coral-5.4.237+git-r0 do_patch: QA Issue: Missing Upstream-Status in patch
/home/shazz/projects/coral-yocto/coral/sources/meta-coral/recipes-kernel/linux/linux-coral-5.4/0010-arm64-dts-imx8mq-phanbell-Replace-deprecated-phy-res.patch
Please add according to https://docs.yoctoproject.org/contributor-guide/recipe-style-guide.html#patch-upstream-status . [patch-status]
ERROR: linux-coral-5.4.237+git-r0 do_patch: QA Issue: Missing Upstream-Status in patch
/home/shazz/projects/coral-yocto/coral/sources/meta-coral/recipes-kernel/linux/linux-coral-5.4/0011-arm64-dts-imx8mq-phanbell-Align-pin-configuration-gr.patch
Please add according to https://docs.yoctoproject.org/contributor-guide/recipe-style-guide.html#patch-upstream-status . [patch-status]
ERROR: linux-coral-5.4.237+git-r0 do_patch: QA Issue: Missing Upstream-Status in patch
/home/shazz/projects/coral-yocto/coral/sources/meta-coral/recipes-kernel/linux/linux-coral-5.4/0012-arm64-dts-imx8mq-phanbell-Disable-busfreq-to-avoid-s.patch
Please add according to https://docs.yoctoproject.org/contributor-guide/recipe-style-guide.html#patch-upstream-status . [patch-status]
ERROR: linux-coral-5.4.237+git-r0 do_patch: QA Issue: Missing Upstream-Status in patch
/home/shazz/projects/coral-yocto/coral/sources/meta-coral/recipes-kernel/linux/linux-coral-5.4/0013-MLK-15307-2-clk-imx8mq-set-the-parent-clocks-of-PCIE.patch
Please add according to https://docs.yoctoproject.org/contributor-guide/recipe-style-guide.html#patch-upstream-status . [patch-status]
ERROR: linux-coral-5.4.237+git-r0 do_patch: QA Issue: Missing Upstream-Status in patch
/home/shazz/projects/coral-yocto/coral/sources/meta-coral/recipes-kernel/linux/linux-coral-5.4/0014-arm64-dts-imx8mq-Set-ext_osc-to-1-as-default.patch
Please add according to https://docs.yoctoproject.org/contributor-guide/recipe-style-guide.html#patch-upstream-status . [patch-status]
ERROR: linux-coral-5.4.237+git-r0 do_patch: QA Issue: Missing Upstream-Status in patch
/home/shazz/projects/coral-yocto/coral/sources/meta-coral/recipes-kernel/linux/linux-coral-5.4/0015-PCI-imx-Use-the-external-clock-as-REF_CLK-when-neede.patch
Please add according to https://docs.yoctoproject.org/contributor-guide/recipe-style-guide.html#patch-upstream-status . [patch-status]
ERROR: linux-coral-5.4.237+git-r0 do_patch: QA Issue: Missing Upstream-Status in patch
/home/shazz/projects/coral-yocto/coral/sources/meta-coral/recipes-kernel/linux/linux-coral-5.4/0016-PCI-imx-Provide-a-clock-to-the-device-for-i.MX8MQ.patch
Please add according to https://docs.yoctoproject.org/contributor-guide/recipe-style-guide.html#patch-upstream-status . [patch-status]
ERROR: linux-coral-5.4.237+git-r0 do_patch: QA Issue: Missing Upstream-Status in patch
/home/shazz/projects/coral-yocto/coral/sources/meta-coral/recipes-kernel/linux/linux-coral-5.4/0017-arm64-dts-imx8mq-phanbell-Enable-PCIe.patch
Please add according to https://docs.yoctoproject.org/contributor-guide/recipe-style-guide.html#patch-upstream-status . [patch-status]
ERROR: linux-coral-5.4.237+git-r0 do_patch: QA Issue: Missing Upstream-Status in patch
/home/shazz/projects/coral-yocto/coral/sources/meta-coral/recipes-kernel/linux/linux-coral-5.4/0018-spi-spi-imx-Revive-cs-gpios-property-for-DT.patch
Please add according to https://docs.yoctoproject.org/contributor-guide/recipe-style-guide.html#patch-upstream-status . [patch-status]
ERROR: linux-coral-5.4.237+git-r0 do_patch: QA Issue: Missing Upstream-Status in patch
/home/shazz/projects/coral-yocto/coral/sources/meta-coral/recipes-kernel/linux/linux-coral-5.4/0019-arm64-dts-imx8mq-phanbell-Enable-ECSPI1.patch
Please add according to https://docs.yoctoproject.org/contributor-guide/recipe-style-guide.html#patch-upstream-status . [patch-status]
ERROR: linux-coral-5.4.237+git-r0 do_patch: QA Issue: Missing Upstream-Status in patch
/home/shazz/projects/coral-yocto/coral/sources/meta-coral/recipes-kernel/linux/linux-coral-5.4/0020-arm64-dts-imx8mq-phanbell-Add-gpio-pinmux-for-40-pin.patch
Please add according to https://docs.yoctoproject.org/contributor-guide/recipe-style-guide.html#patch-upstream-status . [patch-status]
ERROR: linux-coral-5.4.237+git-r0 do_patch: QA Issue: Missing Upstream-Status in patch
/home/shazz/projects/coral-yocto/coral/sources/meta-coral/recipes-kernel/linux/linux-coral-5.4/0021-arm64-dts-imx8mq-phanbell-Enable-I2C-2-I2C-3.patch
Please add according to https://docs.yoctoproject.org/contributor-guide/recipe-style-guide.html#patch-upstream-status . [patch-status]
ERROR: linux-coral-5.4.237+git-r0 do_patch: Fatal QA errors were found, failing task.
ERROR: Logfile of failure stored in: /home/shazz/projects/coral-yocto/coral/build/tmp/work/coral_dev-fslc-linux/linux-coral/5.4.237+git/temp/log.do_patch.961507
ERROR: Task (/home/shazz/projects/coral-yocto/coral/sources/meta-coral/recipes-kernel/linux/linux-coral_5.4.bb:do_patch) failed with exit code '1'
NOTE: Tasks Summary: Attempted 3553 tasks of which 3549 didn't need to be rerun and 1 failed.
NOTE: Writing buildhistory
NOTE: Writing buildhistory took: 2 seconds

Summary: 1 task failed:
  /home/shazz/projects/coral-yocto/coral/sources/meta-coral/recipes-kernel/linux/linux-coral_5.4.bb:do_patch
Summary: There were 22 ERROR messages, returning a non-zero exit code.

Board does not boot when testing against zeus

Prints and halts,

U-Boot SPL 2017.03.4-release-day+g8523a101cd (Apr 04 2020 - 20:15:07)
power_bd71837_init
pmic debug: name=BD71837
Board id: 2
check ddr4_pmu_train_imem code
check ddr4_pmu_train_imem code pass
check ddr4_pmu_train_dmem code
check ddr4_pmu_train_dmem code pass
Training PASS
check ddr4_pmu_train_imem code
check ddr4_pmu_train_imem code pass
check ddr4_pmu_train_dmem code
check ddr4_pmu_train_dmem code pass
Training PASS
check ddr4_pmu_train_imem code
check ddr4_pmu_train_imem code pass
check ddr4_pmu_train_dmem code
check ddr4_pmu_train_dmem code pass
Training PASS
Normal Boot
Trying to boot from MMC2
hdr read sector 300, count=1

weston won't start

I'm unable to figure out what is wrong, but the weston service seems to have issues

root@coral-dev:~# systemctl status weston
โ— weston.service - Weston Wayland Compositor (on tty7)
   Loaded: loaded (/lib/systemd/system/weston.service; enabled; vendor preset: >
   Active: failed (Result: exit-code) since Sun 2019-08-25 03:12:16 UTC; 4min 3>

trying to manually start with weston --tty=x fails (tried variety of values for x)

[     1] Failed to open device: No such file or directory, Try again...

I did notice the mendel install uses weston 3.0 and freescale (this layer) uses 4.0 but unclear why that should matter unless something in kernel/device tree is the issue.

camera device tree incompatibility

The camera driver seems to be having issues picking up parameters from the device tree. This is from a gst-launch-1.0

[  393.944015] mxc-mipi-csi2_yav 30a70000.mipi_csi1: no csis-hw-reset property found

I see identical probe results from yocto and mendel

[    7.936398] camera ov5645_mipi is found
[    7.947331] mxc-mipi-csi2_yav 30a70000.mipi_csi1: mipi_csi2_probe
[    7.959786] CSI: Registered sensor subdevice: mxc-mipi-csi2.0
[    7.971892] mxc-mipi-csi2_yav 30a70000.mipi_csi: Remote device at /mipi_csi1@
30a70000/port/endpoint1 XXX found
[    7.988353] mxc-mipi-csi2_yav 30a70000.mipi_csi: Registered sensor subdevice:
 ov5645_mipi 1-003c
[    8.003694] mxc-mipi-csi2_yav 30a70000.mipi_csi1: lanes: 2, name: mxc-mipi-cs
i2.0

I have no clue why csis-phy-reset can't get picked up, which by looking at the kernel source is needed prior to start streaming.

This is the relevant driver code

static int mxc_mipi_csi2_phy_reset(struct mxc_mipi_csi2_dev *csi2dev)
{
  struct device *dev = &csi2dev->pdev->dev;
  struct device_node *np = dev->of_node;
  struct device_node *node;
  phandle phandle;
  u32 out_val[3];
  int ret;

  ret = of_property_read_u32_array(np, "csis-phy-reset", out_val, 3);
  if (ret) {
    dev_info(dev, "no csis-hw-reset property found\n");
  } else {

Known good setup

Hi Mirza,

Thanks for implementing this! I'm trying to get a basic setup where I can test the latest ML release (as you have in a bug, pulling from GitHub). The README mentions using the Master branches for my manifest but I see you have bugs in Zues.

Should I expect this to work at master? If not, should I be using warrior? On master I see coral layer concerns (without adding dunfell to layer.conf compat) as well as dtc-145 issues in u-boot-coral_2017.03.bb (and I'm still slogging through to try to get it all working).

Thanks!

Missing gstreamer1.0-plugins-base introspection files (.typelib)

The error typically manifests it self in something like this,

root@coral-dev:~# gst-inspect-1.0 python
Traceback (most recent call last):
  File "/usr/lib/gstreamer-1.0/python/glbox.py", line 23, in <module>
    gi.require_version('GstGL', '1.0')
  File "/usr/lib/python3.7/site-packages/gi/__init__.py", line 129, in require_version
    raise ValueError('Namespace %s not available' % namespace)
ValueError: Namespace GstGL not available
Traceback (most recent call last):
  File "/usr/lib/gstreamer-1.0/python/glsvgoverlaysrc.py", line 28, in <module>
    gi.require_version('GstVideo', '1.0')
  File "/usr/lib/python3.7/site-packages/gi/__init__.py", line 129, in require_version
    raise ValueError('Namespace %s not available' % namespace)
ValueError: Namespace GstVideo not available
Traceback (most recent call last):
  File "/usr/lib/gstreamer-1.0/python/glsvgoverlaysink.py", line 29, in <module>
    gi.require_version('GstAllocators', '1.0')
  File "/usr/lib/python3.7/site-packages/gi/__init__.py", line 129, in require_version
    raise ValueError('Namespace %s not available' % namespace)
ValueError: Namespace GstAllocators not available

We can also clearly see that they are missing if we try to search for them:

root@coral-dev:~# find / -name *.typelib | grep Gst                                                                   
/usr/lib/girepository-1.0/GstCheck-1.0.typelib
/usr/lib/girepository-1.0/GstBase-1.0.typelib
/usr/lib/girepository-1.0/GstController-1.0.typelib
/usr/lib/girepository-1.0/Gst-1.0.typelib
/usr/lib/girepository-1.0/GstNet-1.0.typelib

The GstGL, GstVideo and GstAllocators are typically provided by the gstreamer1.0-plugins-base package.

But we are using gstreamer1.0-plugins-base_1.14.imx which has disabled introspection due to an build error as can be seen here

Pretty much all the demo applications that relate to video streams provided by Coral rely on gstreamer introspection files.

I have looked at how this is built in Mendel OS, but it also has disabled introspection as can be seen here. So I think they only way this can work in Mendel OS is because introspection files are provided as separate package, gir1.2-gst-plugins-base-1.0.

So my conclusion is that the typelib files used in Mendel OS are not built from the gstreamer1.0-plugins-base_1.14.imx and instead are using the upstream files of the same package.

Need to figure out a workaround for this in Yocto.

Build error "qemu-native-3.1.1.1-r0".

I got errors related to "qemu-native-3.1.1.1-r0" while building.
It is unusual to see errors from library source codes while bitbaking, please help.

myusername@myusername-desktop:~/Desktop/coral_BAK/coral$ bitbake core-image-base -k
WARNING: Host distribution "ubuntu-20.04" has not been validated with this version of the build system; you may possibly experience unexpected failures. It is recommended that you use a tested distribution.
Loading cache: 100% |##################################################################################################################################################################| Time: 0:00:02
Loaded 2491 entries from dependency cache.
NOTE: Resolving any missing task queue dependencies

Build Configuration:
BB_VERSION           = "1.42.0"
BUILD_SYS            = "x86_64-linux"
NATIVELSBSTRING      = "universal"
TARGET_SYS           = "aarch64-fslc-linux"
MACHINE              = "coral-dev"
DISTRO               = "fslc-wayland"
DISTRO_VERSION       = "2.7"
TUNE_FEATURES        = "aarch64"
TARGET_FPU           = ""
meta                 
meta-poky            = "HEAD:d4b57c68b22027c2bedff335dee06af963e4f8a8"
meta-oe              
meta-multimedia      = "HEAD:a24acf94d48d635eca668ea34598c6e5c857e3f8"
meta-freescale       = "HEAD:2ee3f2a9f254adab6a6d42a6e3085d05fbc8ac07"
meta-freescale-3rdparty = "HEAD:1e374913b737ae24934f799cc3592a05247a3c29"
meta-freescale-distro = "HEAD:d4e77ea682fa10d0d54a723b3d3099c44fc5e95c"
meta-clang           = "warrior:8f4080a2afa24fdd9df051a5707a38e0af38dd17"
meta-coral           = "warrior:4af044414d361b3acb6c557572c50004f54e3ffb"

Initialising tasks: 100% |#############################################################################################################################################################| Time: 0:00:05
Sstate summary: Wanted 93 Found 0 Missed 93 Current 1102 (0% match, 92% complete)
NOTE: Executing SetScene Tasks
NOTE: Executing RunQueue Tasks
ERROR: qemu-native-3.1.1.1-r0 do_compile: oe_runmake failed
ERROR: qemu-native-3.1.1.1-r0 do_compile: Function failed: do_compile (log file is located at /home/myusername/Desktop/coral_BAK/coral/build/tmp/work/x86_64-linux/qemu-native/3.1.1.1-r0/temp/log.do_compile.2264683)
ERROR: Logfile of failure stored in: /home/myusername/Desktop/coral_BAK/coral/build/tmp/work/x86_64-linux/qemu-native/3.1.1.1-r0/temp/log.do_compile.2264683
Log data follows:
| DEBUG: Executing shell function do_compile
| NOTE: make -j 4 LD=ld  AR=ar OBJCOPY=objcopy LDFLAGS=-L/home/myusername/Desktop/coral_BAK/coral/build/tmp/work/x86_64-linux/qemu-native/3.1.1.1-r0/recipe-sysroot-native/usr/lib                         -L/home/myusername/Desktop/coral_BAK/coral/build/tmp/work/x86_64-linux/qemu-native/3.1.1.1-r0/recipe-sysroot-native/lib                         -Wl,--enable-new-dtags                         -Wl,-rpath-link,/home/myusername/Desktop/coral_BAK/coral/build/tmp/work/x86_64-linux/qemu-native/3.1.1.1-r0/recipe-sysroot-native/usr/lib                         -Wl,-rpath-link,/home/myusername/Desktop/coral_BAK/coral/build/tmp/work/x86_64-linux/qemu-native/3.1.1.1-r0/recipe-sysroot-native/lib                         -Wl,-rpath,/home/myusername/Desktop/coral_BAK/coral/build/tmp/work/x86_64-linux/qemu-native/3.1.1.1-r0/recipe-sysroot-native/usr/lib                         -Wl,-rpath,/home/myusername/Desktop/coral_BAK/coral/build/tmp/work/x86_64-linux/qemu-native/3.1.1.1-r0/recipe-sysroot-native/lib                         -Wl,-O1 -Wl,--allow-shlib-undefined -Wl,--dynamic-linker=/home/myusername/Desktop/coral_BAK/coral/build/tmp/sysroots-uninative/x86_64-linux/lib/ld-linux-x86-64.so.2 -fuse-ld=bfd
|   LINK    mips-linux-user/qemu-mips
|   LINK    i386-linux-user/qemu-i386
|   LINK    arm-linux-user/qemu-arm
|   LINK    mipsel-linux-user/qemu-mipsel
| /home/myusername/Desktop/coral_BAK/coral/build/tmp/hosttools/ld.bfd: linux-user/syscall.o: in function `do_syscall1':
| /home/myusername/Desktop/coral_BAK/coral/build/tmp/work/x86_64-linux/qemu-native/3.1.1.1-r0/qemu-3.1.1.1/linux-user/syscall.c:7404: undefined reference to `stime'
| /home/myusername/Desktop/coral_BAK/coral/build/tmp/hosttools/ld.bfd: linux-user/syscall.o: in function `do_syscall1':
| /home/myusername/Desktop/coral_BAK/coral/build/tmp/work/x86_64-linux/qemu-native/3.1.1.1-r0/qemu-3.1.1.1/linux-user/syscall.c:7404: undefined reference to `stime'
| collect2: error: ld returned 1 exit status
| collect2: error: ld returned 1 exit status
| make[1]: *** [Makefile:199: qemu-i386] Error 1
| make: *** [Makefile:483: subdir-i386-linux-user] Error 2
| make: *** Waiting for unfinished jobs....
| make[1]: *** [Makefile:199: qemu-mipsel] Error 1
| make: *** [Makefile:483: subdir-mipsel-linux-user] Error 2
| /home/myusername/Desktop/coral_BAK/coral/build/tmp/hosttools/ld.bfd: linux-user/syscall.o: in function `do_syscall1':
| /home/myusername/Desktop/coral_BAK/coral/build/tmp/work/x86_64-linux/qemu-native/3.1.1.1-r0/qemu-3.1.1.1/linux-user/syscall.c:7404: undefined reference to `stime'
| collect2: error: ld returned 1 exit status
| make[1]: *** [Makefile:199: qemu-mips] Error 1
| make: *** [Makefile:483: subdir-mips-linux-user] Error 2
| /home/myusername/Desktop/coral_BAK/coral/build/tmp/hosttools/ld.bfd: linux-user/syscall.o: in function `do_syscall1':
| /home/myusername/Desktop/coral_BAK/coral/build/tmp/work/x86_64-linux/qemu-native/3.1.1.1-r0/qemu-3.1.1.1/linux-user/syscall.c:7404: undefined reference to `stime'
| collect2: error: ld returned 1 exit status
| make[1]: *** [Makefile:199: qemu-arm] Error 1
| make: *** [Makefile:483: subdir-arm-linux-user] Error 2
| ERROR: oe_runmake failed
| WARNING: exit code 1 from a shell command.
| ERROR: Function failed: do_compile (log file is located at /home/myusername/Desktop/coral_BAK/coral/build/tmp/work/x86_64-linux/qemu-native/3.1.1.1-r0/temp/log.do_compile.2264683)
ERROR: Task (/home/myusername/Desktop/coral_BAK/coral/sources/poky/meta/recipes-devtools/qemu/qemu-native_3.1.1.1.bb:do_compile) failed with exit code '1'
NOTE: Tasks Summary: Attempted 3251 tasks of which 3250 didn't need to be rerun and 1 failed.
NOTE: Writing buildhistory

Summary: 1 task failed:
  /home/myusername/Desktop/coral_BAK/coral/sources/poky/meta/recipes-devtools/qemu/qemu-native_3.1.1.1.bb:do_compile
Summary: There was 1 WARNING message shown.
Summary: There were 2 ERROR messages shown, returning a non-zero exit code.

source of u-boot

@mirzak this isn't an issue, just some confusion. i'm trying to use your generated u-boot but then pull my devicetree/kernel off the network via tftp.

I noticed that the wic.gz creates a boot partition with a boot.scr, Image file, and a few dtbs. Where is u-boot?

I found that I can't even overwrite the bootcmd u-bboot env variable unless the Image file is there, which is really odd. But, isn't Image just the kernel?

sorry if this is not relevant to the layer and feel free to close if it's not.

Yocto Warrior fails compiling

As mentioned in #12, I was also unable to compile using Yocto Warrior.
Steps to reproduce:

repo init -u https://github.com/Freescale/fsl-community-bsp-platform -b warrior
repo sync
git clone https://github.com/kraj/meta-clang.git sources/meta-clang -b warrior
git clone https://github.com/mirzak/meta-coral.git sources/meta-coral -b master
MACHINE=coral-dev DISTRO=fslc-wayland source ./setup-environment build
echo 'BBLAYERS += "${BSPDIR}/sources/meta-clang"' >> conf/bblayers.conf
echo 'BBLAYERS += "${BSPDIR}/sources/meta-coral"' >> conf/bblayers.conf
bitbake core-image-base

The error I'm getting is:

ERROR: clang-native-8.0.1-r0 do_compile: Function failed: do_compile (log file is located at /home/jens/coral/build/tmp/work/x86_64-linux/clang-native/8.0.1-r0/temp/log.do_compile.26644)
ERROR: Logfile of failure stored in: /home/jens/coral/build/tmp/work/x86_64-linux/clang-native/8.0.1-r0/temp/log.do_compile.26644
Log data follows:
| DEBUG: Executing shell function do_compile
| [1/2538] Building CXX object lib/Support/CMakeFiles/LLVMSupport.dir/Atomic.cpp.o
| [2/2538] Building CXX object lib/Support/CMakeFiles/LLVMSupport.dir/DynamicLibrary.cpp.o
..
.. removed 3 - 1473
..
..
| [1474/2538] Building CXX object lib/Target/X86/CMakeFiles/LLVMX86CodeGen.dir/X86AvoidStoreForwardingBlocks.cpp.o
| [1475/2538] Building CXX object lib/Target/X86/CMakeFiles/LLVMX86CodeGen.dir/X86FloatingPoint.cpp.o
| [1476/2538] Building CXX object lib/Target/X86/CMakeFiles/LLVMX86CodeGen.dir/X86FlagsCopyLowering.cpp.o
| [1477/2538] Building CXX object lib/Target/X86/CMakeFiles/LLVMX86CodeGen.dir/X86FastISel.cpp.o
| [1478/2538] Building CXX object lib/Target/X86/CMakeFiles/LLVMX86CodeGen.dir/X86FrameLowering.cpp.o
| [1479/2538] Building CXX object lib/Target/X86/CMakeFiles/LLVMX86CodeGen.dir/X86IndirectBranchTracking.cpp.o
| [1480/2538] Building CXX object lib/Target/X86/CMakeFiles/LLVMX86CodeGen.dir/X86InstructionSelector.cpp.o
| [1481/2538] Building CXX object lib/Target/X86/CMakeFiles/LLVMX86CodeGen.dir/X86InstrFMA3Info.cpp.o
| [1482/2538] Building CXX object lib/Target/X86/CMakeFiles/LLVMX86CodeGen.dir/X86ISelDAGToDAG.cpp.o
| FAILED: lib/Target/X86/CMakeFiles/LLVMX86CodeGen.dir/X86ISelDAGToDAG.cpp.o
| /home/jens/coral/build/tmp/hosttools/g++  -D_GNU_SOURCE -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -Ilib/Target/X86 -I/home/jens/coral/build/tmp/work-shared/llvm-project-source-8.0.1-r0/git/llvm/lib/Target/X86 -Iinclude -I/home/jens/coral/build/tmp/work-shared/llvm-project-source-8.0.1-r0/git/llvm/include -isystem/home/jens/coral/build/tmp/work/x86_64-linux/clang-native/8.0.1-r0/recipe-sysroot-native/usr/include -O2 -pipe   -fPIC -fvisibility-inlines-hidden -Werror=date-time -std=c++11 -Wall -Wextra -Wno-unused-parameter -Wwrite-strings -Wcast-qual -Wno-missing-field-initializers -pedantic -Wno-long-long -Wimplicit-fallthrough -Wno-maybe-uninitialized -Wno-noexcept-type -Wdelete-non-virtual-dtor -Wno-comment -fdiagnostics-color -ffunction-sections -fdata-sections -DNDEBUG -MD -MT lib/Target/X86/CMakeFiles/LLVMX86CodeGen.dir/X86ISelDAGToDAG.cpp.o -MF lib/Target/X86/CMakeFiles/LLVMX86CodeGen.dir/X86ISelDAGToDAG.cpp.o.d -o lib/Target/X86/CMakeFiles/LLVMX86CodeGen.dir/X86ISelDAGToDAG.cpp.o -c /home/jens/coral/build/tmp/work-shared/llvm-project-source-8.0.1-r0/git/llvm/lib/Target/X86/X86ISelDAGToDAG.cpp
| g++: internal compiler error: Killed (program cc1plus)
| Please submit a full bug report,
| with preprocessed source if appropriate.
| See <file:///usr/share/doc/gcc-7/README.Bugs> for instructions.
| [1483/2538] Building CXX object lib/Target/X86/CMakeFiles/LLVMX86CodeGen.dir/X86InstrFoldTables.cpp.o
| [1484/2538] Building CXX object lib/Target/X86/CMakeFiles/LLVMX86CodeGen.dir/X86InsertPrefetch.cpp.o
| [1485/2538] Building CXX object lib/Target/X86/CMakeFiles/LLVMX86CodeGen.dir/X86InstrInfo.cpp.o
| [1486/2538] Building CXX object lib/Target/X86/CMakeFiles/LLVMX86CodeGen.dir/X86InterleavedAccess.cpp.o
| [1487/2538] Building CXX object lib/Target/X86/CMakeFiles/LLVMX86CodeGen.dir/X86ISelLowering.cpp.o
| ninja: build stopped: subcommand failed.
| WARNING: exit code 1 from a shell command.
| ERROR: Function failed: do_compile (log file is located at /home/jens/coral/build/tmp/work/x86_64-linux/clang-native/8.0.1-r0/temp/log.do_compile.26644)
ERROR: Task (virtual:native:/home/jens/coral/sources/meta-clang/recipes-devtools/clang/clang_git.bb:do_compile) failed with exit code '1'
NOTE: Tasks Summary: Attempted 1235 tasks of which 0 didn't need to be rerun and 2 failed.
NOTE: Writing buildhistory

Summary: 2 tasks failed:
  /home/jens/coral/sources/poky/meta/recipes-core/glibc/glibc_2.29.bb:do_package_write_rpm
  virtual:native:/home/jens/coral/sources/meta-clang/recipes-devtools/clang/clang_git.bb:do_compile
Summary: There were 2 ERROR messages shown, returning a non-zero exit code.

python3-edgetpuvision and edgetpu-demo are broken (zeus)

Trying to launch edgetpu-demo --stream, gives the following error:

INFO:edgetpuvision.streaming.server:New web connection from 192.168.1.120:37978               
INFO:edgetpuvision.streaming.server:Number of active clients: 2                               
INFO:edgetpuvision.streaming.server:[192.168.1.120:37978] Rx thread finished                  
INFO:edgetpuvision.streaming.server:Camera start recording                                    
filesrc location=/usr/share/edgetpudemo/video_stream.mp4 ! qtdemux ! tee name=t               
t. ! queue max-size-buffers=1 ! h264parse ! video/x-h264,stream-format=byte-stream,alignment=n
al ! appsink name=h264sink emit-signals=True max-buffers=1 drop=False sync=False              
t. ! queue max-size-buffers=1 ! decodebin ! glfilterbin filter=glbox ! video/x-raw,format=RGB,
width=300,height=300 ! appsink name=appsink emit-signals=True max-buffers=1 drop=True sync=Fal
se                                                                                            
INFO:edgetpuvision.streaming.server:[192.168.1.120:37978] Tx thread finished                  
INFO:OpenGL.acceleratesupport:OpenGL_accelerate module loaded                                 
INFO:OpenGL.arrays.arraydatatype:Using accelerated ArrayDatatype                              
INFO:edgetpuvision.streaming.server:[192.168.1.120:37978] Stopping...                         
INFO:edgetpuvision.streaming.server:[192.168.1.120:37978] Stopped.                            
INFO:edgetpuvision.streaming.server:Number of active clients: 1                               
WARNING:OpenGL.arrays.numpymodule:Unable to load numpy_formathandler accelerator from OpenGL_a
ccelerate                                                                                     
Traceback (most recent call last):                                                            
  File "/usr/lib/gstreamer-1.0/python/glbox.py", line 203, in do_gl_start                     
    glVertexAttribPointer.baseFunction(a_position, 2, GL_FLOAT, GL_FALSE, 0, None)            
AttributeError: 'glVertexAttribPointer' object has no attribute 'baseFunction'                
Error: gst-library-error-quark: Subclass failed to initialize. (3): ../../../../git/gst-libs/g
st/gl/gstglbasefilter.c(401): gst_gl_base_filter_decide_allocation (): /GstPipeline:pipeline0/
GstGLFilterBin:glfilterbin0/glbox+GlBox:filter                                                
Traceback (most recent call last):                                                            
  File "/usr/lib/gstreamer-1.0/python/glbox.py", line 203, in do_gl_start                     
    glVertexAttribPointer.baseFunction(a_position, 2, GL_FLOAT, GL_FALSE, 0, None)            
AttributeError: 'glVertexAttribPointer' object has no attribute 'baseFunction'

`edgetpu-demo.bb` does not work

@mirzak how were you able to test the edgetpu-demo.bb file (specifically how were you able to run the resulting file on the coral)? I've included it in a build by adding IMAGE_INSTALL_append += " edgetpu-demo" to local.conf and it builds successfully and is in the image.

However, trying to run edgeput_demo --stream or edgetpu_demo --device initially results in ValueError: Namespace Gtk not available. Adding gtk+3 to edgetpu-demo.bb RDEPENDS_${PN} solves that issue.

Unfortunately, it then fails with Gtk-WARNING **: <time>: cannot open display, which I have not been able to resolve that. I see terminal output on the HDMI but no WM/DE.

Originally posted by @qkaseman in #1 (comment)

Unable to flash coral dev board with Yocto Zeus(Flashing problem)

I built a Yocto Zeus image successfully.
Now, I am flashing coral board using the SD card flashing method. I am getting the following errors:

Console Logs:

U-Boot SPL 2017.03.4-release-day+g8523a101cd (May 12 2021 - 13:22:06)
power_bd71837_init
pmic debug: name=BD71837
Board id: 0
start to config phy: p0=3200mts, p1=667mts with 1D2D training
check ddr4_pmu_train_imem code
check ddr4_pmu_train_imem code pass
check ddr4_pmu_train_dmem code
check ddr4_pmu_train_dmem code pass
config to do 3200 1d training.
Training PASS
check ddr4_pmu_train_imem code
check ddr4_pmu_train_imem code pass
check ddr4_pmu_train_dmem code
check ddr4_pmu_train_dmem code pass
config to do 3200 2d training.
Training PASS
check ddr4_pmu_train_imem code
check ddr4_pmu_train_imem code pass
check ddr4_pmu_train_dmem code
check ddr4_pmu_train_dmem code pass
pstate=1: set dfi clk done done
Training PASS
Load 201711 PIE
Normal Boot
Trying to boot from MMC2
hdr read sector 300, count=1

U-Boot 2017.03.4-release-day+g8523a101cd (May 12 2021 - 13:22:06 +0000)

CPU: Freescale i.MX8MQ rev2.1 1500 MHz (running at 1000 MHz)
CPU: Commercial temperature grade (0C to 95C) at 40C
Reset cause: POR
Model: Freescale i.MX8MQ Phanbell
DRAM: 3 GiB
Board id: 0
Baseboard id: 1
MMC: FSL_SDHC: 0, FSL_SDHC: 1
*** Warning - bad CRC, using default environment

In: serial
Out: serial
Err: serial

BuildInfo:

ATF 1cb68fa
U-Boot 2017.03.4-release-day+g8523a101cd
flash target is MMC:0
Net:
Warning: ethernet@30be0000 using MAC address from ROM
eth0: ethernet@30be0000

Has anyone faced the same problem? Help me

kirkstone device tree and wifi/bl issue

hi @mirzak,
thanks for sharing your work.

With kirkstone there is no PCI reported:

root@coral-dev:~# lspci
root@coral-dev:~# 

I assume there is a problem with the device tree as we are using one from a different board. i tried to use the old device tree provided with the mendel release but this didn't work due to a bus clock error. As of that I'm unable to enable the wifi aand that makes the device in my case useless. Can you support me please with the pci and the device tree issue?

Pick maintainable kernel

The downstream kernels are to old, we even get warnings when building on latest master. No updates expected from Google.

linux-coral: OLDEST_KERNEL is "5.15" but the version of the kernel you are building is "5.4.237+g336307819297+p21" - therefore glibc as built may not be compatible with this kernel.

The best alternative is to move to linux-imx, and dump the older kernels.

Flash yocto image to Coral emmc

Hello,
I'm quite novice in yocto and SOM but I would like to flash your yocto image to the Coral emmc, how could I do please ?
I tried to use fastboot according to the flash script written by google but I don't know how to get the gpt partition table and divide the wic file into boot and root parts.
Also I tried to burn the wic image directly to the emmc via serial usb and uboot u-boot=> ums 0 mmc 1 but I get the error : ---[ end Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(179,3)
Your help would be very appreciate.

Edge TPU not detected when using the 4.14 kernel

root@coral-dev:/usr/share/edgetpu/examples# python3 classify_image.py \
>     --model models/mobilenet_v2_1.0_224_inat_bird_quant_edgetpu.tflite \
>     --label models/inat_bird_labels.txt \
>     --image images/parrot.jpg
Traceback (most recent call last):
  File "classify_image.py", line 67, in <module>
    main()
  File "classify_image.py", line 58, in main
    engine = ClassificationEngine(args.model)
  File "/usr/lib/python3.7/site-packages/edgetpu/classification/engine.py", line 38, in __init__
    super().__init__(model_path)
  File "/usr/lib/python3.7/site-packages/edgetpu/swig/edgetpu_cpp_wrapper.py", line 300, in __init__
    this = _edgetpu_cpp_wrapper.new_BasicEngine(*args)
RuntimeError: No Edge TPU device detected!

Build error for libedgetpu when testing with zeus

ERROR: libedgetpu-1.0-r0 do_package_qa: QA Issue: /usr/lib/libedgetpu.so.1.0 contained in package libedgetpu requires libc++.so.1()(64bit), but no providers found in RDEPENDS_libedgetpu? [file-rdeps]
ERROR: libedgetpu-1.0-r0 do_package_qa: QA Issue: /usr/lib/libedgetpu.so.1.0 contained in package libedgetpu requires libc++abi.so.1()(64bit), but no providers found in RDEPENDS_libedgetpu? [file-rdeps]
ERROR: libedgetpu-1.0-r0 do_package_qa: QA run found fatal errors. Please consider fixing them.
ERROR: Logfile of failure stored in: /home/ubuntu/yocto/mender-coral/build/tmp-glibc/work/aarch64-oe-linux/libedgetpu/1.0-r0/temp/log.do_package_qa.2566
ERROR: Task (/home/ubuntu/yocto/mender-coral/build/../sources/meta-coral/recipes-bsp/libedgetpu/libedgetpu_1.0.bb:do_package_qa) failed with exit code '1'

Flash Coral Dev Board with Yocto Zeus

I am trying to install yocto on Coral Dev Board using the meta-coral layer in Yocto Zeus.
I build the image successfully. Now I am trying to flash the coral board with generated Yocto Zeus.

To flash the board I tried the following steps:

  1. used balenaEtcher software to flash the Yocto Zeus on SD Card.
  2. inserted the SD Card into the dev board
  3. powered on the board and monitored the serial output but facing issues while doing so.

Now I am trying to flash the dev board using the fastboot method:
link to the official doc- Flash the board

But I am stuck on how exactly should modify flash.sh file so that custom-built yocto image will be flashed on Coral Dev Board.
Am I doing something wrong with the steps? Any suggestions will be appreciated.

yoe-dist envsetup.sh doesn't recognise coral-dev machine/project

Hi,
latest yoe-dist setup is not working for coral-dev. The whole envsetup.sh changed and not it's looking is some predefined configs.

build@7ee0cfc8f909:~/yoe-distro$ . envsetup.sh coral-dev

'coral-dev' is not yet a supported project
Please unset PROJECT environment variable or set it to a supported project

Usage:
. envsetup.sh[0] <project>

Please specify one of the following projects

beaglebone
nezha-d1
odroid-c4
qemuarm
qemuarm64
qemucommon
qemumips
qemumips64
qemuppc
qemuppc64
qemuriscv32
qemuriscv64
qemux86
qemux86-64
rockpi-4b
rpi4-64
unleashed
unmatched
var-dart-imx6ul
var-som-mx8
visionfive

build@7ee0cfc8f909:~/yoe-distro$ 



Hardknott layers compatible which doesn't exist on repo

I am trying to add this layer and getting error,
ERROR: Layer coral-bsp is not compatible with the core layer which only supports these series: hardknott (layer is compatible with mickledore)

I don't see any hardknott branch on the repo. Anyone else knows how to handle this error?

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.