We have tried several times to get yocto for the namtso-a10-3588 to build and it is a can of worms. Tried a couple weeks back and it did not work, so tried again hoping the things might have settled down and it did not.
Hello @foxsquirrel
You can post your issue here, @Mark-Wan-Namtso will help you here.
Its a very long list, I have been trying to track it down. So far it looks like the vendor BSP is missing from the repo and the namtso-a10-3588 is not in mainline yet. So need to find the kernel, uboot configs and the .dts/.dtsi. It was also very hard to download from git hub, not sure what is up with that.
At the present I have the 3588-evb building just to verify my setup here is close to being correct. That is core-image-minimal from the meta-rockchip.
Here is one of the warnings from the 3588-evb build, recall seeing that issue with the a10 board’s build.
rockchip-libmali-1.0-r0 do_fetch: Failed to fetch URL git://github.com/JeffyCN/mirrors.git;protocol=https;branch=libmali;,
It is starting to look like its a rockchip bsp issue, these are same errors on the a10 build. This might not completely build, it is still running.
fred@eng-ai1:~/yocto/namtso/yocto/build$ bitbake core-image-minimal
Loading cache: 100% | | ETA: --:--:--
Loaded 0 entries from dependency cache.
Parsing recipes: 100% |##############################################################| Time: 0:00:19
Parsing of 2481 .bb files complete (0 cached, 2481 parsed). 3902 targets, 132 skipped, 0 masked, 0 errors.
NOTE: Resolving any missing task queue dependencies
Build Configuration:
BB_VERSION = "2.0.0"
BUILD_SYS = "x86_64-linux"
NATIVELSBSTRING = "ubuntu-22.04"
TARGET_SYS = "aarch64-poky-linux"
MACHINE = "rockchip-rk3588-evb"
DISTRO = "poky"
DISTRO_VERSION = "4.0.13"
TUNE_FEATURES = "aarch64 armv8a crc"
TARGET_FPU = ""
meta
meta-poky
meta-yocto-bsp = "HEAD:e3c433dbad4a8aa887b0cbff631e57d94d4634e6"
meta-oe
meta-python
meta-networking
meta-webserver
meta-initramfs = "HEAD:79a6f60dabad9e5b0e041efa91379447ef030482"
meta-rockchip = "HEAD:7cf3b65b5fcbd012349ff8327def3d22fb0d7140"
Initialising tasks: 100% |###########################################################| Time: 0:00:01
Sstate summary: Wanted 1344 Local 0 Mirrors 0 Missed 1344 Current 0 (0% match, 0% complete)
NOTE: Executing Tasks
WARNING: sysvinit-3.01-r0 do_patch: Fuzz detected:
Applying patch 0001-Support-rebooting-with-arg.patch
patching file src/halt.c
Hunk #1 succeeded at 59 with fuzz 2 (offset 1 line).
Hunk #2 succeeded at 198 (offset 11 lines).
Hunk #3 succeeded at 247 (offset 11 lines).
Hunk #4 succeeded at 260 with fuzz 2 (offset 14 lines).
Hunk #5 succeeded at 300 (offset 18 lines).
The context lines in the patches can be updated with devtool:
Here some from the earlier a10 build.
fred@eng-ai1:~/yocto/namtso/yocto/build$ bitbake-layers show-layers
NOTE: Starting bitbake server...
layer path priority
==========================================================================
meta /home/fred/yocto/namtso/yocto/poky/meta 5
meta-poky /home/fred/yocto/namtso/yocto/poky/meta-poky 5
meta-yocto-bsp /home/fred/yocto/namtso/yocto/poky/meta-yocto-bsp 5
meta-oe /home/fred/yocto/namtso/yocto/meta-openembedded/meta-oe 5
meta-python /home/fred/yocto/namtso/yocto/meta-openembedded/meta-python 5
meta-networking /home/fred/yocto/namtso/yocto/meta-openembedded/meta-networking 5
meta-webserver /home/fred/yocto/namtso/yocto/meta-openembedded/meta-webserver 5
meta-initramfs /home/fred/yocto/namtso/yocto/meta-openembedded/meta-initramfs 5
meta-rockchip /home/fred/yocto/namtso/yocto/meta-rockchip 9
fred@eng-ai1:~/yocto/namtso/yocto/build$ bitbake core-image-minimal
ERROR: OE-core's config sanity checker detected a potential misconfiguration.
Either fix the cause of this error or at your own risk disable the checker (see sanity.conf).
Following is the list of potential problems / advisories:
MACHINE=namtso-a10-rk3588 is invalid. Please set a valid MACHINE in your local.conf, environment or other configuration file.
WARNING: sysvinit-3.01-r0 do_patch: QA Issue: Patch log indicates that patches do not apply cleanly. [patch-fuzz]
WARNING: rockchip-libmali-1.0-r0 do_fetch: Failed to fetch URL git://github.com/JeffyCN/mirrors.git;protocol=https;branch=libmali;, attempting MIRRORS if available
ERROR: rockchip-libmali-1.0-r0 do_fetch: Fetcher failure: Unable to find revision 1d173f39b51a31212d9ec346044fa81587df34f4 in branch libmali even from upstream
ERROR: rockchip-libmali-1.0-r0 do_fetch: Bitbake Fetcher Error: FetchError('Unable to fetch URL from any source.', 'git://github.com/JeffyCN/mirrors.git;protocol=https;branch=libmali;')
ERROR: Logfile of failure stored in: /home/fred/yocto/namtso/yocto/build/tmp/work/rockchip_rk3588_evb-poky-linux/rockchip-libmali/1.0-r0/temp/log.do_fetch.37861
ERROR: Task (/home/fred/yocto/namtso/yocto/meta-rockchip/recipes-graphics/rockchip-libmali/rockchip-libmali.bb:do_fetch) failed with exit code '1'
Second Keyboard Interrupt, stopping...
Summary: 1 task failed:
/home/fred/yocto/namtso/yocto/meta-rockchip/recipes-graphics/rockchip-libmali/rockchip-libmali.bb:do_fetch
Summary: There were 3 WARNING messages.
Summary: There were 2 ERROR messages, returning a non-zero exit code.
@Mark-Wan-Namtso It appears that github is throttling your repo and that is causing the problems. for some reason I can curl and it will eventually download.
fred@eng-ai1:~/yocto/namtso$ repo sync -j32
Fetching: 25% (13/52) 2:08 | 32 jobs | 2:08 linux_app_lvgl_demo @ app/lvgl_demo
remote: Enumerating objects: 6157, done.
error: RPC failed; curl 92 HTTP/2 stream 0 was not closed cleanly: CANCEL (err 8)
error: 35 bytes of body are still expected
fetch-pack: unexpected disconnect while reading sideband packet
fatal: early EOF
fatal: fetch-pack: invalid index-pack output
linux_gcc-arm-10.3-2021.07-x86_64-aarch64-none-linux-gnu:
remote: Enumerating objects: 6157, done.
error: RPC failed; curl 92 HTTP/2 stream 0 was not closed cleanly: CANCEL (err 8)
error: 35 bytes of body are still expected
fetch-pack: unexpected disconnect while reading sideband packet
fatal: early EOF
fatal: fetch-pack: invalid index-pack output
linux_gcc-arm-10.3-2021.07-x86_64-aarch64-none-linux-gnu: sleeping 4.0 seconds before retrying
remote: Enumerating objects: 6157, done.
error: RPC failed; curl 92 HTTP/2 stream 0 was not closed cleanly: CANCEL (err 8)
error: 5259 bytes of body are still expected
fetch-pack: unexpected disconnect while reading sideband packet
fatal: early EOF
fatal: fetch-pack: invalid index-pack output
error: Cannot fetch linux_gcc-arm-10.3-2021.07-x86_64-aarch64-none-linux-gnu from https://github.com/namtso2207/linux_gcc-arm-10.3-2021.07-x86_64-aarch64-none-linux-gnu
It will curl and eventually download. At this point I don’t know if its on my end or github. I am downloading in USA.
Even modified .repo manifest.xml for a shallow clone and that does not help
<default remote="github" revision="namtso-a10-3588-linux-5.10-gen-rkr7_20231220" sync-j="4" depth="1"/>
If you want to compile with bitbake, you may want to refer to the build_yocto function in
device/rockchip/common/scripts/mk-rootfs.sh
.
You can try:
LANG=en_US.UTF-8 LANGUAGE=en_US.en LC_ALL=en_US.UTF-8 \
bitbake core-image-minimal -C rootfs \
-R conf/rksdk_override.conf
For such issue, you can try this:
There is a simple way to compile the SDK:
The first step is to execute ./build.sh lunch
to select the machine, and then execute
export RK_ROOTFS_SYSTEM=yocto
./build.sh
Changed the buffersize and that did not help. Do you have a different site maybe with a USA based server?
Maybe prune, but that could create a huge mess. Not sure what to do at this point.
fred@eng-ai1:~/yocto/namtso$ ls
fred@eng-ai1:~/yocto/namtso$ git config --global http.postBuffer 524288000
fred@eng-ai1:~/yocto/namtso$ repo sync -j32
Fetching: 32% (17/52) 1:46 | 28 jobs | 1:46 linux_buildroot @ buildroot
remote: Enumerating objects: 416182, done.
error: RPC failed; curl 92 HTTP/2 stream 0 was not closed cleanly: CANCEL (err 8)
error: 50 bytes of body are still expected
fetch-pack: unexpected disconnect while reading sideband packet
fatal: early EOF
fatal: fetch-pack: invalid index-pack output
linux_buildroot:
remote: Enumerating objects: 416182, done.
error: RPC failed; curl 92 HTTP/2 stream 0 was not closed cleanly: CANCEL (err 8)
error: 50 bytes of body are still expected
fetch-pack: unexpected disconnect while reading sideband packet
fatal: early EOF
fatal: fetch-pack: invalid index-pack output
linux_buildroot: sleeping 4.0 seconds before retrying
remote: Enumerating objects: 416182, done.
error: RPC failed; curl 92 HTTP/2 stream 0 was not closed cleanly: CANCEL (err 8)
error: 8094 bytes of body are still expected
fetch-pack: unexpected disconnect while reading sideband packet
fatal: early EOF
fatal: fetch-pack: invalid index-pack output
error: Cannot fetch linux_buildroot from https://github.com/namtso2207/linux_buildroot
Thank you @Mark-Wan-Namtso and @numbqq
The “log jam” has cleared and it did download all the packages.
./build.sh also generated an image.