OpenCV Build imx8mmevk

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

OpenCV Build imx8mmevk

3,242 Views
uri
Contributor II

Hello,

I'm trying build using bitbake imx-image-multimedia, build configuration:

Build Configuration:

BB_VERSION = "1.44.0"

BUILD_SYS = "x86_64-linux"

NATIVELSBSTRING = "ubuntu-18.04"

TARGET_SYS = "aarch64-poky-linux"

MACHINE = "imx8mmevk"

DISTRO = "fsl-imx-xwayland"

DISTRO_VERSION = "5.4-zeus"

TUNE_FEATURES = "aarch64 cortexa53 crc crypto"

TARGET_FPU = ""

meta

meta-poky = "HEAD:0275e68b0576cdefc19718e4b1977044f9f43f48"

meta-oe

meta-multimedia

meta-python = "HEAD:aad5b3d070cd8c58828b0975cf861d8ebc90f460"

meta-freescale = "HEAD:0be39721cea6e04c589a419f4bb07fabd0da6704"

meta-freescale-3rdparty = "HEAD:aea3771baa77e74762358ceb673d407e36637e5f"

meta-freescale-distro = "HEAD:ca27d12e4964d1336e662bcc60184bbff526c857"

meta-bsp

meta-sdk

meta-ml = "HEAD:a73dc4edb923a792d315709cf7e7d03a9b4b6690"

meta-browser = "HEAD:5f365ef0f842ba4651efe88787cf9c63bc8b6cb3"

meta-rust = "HEAD:5cda04c7c2158fc982502ca1e7893f71e4ca1729"

meta-gnome

meta-networking

meta-filesystems = "HEAD:aad5b3d070cd8c58828b0975cf861d8ebc90f460"

meta-qt5 = "HEAD:432ad2aa6c3a13253fefc909faba368851d21fb1"

The Ubunto freeze when compiling OpenCV.

Try Bitbake OpenCV -c clean all and than Bitbake OpenCV and after 28% compile process , the OS ubunto freeze after a while, sometimes for more than a few hours till release..

Note: Bitbake core-image-minmal successfully build

Please kindly advise what could be the reason that cause Ubunto stop/freeze during OpenCV compile tasks.

Attached log.do_fetch (opencv)

Thanks,

Uri

4 Replies

3,042 Views
uri
Contributor II

Hello,

I resolve this issue by extending  Ubuntu RAM size.

Uri.

3,042 Views
Bio_TICFSL
NXP TechSupport
NXP TechSupport

Hello Uri,

This look more like ubuntu issue, have you try ubuntu 16.04? however we have also observed that you have used '-k' flag with the bitbake. It will continue with the compilation if any task gets failed and so sometimes due to the dependencies between the package another package might fail in the compilation. We have also observed that may be one of the packages is having trouble in fetching and then successfully fetched and issue in the compilation task. So complete clean-up or fresh build without '-k' will resolve the issue.

Regards

0 Kudos

3,042 Views
uri
Contributor II

Hello,

Thanks for your reply.

I first try build it via Ubunto 20 and it failed, since i got warning on this Ubunto version not tested yet by NXP Yocto. Switched Now to Ubunto 16 and i got similar failed.
"

WARNING: icu-64.2-r0 do_fetch: Checksum mismatch for local file /home/uri/imx-yocto-bsp/downloads/icu4c-64_2-src.tgz
Cleaning and trying again.
WARNING: icu-64.2-r0 do_fetch: Renaming /home/uri/imx-yocto-bsp/downloads/icu4c-64_2-src.tgz to /home/uri/imx-yocto-bsp/downloads/icu4c-64_2-src.tgz_bad-checksum_69143d7e73314ca71f31e3c601d0587a
WARNING: icu-64.2-r0 do_fetch: Checksum failure encountered with download of http://download.icu-project.org/files/icu4c/64.2/icu4c-64_2-src.tgz - will attempt other sources if available
WARNING: ofono-1.30-r0 do_fetch: Failed to fetch URL https://cdn.kernel.org/pub/linux/network/ofono/ofono-1.30.tar.xz, attempting MIRRORS if available
WARNING: opencv-4.1.2.imx-r0 do_fetch: Failed to fetch URL git://source.codeaurora.org/external/imx/opencv-imx.git;protocol=https;branch=4.1.2_imx;name=opencv, attempting MIRRORS if available
ERROR: opencv-4.1.2.imx-r0 do_fetch: Fetcher failure: Fetch command export PSEUDO_DISABLED=1; unset _PYTHON_SYSCONFIGDATA_NAME; export DBUS_SESSION_BUS_ADDRESS="unix:abstract=/tmp/dbus-vKUuISdD5i"; export SSH_AUTH_SOCK="/run/user/1000/keyring/ssh"; export PATH="/home/uri/imx-yocto-bsp/build/tmp/work/aarch64-mx8mm-poky-linux/opencv/4.1.2.imx-r0/recipe-sysroot-native/usr/bin/python3-native:/home/uri/imx-yocto-bsp/sources/poky/scripts:/home/uri/imx-yocto-bsp/build/tmp/work/aarch64-mx8mm-poky-linux/opencv/4.1.2.imx-r0/recipe-sysroot-native/usr/bin/aarch64-poky-linux:/home/uri/imx-yocto-bsp/build/tmp/work/aarch64-mx8mm-poky-linux/opencv/4.1.2.imx-r0/recipe-sysroot/usr/bin/crossscripts:/home/uri/imx-yocto-bsp/build/tmp/work/aarch64-mx8mm-poky-linux/opencv/4.1.2.imx-r0/recipe-sysroot-native/usr/sbin:/home/uri/imx-yocto-bsp/build/tmp/work/aarch64-mx8mm-poky-linux/opencv/4.1.2.imx-r0/recipe-sysroot-native/usr/bin:/home/uri/imx-yocto-bsp/build/tmp/work/aarch64-mx8mm-poky-linux/opencv/4.1.2.imx-r0/recipe-sysroot-native/sbin:/home/uri/imx-yocto-bsp/build/tmp/work/aarch64-mx8mm-poky-linux/opencv/4.1.2.imx-r0/recipe-sysroot-native/bin:/home/uri/imx-yocto-bsp/sources/poky/bitbake/bin:/home/uri/imx-yocto-bsp/build/tmp/hosttools"; export HOME="/home/uri"; LANG=C git -c core.fsyncobjectfiles=0 clone --bare --mirror https://source.codeaurora.org/external/imx/opencv-imx.git /home/uri/imx-yocto-bsp/downloads//git2/source.codeaurora.org.external.imx.opencv-imx.git --progress failed with exit code 128, output:
Cloning into bare repository '/home/uri/imx-yocto-bsp/downloads//git2/source.codeaurora.org.external.imx.opencv-imx.git'...
fatal: unable to access 'https://source.codeaurora.org/external/imx/opencv-imx.git/': Could not resolve host: source.codeaurora.org

ERROR: opencv-4.1.2.imx-r0 do_fetch: Fetcher failure for URL: 'git://source.codeaurora.org/external/imx/opencv-imx.git;protocol=https;branch=4.1.2_imx;name=opencv'. Unable to fetch URL from any source.
ERROR: Logfile of failure stored in: /home/uri/imx-yocto-bsp/build/tmp/work/aarch64-mx8mm-poky-linux/opencv/4.1.2.imx-r0/temp/log.do_fetch.2521
ERROR: Task (/home/uri/imx-yocto-bsp/sources/meta-imx/meta-bsp/recipes-support/opencv/opencv_4.1.2.imx.bb:do_fetch) failed with exit code '1'
NOTE: Tasks Summary: Attempted 2012 tasks of which 1903 didn't need to be rerun and 1 failed.

Summary: 1 task failed:
/home/uri/imx-yocto-bsp/sources/meta-imx/meta-bsp/recipes-support/opencv/opencv_4.1.2.imx.bb:do_fetch
Summary: There were 5 WARNING messages shown.
Summary: There were 2 ERROR messages shown, returning a non-zero exit code."

BTW, I didn't Bitbake with -k, It might be internal component that have the '-k', Please let me know how to modify it. to build without '-k'.

And please kindly advise what cause the build to failed.

Thanks, Uri

0 Kudos

3,042 Views
uri
Contributor II

Hello support team,

Please reply how to build correctly the OpenCV or please guide me how to exclude the OPENCV component from the build imx-image-multimedia.

This component always failed during compilation.
opencv           :4.1.2.imx-r0

Thanks, Uri