Thor96 - full image build errors

Hello,

I am trying to build a full image for my Thor96 board with

Kernel 5.10.52 or 5.4.47, using the scripts (yocto_build_setup_thor96.sh) from the repo - https://github.com/ArrowElectronics/I.IMX8_Thor96/

The problem, I am facing, is that there are a lot of missing repositories, on which the yocto build is depending on.

The “do_fetch()” step for those is causing the build to fail.

For example:

ERROR: qtdeclarative-native-5.15.2+gitAUTOINC+104eae5b17-r0 do_fetch: Fetcher failure: Unable to find revision 104eae5b17b0ec700391e9539ee3a4f638588194 in branch 5.15.2 even from upstream

ERROR: qtdeclarative-native-5.15.2+gitAUTOINC+104eae5b17-r0 do_fetch: Fetcher failure for URL: 'git://code.qt.io/qt/qtdeclarative.git;name=qtdeclarative;branch=5.15.2;protocol=git'. Unable to fetch URL from any source.

ERROR: Task (virtual:native:/I.IMX8_Thor96/Kernel_5_10_52/imx-yocto-bsp/sources/meta-qt5/recipes-qt/qt5/qtdeclarative_git.bb:do_fetch) failed with exit code '1'

ERROR: qtbase-native-5.15.2+gitAUTOINC+40143c189b-r0 do_fetch: Fetcher failure: Unable to find revision 40143c189b7c1bf3c2058b77d00ea5c4e3be8b28 in branch 5.15.2 even from upstream

ERROR: qtbase-native-5.15.2+gitAUTOINC+40143c189b-r0 do_fetch: Fetcher failure for URL: 'git://code.qt.io/qt/qtbase.git;name=qtbase;branch=5.15.2;protocol=git'. Unable to fetch URL from any source.

ERROR: Logfile of failure stored in: /I.IMX8_Thor96/Kernel_5_10_52/imx-yocto-bsp/build-xwayland-thor96/tmp/work/x86_64-linux/qtbase-native/5.15.2+gitAUTOINC+40143c189b-r0/temp/log.do_fetch.32629

ERROR: Task (/I.IMX8_Thor96/Kernel_5_10_52/imx-yocto-bsp/sources/meta-qt5/recipes-qt/qt5/qtbase-native_git.bb:do_fetch) failed with exit code '1'

Those are NOT the only onces that fail, I am using them only as an example.

The host machine is running Ubuntu 18.04 as per mentioned in

ei_User_Guide_IMX8M_Thor96_L5_10_Rel_4_3.pdf.

I have tried to change the command (inside the yocto_build_setup_thor96.sh scripts)

bitbake imx-image-full to bitbake imx-image-multimedia,

in order to skip some dependencies to Qt and ML libs, but it also fails.

Do you have any recommendations on what can be changed in order the build to pass?

Also if there is an artifactory, in which the full images are stored can you provide access to it?

Thank you in advance!

It might not be enough to get the build to work but I think the qt5 problems are caused by a reorganization of the branches on the QT servers. You might be able to solve that by copying line 5 of https://github.com/meta-qt5/meta-qt5/blob/honister/recipes-qt/qt5/qt5-git.inc into your own copy of qt5-git.inc (e.g. removing the .2 from the end of QT_MODULE_BRANCH).

Hi @danielt.
I am facing same issue building on “Gatesgarth”. Your suggested fix didn’tresolve the issue. Please comment if this still works!!
@Ivan_Filipov Please let me know if this fixed did work for you!!

Thanks

The original reporter didn’t reply so, to be honest, I have no idea it has ever worked.

However if the SHA1 hashes cannot be found on the 5.15 branch than you could try turning off branch validation instead (as mentioned previously, these problems are caused by a branch re-organization on the QT git repo hence the branch validation is probably failing). Also in recipes-qt/qt5/qt5-git.inc then try updating QT_MODULE_BRANCH_PARAM to:

QT_MODULE_BRANCH_PARAM ?= "nobranch=1"