"u-boot-fw-utils-mender-auto-provided-1.0-r0" failed on i.MX8 (Yocto Rocko)

222 views
Skip to first unread message

Ajith P Venugopal

unread,
Dec 7, 2018, 7:03:54 AM12/7/18
to Mender List mender.io
Hi,

As part of my current task, I'm trying to add mender to the  i.MX8 Yocto BSP (NXP provided rocko BSP for their EVK).

I have added meta layers as per the documentation (i.e. https://docs.mender.io/1.6/artifacts/building-mender-yocto-image).
Also, I have added the U-boot configuration based on the mender documentation (i.e. https://docs.mender.io/1.6/devices/integrating-with-u-boot).

Since, I'm using the rocko version Yocto, I thought the U-boot auto patch will work but it failed and shown the bitbake as below (the configuration can seen in the below snippet):
user@user-KVM:~/Ajith/imx-yocto-bsp/build-wayland$ bitbake core-image-minimal
WARNING
: Host distribution "ubuntu-14.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.
Parsing recipes: 100% |##########################################################################################################################################################################| Time: 0:02:14
Parsing of 2468 .bb files complete (0 cached, 2468 parsed). 3325 targets, 405 skipped, 8 masked, 0 errors.
NOTE
: Resolving any missing task queue dependencies

Build Configuration:
BB_VERSION          
= "1.36.0"
BUILD_SYS            
= "x86_64-linux"
NATIVELSBSTRING      
= "ubuntu-14.04"
TARGET_SYS          
= "aarch64-poky-linux"
MACHINE              
= "imx8qxpmek"
DISTRO              
= "fsl-imx-wayland"
DISTRO_VERSION      
= "4.9.88-2.2.0_8qxp_beta2"
TUNE_FEATURES        
= "aarch64"
TARGET_FPU          
= ""
meta                
meta
-poky            = "HEAD:fdeecc901196bbccd7c5b1ea4268a2cf56764a62"
meta
-oe              
meta
-multimedia      = "HEAD:dacfa2b1920e285531bec55cd2f08743390aaf57"
meta
-freescale       = "HEAD:d6141ea291a1ac9ab8fb1dd1110d408f840fda57"
meta
-freescale-3rdparty = "HEAD:62de01743c9233ea718de22991c47b73a78b4857"
meta
-freescale-distro = "HEAD:0ec6d7e206705702b5b534611754de0787f92b72"
meta
-mender-core    
meta
-mender-demo     = "rocko:37269a8f7a91e6afee1f2338e37090c748c1ab99"
meta
-bsp            
meta
-sdk             = "HEAD:20a86bd1a9f3927f00a2215ec7a9afe0c21bef66"
meta
-browser         = "HEAD:d6f9aed41c73b75a97d71bff060b03a66ee087b1"
meta
-gnome          
meta
-networking      
meta
-python          
meta
-filesystems     = "HEAD:dacfa2b1920e285531bec55cd2f08743390aaf57"
meta
-qt5             = "HEAD:cfe02f26de53e5c20e6f9555059cbaaf5ab9b22f"

Initialising tasks: 100% |#######################################################################################################################################################################| Time: 0:00:09
NOTE
: Executing SetScene Tasks
NOTE
: Executing RunQueue Tasks
WARNING
: u-boot-imx-2017.03-r0 do_provide_mender_defines: Found more than one dtb specified in KERNEL_DEVICETREE. Only one should be specified. Choosing the last one.
ERROR
: u-boot-fw-utils-mender-auto-provided-1.0-r0 do_package: objcopy failed with exit code 1 (cmd was 'aarch64-poky-linux-objcopy' --only-keep-debug '/home/user/Ajith/imx-yocto-bsp/build-wayland/tmp/work/aarch64-poky-linux/u-boot-fw-utils-mender-auto-provided/1.0-r0/package/sbin/fw_setenv' '/home/user/Ajith/imx-yocto-bsp/build-wayland/tmp/work/aarch64-poky-linux/u-boot-fw-utils-mender-auto-provided/1.0-r0/package/sbin/.debug/fw_setenv'):
aarch64
-poky-linux-objcopy: Unable to recognise the format of the input file `/home/user/Ajith/imx-yocto-bsp/build-wayland/tmp/work/aarch64-poky-linux/u-boot-fw-utils-mender-auto-provided/1.0-r0/package/sbin/fw_setenv'
ERROR: u-boot-fw-utils-mender-auto-provided-1.0-r0 do_package: Function failed: split_and_strip_files
ERROR: Logfile of failure stored in: /home/user/Ajith/imx-yocto-bsp/build-wayland/tmp/work/aarch64-poky-linux/u-boot-fw-utils-mender-auto-provided/1.0-r0/temp/log.do_package.32150
ERROR: Task (/home/user/Ajith/imx-yocto-bsp/sources/meta-mender/meta-mender-core/recipes-bsp/u-boot/u-boot-fw-utils-mender-auto-provided_1.0.bb:do_package) failed with exit code '1'
NOTE: Tasks Summary: Attempted 2542 tasks of which 2531 didn't need to be rerun and 1 failed.

Summary: 1 task failed:
  /home/user/Ajith/imx-yocto-bsp/sources/meta-mender/meta-mender-core/recipes-bsp/u-boot/u-boot-fw-utils-mender-auto-provided_1.0.bb:do_package
Summary: There were 2 WARNING messages shown.
Summary: There were 2 ERROR messages shown, returning a non-zero exit code.



The corresponding log file (i.e. /home/user/Ajith/imx-yocto-bsp/build-wayland/tmp/work/aarch64-poky-linux/u-boot-fw-utils-mender-auto-provided/1.0-r0/temp/log.do_package.32150) contents are shown below:
DEBUG: Executing python function sstate_task_prefunc
DEBUG
: Python function sstate_task_prefunc finished
DEBUG
: Executing python function extend_recipe_sysroot
NOTE
: Direct dependencies are ['virtual:native:/home/user/Ajith/imx-yocto-bsp/sources/poky/meta/recipes-connectivity/openssl/openssl_1.0.2n.bb:do_populate_sysroot', '/home/user/Ajith/imx-yocto-bsp/sources/poky/meta/recipes-core/glibc/glibc_2.26.bb:do_populate_sysroot', 'virtual:native:/home/user/Ajith/imx-yocto-bsp/sources/poky/meta/recipes-devtools/rpm/rpm_git.bb:do_populate_sysroot', 'virtual:native:/home/user/Ajith/imx-yocto-bsp/sources/poky/meta/recipes-devtools/bison/bison_3.0.4.bb:do_populate_sysroot', '/home/user/Ajith/imx-yocto-bsp/sources/poky/meta/recipes-devtools/quilt/quilt-native_0.65.bb:do_populate_sysroot', '/home/user/Ajith/imx-yocto-bsp/sources/poky/meta/recipes-devtools/python/python_2.7.13.bb:do_populate_sysroot', '/home/user/Ajith/imx-yocto-bsp/sources/poky/meta/recipes-devtools/gcc/gcc-runtime_7.3.bb:do_populate_sysroot', '/home/user/Ajith/imx-yocto-bsp/sources/poky/meta/recipes-devtools/gcc/gcc-cross_7.3.bb:do_populate_sysroot', 'virtual:native:/home/user/Ajith/imx-yocto-bsp/sources/poky/meta/recipes-kernel/dtc/dtc_1.4.4.bb:do_populate_sysroot', '/home/user/Ajith/imx-yocto-bsp/sources/poky/meta/recipes-devtools/python/python-native_2.7.13.bb:do_populate_sysroot', 'virtual:native:/home/user/Ajith/imx-yocto-bsp/sources/poky/meta/recipes-core/coreutils/coreutils_8.27.bb:do_populate_sysroot', 'virtual:native:/home/user/Ajith/imx-yocto-bsp/sources/poky/meta/recipes-devtools/pseudo/pseudo_1.8.2.bb:do_populate_sysroot']
NOTE
: Installed into sysroot: []
NOTE
: Skipping as already exists in sysroot: ['openssl-native', 'glibc', 'rpm-native', 'bison-native', 'quilt-native', 'python', 'gcc-runtime', 'gcc-cross-aarch64', 'dtc-native', 'python-native', 'coreutils-native', 'pseudo-native', 'makedepend-native', 'pkgconfig-native', 'cryptodev-linux-native', 'linux-libc-headers', 'elfutils-native', 'gettext-minimal-native', 'db-native', 'autoconf-native', 'dbus-native', 'libtool-native', 'gnu-config-native', 'python3-native', 'libarchive-native', 'file-native', 'bzip2-native', 'popt-native', 'xz-native', 'automake-native', 'nss-native', 'texinfo-dummy-native', 'libffi', 'db', 'zlib', 'bzip2', 'readline', 'sqlite3', 'openssl', 'gdbm', 'libgcc', 'libmpc-native', 'binutils-cross-aarch64', 'gmp-native', 'mpfr-native', 'zlib-native', 'flex-native', 'expat-native', 'readline-native', 'sqlite3-native', 'attr-native', 'util-macros-native', 'xproto-native', 'm4-native', 'e2fsprogs-native', 'lzo-native', 'nspr-native', 'opkg-utils', 'ncurses', 'cryptodev-linux', 'pigz-native', 'ncurses-native', 'util-linux-native']
DEBUG
: Python function extend_recipe_sysroot finished
DEBUG
: Executing python function do_package
DEBUG
: Executing python function package_get_auto_pr
DEBUG
: Python function package_get_auto_pr finished
DEBUG
: Executing python function perform_packagecopy
DEBUG
: Python function perform_packagecopy finished
DEBUG
: Executing python function split_and_strip_files
ERROR
: objcopy failed with exit code 1 (cmd was 'aarch64-poky-linux-objcopy' --only-keep-debug '/home/user/Ajith/imx-yocto-bsp/build-wayland/tmp/work/aarch64-poky-linux/u-boot-fw-utils-mender-auto-provided/1.0-r0/package/sbin/fw_setenv' '/home/user/Ajith/imx-yocto-bsp/build-wayland/tmp/work/aarch64-poky-linux/u-boot-fw-utils-mender-auto-provided/1.0-r0/package/sbin/.debug/fw_setenv'):
aarch64
-poky-linux-objcopy: Unable to recognise the format of the input file `/home/user/Ajith/imx-yocto-bsp/build-wayland/tmp/work/aarch64-poky-linux/u-boot-fw-utils-mender-auto-provided/1.0-r0/package/sbin/fw_setenv'
DEBUG: Python function split_and_strip_files finished
DEBUG: Python function do_package finished
ERROR: Function failed: split_and_strip_filesEnter code here...

Could anyone give me some clue on what went wrong here? Should I manually apply U-boot in this case?


Thank you in advance,
Ajith P V

Mirza Krak

unread,
Dec 7, 2018, 9:43:32 AM12/7/18
to Mender List mender.io
On Fri, Dec 7, 2018 at 1:03 PM Ajith P Venugopal <kuttan...@gmail.com> wrote:
Hi,

Hi,
 

As part of my current task, I'm trying to add mender to the  i.MX8 Yocto BSP (NXP provided rocko BSP for their EVK).

This would be a nice addition to our Mender Hub, which is a community platform to share Mender integrations. 


But lets resolve your problems first.
 

I have added meta layers as per the documentation (i.e. https://docs.mender.io/1.6/artifacts/building-mender-yocto-image).
Also, I have added the U-boot configuration based on the mender documentation (i.e. https://docs.mender.io/1.6/devices/integrating-with-u-boot).

Since, I'm using the rocko version Yocto, I thought the U-boot auto patch will work but it failed and shown the bitbake as below (the configuration can seen in the below snippet):
user@user-KVM:~/Ajith/imx-yocto-bsp/build-wayland$ bitbake core-image-minimal
WARNING
: Host distribution "ubuntu-14.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.

First of all I would try to get rid of above warning and use a tested distribution. Unclear if this is related to the problems you are having, but typically this can produce unexpected and unnecessary problems.

You can check supported versions here:


I also assume that you running 2.4 (rocko) based on your logs?

Ajith P Venugopal

unread,
Dec 8, 2018, 6:20:30 AM12/8/18
to Mender List mender.io, mirza...@northern.tech
Hi Mirza,

Thank you very much for your support.
I have copied the "default-gcc.patch" from the github to my Yocto source (i.e. sources/meta-mender/meta-mender-core/recipes-bsp/u-boot/patches). Also I added the "SRC_URI_append = " file://default-gcc.patch"" to the 'u-boot-mender-common.inc' file.

After building the source, I didn't get the u-boot error. I hope this fixes the issue. But, I would like to know how to confirm this. Is there any way to confirm that the U-boot patches are applied correctly?

Currently, I'm getting another error which I described in 'https://groups.google.com/a/lists.mender.io/forum/#!topic/mender/cr_Qd8FqtMU' thread. Please help me if somebody knows the root cause of the issue.

BTW, I have successfully done the build of default Yocto BSP (i.e. before applying the mender layers and patches) on Ubuntu 14.04 LTS HOST PC. Hence, I think this set-up will not create any issue for the Yocto Build.

Thank you in advance,
Ajith P V

Reply all
Reply to author
Forward
0 new messages