Unable to build Yocto image


#1

Hello,

I have clone the repo with the tag ‘v1.0.7’.

Bitbake give warning about not being able to patch some file.
Bitbake is not able to fetch “git://github.com/Andre-ARM/arm-trusted-firmware;branch=allwinner/pmic-v2” in task atf-sunxi-git-r0 do_fetch.

Here is output of my copilation:


yoctouser@425a82b856ed:/yocto/neutis-image/build$ bitbake neutis-image
Parsing recipes: 100% |#########################################################################################################################################################################################################################################| Time: 0:01:13
Parsing of 2118 .bb files complete (0 cached, 2118 parsed). 3000 targets, 101 skipped, 0 masked, 0 errors.
NOTE: Resolving any missing task queue dependencies

Build Configuration:
BB_VERSION = “1.38.0”
BUILD_SYS = “x86_64-linux”
NATIVELSBSTRING = “ubuntu-16.04”
TARGET_SYS = “aarch64-poky-linux”
MACHINE = “neutis-n5”
DISTRO = “poky-neutis”
DISTRO_VERSION = “1.0.7”
TUNE_FEATURES = “aarch64”
TARGET_FPU = “”
meta
meta-poky
meta-yocto-bsp = “HEAD:bb91b2ae3ee5cf108aa2f9b78abb14d5aa00831d”
meta-sunxi = “HEAD:2c71a7d593f7d35b1bb8fec7aa3944b0295e036e”
meta-oe
meta-python
meta-networking
meta-webserver = “HEAD:b0950aeff5b630256bb5e25ca15f4d59c115e7c1”
meta-neutis-bsp
meta-neutis-distro = “HEAD:e020b06b5c5b36581ae72ab7a4b932913cdf96a0”
meta-emlid-neutis-manufacturing = “HEAD:e088e22dd6418da88962dffc643a5c22c0346f72”
meta-qt5 = “HEAD:c429cedc9d6babf41feb70211285662356c4125d”
meta-emlid-neutis-examples = “HEAD:c7fdae40547ba7198bfeca3490bf7e0d99136478”

NOTE: Fetching uninative binary shim from http://downloads.yoctoproject.org/releases/uninative/2.2/x86_64-nativesdk-libc.tar.bz2;sha256sum=e3b77208169bf1ac4e89496f3cdbf27695f5b18a2694a908a793390f28b67f83
Initialising tasks: 100% |######################################################################################################################################################################################################################################| Time: 0:00:03
NOTE: Executing SetScene Tasks
NOTE: Executing RunQueue Tasks
WARNING: bzip2-native-1.0.6-r5 do_fetch: Checksum mismatch for local file /yocto/neutis-image/build/downloads/bzip2-1.0.6.tar.gz
Cleaning and trying again.
WARNING: bzip2-native-1.0.6-r5 do_fetch: Renaming /yocto/neutis-image/build/downloads/bzip2-1.0.6.tar.gz to /yocto/neutis-image/build/downloads/bzip2-1.0.6.tar.gz_bad-checksum_bb6639fad5666cfe31b46330395a3352
WARNING: bzip2-native-1.0.6-r5 do_fetch: Checksum failure encountered with download of http://www.bzip.org/1.0.6/bzip2-1.0.6.tar.gz - will attempt other sources if available
WARNING: openssl-native-1.0.2k-r0 do_patch:
Some of the context lines in patches were ignored. This can lead to incorrectly applied patches.
The context lines in the patches can be updated with devtool:

devtool modify <recipe>
devtool finish --force-patch-refresh <recipe> <layer_path>

Then the updated patches and the source tree (in devtool’s workspace)
should be reviewed to make sure the patches apply in the correct place
and don’t introduce duplicate lines (which can, and does happen
when some of the context is ignored). Further information:
http://lists.openembedded.org/pipermail/openembedded-core/2018-March/148675.html
https://bugzilla.yoctoproject.org/show_bug.cgi?id=10450
Details:
Applying patch c_rehash-compat.patch
patching file tools/c_rehash.in
Hunk #5 succeeded at 175 with fuzz 1 (offset 1 line).

Now at patch c_rehash-compat.patch
WARNING: openssl-native-1.0.2k-r0 do_patch:
Some of the context lines in patches were ignored. This can lead to incorrectly applied patches.
The context lines in the patches can be updated with devtool:

devtool modify <recipe>
devtool finish --force-patch-refresh <recipe> <layer_path>

Then the updated patches and the source tree (in devtool’s workspace)
should be reviewed to make sure the patches apply in the correct place
and don’t introduce duplicate lines (which can, and does happen
when some of the context is ignored). Further information:
http://lists.openembedded.org/pipermail/openembedded-core/2018-March/148675.html
https://bugzilla.yoctoproject.org/show_bug.cgi?id=10450
Details:
Applying patch debian-targets.patch
patching file Configure
Hunk #1 succeeded at 133 with fuzz 2 (offset 26 lines).
Hunk #2 succeeded at 373 (offset 26 lines).

Now at patch debian-targets.patch
WARNING: openssl-native-1.0.2k-r0 do_patch:
Some of the context lines in patches were ignored. This can lead to incorrectly applied patches.
The context lines in the patches can be updated with devtool:

devtool modify <recipe>
devtool finish --force-patch-refresh <recipe> <layer_path>

Then the updated patches and the source tree (in devtool’s workspace)
should be reviewed to make sure the patches apply in the correct place
and don’t introduce duplicate lines (which can, and does happen
when some of the context is ignored). Further information:
http://lists.openembedded.org/pipermail/openembedded-core/2018-March/148675.html
https://bugzilla.yoctoproject.org/show_bug.cgi?id=10450
Details:
Applying patch Makefiles-ptest.patch
patching file Makefile.org
Hunk #1 succeeded at 460 (offset 9 lines).
patching file test/Makefile
Hunk #1 succeeded at 149 (offset 12 lines).
Hunk #2 succeeded at 161 with fuzz 2 (offset 13 lines).
Hunk #3 succeeded at 234 (offset 16 lines).
Hunk #4 succeeded at 334 (offset 16 lines).

Now at patch Makefiles-ptest.patch
WARNING: openssl-native-1.0.2k-r0 do_patch:
Some of the context lines in patches were ignored. This can lead to incorrectly applied patches.
The context lines in the patches can be updated with devtool:

devtool modify <recipe>
devtool finish --force-patch-refresh <recipe> <layer_path>

Then the updated patches and the source tree (in devtool’s workspace)
should be reviewed to make sure the patches apply in the correct place
and don’t introduce duplicate lines (which can, and does happen
when some of the context is ignored). Further information:
http://lists.openembedded.org/pipermail/openembedded-core/2018-March/148675.html
https://bugzilla.yoctoproject.org/show_bug.cgi?id=10450
Details:
Applying patch openssl-1.0.2a-x32-asm.patch
patching file crypto/perlasm/x86_64-xlate.pl
Hunk #1 succeeded at 268 with fuzz 2 (offset 73 lines).

Now at patch openssl-1.0.2a-x32-asm.patch
WARNING: openssl-native-1.0.2k-r0 do_patch:
Some of the context lines in patches were ignored. This can lead to incorrectly applied patches.
The context lines in the patches can be updated with devtool:

devtool modify <recipe>
devtool finish --force-patch-refresh <recipe> <layer_path>

Then the updated patches and the source tree (in devtool’s workspace)
should be reviewed to make sure the patches apply in the correct place
and don’t introduce duplicate lines (which can, and does happen
when some of the context is ignored). Further information:
http://lists.openembedded.org/pipermail/openembedded-core/2018-March/148675.html
https://bugzilla.yoctoproject.org/show_bug.cgi?id=10450
Details:
Applying patch parallel.patch
patching file crypto/Makefile
patching file engines/Makefile
Hunk #3 succeeded at 128 with fuzz 1.
patching file Makefile.org
Hunk #1 succeeded at 283 (offset 4 lines).
Hunk #2 succeeded at 557 (offset 13 lines).
patching file Makefile.shared
Hunk #1 succeeded at 105 with fuzz 1.
patching file test/Makefile
Hunk #3 succeeded at 580 with fuzz 1.
patch unexpectedly ends in middle of line
patch unexpectedly ends in middle of line

Now at patch parallel.patch
WARNING: openssl-1.0.2k-r0 do_patch:
Some of the context lines in patches were ignored. This can lead to incorrectly applied patches.
The context lines in the patches can be updated with devtool:

devtool modify <recipe>
devtool finish --force-patch-refresh <recipe> <layer_path>

Then the updated patches and the source tree (in devtool’s workspace)
should be reviewed to make sure the patches apply in the correct place
and don’t introduce duplicate lines (which can, and does happen
when some of the context is ignored). Further information:
http://lists.openembedded.org/pipermail/openembedded-core/2018-March/148675.html
https://bugzilla.yoctoproject.org/show_bug.cgi?id=10450
Details:
Applying patch c_rehash-compat.patch
patching file tools/c_rehash.in
Hunk #5 succeeded at 175 with fuzz 1 (offset 1 line).

Now at patch c_rehash-compat.patch
WARNING: openssl-1.0.2k-r0 do_patch:
Some of the context lines in patches were ignored. This can lead to incorrectly applied patches.
The context lines in the patches can be updated with devtool:

devtool modify <recipe>
devtool finish --force-patch-refresh <recipe> <layer_path>

Then the updated patches and the source tree (in devtool’s workspace)
should be reviewed to make sure the patches apply in the correct place
and don’t introduce duplicate lines (which can, and does happen
when some of the context is ignored). Further information:
http://lists.openembedded.org/pipermail/openembedded-core/2018-March/148675.html
https://bugzilla.yoctoproject.org/show_bug.cgi?id=10450
Details:
Applying patch debian-targets.patch
patching file Configure
Hunk #1 succeeded at 133 with fuzz 2 (offset 26 lines).
Hunk #2 succeeded at 373 (offset 26 lines).

Now at patch debian-targets.patch
WARNING: openssl-1.0.2k-r0 do_patch:
Some of the context lines in patches were ignored. This can lead to incorrectly applied patches.
The context lines in the patches can be updated with devtool:

devtool modify <recipe>
devtool finish --force-patch-refresh <recipe> <layer_path>

Then the updated patches and the source tree (in devtool’s workspace)
should be reviewed to make sure the patches apply in the correct place
and don’t introduce duplicate lines (which can, and does happen
when some of the context is ignored). Further information:
http://lists.openembedded.org/pipermail/openembedded-core/2018-March/148675.html
https://bugzilla.yoctoproject.org/show_bug.cgi?id=10450
Details:
Applying patch Makefiles-ptest.patch
patching file Makefile.org
Hunk #1 succeeded at 460 (offset 9 lines).
patching file test/Makefile
Hunk #1 succeeded at 149 (offset 12 lines).
Hunk #2 succeeded at 161 with fuzz 2 (offset 13 lines).
Hunk #3 succeeded at 234 (offset 16 lines).
Hunk #4 succeeded at 334 (offset 16 lines).

Now at patch Makefiles-ptest.patch
WARNING: openssl-1.0.2k-r0 do_patch:
Some of the context lines in patches were ignored. This can lead to incorrectly applied patches.
The context lines in the patches can be updated with devtool:

devtool modify <recipe>
devtool finish --force-patch-refresh <recipe> <layer_path>

Then the updated patches and the source tree (in devtool’s workspace)
should be reviewed to make sure the patches apply in the correct place
and don’t introduce duplicate lines (which can, and does happen
when some of the context is ignored). Further information:
http://lists.openembedded.org/pipermail/openembedded-core/2018-March/148675.html
https://bugzilla.yoctoproject.org/show_bug.cgi?id=10450
Details:
Applying patch openssl-1.0.2a-x32-asm.patch
patching file crypto/perlasm/x86_64-xlate.pl
Hunk #1 succeeded at 268 with fuzz 2 (offset 73 lines).

Now at patch openssl-1.0.2a-x32-asm.patch
WARNING: openssl-1.0.2k-r0 do_patch:
Some of the context lines in patches were ignored. This can lead to incorrectly applied patches.
The context lines in the patches can be updated with devtool:

devtool modify <recipe>
devtool finish --force-patch-refresh <recipe> <layer_path>

Then the updated patches and the source tree (in devtool’s workspace)
should be reviewed to make sure the patches apply in the correct place
and don’t introduce duplicate lines (which can, and does happen
when some of the context is ignored). Further information:
http://lists.openembedded.org/pipermail/openembedded-core/2018-March/148675.html
https://bugzilla.yoctoproject.org/show_bug.cgi?id=10450
Details:
Applying patch parallel.patch
patching file crypto/Makefile
patching file engines/Makefile
Hunk #3 succeeded at 128 with fuzz 1.
patching file Makefile.org
Hunk #1 succeeded at 283 (offset 4 lines).
Hunk #2 succeeded at 557 (offset 13 lines).
patching file Makefile.shared
Hunk #1 succeeded at 105 with fuzz 1.
patching file test/Makefile
Hunk #3 succeeded at 580 with fuzz 1.
patch unexpectedly ends in middle of line
patch unexpectedly ends in middle of line

Now at patch parallel.patch
WARNING: lsof-4.89-r0 do_fetch: Failed to fetch URL http://www.mirrorservice.org/sites/lsof.itap.purdue.edu/pub/tools/unix/lsof/lsof_4.89.tar.bz2, attempting MIRRORS if available
WARNING: atf-sunxi-git-r0 do_fetch: Failed to fetch URL git://github.com/Andre-ARM/arm-trusted-firmware;branch=allwinner/pmic-v2, attempting MIRRORS if available
ERROR: atf-sunxi-git-r0 do_fetch: Fetcher failure: Unable to find revision 7db0c96023281d8a530f5e011a232e5d56557437 in branch allwinner/pmic-v2 even from upstream
ERROR: atf-sunxi-git-r0 do_fetch: Fetcher failure for URL: ‘git://github.com/Andre-ARM/arm-trusted-firmware;branch=allwinner/pmic-v2’. Unable to fetch URL from any source.
ERROR: atf-sunxi-git-r0 do_fetch: Function failed: base_do_fetch
ERROR: Logfile of failure stored in: /yocto/neutis-image/build/tmp/work/aarch64-poky-linux/atf-sunxi/git-r0/temp/log.do_fetch.29478
ERROR: Task (/yocto/neutis-image/meta-layers/meta-sunxi/recipes-bsp/atf/atf-sunxi_git.bb:do_fetch) failed with exit code ‘1’
NOTE: Tasks Summary: Attempted 1888 tasks of which 5 didn’t need to be rerun and 1 failed.

Summary: 1 task failed:
/yocto/neutis-image/meta-layers/meta-sunxi/recipes-bsp/atf/atf-sunxi_git.bb:do_fetch
Summary: There were 15 WARNING messages shown.
Summary: There were 3 ERROR messages shown, returning a non-zero exit code.


#3

Hi,

Yes, it is known issue. Sorry for this, I pushed a new release to Neutis-image with the tag v1.0.8.
Please try it.


#4

It work, with the V1.0.8 tag of the neutis-image repo.

But I had to do :
bitbake -f -c cleanall linux-sunxi neutis-image
bitbake neutis-image

after the first compilation. Otherwise the image file does not work.


Neutis Flasher Tool v1.1.1 for Windows problem
#5

It will be fixed soon, this is known issue.
Thank you for the report.