This is a cache of https://discuss.96boards.org/t/yocto-build-problem/6580. It is a snapshot of the page at 2024-11-01T10:01:49.940+0000.
Yocto build problem - Rock960 - 96Boards Forum

Yocto build problem

Hi support

After when i bought your board Rock960, downloading Yocto and tried to generate the first test environment, i had weird fault.

I tried to build using configuration on this topic:

linux-rockchip_4.4.bb:
"
require recipes-kernel/linux/linux-yocto.inc

DEPENDS += “openssl-native”

SRC_URI = "
git://github.com/96rocks/kernel.git;branch=rock960-4.4-dev;
"

#SRCREV = “15dbb651be03ed7f9905f2e7c54b61d55011f54a”
SRCREV = “1bbc6c266324425d3709924be253976a19da83b7”

LINUX_VERSION = “4.4.103”

Override local version in order to use the one generated by linux build system

And not “yocto-standard”

LINUX_VERSION_EXTENSION = “”
PR = “r1”
PV = “${LINUX_VERSION}”

Include only supported boards for now

COMPATIBLE_MACHINE = “(rk3036|rk3066|rk3288|rk3328|rk3399)”
deltask kernel_configme
"

part from LOGS:
"
WARNING: Failed to fetch URL git://github.com/rockchip-linux/rkbin.git, attempting MIRRORS if available
DEBUG: Fetcher failure: Unable to find revision f64ded672836b47db3f6a0d04d8ccb4180fb3d55 in branch master even from upstream
DEBUG: Trying MIRRORS
DEBUG: For url [‘git’, ‘github.com’, ‘/rockchip-linux/rkbin.git’, ‘’, ‘’, OrderedDict()] comparing [‘ftp’, ‘.’, '/.’, ‘’, ‘’, OrderedDict()] to [‘http’, ‘downloads.yoctoproject.org’, ‘/mirror/sources/’, ‘’, ‘’, OrderedDict()]
"

Regards
Bartosz

Hi,

I have checked both cloning

git://github.com/rockchip-linux/rkbin.git

and

https://github.com/rockchip-linux/rkbin.git

works. Also the commit id f64ded672836b47db3f6a0d04d8ccb4180fb3d55 is available in the repo.

commit f64ded672836b47db3f6a0d04d8ccb4180fb3d55
Author: Jacob Chen <jacob-chen@iotwrt.com>
Date:   Mon Nov 27 17:54:02 2017 +0800

rv1x: add back usb boot bin for rv1108

Signed-off-by: Jacob Chen <jacob-chen@iotwrt.com>

So it looks like a network issue. Can you try to test if clone rkbin.git directly possible?

Hi. I’ve had the same issue with my build in yocto. When I clone rkbin.git directly and checkout to commit f64ded672836b47db3f6a0d04d8ccb4180fb3d55 there’s no issue.

Hi

I have similar problem. I copied bitbake logs below. Could you please check it?

csagin@csagin-hp:~/YoctoProject/poky/build$ bitbake core-image-minimal
WARNING: Layer rockchip should set LAYERSERIES_COMPAT_rockchip in its conf/layer.conf file to list the core layer names it is compatible with.
WARNING: Layer rockchip should set LAYERSERIES_COMPAT_rockchip in its conf/layer.conf file to list the core layer names it is compatible with.
Parsing recipes: 100% |######################################################################################################################################################################| Time: 0:00:35
Parsing of 859 .bb files complete (0 cached, 859 parsed). 1327 targets, 67 skipped, 0 masked, 0 errors.
NOTE: Resolving any missing task queue dependencies
NOTE: preferred version 4.4 of linux-rockchip not available (for item virtual/kernel)
NOTE: versions of linux-rockchip available: 4.4.103
NOTE: preferred version 4.4 of linux-rockchip not available (for item kernel-base)
NOTE: versions of linux-rockchip available: 4.4.103
NOTE: preferred version 4.4 of linux-rockchip not available (for item kernel-image-image)
NOTE: versions of linux-rockchip available: 4.4.103
NOTE: preferred version 4.4 of linux-rockchip not available (for item kernel-image)
NOTE: versions of linux-rockchip available: 4.4.103

Build Configuration:
BB_VERSION = "1.38.0"
BUILD_SYS = "x86_64-linux"
NATIVELSBSTRING = "ubuntu-16.04"
TARGET_SYS = "aarch64-poky-linux"
MACHINE = "rock960-rk3399"
DISTRO = "poky"
DISTRO_VERSION = "2.5.1"
TUNE_FEATURES = "aarch64"
TARGET_FPU = ""
**meta **
**meta-poky **
meta-yocto-bsp = "sumo:64a257fa22126c4a40ff7e03424a404e360ebe1e"
meta-rockchip = "master:226b2b3f4b584943cd1f0436cfae6285edbefe10"

NOTE: Fetching uninative binary shim from http://downloads.yoctoproject.org/releases/uninative/2.3/x86_64-nativesdk-libc.tar.bz2;sha256sum=c6954563dad3c95608117c6fc328099036c832bbd924ebf5fdccb622fc0a8684
Initialising tasks: 100% |###################################################################################################################################################################| Time: 0:00:01
NOTE: Executing SetScene Tasks
NOTE: Executing RunQueue Tasks
WARNING: mpfr-native-3.1.5-r0 do_fetch: Failed to fetch URL http://www.mpfr.org/mpfr-3.1.5/mpfr-3.1.5.tar.xz, attempting MIRRORS if available
WARNING: rk-binary-native-git-r0 do_fetch: Failed to fetch URL git://github.com/rockchip-linux/rkbin.git, attempting MIRRORS if available
ERROR: rk-binary-native-git-r0 do_fetch: Fetcher failure: Unable to find revision f64ded672836b47db3f6a0d04d8ccb4180fb3d55 in branch master even from upstream
ERROR: rk-binary-native-git-r0 do_fetch: Fetcher failure for URL: ‘git://github.com/rockchip-linux/rkbin.git’. Unable to fetch URL from any source.
ERROR: rk-binary-native-git-r0 do_fetch: Function failed: base_do_fetch
ERROR: Logfile of failure stored in: /home/csagin/YoctoProject/poky/build/tmp/work/x86_64-linux/rk-binary-native/git-r0/temp/log.do_fetch.24001
ERROR: Task (/home/csagin/YoctoProject/poky/meta-rockchip/recipes-bsp/rk-binary/rk-binary-native_git.bb:do_fetch) failed with exit code '1’
WARNING: rk-binary-loader-git-r0 do_fetch: Failed to fetch URL git://github.com/rockchip-linux/rkbin.git, attempting MIRRORS if available
ERROR: rk-binary-loader-git-r0 do_fetch: Fetcher failure: Unable to find revision f64ded672836b47db3f6a0d04d8ccb4180fb3d55 in branch master even from upstream
ERROR: rk-binary-loader-git-r0 do_fetch: Fetcher failure for URL: ‘git://github.com/rockchip-linux/rkbin.git’. Unable to fetch URL from any source.
ERROR: rk-binary-loader-git-r0 do_fetch: Function failed: base_do_fetch
ERROR: Logfile of failure stored in: /home/csagin/YoctoProject/poky/build/tmp/work/aarch64-poky-linux/rk-binary-loader/git-r0/temp/log.do_fetch.28545
ERROR: Task (/home/csagin/YoctoProject/poky/meta-rockchip/recipes-bsp/rk-binary/rk-binary-loader_git.bb:do_fetch) failed with exit code '1’
NOTE: Tasks Summary: Attempted 1865 tasks of which 0 didn’t need to be rerun and 2 failed.

Summary: 2 tasks failed:
** /home/csagin/YoctoProject/poky/meta-rockchip/recipes-bsp/rk-binary/rk-binary-native_git.bb:do_fetch**
** /home/csagin/YoctoProject/poky/meta-rockchip/recipes-bsp/rk-binary/rk-binary-loader_git.bb:do_fetch**
Summary: There were 5 WARNING messages shown.
Summary: There were 6 ERROR messages shown, returning a non-zero exit code.

I also want to add some log messages from log file, process can not access to “http://sources.openembedded.org/git2_github.com.rockchip-linux.rkbin.git.tar.gz” file. Is it a problem???

Best Regards

Resolving sources.openembedded.org (sources.openembedded.org)… 140.211.169.54
Connecting to sources.openembedded.org (sources.openembedded.org)|140.211.169.54|:80… connected.
HTTP request sent, awaiting response… 404 Not Found
2018-12-01 11:14:23 ERROR 404: Not Found.

DEBUG: Mirror fetch failure for url http://sources.openembedded.org/git2_github.com.rockchip-linux.rkbin.git.tar.gz (original url: git://github.com/rockchip-linux/rkbin.git)
DEBUG: Fetcher failure: Fetch command export PSEUDO_DISABLED=1; export DBUS_SESSION_BUS_ADDRESS=“unix:abstract=/tmp/dbus-0OW0llAW9D”; export SSH_AUTH_SOCK="/run/user/1000/keyring/ssh"; export PATH="/home/csagin/YoctoProject/poky/scripts/native-intercept:/home/csagin/YoctoProject/poky/build/tmp/sysroots-uninative/x86_64-linux/usr/bin:/home/csagin/YoctoProject/poky/scripts:/home/csagin/YoctoProject/poky/build/tmp/work/x86_64-linux/rk-binary-native/git-r0/recipe-sysroot-native/usr/bin/x86_64-linux:/home/csagin/YoctoProject/poky/build/tmp/work/x86_64-linux/rk-binary-native/git-r0/recipe-sysroot-native/usr/bin:/home/csagin/YoctoProject/poky/build/tmp/work/x86_64-linux/rk-binary-native/git-r0/recipe-sysroot-native/usr/sbin:/home/csagin/YoctoProject/poky/build/tmp/work/x86_64-linux/rk-binary-native/git-r0/recipe-sysroot-native/usr/bin:/home/csagin/YoctoProject/poky/build/tmp/work/x86_64-linux/rk-binary-native/git-r0/recipe-sysroot-native/sbin:/home/csagin/YoctoProject/poky/build/tmp/work/x86_64-linux/rk-binary-native/git-r0/recipe-sysroot-native/bin:/home/csagin/YoctoProject/poky/bitbake/bin:/home/csagin/YoctoProject/poky/build/tmp/hosttools"; export HOME="/home/csagin"; /usr/bin/env wget -t 2 -T 30 --passive-ftp --no-check-certificate -P /home/csagin/YoctoProject/poky/build/downloads ‘http://sources.openembedded.org/git2_github.com.rockchip-linux.rkbin.git.tar.gz’ --progress=dot -v failed with exit code 8, output:
–2018-12-01 11:14:23-- http://sources.openembedded.org/git2_github.com.rockchip-linux.rkbin.git.tar.gz
Resolving sources.openembedded.org (sources.openembedded.org)… 140.211.169.54
Connecting to sources.openembedded.org (sources.openembedded.org)|140.211.169.54|:80… connected.
HTTP request sent, awaiting response… 404 Not Found
2018-12-01 11:14:23 ERROR 404: Not Found.

I think , solved the problem. I set
SRC_URI = “git://github.com/96rocks/rkbin.git” in “rk-binary-loader_git.bb” and “rk-binary-native_git.bb” this changing solved my problem.

Thank you to everyone, especially the csagin, this easy change solved my problem.
Unfortunately, the yocto build shows another problem.
Someone?

ERROR: u-boot-rockchip-20171218-r0 do_compile: oe_runmake failed
ERROR: u-boot-rockchip-20171218-r0 do_compile: Function failed: do_compile (log file is located at /home/bartosz/Documents/poky/build/tmp/work/rock960_rk3399-poky-linux/u-boot-rockchip/20171218-r0/temp/log.do_compile.29816)
ERROR: Logfile of failure stored in: /home/bartosz/Documents/poky/build/tmp/work/rock960_rk3399-poky-linux/u-boot-rockchip/20171218-r0/temp/log.do_compile.29816

Regards
Bartosz

Ofcrourse also:
ERROR: Task (/home/bartosz/Documents/poky/meta-rockchip/recipes-bsp/u-boot/u-boot-rockchip_20171218.bb:do_compile) failed with exit code ‘1’

the change rockchip-linux to 96rocks in u-boot-rockchip_20171218.bb doesnt bring successful results :slight_smile:

hmm…

It seems we should fork a yocto tree and maintain by ourselves.