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.
我在根据 configs/PROCESSOR-SDK/processor-sdk-08.06.00-config.txt 构建映像时遇到故障
ERROR: ti-k3-secdev-native-git-r0 do_fetch: Bitbake Fetcher Error: FetchError('Unable to fetch URL from any source.', 'git://git.ti.com/git/security-development-tools/core-secdev-k3.git;protocol=https;branch=master')
当我搜索文件时、我看到:
meta-ti/recipes-ti/secdev/ti-k3-secdev_git.bb:GIT_URI = "git://git.ti.com/git/security-development-tools/core-secdev-k3.git"
当我尝试在本地克隆 repo 时,我得到相同的错误:
git clone git://git.ti.com/git/security-development-tools/core-secdev-k3.git Cloning into 'core-secdev-k3'... fatal: remote error: access denied or repository not exported: /git/security-development-tools/core-secdev-k3.git
我想提出另一个有关这方面的问题。
我们将遵循中的 Yocto 构建指令:
MACHINE=<machine> bitbake <target> am64xx-evm : AM64x GP EVM, AM64x Starter Kit (SK) am64xx-hs-evm : AM64x HS EVM
注意:当我为机器构建= am64xx-evm 时会出现上述错误
我的问题是:
1.如果我 为机器 am64xx-EVM 构建、它在旧的 AM64x-GP-EVM 板上是否能正常运行?
2.如果我 为机器 am64xx-hs-evm 进行构建、它在旧的 AM64x-GP-EVM 板上是否能正常运行?
根据我从不同主题中了解的内容、这些图像不会在 AM64x-gp-evm 上运行、我需要按照本指南更改图像:
software-dl.ti.com/.../Foundational_Components_Migration_Guide.html
进一步调查后、我看到食谱的代码是:
DESCRIPTION = "Security development tools for High-Security(HS) TI K3 processors." HOMEPAGE = "">git.ti.com/.../core-secdev-k3" SECTION = "devel" LICENSE = "BSD-3-Clause" LIC_FILES_CHKSUM = "file://manifest/k3-secdev-0.2-manifest.html;md5=f632a78870cc64550078d7b3cbac0892" require recipes-ti/includes/ti-paths.inc # Native host tool only COMPATIBLE_MACHINE = "null" COMPATIBLE_MACHINE_class-native = "(.*)" COMPATIBLE_MACHINE_class-nativesdk = "(.*)" GIT_URI = "git://git.ti.com/git/security-development-tools/core-secdev-k3.git" GIT_PROTOCOL = "https" GIT_BRANCH = "master" GIT_SRCREV = "d14fbab5ccb21ffeb010ce57792c56a1308ed314" SRC_URI = "${GIT_URI};protocol=${GIT_PROTOCOL};branch=${GIT_BRANCH}" SRCREV = "${GIT_SRCREV}" S = "${WORKDIR}/git" do_install() { CP_ARGS="-Prf --preserve=mode,links,timestamps --no-preserve=ownership" install -d ${D}${TI_K3_SECDEV_INSTALL_DIR_RECIPE} cp ${CP_ARGS} ${S}/* ${D}${TI_K3_SECDEV_INSTALL_DIR_RECIPE} } FILES_${PN} += "${TI_K3_SECDEV_INSTALL_DIR_RECIPE}" INSANE_SKIP_${PN} = "arch ldflags file-rdeps" INHIBIT_PACKAGE_STRIP = "1" INHIBIT_SYSROOT_STRIP = "1" INHIBIT_PACKAGE_DEBUG_SPLIT = "1" BBCLASSEXTEND = "native nativesdk"
该方法在 SRC_URI 变量中指定"protocol=https"、该变量应指示 Yocto 从以下位置克隆存储库:
git.ti.com/.../core-secdev-k3.git
由于该存储库工作正常、我不确定问题是什么。
我将尝试进一步调查、以确保没有任何防火墙问题。
Ben、您是否已配置 Git 环境
git config -- global user.email your@email.com git config -- global user.name "您的姓名" git config ---global http.slcainfo /etc/ssl/certs/ca-certificates.crt
echo -e '[url"https://github.com/"]\n instorof ="git://github.com/"'>>~/.gitconfig
或重试
GIT 克隆 git.ti.com/.../core-secdev-k3.git -b 主站
错误:ti-k3-secdev-native-git-r0 do_fetch:Bitbake Fetcher 错误:FetchError ('无法从任何源获取 URL。'、'git://git.ti.com/git/security-development-tools/core-secdev-k3.git;protocol=https;branch=master')
不要被这些 GIT URI 在 Yocto 中的写法弄混淆。 初始前缀 git ://意味着使用"git fetcher",并不一定意味着"git protocol/transport"本身用于 Git -这是两个不同的东西。 Yocto 决定"协议"指定符(在本例中为"https")使用哪个协议/传输。 因此,为了正确复制 Git 在 Yocto 所做的事情,将尝试"git clone https://..." 所述的内容。 不是"git clone git://..."。 因此、 此命令的 shell 命令为:
a0797059@dasso:~/tmp $ git clone git.ti.com/.../core-secdev-k3.git Cloning into 'core-secdev-k3'... remote: Enumerating objects: 63, done. remote: Counting objects: 100% (63/63), done. remote: Compressing objects: 100% (60/60), done. remote: Total 63 (delta 21), reused 0 (delta 0), pack-reused 0 Receiving objects: 100% (63/63), 58.88 KiB | 58.88 MiB/s, done. Resolving deltas: 100% (21/21), done.
如果这在命令提示符下有效、它也应该在 Yocto 下有效。
另外、在 Yocto 错误消息中、会为日志文件提供一个路径、其中包含为该获取程序阶段执行的命令。 它将准确显示 Yocto 在那个阶段所做的工作、如果需要、你可以手动重新创建这个、看看哪些地方出现了故障。
此致、Andreas