Firefly开源社区

标题: RK3399 industry7.1 同步SDK仓库出现问题和解决 [打印本页]

作者: jpchen    时间: 2020-1-4 10:20
标题: RK3399 industry7.1 同步SDK仓库出现问题和解决
本帖最后由 jpchen 于 2020-1-4 10:22 编辑

问题:
SDK下载和更新 文档,当我们下载后需要同步SDK到最新提交,有时执行.bundle/update此命令进行同步时,有时候要等好久,虽然更新的内容不多,但是像个蜗牛慢吞吞的,想死的心都有了,但这没办法gitlab下载的资源就是这么慢,那就等咯,但是可能奔溃的事情是这样,就是同步到差不多就报如下的错误,那就有点心碎了。
  1. jpchen@service:~/proj/firefly-rk3399-Industry$ .bundle/update
  2. [Info]Update Bundle repo...
  3. remote: Enumerating objects: 4, done.
  4. remote: Counting objects: 100% (4/4), done.
  5. remote: Compressing objects: 100% (3/3), done.
  6. error: RPC failed; result=18, HTTP code = 200
  7. fatal: The remote end hung up unexpectedly
  8. fatal: early EOF
  9. fatal: unpack-objects failed
  10. -------------------------------------------
  11. [Info]Update to FETCH_HEAD:
  12. From .bundle/3.bundle
  13. * branch            HEAD       -> FETCH_HEAD
  14. [Info]Fetch .bundle/3.bundle successfully!!
复制代码
别看最后提示successfully,但是中间已经提示failed。所以同步失败,那要怎么解决?

解决:
其实这个原因主要是网络的不稳定出现的问题,所以我们需要配置git 的克隆速度
  1. 1.httpBuffer加大   
  2. git config --global http.postBuffer 524288000
  3. 2.压缩配置
  4. git config --global core.compression -1   
  5. 3.修改配置文件
  6. export GIT_TRACE_PACKET=1
  7. export GIT_TRACE=1
  8. export GIT_CURL_VERBOSE=1
复制代码
然后再执行 .bundle/update ,打印了很多,但是最后的打印如下,就说明同步成功了
  1. -------------------------------------------
  2. [Info]Update to FETCH_HEAD:
  3. trace: built-in: git 'fetch' '.bundle/4.bundle'
  4. trace: run_command: 'rev-list' '--verify-objects' '--stdin' '--not' '--all' '--quiet'
  5. trace: run_command: 'index-pack' '--fix-thin' '--stdin' '-v'
  6. trace: exec: 'git' 'index-pack' '--fix-thin' '--stdin' '-v'
  7. trace: built-in: git 'index-pack' '--fix-thin' '--stdin' '-v'
  8. Receiving objects: 100% (190/190), 22.67 MiB, done.
  9. Resolving deltas: 100% (143/143), completed with 112 local objects.
  10. trace: run_command: 'rev-list' '--verify-objects' '--stdin' '--not' '--all'
  11. trace: exec: 'git' 'rev-list' '--verify-objects' '--stdin' '--not' '--all'
  12. trace: built-in: git 'rev-list' '--verify-objects' '--stdin' '--not' '--all'
  13. From .bundle/4.bundle
  14. * branch            HEAD       -> FETCH_HEAD
  15. [Info]Fetch .bundle/4.bundle successfully!!
复制代码
最后执行git rebase FETCH_HEAD SDK更新到FETCH_HEAD的最新提交。







欢迎光临 Firefly开源社区 (https://dev.t-firefly.com/) Powered by Discuz! X3.1