T20 Linux booting error

Hi, I built an angstrom-qt5-x11-image with OpenEmbbedded Layers following this guide adding qt5 pckages. The First time boot, every seems to be ok, I run a simple qt5 “hello world” without any problem, but after restart kernel panic appears, this is the log

Additional info: before flashing linux, the module had Windows Embedded Compact 7, I followed this guide and clean the UBI partition.

Please any help would be welcome, thanks in advenced.

Somehow, your UBI file system in NAND flash got corrupted. May I suggest for you to try the same procedure, which seems sane, first with our regular LXDE demo image, rebooting a few times after the installation and if it works out OK, trying with your custom image again. Thanks!

ok, I’ll try doing that, thanks

You are very welcome.

ok, I did what you suggested, loaded the Colibri-T20_LXDE-Image_2.8.6 Toradex image, and after reset 2 or 3 times, the same problem appear:

boot log

Is there something I can do to solve it?

Thanks

I had been doing some tests and seems to be related with power cut…can’t reproduce the problem making a shutdown or reboot from shell… is there a known problem with power cut and UBIFS in the 2.8b6 image? unfortunately we need a stable version that supports power cut, since this post it seems that 2.3 release image is the way to go, is that right? In such case, could I still compile my own image with QT5?

Thanks,

I had been doing some tests and seems to be related with power cut.

Hm, yes, power cuts are not really recommended with BSP 2.8b6 running on Colibri T20.

…can’t reproduce the problem making a shutdown or reboot from shell… is there a known problem with power cut and UBIFS in the 2.8b6 image?

Yes, unfortunately, the UBI/UBIFS integration is buggy in downstream.

unfortunately we need a stable version that supports power cut, since this post it seems that 2.3 release image is the way to go, is that right?

Yes, that passed full validation. You may want to use the latest downstream Linux kernel though:

http://git.toradex.com/cgit/linux-toradex.git/tag/?h=Colibri-T20_LXDE-Image_2.8b6.184-20190401

And just revert the commit moving to UBI/UBIFS:

http://git.toradex.com/cgit/linux-toradex.git/commit/?h=tegra&id=834b98d0367931d6bec5a48fe87fddd9b877f688

In such case, could I still compile my own image with QT5?

Sure, I believe you may be getting Qt 5.2.1 though.

That would be LinuxImageV2.3 then.

Fine, but I couldn’t understand what Toradex Linux BSP I have to use, I have to compile the image with QT support using this instructions so what is the branch name to use instead of “LinuxImageV2.8” in this line:

repo init -u Index of /toradex-bsp-platform.git -b LinuxImageV2.8

Thanks in advanced!

ok, I tried to compile the LinuxImageV2.3 but with lot of errors…

First I didn’t know what meta-qt5 layer I must included, since here it says nothing about it, so I choose

# repository version known to work with v2.4 images (alternatively use HEAD of dizzy branch)
 META_QT5=adeca0db212d61a933d7952ad44ea1064cfca747
 
 git clone --no-checkout https://github.com/meta-qt5/meta-qt5.git 

Then add the layers to “/oe-core/build/conf/bblayers.conf” :
${TOPDIR}/…/stuff/meta-openembedded/meta-ruby \
${TOPDIR}/…/stuff/meta-qt5 \

When I run : bitbake -k angstrom-qt5-x11-image

it says cannot find that and suggest bitbake -k angstrom-qt-x11-image

so I run it, but build failed with 15 errors,

| collect2: error: ld returned 1 exit status
 | Makefile:162: recipe for target 'qemu-system-arm' failed
 | make[1]: *** [qemu-system-arm] Error 1
 | Makefile:144: recipe for target 'subdir-arm-softmmu' failed
 | make: *** [subdir-arm-softmmu] Error 2
 |   LINK  mipsel-linux-user/qemu-mipsel
 | ERROR: oe_runmake failed
 | WARNING: exit code 1 from a shell command.
 | ERROR: Function failed: do_compile (log file is located at /home/ale/t20/oe-core/build/out-eglibc/work/x86_64-linux/qemu-native/1.7.0-r0/temp/log.do_compile.17413)
 ERROR: Task 2540 (virtual:native:/home/ale/t20/oe-core/build/../stuff/openembedded-core/meta/recipes-devtools/qemu/qemu_1.7.0.bb, do_compile) failed with exit code '1'
 
 ERROR: Function failed: do_compile (log file is located at /home/ale/t20/oe-core/build/out-eglibc/work/x86_64-linux/libgpg-error-native/1.12-r0/temp/log.do_compile.21319)
 ERROR: Logfile of failure stored in: /home/ale/t20/oe-core/build/out-eglibc/work/x86_64-linux/libgpg-error-native/1.12-r0/temp/log.do_compile.21319
 
 WARNING: Failed to fetch URL http://xorg.freedesktop.org/releases/individual/lib/libXrandr-1.4.2.tar.bz2, attempting MIRRORS if available
 WARNING: Failed to fetch URL http://xorg.freedesktop.org/releases/individual/lib/libpciaccess-0.13.2.tar.bz2, attempting MIRRORS if available
 WARNING: Failed to fetch URL ftp://ftp.freedesktop.org/pub/mesa/9.2.5/MesaLib-9.2.5.tar.bz2, attempting MIRRORS if available
 WARNING: Failed to fetch URL http://www.cpan.org/authors/id/D/DM/DMEGG/SGMLSpm-1.03ii.tar.gz, attempting MIRRORS if available
 WARNING: Failed to fetch URL http://download.qt-project.org/official_releases/qt/5.3/5.3.2/submodules/qtxmlpatterns-opensource-src-5.3.2.tar.xz, attempting MIRRORS if available
 WARNING: Failed to fetch URL http://download.qt-project.org/official_releases/qt/5.3/5.3.2/submodules/qtdeclarative-opensource-src-5.3.2.tar.xz, attempting MIRRORS if available
 WARNING: Use of PRINC 1 was detected in the recipe /home/ale/t20/oe-core/build/../stuff/openembedded-core/meta/recipes-core/update-rc.d/update-rc.d_0.7.bb (or one of its .bbappends)
 Use of PRINC is deprecated.  The PR server should be used to automatically increment the PR.  See: https://wiki.yoctoproject.org/wiki/PR_Service.
 WARNING: Use of PRINC 1 was detected in the recipe /home/ale/t20/oe-core/build/../stuff/openembedded-core/meta/recipes-core/update-rc.d/update-rc.d_0.7.bb (or one of its .bbappends)
 Use of PRINC is deprecated.  The PR server should be used to automatically increment the PR.  See: https://wiki.yoctoproject.org/wiki/PR_Service.
 WARNING: Use of PRINC 1 was detected in the recipe /home/ale/t20/oe-core/build/../stuff/openembedded-core/meta/recipes-core/update-rc.d/update-rc.d_0.7.bb (or one of its .bbappends)
 Use of PRINC is deprecated.  The PR server should be used to automatically increment the PR.  See: https://wiki.yoctoproject.org/wiki/PR_Service.
 WARNING: Use of PRINC 1 was detected in the recipe /home/ale/t20/oe-core/build/../stuff/openembedded-core/meta/recipes-core/update-rc.d/update-rc.d_0.7.bb (or one of its .bbappends)
 Use of PRINC is deprecated.  The PR server should be used to automatically increment the PR.  See: https://wiki.yoctoproject.org/wiki/PR_Service.
 WARNING: Use of PRINC 1 was detected in the recipe /home/ale/t20/oe-core/build/../stuff/openembedded-core/meta/recipes-core/update-rc.d/update-rc.d_0.7.bb (or one of its .bbappends)
 Use of PRINC is deprecated.  The PR server should be used to automatically increment the PR.  See: https://wiki.yoctoproject.org/wiki/PR_Service.
 WARNING: Use of PRINC 1 was detected in the recipe /home/ale/t20/oe-core/build/../stuff/openembedded-core/meta/recipes-core/update-rc.d/update-rc.d_0.7.bb (or one of its .bbappends)
 Use of PRINC is deprecated.  The PR server should be used to automatically increment the PR.  See: https://wiki.yoctoproject.org/wiki/PR_Service.
 WARNING: Failed to fetch URL http://code.entropywave.com/download/orc/orc-0.4.18.tar.gz;name=orc, attempting MIRRORS if available
 ERROR: Function failed: do_compile (log file is located at /home/ale/t20/oe-core/build/out-eglibc/work/x86_64-linux/libgpg-error-native/1.12-r0/temp/log.do_compile.21319)
 ERROR: Logfile of failure stored in: /home/ale/t20/oe-core/build/out-eglibc/work/x86_64-linux/libgpg-error-native/1.12-r0/temp/log.do_compile.21319
 
  Makefile:1108: recipe for target 'mkerrcodes' failed
 | make[2]: *** [mkerrcodes] Error 1
 | make[2]: Leaving directory '/home/ale/t20/oe-core/build/out-eglibc/work/x86_64-linux/libgpg-error-native/1.12-r0/build/src'
 | Makefile:444: recipe for target 'all-recursive' failed
 | make[1]: *** [all-recursive] Error 1
 | make[1]: Leaving directory '/home/ale/t20/oe-core/build/out-eglibc/work/x86_64-linux/libgpg-error-native/1.12-r0/build'
 | Makefile:375: recipe for target 'all' failed
 | make: *** [all] 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/ale/t20/oe-core/build/out-eglibc/work/x86_64-linux/libgpg-error-native/1.12-r0/temp/log.do_compile.21319)
 ERROR: Task 5932 (virtual:native:/home/ale/t20/oe-core/build/../stuff/openembedded-core/meta/recipes-support/libgpg-error/libgpg-error_1.12.bb, do_compile) failed with exit code '1'
 WARNING: Failed to fetch URL http://www.apache.org/dist/apr/apr-1.4.8.tar.bz2, attempting MIRRORS if available
 WARNING: Failed to fetch URL http://www.apache.org/dist/apr/apr-util-1.5.2.tar.gz, attempting MIRRORS if available
 WARNING: Failed to fetch URL http://www.apache.org/dist/subversion/subversion-1.7.10.tar.bz2, attempting MIRRORS if available
 WARNING: Failed to fetch URL http://download.qt-project.org/official_releases/qt/5.3/5.3.2/submodules/qtsensors-opensource-src-5.3.2.tar.xz, attempting MIRRORS if available
 WARNING: Failed to fetch URL http://download.qt-project.org/official_releases/qt/5.3/5.3.2/submodules/qtmultimedia-opensource-src-5.3.2.tar.xz, attempting MIRRORS if available
 WARNING: Failed to fetch URL http://download.qt-project.org/official_releases/qt/5.3/5.3.2/submodules/qtlocation-opensource-src-5.3.2.tar.xz, attempting MIRRORS if available
 WARNING: Use of PRINC 1 was detected in the recipe /home/ale/t20/oe-core/build/../stuff/openembedded-core/meta/recipes-multimedia/gstreamer/gst-plugins-base_0.10.36.bb (or one of its .bbappends)
 Use of PRINC is deprecated.  The PR server should be used to automatically increment the PR.  See: https://wiki.yoctoproject.org/wiki/PR_Service.
 WARNING: Failed to fetch URL ftp://ftp.mozilla.org/pub/mozilla.org/nspr/releases/v4.10.3/src/nspr-4.10.3.tar.gz, attempting MIRRORS if available
 WARNING: Failed to fetch URL git://git.gnome.org/mobile-broadband-provider-info, attempting MIRRORS if available
 WARNING: Checksum failure encountered with download of https://fedorahosted.org/releases/l/i/liberation-fonts/liberation-fonts-1.04.tar.gz - will attempt other sources if available
 WARNING: Renaming /home/ale/t20/oe-core/build/downloads/liberation-fonts-1.04.tar.gz to /home/ale/t20/oe-core/build/downloads/liberation-fonts-1.04.tar.gz_bad-checksum_a6011ad38468fec7f8a7429d161ea8d6
 ERROR: Function failed: do_compile (log file is located at /home/ale/t20/oe-core/build/out-eglibc/work/x86_64-linux/cross-localedef-native/2.19-r0/temp/log.do_compile.65617)
 ERROR: Logfile of failure stored in: /home/ale/t20/oe-core/build/out-eglibc/work/x86_64-linux/cross-localedef-native/2.19-r0/temp/log.do_compile.65617
 
  collect2: error: ld returned 1 exit status
 | Makefile:59: recipe for target 'localedef' failed
 | make: *** [localedef] Error 1
 | ERROR: oe_runmake failed
 | WARNING: exit code 1 from a shell command.
 | ERROR: Function failed: do_compile (log file is located at /home/ale/t20/oe-core/build/out-eglibc/work/x86_64-linux/cross-localedef-native/2.19-r0/temp/log.do_compile.65617)
 ERROR: Task 3900 (/home/ale/t20/oe-core/build/../stuff/openembedded-core/meta/recipes-core/eglibc/cross-localedef-native_2.19.bb, do_compile) failed with exit code '1'
 WARNING: Failed to fetch URL git://git.enlightenment.org/legacy/imlib2.git, attempting MIRRORS if available
 WARNING: Checksum failure encountered with download of https://www.khronos.org/registry/omxil/api/1.1.2/OpenMAX_IL_1_1_2_Header.zip;name=openmax-h;unpack=no - will attempt other sources if available
 WARNING: Renaming /home/ale/t20/oe-core/build/downloads/OpenMAX_IL_1_1_2_Header.zip to /home/ale/t20/oe-core/build/downloads/OpenMAX_IL_1_1_2_Header.zip_bad-checksum_402a7600397c341895cfecbbe1f4e028
 WARNING: Use of PRINC 1 was detected in the recipe /home/ale/t20/oe-core/build/../stuff/openembedded-core/meta/recipes-multimedia/gstreamer/gst-plugins-base_0.10.36.bb (or one of its .bbappends)
 Use of PRINC is deprecated.  The PR server should be used to automatically increment the PR.  See: https://wiki.yoctoproject.org/wiki/PR_Service.
 WARNING: Use of PRINC 1 was detected in the recipe /home/ale/t20/oe-core/build/../stuff/openembedded-core/meta/recipes-multimedia/gstreamer/gst-plugins-base_0.10.36.bb (or one of its .bbappends)
 Use of PRINC is deprecated.  The PR server should be used to automatically increment the PR.  See: https://wiki.yoctoproject.org/wiki/PR_Service.
 WARNING: Use of PRINC 1 was detected in the recipe /home/ale/t20/oe-core/build/../stuff/openembedded-core/meta/recipes-multimedia/gstreamer/gst-plugins-base_0.10.36.bb (or one of its .bbappends)
 Use of PRINC is deprecated.  The PR server should be used to automatically increment the PR.  See: https://wiki.yoctoproject.org/wiki/PR_Service.
 ERROR: Fetcher failure for URL: 'https://www.khronos.org/registry/omxil/api/1.1.2/OpenMAX_IL_1_1_2_Header.zip;name=openmax-h;unpack=no'. Checksum mismatch!
 File: '/home/ale/t20/oe-core/build/downloads/OpenMAX_IL_1_1_2_Header.zip' has md5 checksum 402a7600397c341895cfecbbe1f4e028 when f8ac8d7272abdbe1980eeac8d03338e8 was expected
 File: '/home/ale/t20/oe-core/build/downloads/OpenMAX_IL_1_1_2_Header.zip' has sha256 checksum e7159c88185df60a0dbb28583815067c31285a1f1d4652f6752a7329ccb534d1 when 9e8aee85f37946202ff15a52836233f983e90a751c0816ba341ba0c1ffedf99e was expected
 If this change is expected (e.g. you have upgraded to a new version without updating the checksums) then you can use these lines within the recipe:
 SRC_URI[openmax-h.md5sum] = "402a7600397c341895cfecbbe1f4e028"
 SRC_URI[openmax-h.sha256sum] = "e7159c88185df60a0dbb28583815067c31285a1f1d4652f6752a7329ccb534d1"
 Otherwise you should retry the download and/or check with upstream to determine if the file has become corrupted or otherwise unexpectedly modified.
 
 ERROR: Function failed: Fetcher failure for URL: 'https://www.khronos.org/registry/omxil/api/1.1.2/OpenMAX_IL_1_1_2_Header.zip;name=openmax-h;unpack=no'. Unable to fetch URL from any source.
 ERROR: Logfile of failure stored in: /home/ale/t20/oe-core/build/out-eglibc/work/colibri_t20-angstrom-linux-gnueabi/trdx-nv-binaries/1.0-r19/temp/log.do_fetch.66197
 ERROR: Task 1407 (/home/ale/t20/oe-core/build/../stuff/meta-toradex/recipes/trdx-nv-binaries/trdx-nv-binaries.bb, do_fetch) failed with exit code '1'
 
 
 ERROR: Fetcher failure: Fetch command failed with exit code 8, output:
 https://releases.linaro.org/13.10/components/toolchain/gdb-linaro/gdb-linaro-7.6.1-2013.10.tar.bz2:
 2019-12-09 23:21:58 ERROR 404: Not Found.
 
 ERROR: Function failed: Fetcher failure for URL: 'https://releases.linaro.org/13.10/components/toolchain/gdb-linaro/gdb-linaro-7.6.1-2013.10.tar.bz2'. Unable to fetch URL from any source.
 ERROR: Logfile of failure stored in: /home/ale/t20/oe-core/build/out-eglibc/work/armv7at2hf-vfp-angstrom-linux-gnueabi/gdb-cross/linaro-7.6.1-r2013.10/temp/log.do_fetch.91508
 ERROR: Task 261 (/home/ale/t20/oe-core/build/../stuff/meta-linaro/meta-linaro-toolchain/recipes-devtools/gdb/gdb-cross_linaro-7.6.1.bb, do_fetch) failed with exit code '1'
 WARNING: Use of PRINC 1 was detected in the recipe /home/ale/t20/oe-core/build/../stuff/openembedded-core/meta/recipes-multimedia/gstreamer/gst-plugins-ugly_0.10.19.bb (or one of its .bbappends)
 Use of PRINC is deprecated.  The PR server should be used to automatically increment the PR.  See: https://wiki.yoctoproject.org/wiki/PR_Service.
 WARNING: Use of PRINC 2 was detected in the recipe /home/ale/t20/oe-core/build/../stuff/openembedded-core/meta/recipes-multimedia/gstreamer/gst-plugins-bad_0.10.23.bb (or one of its .bbappends)
 Use of PRINC is deprecated.  The PR server should be used to automatically increment the PR.  See: https://wiki.yoctoproject.org/wiki/PR_Service.
 WARNING: Use of PRINC 1 was detected in the recipe /home/ale/t20/oe-core/build/../stuff/openembedded-core/meta/recipes-multimedia/gstreamer/gst-plugins-ugly_0.10.19.bb (or one of its .bbappends)
 Use of PRINC is deprecated.  The PR server should be used to automatically increment the PR.  See: https://wiki.yoctoproject.org/wiki/PR_Service.
 WARNING: Use of PRINC 1 was detected in the recipe /home/ale/t20/oe-core/build/../stuff/openembedded-core/meta/recipes-multimedia/gstreamer/gst-plugins-ugly_0.10.19.bb (or one of its .bbappends)
 Use of PRINC is deprecated.  The PR server should be used to automatically increment the PR.  See: https://wiki.yoctoproject.org/wiki/PR_Service.
 WARNING: Use of PRINC 1 was detected in the recipe /home/ale/t20/oe-core/build/../stuff/openembedded-core/meta/recipes-multimedia/gstreamer/gst-plugins-ugly_0.10.19.bb (or one of its .bbappends)
 Use of PRINC is deprecated.  The PR server should be used to automatically increment the PR.  See: https://wiki.yoctoproject.org/wiki/PR_Service.
 WARNING: Use of PRINC 1 was detected in the recipe /home/ale/t20/oe-core/build/../stuff/openembedded-core/meta/recipes-multimedia/gstreamer/gst-plugins-good_0.10.31.bb (or one of its .bbappends)
 Use of PRINC is deprecated.  The PR server should be used to automatically increment the PR.  See: https://wiki.yoctoproject.org/wiki/PR_Service.
 WARNING: Use of PRINC 2 was detected in the recipe /home/ale/t20/oe-core/build/../stuff/openembedded-core/meta/recipes-multimedia/gstreamer/gst-plugins-bad_0.10.23.bb (or one of its .bbappends)
 Use of PRINC is deprecated.  The PR server should be used to automatically increment the PR.  See: https://wiki.yoctoproject.org/wiki/PR_Service.
 WARNING: Use of PRINC 2 was detected in the recipe /home/ale/t20/oe-core/build/../stuff/openembedded-core/meta/recipes-multimedia/gstreamer/gst-plugins-bad_0.10.23.bb (or one of its .bbappends)
 Use of PRINC is deprecated.  The PR server should be used to automatically increment the PR.  See: https://wiki.yoctoproject.org/wiki/PR_Service.
 WARNING: Use of PRINC 2 was detected in the recipe /home/ale/t20/oe-core/build/../stuff/openembedded-core/meta/recipes-multimedia/gstreamer/gst-plugins-bad_0.10.23.bb (or one of its .bbappends)
 Use of PRINC is deprecated.  The PR server should be used to automatically increment the PR.  See: https://wiki.yoctoproject.org/wiki/PR_Service.
 WARNING: Failed to fetch URL ftp://ftp.debian.org/debian/pool/main/d/debianutils/debianutils_4.4.tar.gz, attempting MIRRORS if available
 WARNING: Use of PRINC 1 was detected in the recipe /home/ale/t20/oe-core/build/../stuff/openembedded-core/meta/recipes-multimedia/gstreamer/gst-plugins-good_0.10.31.bb (or one of its .bbappends)
 Use of PRINC is deprecated.  The PR server should be used to automatically increment the PR.  See: https://wiki.yoctoproject.org/wiki/PR_Service.
 WARNING: Use of PRINC 1 was detected in the recipe /home/ale/t20/oe-core/build/../stuff/openembedded-core/meta/recipes-multimedia/gstreamer/gst-plugins-good_0.10.31.bb (or one of its .bbappends)
 Use of PRINC is deprecated.  The PR server should be used to automatically increment the PR.  See: https://wiki.yoctoproject.org/wiki/PR_Service.
 WARNING: Use of PRINC 1 was detected in the recipe /home/ale/t20/oe-core/build/../stuff/openembedded-core/meta/recipes-multimedia/gstreamer/gst-plugins-good_0.10.31.bb (or one of its .bbappends)
 Use of PRINC is deprecated.  The PR server should be used to automatically increment the PR.  See: https://wiki.yoctoproject.org/wiki/PR_Service.
 WARNING: Failed to fetch URL ftp://ftp.uni-erlangen.de/pub/Linux/LOCAL/dosfstools/dosfstools-2.11.src.tar.gz, attempting MIRRORS if available
 WARNING: Failed to fetch URL http://www.hwaci.com/sw/sqlite/sqlite-2.8.17.tar.gz, attempting MIRRORS if available
 WARNING: trdx-oak-sensors: No generic license file exists for: PublicDomain in any provider
 WARNING: Failed to fetch URL http://www.tux.org/~mayer/linux/nbench-byte-2.2.3.tar.gz, attempting MIRRORS if available
 WARNING: nbench-byte: No generic license file exists for: freely in any provider
 WARNING: nbench-byte: No generic license file exists for: distributable in any provider
 WARNING: Failed to fetch URL http://weather.ou.edu/~apw/projects/stress/stress-1.0.4.tar.gz, attempting MIRRORS if available
 WARNING: Failed to fetch URL ftp://lsof.itap.purdue.edu/pub/tools/unix/lsof/lsof_4.87.tar.bz2, attempting MIRRORS if available
 WARNING: Failed to fetch URL https://alioth.debian.org/frs/download.php/latestfile/3/minicom-2.7.tar.gz, attempting MIRRORS if available
 WARNING: Failed to fetch URL https://releases.linaro.org/13.10/components/toolchain/gdb-linaro/gdb-linaro-7.6.1-2013.10.tar.bz2, attempting MIRRORS if available
 ERROR: Fetcher failure: Fetch command failed with exit code 8, output:
 https://releases.linaro.org/13.10/components/toolchain/gdb-linaro/gdb-linaro-7.6.1-2013.10.tar.bz2:
 2019-12-09 23:29:40 ERROR 404: Not Found.
 
 ERROR: Function failed: Fetcher failure for URL: 'https://releases.linaro.org/13.10/components/toolchain/gdb-linaro/gdb-linaro-7.6.1-2013.10.tar.bz2'. Unable to fetch URL from any source.
 ERROR: Logfile of failure stored in: /home/ale/t20/oe-core/build/out-eglibc/work/armv7at2hf-vfp-angstrom-linux-gnueabi/gdb/linaro-7.6.1-r2013.10/temp/log.do_fetch.98437
 ERROR: Task 1121 (/home/ale/t20/oe-core/build/../stuff/meta-linaro/meta-linaro-toolchain/recipes-devtools/gdb/gdb_linaro-7.6.1.bb, do_fetch) failed with exit code '1'
 WARNING: unclutter: No generic license file exists for: PublicDomain in any provider
 WARNING: Failed to fetch URL http://linuxbrit.co.uk/downloads/scrot-0.8.tar.gz, attempting MIRRORS if available
 ERROR: Fetcher failure: Fetch command failed with exit code 4, output:
 failed: Connection refused.
 
 ERROR: Function failed: Fetcher failure for URL: 'http://linuxbrit.co.uk/downloads/scrot-0.8.tar.gz'. Unable to fetch URL from any source.
 ERROR: Logfile of failure stored in: /home/ale/t20/oe-core/build/out-eglibc/work/armv7at2hf-vfp-angstrom-linux-gnueabi/scrot/0.8-r0/temp/log.do_fetch.99445
 ERROR: Task 821 (/home/ale/t20/oe-core/build/../stuff/meta-toradex/recipes-graphics/scrot/scrot_0.8.bb, do_fetch) failed with exit code '1'
 WARNING: Failed to fetch URL http://gpe.linuxtogo.org/download/source/xserver-common-1.34.tar.gz, attempting MIRRORS if available
 WARNING: Failed to fetch URL ftp://ftp.debian.org/debian/pool/main/m/mime-support/mime-support_3.48-1.tar.gz, attempting MIRRORS if available
 WARNING: Failed to fetch URL http://ftp.de.debian.org/debian/pool/main/m/mklibs/mklibs_0.1.34.tar.gz, attempting MIRRORS if available
 NOTE: Tasks Summary: Attempted 2513 tasks of which 0 didn't need to be rerun and 15 failed.
 NOTE: Writing buildhistory
 No currently running tasks (2513 of 5936)
 
 Summary: 15 tasks failed:
   /home/ale/t20/oe-core/build/../stuff/meta-linaro/meta-linaro-toolchain/recipes-devtools/gcc/gcc-cross-initial_linaro-4.8.bb, do_fetch
   /home/ale/t20/oe-core/build/../stuff/meta-linaro/meta-linaro-toolchain/recipes-core/eglibc/eglibc_linaro-2.19.bb, do_fetch
   virtual:native:/home/ale/t20/oe-core/build/../stuff/openembedded-core/meta/recipes-core/ncurses/ncurses_5.9.bb, do_compile
   virtual:native:/home/ale/t20/oe-core/build/../stuff/openembedded-core/meta/recipes-support/gmp/gmp_5.1.1.bb, do_compile
   /home/ale/t20/oe-core/build/../stuff/meta-linaro/meta-linaro-toolchain/recipes-devtools/gcc/gcc-cross_linaro-4.8.bb, do_fetch
   /home/ale/t20/oe-core/build/../stuff/meta-linaro/meta-linaro-toolchain/recipes-devtools/gcc/libgcc_linaro-4.8.bb, do_fetch
   /home/ale/t20/oe-core/build/../stuff/meta-linaro/meta-linaro-toolchain/recipes-devtools/gcc/gcc-runtime_linaro-4.8.bb, do_fetch
   virtual:native:/home/ale/t20/oe-core/build/../stuff/openembedded-core/meta/recipes-devtools/binutils/binutils_2.24.bb, do_compile
   virtual:native:/home/ale/t20/oe-core/build/../stuff/openembedded-core/meta/recipes-devtools/qemu/qemu_1.7.0.bb, do_compile
   virtual:native:/home/ale/t20/oe-core/build/../stuff/openembedded-core/meta/recipes-support/libgpg-error/libgpg-error_1.12.bb, do_compile
   /home/ale/t20/oe-core/build/../stuff/openembedded-core/meta/recipes-core/eglibc/cross-localedef-native_2.19.bb, do_compile
   /home/ale/t20/oe-core/build/../stuff/meta-toradex/recipes/trdx-nv-binaries/trdx-nv-binaries.bb, do_fetch
   /home/ale/t20/oe-core/build/../stuff/meta-linaro/meta-linaro-toolchain/recipes-devtools/gdb/gdb-cross_linaro-7.6.1.bb, do_fetch
   /home/ale/t20/oe-core/build/../stuff/meta-linaro/meta-linaro-toolchain/recipes-devtools/gdb/gdb_linaro-7.6.1.bb, do_fetch
   /home/ale/t20/oe-core/build/../stuff/meta-toradex/recipes-graphics/scrot/scrot_0.8.bb, do_fetch
 Summary: There were 144 WARNING messages shown.
 Summary: There were 24 ERROR messages shown, returning a non-zero exit code.

I’ m really holding back at this point, could you give me some advice? I didn’t have any problem when built V2.8, but now with V2.3 is a mess…thanks!

What exact distro are you trying to build this on? Given it being ancient you would also need an accident one or just doing it in a suitable Debian container.

cat /etc/os-release

NAME="Ubuntu"
VERSION="16.04.4 LTS (Xenial Xerus)"
ID=ubuntu
ID_LIKE=debian
PRETTY_NAME="Ubuntu 16.04.4 LTS"
VERSION_ID="16.04"
HOME_URL="http://www.ubuntu.com/"
SUPPORT_URL="http://help.ubuntu.com/"
BUG_REPORT_URL="http://bugs.launchpad.net/ubuntu/"
VERSION_CODENAME=xenial
UBUNTU_CODENAME=xenial

It’s the same machine where I built succesfull the LinuxImageV2.8, but cannot build LinuxImageV2.3, wich is power cut tolerant.

So, is there any chance to have an actual image (LinuxImageV2.6 or 2.8) with power cut tolerant?
Case not, what are the steps I need to follow?

PD: I need to update 100 Colibri T20 (which are running an application over Windows ce) to linux and I need to support power cut.

Thanks

Hi, do you have any idea or workaround for this issue? I would appreciate it very much, thanks!

HI @devius

Could you tell us more about your application? What is your use-case?

Regarding your issue, I would suggest you to use Ubuntu 14.x or 12.x as native installation or in a virtual machine or in a container.

Best regards,
Jaski

Hi Jaski,

We are a recent company, Genesis, located in BsAs-Argentina, that carries out developments for the area of ​​passenger transport. We are currently in a software update project for on-board computers for long-distance buses. This update involves more than 100 T20 modules in which we must change the operating system to Linux and also develop a new application.

What would you need to reproduce de error? I think that we’re really close from building the image.

Regards,
Daniel.-

For some reason the answer I wrote was lost, I write it again.
Genesis is a recent company based in Buenos Aires, Argentina, which develops developments for the passenger transport industry. We are currently carrying out a development that involves the updating of the operating system and application of a long-distance bus control system. There are more than 100 units currently running that we have to update.

What do you need to reproduce the error? I think we are so close to compiling the image.

Regards,
Daniel.-

HI @devius

Thanks for your answer. I will forward this question to our local Team in Brazil.

What do you need to reproduce the error? I think we are so close to compiling the image.

I think it will be helpful, if you can share the steps you have done to get to the point where you are stuck now.

Best regards,
Jaski

ok, this are the steps:

mkdir ~/bin
export PATH=~/bin:$PATH
curl http://commondatastorage.googleapis.com/git-repo-downloads/repo > ~/bin/repo
chmod a+x ~/bin/repo


$ mkdir oe-core
$ cd oe-core
$ repo init -u http://git.toradex.com/toradex-bsp-platform.git -b LinuxImageV2.3
$ repo sync

. export

Then I edit local.conf with this:

PREFERRED_PROVIDER_psplash-support = "psplash-angstrom"
PREFERRED_PROVIDER_eglibc = "eglibc"

IMAGE_INSTALL_append = "  qtbase qtdeclarative qtmultimedia qtquick1 qtquickcontrols sqlite qtserialport qtgraphicaleffects qttools   qtlocation qtimageformats qtxmlpatterns"
PACKAGECONFIG_append_pn-qtbase = " sql-sqlite"

and:

MACHINE ?= “colibri-t20”

I applied this patch from Toradex:

V2.3: Linaro's cbuild server is considered temporary and recently down which results in the following eglibc-linaro build failure:
( ERROR: Fetcher failure: Fetch command failed with exit code 8, output: http://cbuild.validation.linaro.org/snapshots/eglibc-linaro-2.19-2014.04.tar.bz2: 2014-11-06 21:00:36 ERROR 503: Service Unavailable. )

cd stuff/meta-linaro
cat <<EOF > eglibc.patch
diff --git a/meta-linaro-toolchain/recipes-core/eglibc/eglibc_linaro-2.19.bb b/meta-linaro-toolchain/recipes-core/eglibc/eglibc_linaro-2.19.bb
index b85181b..990d650 100644
--- a/meta-linaro-toolchain/recipes-core/eglibc/eglibc_linaro-2.19.bb
+++ b/meta-linaro-toolchain/recipes-core/eglibc/eglibc_linaro-2.19.bb
@@ -6,7 +6,7 @@ MMYY = "14.04"
 RELEASE = "20\${MMYY}"
 PR = "r\${RELEASE}"

-SRC_URI = "http://cbuild.validation.linaro.org/snapshots/eglibc-\${PV}-\${RELEASE}.tar.bz2 \\
+SRC_URI = "https://snapshots.linaro.org/openembedded/sources/eglibc-\${PV}-\${RELEASE}.tar.bz2 \\
            file://eglibc-svn-arm-lowlevellock-include-tls.patch \\
            file://IO-acquire-lock-fix.patch \\
            file://mips-rld-map-check.patch \\
EOF
patch -p1 < eglibc.patch

Then I run bitbake -c fetchall angstrom-qt-x11-image several times while correcting differents repo paths until succeed.

Finally I run:

bitbake -k angstrom-qt-x11-image

and this only error result:

  ERROR: Command Error: exit status: 1  Output:
     Applying patch eglibc-svn-arm-lowlevellock-include-tls.patch
     can't find file to patch at input line 14
     Perhaps you used the wrong -p or --strip option?
     The text leading up to this was:
     --------------------------
     |In file included from ../nptl/sysdeps/unix/sysv/linux/libc-lowlevellock.c:21:
     |../nptl/sysdeps/unix/sysv/linux/lowlevellock.c: In function '__lll_lock_wait_private':
     |../nptl/sysdeps/unix/sysv/linux/lowlevellock.c:34: warning: implicit declaration of function 'THREAD_GETMEM'
     |../nptl/sysdeps/unix/sysv/linux/lowlevellock.c:34: error: 'THREAD_SELF' undeclared (first use in this function)
     |../nptl/sysdeps/unix/sysv/linux/lowlevellock.c:34: error: (Each undeclared identifier is reported only once
     |../nptl/sysdeps/unix/sysv/linux/lowlevellock.c:34: error: for each function it appears in.)
     |../nptl/sysdeps/unix/sysv/linux/lowlevellock.c:34: error: 'header' undeclared (first use in this function)
     |make[4]: *** [/var/tmp/portage/sys-libs/glibc-2.7-r1/work/build-default-armv4l-unknown-linux-gnu-nptl/nptl/rtld-libc-lowlevellock.os] Error 1
     |
     |Upstream-Status: Pending
     |
     |--- libc/ports/sysdeps/unix/sysv/linux/arm/nptl/lowlevellock.h.orig
     |+++ libc/ports/sysdeps/unix/sysv/linux/arm/nptl/lowlevellock.h
     --------------------------
     No file to patch.  Skipping patch.
     1 out of 1 hunk ignored
     Patch eglibc-svn-arm-lowlevellock-include-tls.patch does not apply (enforce with -f)
     ERROR: Function failed: patch_do_patch
     ERROR: Logfile of failure stored in: /home/fer/oe-core/build/out-eglibc/work/armv7at2hf-vfp-angstrom-linux-gnueabi/eglibc/linaro-2.19-r2014.04/temp/log.do_patch.26082
     ERROR: Task 38 (/home/fer/oe-core/build/../stuff/meta-linaro/meta-linaro-toolchain/recipes-core/eglibc/eglibc_linaro-2.19.bb, do_patch) failed with exit code '1'

The problem seems to be with the recipe eglibc_linaro-2.19.bb, this is the content:

require recipes-core/eglibc/eglibc.inc

DEPENDS += "gperf-native kconfig-frontends-native"

MMYY = "14.04"
RELEASE = "20${MMYY}"
PR = "r${RELEASE}"

SRC_URI = "https://git.linaro.org/toolchain/eglibc.git/snapshot/eglibc-linaro_eglibc-2_19-2014_04_release.tar.gz \
           file://eglibc-svn-arm-lowlevellock-include-tls.patch \
           file://IO-acquire-lock-fix.patch \
           file://mips-rld-map-check.patch \
           file://etc/ld.so.conf \
           file://generate-supported.mk \
           file://glibc.fix_sqrt2.patch \
           file://multilib_readlib.patch \
           file://ppc-sqrt_finite.patch \
           file://GLRO_dl_debug_mask.patch \
           file://initgroups_keys.patch \
           file://eglibc_fix_findidx_parameters.patch \
           file://ppc_slow_ieee754_sqrt.patch \
           file://fileops-without-wchar-io.patch \
           file://add_resource_h_to_wait_h.patch \
           file://0001-eglibc-menuconfig-support.patch \
           file://0002-eglibc-menuconfig-hex-string-options.patch \
           file://0003-eglibc-menuconfig-build-instructions.patch \
           file://fsl-ppc-no-fsqrt.patch \
           file://0001-R_ARM_TLS_DTPOFF32.patch \
           file://0001-eglibc-run-libm-err-tab.pl-with-specific-dirs-in-S.patch \
           file://fix-tibetian-locales.patch \
          "

SRC_URI[md5sum] = "14d0e7e08e4a01f07c7f225b1e675de5"
SRC_URI[sha256sum] = "93dc4dea5b9ec0cc200306f21a9b04ea744b405ddc016c08582992a8fd75f923"

LIC_FILES_CHKSUM = "file://LICENSES;md5=e9a558e243b36d3209f380deb394b213 \
      file://COPYING;md5=b234ee4d69f5fce4486a80fdaf4a4263 \
      file://posix/rxspencer/COPYRIGHT;md5=dc5485bb394a13b2332ec1c785f5d83a \
      file://COPYING.LIB;md5=4fbd65380cdd255951079008b364516c"

SRC_URI_append_class-nativesdk = " file://ld-search-order.patch \
            file://relocatable_sdk.patch \
            file://relocatable_sdk_fix_openpath.patch \
            "
S = "${WORKDIR}/eglibc-${PV}-${RELEASE}"
B = "${WORKDIR}/build-${TARGET_SYS}"

PACKAGES_DYNAMIC = ""

# the -isystem in bitbake.conf screws up glibc do_stage
BUILD_CPPFLAGS = "-I${STAGING_INCDIR_NATIVE}"
TARGET_CPPFLAGS = "-I${STAGING_DIR_TARGET}${includedir}"

GLIBC_BROKEN_LOCALES = " _ER _ET so_ET yn_ER sid_ET tr_TR mn_MN gez_ET gez_ER bn_BD te_IN es_CR.ISO-8859-1"

FILESPATH = "${@base_set_filespath([ '${FILE_DIRNAME}/eglibc-${PV}', '${FILE_DIRNAME}/eglibc', '${FILE_DIRNAME}/files', '${FILE_DIRNAME}' ], d)}"

#
# For now, we will skip building of a gcc package if it is a uclibc one
# and our build is not a uclibc one, and we skip a glibc one if our build
# is a uclibc build.
#
# See the note in gcc/gcc_3.4.0.oe
#

python __anonymous () {
    import re
    uc_os = (re.match('.*uclibc$', d.getVar('TARGET_OS', True)) != None)
    if uc_os:
        raise bb.parse.SkipPackage("incompatible with target %s" %
                                   d.getVar('TARGET_OS', True))
}

export libc_cv_slibdir = "${base_libdir}"

EXTRA_OECONF = "--enable-kernel=${OLDEST_KERNEL} \
                --without-cvs --disable-profile \
                --disable-debug --without-gd \
                --enable-clocale=gnu \
                --enable-add-ons \
                --with-headers=${STAGING_INCDIR} \
                --without-selinux \
                --enable-obsolete-rpc \
                --with-kconfig=${STAGING_BINDIR_NATIVE} \
                ${GLIBC_EXTRA_OECONF}"

EXTRA_OECONF += "${@get_libc_fpu_setting(bb, d)}"

do_patch_append() {
    bb.build.exec_func('do_fix_readlib_c', d)
}

# for mips eglibc now builds syscall tables for all abi's
# so we make sure that we choose right march option which is
# compatible with o32,n32 and n64 abi's
# e.g. -march=mips32 is not compatible with n32 and n64 therefore
# we filter it out in such case -march=from-abi which will be
# mips1 when using o32 and mips3 when using n32/n64

TUNE_CCARGS_mips := "${@oe_filter_out('-march=mips32', '${TUNE_CCARGS}', d)}"
TUNE_CCARGS_mipsel := "${@oe_filter_out('-march=mips32', '${TUNE_CCARGS}', d)}"

do_fix_readlib_c () {
	sed -i -e 's#OECORE_KNOWN_INTERPRETER_NAMES#${EGLIBC_KNOWN_INTERPRETER_NAMES}#' ${S}/elf/readlib.c
}

do_configure () {
# override this function to avoid the autoconf/automake/aclocal/autoheader
# calls for now
# don't pass CPPFLAGS into configure, since it upsets the kernel-headers
# version check and doesn't really help with anything
        if [ -z "`which rpcgen`" ]; then
                echo "rpcgen not found.  Install glibc-devel."
                exit 1
        fi
        (cd ${S} && gnu-configize) || die "failure in running gnu-configize"
        find ${S} -name "configure" | xargs touch
        CPPFLAGS="" oe_runconf
}

rpcsvc = "bootparam_prot.x nlm_prot.x rstat.x \
	  yppasswd.x klm_prot.x rex.x sm_inter.x mount.x \
	  rusers.x spray.x nfs_prot.x rquota.x key_prot.x"

do_compile () {
	# -Wl,-rpath-link <staging>/lib in LDFLAGS can cause breakage if another glibc is in staging
	unset LDFLAGS
	base_do_compile
	(
		cd ${S}/sunrpc/rpcsvc
		for r in ${rpcsvc}; do
			h=`echo $r|sed -e's,\.x$,.h,'`
			rpcgen -h $r -o $h || bbwarn "unable to generate header for $r"
		done
	)
	echo "Adjust ldd script"
	if [ -n "${RTLDLIST}" ]
	then
		prevrtld=`cat ${B}/elf/ldd | grep "^RTLDLIST=" | sed 's#^RTLDLIST="\?\([^"]*\)"\?$#\1#'`
		if [ "${prevrtld}" != "${RTLDLIST}" ]
		then
			sed -i ${B}/elf/ldd -e "s#^RTLDLIST=.*\$#RTLDLIST=\"${prevrtld} ${RTLDLIST}\"#"
		fi
	fi

}

# In case of aarch64_be install symlink to ld-linux-aarch64_be.so.1
# to enable transition of toolchain and executables that are not yet
# aware about aarch64_be run-time linker name change.
#
# Currently there is no use case that requires both LE and BE eglibc
# installed into the same rootfs, so our transitional symlink should
# be fine.
#
do_install_append_aarch64-be() {
    ln -sf ld-linux-aarch64_be.so.1 ${D}${base_libdir}/ld-linux-aarch64.so.1
}

require recipes-core/eglibc/eglibc-package.inc

BBCLASSEXTEND = "nativesdk"

Patch files seems to failed for some reason. Thanks a lot for your help, I think that is something I missed up…but seems to be some puntual issue. I will appreciate a lot your help.

Whatever you need just let me know

Thanks.

Hi, do you have any update on this?

Thanks!