[VAR-DVK-MX7-E-LO] Problem with adding swupdate to fsl-image-qt5 [SOLVED]

Moderators: Oren.R, Eran.M

Charly
Posts: 4
Joined: Thu Dec 22, 2016 8:06 am

[VAR-DVK-MX7-E-LO] Problem with adding swupdate to fsl-image-qt5 [SOLVED]

Postby Charly » Fri Sep 01, 2017 4:44 pm

Hello,

I'm not very familiar with yocto stuff, but I have successfully created a qt5-image as described in the wiki and created Qt-Applications which were running successfully on my board. Now I need anything for updating our boards via Internet, so I decided to use SWUpdate.
I have cloned "meta-swupdate" into ~/var-fslc-yocto/sources and added into build/conf/bblayers.conf:

Code: Select all

${BSPDIR}/sources/meta-swupdate \

Then I started again:bitbake fsl-image-qt5
After executing any tasks bitbake throws an error message

Code: Select all

ERROR: mtd-utils-1.5.2-r0 do_install: Function failed: do_install (log file is located at...
.

As described in the wiki I had installed mtd-utils before

Code: Select all

sudo apt-get install libglu1-mesa-dev mercurial automake groff curl lzop asciidoc u-boot-tools dos2unix mtd-utils


Has anyone an idea what I can do?

Eran.M
Posts: 140
Joined: Tue Jan 26, 2016 10:49 am

Re: [VAR-DVK-MX7-E-LO] Problem with adding swupdate to fsl-image-qt5

Postby Eran.M » Sat Sep 02, 2017 4:52 pm

What is the actual error message in the log?
How much free space do you have on your storage device?

Charly
Posts: 4
Joined: Thu Dec 22, 2016 8:06 am

Re: [VAR-DVK-MX7-E-LO] Problem with adding swupdate to fsl-image-qt5

Postby Charly » Mon Sep 04, 2017 8:07 pm

Logfile log.do_install.3094

Code: Select all

DEBUG: Executing shell function do_install
NOTE: make CC=arm-fslc-linux-gnueabi-gcc  -march=armv7-a -mthumb -mfpu=neon  -mfloat-abi=hard --sysroot=/home/waldemar/var-fslc-yocto/build_swupdate_1/tmp/sysroots/imx7-var-som RANLIB=arm-fslc-linux-gnue$
  CHK     include/version.h
mkdir -p /home/waldemar/var-fslc-yocto/build_swupdate_1/tmp/work/armv7at2hf-neon-fslc-linux-gnueabi/mtd-utils/1.5.2-r0/image//usr/sbin
install -m 0755 /home/waldemar/var-fslc-yocto/build_swupdate_1/tmp/work/armv7at2hf-neon-fslc-linux-gnueabi/mtd-utils/1.5.2-r0/git/ftl_format /home/waldemar/var-fslc-yocto/build_swupdate_1/tmp/work/armv7a$
mkdir -p /home/waldemar/var-fslc-yocto/build_swupdate_1/tmp/work/armv7at2hf-neon-fslc-linux-gnueabi/mtd-utils/1.5.2-r0/image//usr/share/man/man1
install -m 0644 mkfs.jffs2.1 /home/waldemar/var-fslc-yocto/build_swupdate_1/tmp/work/armv7at2hf-neon-fslc-linux-gnueabi/mtd-utils/1.5.2-r0/image//usr/share/man/man1/
gzip -9f /home/waldemar/var-fslc-yocto/build_swupdate_1/tmp/work/armv7at2hf-neon-fslc-linux-gnueabi/mtd-utils/1.5.2-r0/image//usr/share/man/man1/*.1
install: cannot stat '/home/waldemar/var-fslc-yocto/build_swupdate_1/tmp/work/armv7at2hf-neon-fslc-linux-gnueabi/mtd-utils/1.5.2-r0/git//include/libubi.h': No such file or directory
WARNING: /home/waldemar/var-fslc-yocto/build_swupdate_1/tmp/work/armv7at2hf-neon-fslc-linux-gnueabi/mtd-utils/1.5.2-r0/temp/run.do_install.3094:1 exit 1 from 'install -m 0644 /home/waldemar/var-fslc-yoct$
ERROR: Function failed: do_install (log file is located at /home/waldemar/var-fslc-yocto/build_swupdate_1/tmp/work/armv7at2hf-neon-fslc-linux-gnueabi/mtd-utils/1.5.2-r0/temp/log.do_install.3094)


I have got 28,7 GB of free space.

Eran.M
Posts: 140
Joined: Tue Jan 26, 2016 10:49 am

Re: [VAR-DVK-MX7-E-LO] Problem with adding swupdate to fsl-image-qt5

Postby Eran.M » Tue Sep 05, 2017 6:55 am

Try running the following:
$ bitbake -c cleanall mtd-utils fsl-image-qt5
$ bitbake fsl-image-qt5


By the way, we are working on swupdate support and wiki page.
It will be available soon.

Charly
Posts: 4
Joined: Thu Dec 22, 2016 8:06 am

Re: [VAR-DVK-MX7-E-LO] Problem with adding swupdate to fsl-image-qt5

Postby Charly » Tue Sep 05, 2017 7:45 am

I tried it, but I got a new error message:

Code: Select all

DEBUG: Executing shell function do_install
NOTE: make CC=arm-fslc-linux-gnueabi-gcc  -march=armv7-a -mthumb -mfpu=neon  -mfloat-abi=hard --sysroot=/home/waldemar/var-fslc-yocto/build_swupdate_1/tmp/sysroots/imx7-var-som RANLIB=arm-fslc-linux-gnueabi-ranlib AR=arm-fslc-linux-gnueabi-ar CFLAGS=-O2 -pipe -g -feliminate-unused-debug-types -fdebug-prefix-map=/home/waldemar/var-fslc-yocto/build_swupdate_1/tmp/work/armv7at2hf-neon-fslc-linux-gnueabi/mtd-utils/1.5.2-r0=/usr/src/debug/mtd-utils/1.5.2-r0 -fdebug-prefix-map=/home/waldemar/var-fslc-yocto/build_swupdate_1/tmp/sysroots/x86_64-linux= -fdebug-prefix-map=/home/waldemar/var-fslc-yocto/build_swupdate_1/tmp/sysroots/imx7-var-som=  -I/home/waldemar/var-fslc-yocto/build_swupdate_1/tmp/work/armv7at2hf-neon-fslc-linux-gnueabi/mtd-utils/1.5.2-r0/git//include BUILDDIR=/home/waldemar/var-fslc-yocto/build_swupdate_1/tmp/work/armv7at2hf-neon-fslc-linux-gnueabi/mtd-utils/1.5.2-r0/git/ install DESTDIR=/home/waldemar/var-fslc-yocto/build_swupdate_1/tmp/work/armv7at2hf-neon-fslc-linux-gnueabi/mtd-utils/1.5.2-r0/image SBINDIR=/usr/sbin MANDIR=/usr/share/man INCLUDEDIR=/usr/include
  CHK     include/version.h
mkdir -p /home/waldemar/var-fslc-yocto/build_swupdate_1/tmp/work/armv7at2hf-neon-fslc-linux-gnueabi/mtd-utils/1.5.2-r0/image//usr/sbin
install -m 0755 /home/waldemar/var-fslc-yocto/build_swupdate_1/tmp/work/armv7at2hf-neon-fslc-linux-gnueabi/mtd-utils/1.5.2-r0/git/ftl_format /home/waldemar/var-fslc-yocto/build_swupdate_1/tmp/work/armv7at2hf-neon-fslc-linux-gnueabi/mtd-utils/1.5.2-r0/git/flash_erase /home/waldemar/var-fslc-yocto/build_swupdate_1/tmp/work/armv7at2hf-neon-fslc-linux-gnueabi/mtd-utils/1.5.2-r0/git/nanddump /home/waldemar/var-fslc-yocto/build_swupdate_1/tmp/work/armv7at2hf-neon-fslc-linux-gnueabi/mtd-utils/1.5.2-r0/git/doc_loadbios /home/waldemar/var-fslc-yocto/build_swupdate_1/tmp/work/armv7at2hf-neon-fslc-linux-gnueabi/mtd-utils/1.5.2-r0/git/ftl_check /home/waldemar/var-fslc-yocto/build_swupdate_1/tmp/work/armv7at2hf-neon-fslc-linux-gnueabi/mtd-utils/1.5.2-r0/git/mkfs.jffs2 /home/waldemar/var-fslc-yocto/build_swupdate_1/tmp/work/armv7at2hf-neon-fslc-linux-gnueabi/mtd-utils/1.5.2-r0/git/flash_lock /home/waldemar/var-fslc-yocto/build_swupdate_1/tmp/work/armv7at2hf-neon-fslc-linux-gnueabi/mtd-utils/1.5.2-r0/git/flash_unlock /home/waldemar/var-fslc-yocto/build_swupdate_1/tmp/work/armv7at2hf-neon-fslc-linux-gnueabi/mtd-utils/1.5.2-r0/git/flash_otp_info /home/waldemar/var-fslc-yocto/build_swupdate_1/tmp/work/armv7at2hf-neon-fslc-linux-gnueabi/mtd-utils/1.5.2-r0/git/flash_otp_dump /home/waldemar/var-fslc-yocto/build_swupdate_1/tmp/work/armv7at2hf-neon-fslc-linux-gnueabi/mtd-utils/1.5.2-r0/git/flash_otp_lock /home/waldemar/var-fslc-yocto/build_swupdate_1/tmp/work/armv7at2hf-neon-fslc-linux-gnueabi/mtd-utils/1.5.2-r0/git/flash_otp_write /home/waldemar/var-fslc-yocto/build_swupdate_1/tmp/work/armv7at2hf-neon-fslc-linux-gnueabi/mtd-utils/1.5.2-r0/git/mtd_debug /home/waldemar/var-fslc-yocto/build_swupdate_1/tmp/work/armv7at2hf-neon-fslc-linux-gnueabi/mtd-utils/1.5.2-r0/git/flashcp /home/waldemar/var-fslc-yocto/build_swupdate_1/tmp/work/armv7at2hf-neon-fslc-linux-gnueabi/mtd-utils/1.5.2-r0/git/nandwrite /home/waldemar/var-fslc-yocto/build_swupdate_1/tmp/work/armv7at2hf-neon-fslc-linux-gnueabi/mtd-utils/1.5.2-r0/git/nandtest /home/waldemar/var-fslc-yocto/build_swupdate_1/tmp/work/armv7at2hf-neon-fslc-linux-gnueabi/mtd-utils/1.5.2-r0/git/mtdpart /home/waldemar/var-fslc-yocto/build_swupdate_1/tmp/work/armv7at2hf-neon-fslc-linux-gnueabi/mtd-utils/1.5.2-r0/git/jffs2dump /home/waldemar/var-fslc-yocto/build_swupdate_1/tmp/work/armv7at2hf-neon-fslc-linux-gnueabi/mtd-utils/1.5.2-r0/git/nftldump /home/waldemar/var-fslc-yocto/build_swupdate_1/tmp/work/armv7at2hf-neon-fslc-linux-gnueabi/mtd-utils/1.5.2-r0/git/nftl_format /home/waldemar/var-fslc-yocto/build_swupdate_1/tmp/work/armv7at2hf-neon-fslc-linux-gnueabi/mtd-utils/1.5.2-r0/git/docfdisk /home/waldemar/var-fslc-yocto/build_swupdate_1/tmp/work/armv7at2hf-neon-fslc-linux-gnueabi/mtd-utils/1.5.2-r0/git/rfddump /home/waldemar/var-fslc-yocto/build_swupdate_1/tmp/work/armv7at2hf-neon-fslc-linux-gnueabi/mtd-utils/1.5.2-r0/git/rfdformat /home/waldemar/var-fslc-yocto/build_swupdate_1/tmp/work/armv7at2hf-neon-fslc-linux-gnueabi/mtd-utils/1.5.2-r0/git/serve_image /home/waldemar/var-fslc-yocto/build_swupdate_1/tmp/work/armv7at2hf-neon-fslc-linux-gnueabi/mtd-utils/1.5.2-r0/git/recv_image /home/waldemar/var-fslc-yocto/build_swupdate_1/tmp/work/armv7at2hf-neon-fslc-linux-gnueabi/mtd-utils/1.5.2-r0/git/sumtool /home/waldemar/var-fslc-yocto/build_swupdate_1/tmp/work/armv7at2hf-neon-fslc-linux-gnueabi/mtd-utils/1.5.2-r0/git/jffs2reader /home/waldemar/var-fslc-yocto/build_swupdate_1/tmp/work/armv7at2hf-neon-fslc-linux-gnueabi/mtd-utils/1.5.2-r0/git/mkfs.ubifs/mkfs.ubifs /home/waldemar/var-fslc-yocto/build_swupdate_1/tmp/work/armv7at2hf-neon-fslc-linux-gnueabi/mtd-utils/1.5.2-r0/git/ubi-utils/ubiupdatevol /home/waldemar/var-fslc-yocto/build_swupdate_1/tmp/work/armv7at2hf-neon-fslc-linux-gnueabi/mtd-utils/1.5.2-r0/git/ubi-utils/ubimkvol /home/waldemar/var-fslc-yocto/build_swupdate_1/tmp/work/armv7at2hf-neon-fslc-linux-gnueabi/mtd-utils/1.5.2-r0/git/ubi-utils/ubirmvol /home/waldemar/var-fslc-yocto/build_swupdate_1/tmp/work/armv7at2hf-neon-fslc-linux-gnueabi/mtd-utils/1.5.2-r0/git/ubi-utils/ubicrc32 /home/waldemar/var-fslc-yocto/build_swupdate_1/tmp/work/armv7at2hf-neon-fslc-linux-gnueabi/mtd-utils/1.5.2-r0/git/ubi-utils/ubinfo /home/waldemar/var-fslc-yocto/build_swupdate_1/tmp/work/armv7at2hf-neon-fslc-linux-gnueabi/mtd-utils/1.5.2-r0/git/ubi-utils/ubiattach /home/waldemar/var-fslc-yocto/build_swupdate_1/tmp/work/armv7at2hf-neon-fslc-linux-gnueabi/mtd-utils/1.5.2-r0/git/ubi-utils/ubidetach /home/waldemar/var-fslc-yocto/build_swupdate_1/tmp/work/armv7at2hf-neon-fslc-linux-gnueabi/mtd-utils/1.5.2-r0/git/ubi-utils/ubinize /home/waldemar/var-fslc-yocto/build_swupdate_1/tmp/work/armv7at2hf-neon-fslc-linux-gnueabi/mtd-utils/1.5.2-r0/git/ubi-utils/ubiformat /home/waldemar/var-fslc-yocto/build_swupdate_1/tmp/work/armv7at2hf-neon-fslc-linux-gnueabi/mtd-utils/1.5.2-r0/git/ubi-utils/ubirename /home/waldemar/var-fslc-yocto/build_swupdate_1/tmp/work/armv7at2hf-neon-fslc-linux-gnueabi/mtd-utils/1.5.2-r0/git/ubi-utils/mtdinfo /home/waldemar/var-fslc-yocto/build_swupdate_1/tmp/work/armv7at2hf-neon-fslc-linux-gnueabi/mtd-utils/1.5.2-r0/git/ubi-utils/ubirsvol /home/waldemar/var-fslc-yocto/build_swupdate_1/tmp/work/armv7at2hf-neon-fslc-linux-gnueabi/mtd-utils/1.5.2-r0/git/ubi-utils/ubiblock flash_eraseall /home/waldemar/var-fslc-yocto/build_swupdate_1/tmp/work/armv7at2hf-neon-fslc-linux-gnueabi/mtd-utils/1.5.2-r0/image//usr/sbin/
mkdir -p /home/waldemar/var-fslc-yocto/build_swupdate_1/tmp/work/armv7at2hf-neon-fslc-linux-gnueabi/mtd-utils/1.5.2-r0/image//usr/share/man/man1
install -m 0644 mkfs.jffs2.1 /home/waldemar/var-fslc-yocto/build_swupdate_1/tmp/work/armv7at2hf-neon-fslc-linux-gnueabi/mtd-utils/1.5.2-r0/image//usr/share/man/man1/
gzip -9f /home/waldemar/var-fslc-yocto/build_swupdate_1/tmp/work/armv7at2hf-neon-fslc-linux-gnueabi/mtd-utils/1.5.2-r0/image//usr/share/man/man1/*.1
install: cannot stat '/home/waldemar/var-fslc-yocto/build_swupdate_1/tmp/work/armv7at2hf-neon-fslc-linux-gnueabi/mtd-utils/1.5.2-r0/git//include/libubi.h': No such file or directory
WARNING: /home/waldemar/var-fslc-yocto/build_swupdate_1/tmp/work/armv7at2hf-neon-fslc-linux-gnueabi/mtd-utils/1.5.2-r0/temp/run.do_install.6892:1 exit 1 from 'install -m 0644 /home/waldemar/var-fslc-yocto/build_swupdate_1/tmp/work/armv7at2hf-neon-fslc-linux-gnueabi/mtd-utils/1.5.2-r0/git//include/libubi.h /home/waldemar/var-fslc-yocto/build_swupdate_1/tmp/work/armv7at2hf-neon-fslc-linux-gnueabi/mtd-utils/1.5.2-r0/image/usr/include/mtd/'
ERROR: Function failed: do_install (log file is located at /home/waldemar/var-fslc-yocto/build_swupdate_1/tmp/work/armv7at2hf-neon-fslc-linux-gnueabi/mtd-utils/1.5.2-r0/temp/log.do_install.6892)



Code: Select all

install: cannot stat '/home/waldemar/var-fslc-yocto/build_swupdate_1/tmp/work/armv7at2hf-neon-fslc-linux-gnueabi/mtd-utils/1.5.2-r0/git//include/libubi.h': No such file or directory


I found the file libubi.h in the /home/waldemar/var-fslc-yocto/build_swupdate_1/tmp/work/armv7at2hf-neon-fslc-linux-gnueabi/mtd-utils/1.5.2-r0/git/ubi-utils/include/libubi.h

I'm not an expert, but could it be that there is a wrong path in a recipe?

Eran.M
Posts: 140
Joined: Tue Jan 26, 2016 10:49 am

Re: [VAR-DVK-MX7-E-LO] Problem with adding swupdate to fsl-image-qt5

Postby Eran.M » Tue Sep 05, 2017 2:17 pm

It's the same error as before.

Did you add the meta-swupdate layer and try to build the image in the same build directory you've used before, when following our Wiki without the meta-swupdate layer?
It's best to create a new build directory after adding layers.

Which Yocto version are you using, and which swupdate branch are you using?
Make sure the swupdate branch matches the Yocto version.

Charly
Posts: 4
Joined: Thu Dec 22, 2016 8:06 am

Re: [VAR-DVK-MX7-E-LO] Problem with adding swupdate to fsl-image-qt5

Postby Charly » Wed Sep 06, 2017 7:36 am

It was exactly as you supposed.

I'm using morty and now I have cloned the swupdate morty brach into var-fslc-yocto/sources, and build it sucessfully in a new directory.
Eran, thank you very much.
I'm looking forward to your wiki.


Return to “Yocto”

Who is online

Users browsing this forum: No registered users and 1 guest