You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

QCA8081 PHY驱动构建:Git仓库URL迁移及repo同步故障求助

QCA8081 PHY驱动构建:repo同步失败排查与解决

问题概述

构建QCA8081 PHY驱动时,原CAF(Code Aurora Forum)仓库URL已失效,按官方指南执行的repo init命令无法运行:

repo init -u git://codeaurora.org/quic/qsdk/releases/manifest/qstak -b release -m caf_AU_LINUX_QSDK_NHSS.QSDK.8.0.1_TARGET_ALL.7.0.1681.673.032.xml --repo-url=git://codeaurora.org/tools/repo.git --repo-branch=caf-stable

将repo init命令修改为以下内容后,初始化步骤成功:

repo init -u https://git.codelinaro.org/clo/qsdk/releases/manifest/qstak.git -b caf_migration/release -m caf_AU_LINUX_QSDK_NHSS.QSDK.8.0.1_TARGET_ALL.7.0.1681.673.032.xml

但执行同步命令时失败,报错:

$ repo sync -j1 --no-tags -c
fatal: unable to access 'https://source.codeaurora.org/quic/qsdk/oss/tools/meta/': Received HTTP code 502 from proxy after CONNECT

已尝试操作

根据建议修改全局git配置,并编辑内部仓库的config文件,执行命令:

git config --global url.https://.insteadOf git://
git config --global url.https://git.codelinaro.org/clo/.insteadOf git://codeaurora.org/quic/

操作后触发认证提示:

Username for 'https://git.codelinaro.org': 

环境说明:处于企业代理网络下


解决方案

1. 修复代理配置(企业环境核心)

企业代理下需确保git和repo工具的代理配置一致:

  • 全局git代理配置:
# 基础代理设置
git config --global http.proxy http://<代理IP>:<端口>
git config --global https.proxy http://<代理IP>:<端口>
# 若代理需认证
git config --global http.proxyAuthMethod basic
git config --global http.proxyUser <代理用户名>
git config --global http.proxyPassword <代理密码>
# 跳过内部域名代理(可选)
git config --global http.noProxy localhost,127.0.0.1,git.codelinaro.org
  • repo工具代理配置(通过环境变量):
export HTTP_PROXY=http://<代理IP>:<端口>
export HTTPS_PROXY=http://<代理IP>:<端口>
export NO_PROXY=localhost,127.0.0.1,git.codelinaro.org
# 持久化配置可写入~/.bashrc或~/.zshrc

2. 替换Manifest中的旧仓库地址

本地Manifest仍引用失效的CAF地址,需手动替换:

  1. 进入本地Manifest目录:cd .repo/manifests
  2. 编辑目标XML文件:vim caf_AU_LINUX_QSDK_NHSS.QSDK.8.0.1_TARGET_ALL.7.0.1681.673.032.xml
  3. 批量替换所有旧地址:
    • 将git://codeaurora.org/quic/替换为https://git.codelinaro.org/clo/
    • 将https://source.codeaurora.org/quic/替换为https://git.codelinaro.org/clo/
  4. 保存后回到根目录:cd ../..

3. 处理Git认证问题

git.codelinaro.org需要身份验证,可通过两种方式解决:

  • 凭证存储(推荐):
git config --global credential.helper store

首次输入用户名密码后,git会自动存储凭证到~/.git-credentials,后续无需重复输入。

  • SSH方式(若企业允许):
git config --global url.ssh://git@git.codelinaro.org/clo/.insteadOf https://git.codelinaro.org/clo/

需提前在git.codelinaro.org配置SSH公钥。

4. 重新执行同步

完成所有配置后,重新运行同步命令:

repo sync -j1 --no-tags -c

内容的提问来源于stack exchange,提问作者user2669989

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.07.24 11:52:41