빌드 문서 2.6.2 항목에서 에러가 발생합니다

$bitbake topst-subcore
$bitbake topst

위 두 명령어에서 에러가 발생합니다. 텍스트로 89%에 도달하면 진행이 더 이상 되지 않고 에러를 내뱉습니다. 확인 좀 부탁드립니다. 사내 보안때문에 파일 첨부가 되질 않네요 ㅠㅠ

================== 에러 로그 ===================
topst@PCN2023005A:~/topst/build-sub$ bitbake topst-subcore
WARNING: You are running bitbake under WSLv2, this works properly but you should optimize your VHDX file eventually to avoid running out of storage space
WARNING: /home/topst/topst/yocto/meta-telechips-bsp/recipes-kernel/linux/linux-telechips_5.4.bb: Exception during build_dependencies for do_kernel_checkout
WARNING: /home/topst/topst/yocto/meta-telechips-bsp/recipes-kernel/linux/linux-telechips_5.4.bb: Error during finalise of /home/topst/topst/yocto/meta-telechips-bsp/recipes-kernel/linux/linux-telechips_5.4.bb
WARNING: /home/topst/topst/yocto/meta-telechips-bsp/recipes-bsp/u-boot/u-boot-tcc.bb: Exception during build_dependencies for do_configure
WARNING: /home/topst/topst/yocto/meta-telechips-bsp/recipes-bsp/u-boot/u-boot-tcc.bb: Error during finalise of /home/topst/topst/yocto/meta-telechips-bsp/recipes-bsp/u-boot/u-boot-tcc.bb
ERROR: ExpansionError during parsing /home/topst/topst/yocto/meta-telechips-bsp/recipes-kernel/linux/linux-telechips_5.4.bb
Traceback (most recent call last):
File “/home/topst/topst/yocto/poky/bitbake/lib/bb/fetch2/git.py”, line 242, in Git.urldata_init(ud=<bb.fetch2.FetchData object at 0x7fc5924b07c0>, d=<bb.data_smart.DataSmart object at 0x7fc592e5ddb0>):
ud.unresolvedrev[name] = ud.revisions[name]
> ud.revisions[name] = self.latest_revision(ud, d, name)

File “/home/topst/topst/yocto/poky/bitbake/lib/bb/fetch2/init.py”, line 1587, in Git.latest_revision(ud=<bb.fetch2.FetchData object at 0x7fc5924b07c0>, d=<bb.data_smart.DataSmart object at 0x7fc592e5ddb0>, name=‘default’):
except KeyError:
> revs[key] = rev = self._latest_revision(ud, d, name)
return rev
File “/home/topst/topst/yocto/poky/bitbake/lib/bb/fetch2/git.py”, line 700, in Git._latest_revision(ud=<bb.fetch2.FetchData object at 0x7fc5924b07c0>, d=<bb.data_smart.DataSmart object at 0x7fc592e5ddb0>, name=‘default’):
“”"
> output = self._lsremote(ud, d, “”)
# Tags of the form ^{} may not work, need to fallback to other form
File “/home/topst/topst/yocto/poky/bitbake/lib/bb/fetch2/git.py”, line 689, in Git._lsremote(ud=<bb.fetch2.FetchData object at 0x7fc5924b07c0>, d=<bb.data_smart.DataSmart object at 0x7fc592e5ddb0>, search=‘’):
bb.fetch2.check_network_access(d, cmd, repourl)
> output = runfetchcmd(cmd, d, True)
if not output:
File “/home/topst/topst/yocto/poky/bitbake/lib/bb/fetch2/init.py”, line 889, in runfetchcmd(cmd='export PSEUDO_DISABLED=1; export DBUS_SESSION_BUS_ADDRESS=“unix:path=/run/user/1000/bus”; export PATH=“/home/topst/topst/yocto/poky/scripts:/home/topst/topst/build-sub/tmp/work/tcc8050_sub-telechips-linux/linux-telechips/5.4.159-r0/recipe-sysroot-native/usr/bin/aarch64-telechips-linux:/home/topst/topst/build-sub/tmp/work/tcc8050_sub-telechips-linux/linux-telechips/5.4.159-r0/recipe-sysroot/usr/bin/crossscripts:/home/topst/topst/build-sub/tmp/work/tcc8050_sub-telechips-linux/linux-telechips/5.4.159-r0/recipe-sysroot-native/usr/sbin:/home/topst/topst/build-sub/tmp/work/tcc8050_sub-telechips-linux/linux-telechips/5.4.159-r0/recipe-sysroot-native/usr/bin:/home/topst/topst/build-sub/tmp/work/tcc8050_sub-telechips-linux/linux-telechips/5.4.159-r0/recipe-sysroot-native/sbin:/home/topst/topst/build-sub/tmp/work/tcc8050_sub-telechips-linux/linux-telechips/5.4.159-r0/recipe-sysroot-native/bin:/home/topst/topst/yocto/poky/bitbake/bin:/home/topst/topst/build-sub/tmp/hosttools”; export HOME=“/home/topst”; git -c core.fsyncobjectfiles=0 ls-remote “ssh://gitlab.com/topst.ai/bsp/kernel-5.4.git” ', d=<bb.data_smart.DataSmart object at 0x7fc592e5ddb0>, quiet=True, cleanup=, log=None, workdir=None):

>        raise FetchError(error_message)

bb.data_smart.ExpansionError: Failure expanding variable do_kernel_checkout, expression was set +e

    source_dir=`echo /home/topst/topst/build-sub/tmp/work/tcc8050_sub-telechips-linux/linux-telechips/5.4.159-r0/git | sed 's%/$%%'`
    source_workdir="/home/topst/topst/build-sub/tmp/work/tcc8050_sub-telechips-linux/linux-telechips/5.4.159-r0/git"
    if [ -d "/home/topst/topst/build-sub/tmp/work/tcc8050_sub-telechips-linux/linux-telechips/5.4.159-r0/git/" ]; then
            # case: git repository
            # if S is WORKDIR/git, then we shouldn't be moving or deleting the tree.
            if [ "${source_dir}" != "${source_workdir}" ]; then
                    if [ -d "${source_workdir}/.git" ]; then
                            # regular git repository with .git
                            rm -rf /home/topst/topst/build-sub/tmp/work/tcc8050_sub-telechips-linux/linux-telechips/5.4.159-r0/git
                            mv /home/topst/topst/build-sub/tmp/work/tcc8050_sub-telechips-linux/linux-telechips/5.4.159-r0/git /home/topst/topst/build-sub/tmp/work/tcc8050_sub-telechips-linux/linux-telechips/5.4.159-r0/git
                    else
                            # create source for bare cloned git repository
                            git clone /home/topst/topst/build-sub/tmp/work/tcc8050_sub-telechips-linux/linux-telechips/5.4.159-r0/git /home/topst/topst/build-sub/tmp/work/tcc8050_sub-telechips-linux/linux-telechips/5.4.159-r0/git
                            rm -rf /home/topst/topst/build-sub/tmp/work/tcc8050_sub-telechips-linux/linux-telechips/5.4.159-r0/git
                    fi
            fi
            cd /home/topst/topst/build-sub/tmp/work/tcc8050_sub-telechips-linux/linux-telechips/5.4.159-r0/git

            # convert any remote branches to local tracking ones
            for i in `git branch -a --no-color | grep remotes | grep -v HEAD`; do
                    b=`echo $i | cut -d' ' -f2 | sed 's%remotes/origin/%%'`;
                    git show-ref --quiet --verify -- "refs/heads/$b"
                    if [ $? -ne 0 ]; then
                            git branch $b $i > /dev/null
                    fi
            done

            # Create a working tree copy of the kernel by checking out a branch
            machine_branch="${@ get_machine_branch(d, "main" )}"

            # checkout and clobber any unimportant files
            git checkout -f ${machine_branch}
    else
            # case: we have no git repository at all.
            # To support low bandwidth options for building the kernel, we'll just
            # convert the tree to a git repo and let the rest of the process work unchanged

            # if /home/topst/topst/build-sub/tmp/work/tcc8050_sub-telechips-linux/linux-telechips/5.4.159-r0/git hasn't been set to the proper subdirectory a default of "linux" is
            # used, but we can't initialize that empty directory. So check it and throw a
            # clear error

            cd /home/topst/topst/build-sub/tmp/work/tcc8050_sub-telechips-linux/linux-telechips/5.4.159-r0/git
            if [ ! -f "Makefile" ]; then
                    bberror "S is not set to the linux source directory. Check "
                    bbfatal "the recipe and set S to the proper extracted subdirectory"
            fi
            rm -f .gitignore
            git init
            check_git_config
            git add .
            git commit -q -m "baseline commit: creating repo for linux-telechips-5.4.159"
            git clean -d -f
    fi

which triggered exception FetchError: Fetcher failure: Fetch command export PSEUDO_DISABLED=1; export DBUS_SESSION_BUS_ADDRESS=“unix:path=/run/user/1000/bus”; export PATH=“/home/topst/topst/yocto/poky/scripts:/home/topst/topst/build-sub/tmp/work/tcc8050_sub-telechips-linux/linux-telechips/5.4.159-r0/recipe-sysroot-native/usr/bin/aarch64-telechips-linux:/home/topst/topst/build-sub/tmp/work/tcc8050_sub-telechips-linux/linux-telechips/5.4.159-r0/recipe-sysroot/usr/bin/crossscripts:/home/topst/topst/build-sub/tmp/work/tcc8050_sub-telechips-linux/linux-telechips/5.4.159-r0/recipe-sysroot-native/usr/sbin:/home/topst/topst/build-sub/tmp/work/tcc8050_sub-telechips-linux/linux-telechips/5.4.159-r0/recipe-sysroot-native/usr/bin:/home/topst/topst/build-sub/tmp/work/tcc8050_sub-telechips-linux/linux-telechips/5.4.159-r0/recipe-sysroot-native/sbin:/home/topst/topst/build-sub/tmp/work/tcc8050_sub-telechips-linux/linux-telechips/5.4.159-r0/recipe-sysroot-native/bin:/home/topst/topst/yocto/poky/bitbake/bin:/home/topst/topst/build-sub/tmp/hosttools”; export HOME=“/home/topst”; git -c core.fsyncobjectfiles=0 ls-remote “ssh://gitlab.com/topst.ai/bsp/kernel-5.4.git” failed with exit code 128, output:
kex_exchange_identification: read: Connection timed out
banner exchange: Connection to 172.65.251.78 port 22: Connection timed out
fatal: Could not read from remote repository.

Please make sure you have the correct access rights
and the repository exists.

Summary: There were 5 WARNING messages shown.
Summary: There was 1 ERROR message shown, returning a non-zero exit code.
topst@PCN2023005A:~/topst/build-sub$
topst@PCN2023005A:~/topst/build-sub$
topst@PCN2023005A:~/topst/build-sub$
topst@PCN2023005A:~/topst/build-sub$
topst@PCN2023005A:~/topst/build-sub$ cd …
topst@PCN2023005A:~/topst$ source yocto/poky/oe-init-build-env build-main

Shell environment set up for builds.

You can now run ‘bitbake ’

Common targets are:
core-image-minimal
core-image-sato
meta-toolchain
meta-ide-support

TOPST common targets are:
topst-minimal
topst-multimedia (minimal + GStreamer)
topst (minimal + GStreamer + Qt)

Other commonly useful commands are:

  • ‘devtool’ and ‘recipetool’ handle common recipe tasks
  • ‘bitbake-layers’ handles common layer tasks
  • ‘oe-pkgdata-util’ handles common target package tasks
    Warning: source-mirror not exist!!
    The build to be slowler or fail because will be download source code from upstream before build.
    topst@PCN2023005A:~/topst/build-main$
    topst@PCN2023005A:~/topst/build-main$
    topst@PCN2023005A:~/topst/build-main$
    topst@PCN2023005A:~/topst/build-main$ bitbake topst
    WARNING: You are running bitbake under WSLv2, this works properly but you should optimize your VHDX file eventually to avoid running out of storage space
    WARNING: /home/topst/topst/yocto/meta-telechips-bsp/recipes-kernel/linux/linux-telechips_5.4.bb: Exception during build_dependencies for do_kernel_checkout
    WARNING: /home/topst/topst/yocto/meta-telechips-bsp/recipes-bsp/u-boot/u-boot-tcc.bb: Exception during build_dependencies for do_configure
    WARNING: /home/topst/topst/yocto/meta-telechips-bsp/recipes-kernel/linux/linux-telechips_5.4.bb: Error during finalise of /home/topst/topst/yocto/meta-telechips-bsp/recipes-kernel/linux/linux-telechips_5.4.bb
    WARNING: /home/topst/topst/yocto/meta-telechips-bsp/recipes-bsp/u-boot/u-boot-tcc.bb: Error during finalise of /home/topst/topst/yocto/meta-telechips-bsp/recipes-bsp/u-boot/u-boot-tcc.bb
    ERROR: ExpansionError during parsing /home/topst/topst/yocto/meta-telechips-bsp/recipes-bsp/u-boot/u-boot-tcc.bb
    Traceback (most recent call last):
    File “/home/topst/topst/yocto/poky/bitbake/lib/bb/fetch2/git.py”, line 242, in Git.urldata_init(ud=<bb.fetch2.FetchData object at 0x7fb8ebb9b1f0>, d=<bb.data_smart.DataSmart object at 0x7fb8ebd7f8e0>):
    ud.unresolvedrev[name] = ud.revisions[name]
               ud.revisions[name] = self.latest_revision(ud, d, name)
    

File “/home/topst/topst/yocto/poky/bitbake/lib/bb/fetch2/init.py”, line 1587, in Git.latest_revision(ud=<bb.fetch2.FetchData object at 0x7fb8ebb9b1f0>, d=<bb.data_smart.DataSmart object at 0x7fb8ebd7f8e0>, name=‘default’):
except KeyError:
> revs[key] = rev = self._latest_revision(ud, d, name)
return rev
File “/home/topst/topst/yocto/poky/bitbake/lib/bb/fetch2/git.py”, line 700, in Git._latest_revision(ud=<bb.fetch2.FetchData object at 0x7fb8ebb9b1f0>, d=<bb.data_smart.DataSmart object at 0x7fb8ebd7f8e0>, name=‘default’):
“”"
> output = self._lsremote(ud, d, “”)
# Tags of the form ^{} may not work, need to fallback to other form
File “/home/topst/topst/yocto/poky/bitbake/lib/bb/fetch2/git.py”, line 689, in Git._lsremote(ud=<bb.fetch2.FetchData object at 0x7fb8ebb9b1f0>, d=<bb.data_smart.DataSmart object at 0x7fb8ebd7f8e0>, search=‘’):
bb.fetch2.check_network_access(d, cmd, repourl)
> output = runfetchcmd(cmd, d, True)
if not output:
File “/home/topst/topst/yocto/poky/bitbake/lib/bb/fetch2/init.py”, line 889, in runfetchcmd(cmd='export PSEUDO_DISABLED=1; export DBUS_SESSION_BUS_ADDRESS=“unix:path=/run/user/1000/bus”; export PATH=“/home/topst/topst/yocto/poky/scripts:/home/topst/topst/build-main/tmp/work/tcc8050_main-telechips-linux/u-boot-tcc/1.0-r0/recipe-sysroot-native/usr/bin/aarch64-telechips-linux:/home/topst/topst/build-main/tmp/work/tcc8050_main-telechips-linux/u-boot-tcc/1.0-r0/recipe-sysroot/usr/bin/crossscripts:/home/topst/topst/build-main/tmp/work/tcc8050_main-telechips-linux/u-boot-tcc/1.0-r0/recipe-sysroot-native/usr/sbin:/home/topst/topst/build-main/tmp/work/tcc8050_main-telechips-linux/u-boot-tcc/1.0-r0/recipe-sysroot-native/usr/bin:/home/topst/topst/build-main/tmp/work/tcc8050_main-telechips-linux/u-boot-tcc/1.0-r0/recipe-sysroot-native/sbin:/home/topst/topst/build-main/tmp/work/tcc8050_main-telechips-linux/u-boot-tcc/1.0-r0/recipe-sysroot-native/bin:/home/topst/topst/yocto/poky/bitbake/bin:/home/topst/topst/build-main/tmp/hosttools”; export HOME=“/home/topst”; git -c core.fsyncobjectfiles=0 ls-remote “ssh://gitlab.com/topst.ai/bsp/u-boot.git” ', d=<bb.data_smart.DataSmart object at 0x7fb8ebd7f8e0>, quiet=True, cleanup=, log=None, workdir=None):

>        raise FetchError(error_message)

bb.data_smart.ExpansionError: Failure expanding variable do_configure, expression was base_do_configure
if [ “${@bb.utils.contains(‘DISTRO_FEATURES’, ‘ld-is-gold’, ‘ld-is-gold’, ‘’, d)}” = “ld-is-gold” ] ; then
sed -i ‘s/$(CROSS_COMPILE)ld$/$(CROSS_COMPILE)ld.bfd/g’ /home/topst/topst/build-main/tmp/work/tcc8050_main-telechips-linux/u-boot-tcc/1.0-r0/git/config.mk
fi

    unset LDFLAGS
    unset CFLAGS
    unset CPPFLAGS
    if [ -n "${EXTERNALSRC}" ] ; then
            export KBUILD_OUTPUT=${EXTERNALSRC}/tcc8050-main/
    fi
    export ARCH=arm64  DEVICE_TREE=tcc8050-topst-d3-pre-v0.1
    oe_runmake tcc805x_defconfig
    if [ -n "${EXTERNALSRC}" ] ; then
            /home/topst/topst/build-main/tmp/work/tcc8050_main-telechips-linux/u-boot-tcc/1.0-r0/git/scripts/kconfig/merge_config.sh -O ${KBUILD_OUTPUT} -m ${KBUILD_OUTPUT}.config ${@" ".join(find_cfgs(d))}
    else
            /home/topst/topst/build-main/tmp/work/tcc8050_main-telechips-linux/u-boot-tcc/1.0-r0/git/scripts/kconfig/merge_config.sh -m .config ${@" ".join(find_cfgs(d))}
    fi

which triggered exception FetchError: Fetcher failure: Fetch command export PSEUDO_DISABLED=1; export DBUS_SESSION_BUS_ADDRESS=“unix:path=/run/user/1000/bus”; export PATH=“/home/topst/topst/yocto/poky/scripts:/home/topst/topst/build-main/tmp/work/tcc8050_main-telechips-linux/u-boot-tcc/1.0-r0/recipe-sysroot-native/usr/bin/aarch64-telechips-linux:/home/topst/topst/build-main/tmp/work/tcc8050_main-telechips-linux/u-boot-tcc/1.0-r0/recipe-sysroot/usr/bin/crossscripts:/home/topst/topst/build-main/tmp/work/tcc8050_main-telechips-linux/u-boot-tcc/1.0-r0/recipe-sysroot-native/usr/sbin:/home/topst/topst/build-main/tmp/work/tcc8050_main-telechips-linux/u-boot-tcc/1.0-r0/recipe-sysroot-native/usr/bin:/home/topst/topst/build-main/tmp/work/tcc8050_main-telechips-linux/u-boot-tcc/1.0-r0/recipe-sysroot-native/sbin:/home/topst/topst/build-main/tmp/work/tcc8050_main-telechips-linux/u-boot-tcc/1.0-r0/recipe-sysroot-native/bin:/home/topst/topst/yocto/poky/bitbake/bin:/home/topst/topst/build-main/tmp/hosttools”; export HOME=“/home/topst”; git -c core.fsyncobjectfiles=0 ls-remote “ssh://gitlab.com/topst.ai/bsp/u-boot.git” failed with exit code 128, output:
kex_exchange_identification: read: Connection timed out
banner exchange: Connection to 172.65.251.78 port 22: Connection timed out
fatal: Could not read from remote repository.

Please make sure you have the correct access rights
and the repository exists.

Summary: There were 5 WARNING messages shown.
Summary: There was 1 ERROR message shown, returning a non-zero exit code.
topst@PCN2023005A:~/topst/build-main$

안녕하세요. 해당 질문을 드리기 전 확인하고 싶은 사항이 있습니다.

D3-build document(TOPST)에 있는 ssh키 등록 부분에서, gitlab에 제대로 등록되어있는지 확인 부탁 드립니다.

GitLab에 SSH 키는 제대로 등록 했습니다. 혹시 문서 SDK란의 2.5.2 Create SSH config에서 User git라는 부분이 있는데, 여기에서 git가 아니라 제가 gitlab에 등록한 아이디를 넣는게 맞는가요? 제가 gitlab에 등록한 아이디를 넣어도 여전히 같은 문제가 나타납니다.

문서 SDK란의 2.5.2 Create SSH config에서 User git라는 부분은 그대로 작성해주시면 됩니다.

올려주신 에러는 ~/.ssh/known_hosts가 없는 문제로 보이는데요,

ssh-keyscan -H gitlab.com >> ~/.ssh/known_hosts

위 명령어를 사용해서 known_hosts를 등록하고 다시 빌드 진행 바랍니다.

감사합니다.