This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

プロセッサー-SDK-AM65X:How to resolve the error that occurs when executing bitbake.

Part Number: PROCESSOR-SDK-AM65X


I get an error when I run bitbake, how can I resolve this error?
Also, how much free space is required on the HDD when executing bitbake?

It was carried out with reference to the procedure in the guide below.
1.2.2.2. Build Steps( downloads.ti.com/.../Overview_Building_the_SDK.html )

I'm using the SDK below:
ti-processor-sdk-linux-am65xx-evm-07_00_01_06

I'm using the toolchain below:
gcc-arm-9.2-2019.12-x86_64-aarch64-none-linux-gnu
gcc-arm-9.2-2019.12-x86_64-arm-none-linux-gnueabihf

The error contents when executing bitbake are as follows:

-------------------------------------------------------------------------------------------------------------------------------

user@user-VirtualBox:~/ti-processor-sdk-linux-am65xx-evm-07_00_01_06/yocto-build/build$ TOOLCHAIN_BASE=$HOME MACHINE=am65xx-evm bitbake -k tisdk-default-image
WARNING: Layer meta-psdkla should set LAYERSERIES_COMPAT_meta-psdkla in its conf/layer.conf file to list the core layer names it is compatible with.
WARNING: Layer meta-psdkla should set LAYERSERIES_COMPAT_meta-psdkla in its conf/layer.conf file to list the core layer names it is compatible with.
WARNING: Layer meta-psdkla should set LAYERSERIES_COMPAT_meta-psdkla in its conf/layer.conf file to list the core layer names it is compatible with.
NOTE: Started PRServer with DBfile: /home/user/ti-processor-sdk-linux-am65xx-evm-07_00_01_06/yocto-build/build/cache/prserv.sqlite3, IP: 127.0.0.1, PORT: 36557, PID: 2012
WARNING: Layer meta-psdkla should set LAYERSERIES_COMPAT_meta-psdkla in its conf/layer.conf file to list the core layer names it is compatible with.
WARNING: Layer meta-psdkla should set LAYERSERIES_COMPAT_meta-psdkla in its conf/layer.conf file to list the core layer names it is compatible with.
WARNING: Layer meta-psdkla should set LAYERSERIES_COMPAT_meta-psdkla in its conf/layer.conf file to list the core layer names it is compatible with.
Loading cache: 100% |############################################| Time: 0:00:02
Loaded 3825 entries from dependency cache.
WARNING: /home/user/ti-processor-sdk-linux-am65xx-evm-07_00_01_06/yocto-build/sources/meta-aws/recipes-sdk/aws-iot-device-sdk-python-v2/aws-iot-device-sdk-python-v2_git.bb: Exception during build_dependencies for AUTOREV
WARNING: /home/user/ti-processor-sdk-linux-am65xx-evm-07_00_01_06/yocto-build/sources/meta-aws/recipes-sdk/aws-iot-device-sdk-python-v2/aws-iot-device-sdk-python-v2_git.bb: Error during finalise of /home/user/ti-processor-sdk-linux-am65xx-evm-07_00_01_06/yocto-build/sources/meta-aws/recipes-sdk/aws-iot-device-sdk-python-v2/aws-iot-device-sdk-python-v2_git.bb
ERROR: ExpansionError during parsing /home/user/ti-processor-sdk-linux-am65xx-evm-07_00_01_06/yocto-build/sources/meta-aws/recipes-sdk/aws-iot-device-sdk-python-v2/aws-iot-device-sdk-python-v2_git.bb
Traceback (most recent call last):
File "/home/user/ti-processor-sdk-linux-am65xx-evm-07_00_01_06/yocto-build/sources/bitbake/lib/bb/fetch2/git.py", line 230, in Git.urldata_init(ud=<bb.fetch2.FetchData object at 0x7fcccd09ca58>, d=<bb.data_smart.DataSmart object at 0x7fcccbda1a20>):

> ud.setup_revisions(d)

File "/home/user/ti-processor-sdk-linux-am65xx-evm-07_00_01_06/yocto-build/sources/bitbake/lib/bb/fetch2/__init__.py", line 1314, in FetchData.setup_revisions(d=<bb.data_smart.DataSmart object at 0x7fcccbda1a20>):
for name in self.names:
> self.revisions[name] = srcrev_internal_helper(self, d, name)

File "/home/user/ti-processor-sdk-linux-am65xx-evm-07_00_01_06/yocto-build/sources/bitbake/lib/bb/fetch2/__init__.py", line 1177, in srcrev_internal_helper(ud=<bb.fetch2.FetchData object at 0x7fcccd09ca58>, d=<bb.data_smart.DataSmart object at 0x7fcccbda1a20>, name='aws-iot-device-sdk-python-v2'):
if srcrev == "AUTOINC":
> srcrev = ud.method.latest_revision(ud, d, name)

File "/home/user/ti-processor-sdk-linux-am65xx-evm-07_00_01_06/yocto-build/sources/bitbake/lib/bb/fetch2/__init__.py", line 1592, in Git.latest_revision(ud=<bb.fetch2.FetchData object at 0x7fcccd09ca58>, d=<bb.data_smart.DataSmart object at 0x7fcccbda1a20>, name='aws-iot-device-sdk-python-v2'):
except KeyError:
> revs[key] = rev = self._latest_revision(ud, d, name)
return rev
File "/home/user/ti-processor-sdk-linux-am65xx-evm-07_00_01_06/yocto-build/sources/bitbake/lib/bb/fetch2/git.py", line 645, in Git._latest_revision(ud=<bb.fetch2.FetchData object at 0x7fcccd09ca58>, d=<bb.data_smart.DataSmart object at 0x7fcccbda1a20>, name='aws-iot-device-sdk-python-v2'):
raise bb.fetch2.FetchError("Unable to resolve '%s' in upstream git repository in git ls-remote output for %s" % \
> (ud.unresolvedrev[name], ud.host+ud.path))

bb.data_smart.ExpansionError: Failure expanding variable SRCPV, expression was ${@bb.fetch2.get_srcrev(d)} which triggered exception FetchError: Fetcher failure: Unable to resolve 'master' in upstream git repository in git ls-remote output for github.com/aws/aws-iot-device-sdk-python-v2.git


Summary: There were 8 WARNING messages shown.
Summary: There was 1 ERROR message shown, returning a non-zero exit code.

-------------------------------------------------------------------------------------------------------------------------------

  • Hi Tomitama,

    -1-

    Please edit this file /home/user/ti-processor-sdk-linux-am65xx-evm-07_00_01_06/yocto-build/sources/meta-aws/recipes-sdk/aws-iot-device-sdk-python-v2/aws-iot-device-sdk-python-v2.inc and change Line 7 from master to main

      5 LIC_FILES_CHKSUM = "file://LICENSE;md5=3b83ef96387f14655fc854ddc3c6bd57"
      6
      7 BRANCH ?= "main"
      8
      9 SRC_URI = "git://github.com/aws/aws-iot-device-sdk-python-v2.git;branch=${BRANCH};name=aws-iot-device-sdk-python-v2"
    

    -2-

    Re-run the build and it should get resolved.

    Please check this FAQ that covers the details of this problem - Refer section #2

    https://e2e.ti.com/support/processors/f/791/t/948986

    Regards

    Karthik

  • Hello Karthik,
    Thank you for your reply.

    Changing "master" in "aws -iot-device-sdk-python-v2.inc" to "main" solved the above error, but I got the following error:
    -------------------------------------------------- -------------------------------------------------- ---------------------------
    WARNING: update-rc.d-native-0.8-r0 do_fetch: Failed to fetch URL git://git.yoctoproject.org/update-rc.d, attempting MIRRORS if available
    WARNING: update-rc.d-0.8-r0 do_fetch: Failed to fetch URL git://git.yoctoproject.org/update-rc.d, attempting MIRRORS if available
    ERROR: update-rc.d-native-0.8-r0 do_unpack: Unpack failure for URL: 'git://git.yoctoproject.org/update-rc.d'. No up to date source found: clone directory not available or not up to date: /home/tomita/ti-processor-sdk-linux-am65xx-evm-07_00_01_06/yocto-build/downloads/git2/git.yoctoproject.org.update-rc.d; shallow clone not enabled
    ERROR: Logfile of failure stored in: /home/tomita/ti-processor-sdk-linux-am65xx-evm-07_00_01_06/yocto-build/build/arago-tmp-external-arm-glibc/work/x86_64-linux/update-rc.d-native/0.8-r0/temp/log.do_unpack.4205
    ERROR: Task (virtual:native:/home/tomita/ti-processor-sdk-linux-am65xx-evm-07_00_01_06/yocto-build/sources/oe-core/meta/recipes-core/update-rc.d/update-rc.d_0.8.bb:do_unpack) failed with exit code '1'
    ERROR: update-rc.d-0.8-r0 do_unpack: Unpack failure for URL: 'git://git.yoctoproject.org/update-rc.d'. No up to date source found: clone directory not available or not up to date: /home/tomita/ti-processor-sdk-linux-am65xx-evm-07_00_01_06/yocto-build/downloads/git2/git.yoctoproject.org.update-rc.d; shallow clone not enabled
    ERROR: Logfile of failure stored in: /home/tomita/ti-processor-sdk-linux-am65xx-evm-07_00_01_06/yocto-build/build/arago-tmp-external-arm-glibc/work/all-linux/update-rc.d/0.8-r0/temp/log.do_unpack.4211
    ERROR: Task (/home/tomita/ti-processor-sdk-linux-am65xx-evm-07_00_01_06/yocto-build/sources/oe-core/meta/recipes-core/update-rc.d/update-rc.d_0.8.bb:do_unpack) failed with exit code '1'
    -------------------------------------------------- -------------------------------------------------- ---------------------------
    How can I resolve this error?
    The proxy in my environment blocks the git protocol and doesn't let it through. Is this the cause?
    To pass the git protocol in this environment I think that it is necessary to set according to "Option 1: Environment Variables and Configuration Files" of "Working Behind a Network Proxy (wiki.yoctoproject.org/.../Working_Behind_a_Network_Proxy)".
    For example, if proxy is "www-myproxy.bb.aaa.co.jp:8080", how should I set the following contents to be set in "~ / .bashrc" and "~ / .wgetrc"?

    ~/.bashrc
    --------------------------------------------------------
    export http_proxy='myproxy.example.com:1080/'
    export https_proxy='myproxy.example.com:1080/'
    export ftp_proxy='myproxy.example.com:1080/'
    export ALL_PROXY='socks://myproxy.example.com:1080/'
    export all_proxy='socks://myproxy.example.com:1080/'
    export no_proxy='example.com'

    export GIT_PROXY_COMMAND="oe-git-proxy"
    export NO_PROXY=$no_proxy
    --------------------------------------------------------

    ~/.wgetrc
    --------------------------------------------------------
    https_proxy = http://socks.example.com:1080
    http_proxy = http://socks.example.com:1080
    ftp_proxy = http://socks.example.com:1080
    no_proxy = example.com:1080;127.0.0.1
    use_proxy = on
    --------------------------------------------------------

    Best regards

  • Hi,

    Glad to you hear that you solved the original problem. 

    Yes, it seems like a proxy issue to me.

    In my case, I configure the gitproxy using the ".gitconfig" and a script that the ".gitconfig" refers to for tunnelling via corkscrew.

    Please work with your network team to identify a workaround because I cannot know the network restrictions that you have on your side.

    Regards

    Karthik

  • Hello Karthik,
    Thank you for your reply.

    The previous error was resolved by changing ".gitconfig" to use the http protocol instead of the git protocol, but the following error occurs.
    How can I resolve the error?

    The details of the error are as follows:
    -------------- ---------------------------------------------------------------------------------------------------------------------
    WARNING: mtd-utils-2.1.1-r0.arago1 do_fetch: Failed to fetch URL git://git.infradead.org/mtd-utils.git, attempting MIRRORS if available
    ERROR: mtd-utils-2.1.1-r0.arago1 do_fetch: Fetcher failure: Fetch command export PSEUDO_DISABLED=1; unset _PYTHON_SYSCONFIGDATA_NAME; export DBUS_SESSION_BUS_ADDRESS="unix:path=/run/user/1000/bus"; export SSH_AGENT_PID="1416"; export SSH_AUTH_SOCK="/run/user/1000/keyring/ssh"; export GIT_PROXY_COMMAND="oe-git-proxy"; export all_proxy="sock export ALL_PROXY="sock export no_proxy="bb.aaa.co.jp"; export NO_PROXY="bb.aaa.co.jp"; export ftp_proxy="www-proxy.bb.aaa.co.jp:1080/"; export https_proxy="www-proxy.bb.aaa.co.jp:1080/"; export http_proxy="www-proxy.bb.aaa.co.jp:1080/"; export PATH="/home/tomita/ti-processor-sdk-linux-am65xx-evm-07_00_01_06/yocto-build/sources/oe-core/scripts:/home/tomita/ti-processor-sdk-linux-am65xx-evm-07_00_01_06/yocto-build/build/arago-tmp-external-arm-glibc/work/aarch64-linux/mtd-utils/2.1.1-r0.arago1/recipe-sysroot-native/usr/bin/aarch64-linux:/home/tomita/ti-processor-sdk-linux-am65xx-evm-07_00_01_06/yocto-build/build/arago-tmp-external-arm-glibc/work/aarch64-linux/mtd-utils/2.1.1-r0.arago1/recipe-sysroot/usr/bin/crossscripts:/home/tomita/ti-processor-sdk-linux-am65xx-evm-07_00_01_06/yocto-build/build/arago-tmp-external-arm-glibc/work/aarch64-linux/mtd-utils/2.1.1-r0.arago1/recipe-sysroot-native/usr/sbin:/home/tomita/ti-processor-sdk-linux-am65xx-evm-07_00_01_06/yocto-build/build/arago-tmp-external-arm-glibc/work/aarch64-linux/mtd-utils/2.1.1-r0.arago1/recipe-sysroot-native/usr/bin:/home/tomita/ti-processor-sdk-linux-am65xx-evm-07_00_01_06/yocto-build/build/arago-tmp-external-arm-glibc/work/aarch64-linux/mtd-utils/2.1.1-r0.arago1/recipe-sysroot-native/sbin:/home/tomita/ti-processor-sdk-linux-am65xx-evm-07_00_01_06/yocto-build/build/arago-tmp-external-arm-glibc/work/aarch64-linux/mtd-utils/2.1.1-r0.arago1/recipe-sysroot-native/bin:/home/tomita/gcc-arm-9.2-2019.12-x86_64-aarch64-none-linux-gnu/bin:/home/tomita/ti-processor-sdk-linux-am65xx-evm-07_00_01_06/yocto-build/sources/bitbake/bin:/home/tomita/ti-processor-sdk-linux-am65xx-evm-07_00_01_06/yocto-build/build/arago-tmp-external-arm-glibc/hosttools"; export HOME="/home/tomita"; LANG=C git -c core.fsyncobjectfiles=0 fetch -f --prune --progress git://git.infradead.org/mtd-utils.git refs/*:refs/* failed with exit code 128, output:
    fatal: repository 'git.infradead.org/.../' not found

    ERROR: mtd-utils-2.1.1-r0.arago1 do_fetch: Fetcher failure for URL: 'git://git.infradead.org/mtd-utils.git'. Unable to fetch URL from any source.
    ERROR: Logfile of failure stored in: /home/tomita/ti-processor-sdk-linux-am65xx-evm-07_00_01_06/yocto-build/build/arago-tmp-external-arm-glibc/work/aarch64-linux/mtd-utils/2.1.1-r0.arago1/temp/log.do_fetch.27237
    ERROR: Task (/home/tomita/ti-processor-sdk-linux-am65xx-evm-07_00_01_06/yocto-build/sources/oe-core/meta/recipes-devtools/mtd/mtd-utils_git.bb:do_fetch) failed with exit code '1'
    -------------- ---------------------------------------------------------------------------------------------------------------------

  • Closing the thread as the discussion has proceeded into it a new thread https://e2e.ti.com/support/processors/f/791/t/962170

    Regards

    Karthik