使用Git包从github上同步代码,处理报错

参考1:https://docs.khadas.com/zh-cn/vim3/InstallToolchains.html

参考2:https://wiki.odroid.com/odroid-c4/software/building_u-boot

gcc-arm-none-eabi-6-2017-q2-update-linux.tar.bz2
gcc-linaro-aarch64-none-elf-4.8-2013.11_linux.tar.bz2

1、RPC failed; curl 18 transfer closed with outstanding read data remaining

#
# git clone操作,https方式,同步到一大半时报错,同步文件太大或网络不好
#
$ git clone https://github.com/hardkernel/u-boot.git -b odroidg12-v2015.01
Cloning into 'u-boot'...
remote: Enumerating objects: 236, done.
remote: Counting objects: 100% (236/236), done.
remote: Compressing objects: 100% (182/182), done.
error: RPC failed; curl 18 transfer closed with outstanding read data remaining
fatal: The remote end hung up unexpectedly
fatal: early EOF
fatal: index-pack failed

#
# 尝试1:预计下载的git包超过300M,所以增大缓冲区试试
#
$ git config --global http.postBuffer 524288000
$ git config --list
user.email=xxx@hotmail.com
user.name=xxx
color.ui=auto
http.postbuffer=524288000
#
# 尝试2:--depth 1 浅复制,只同步最新的代码,不管历史版本,下载量会小很多。
#
$ git clone https://github.com/hardkernel/u-boot.git -b odroidg12-v2015.01 --depth 1
#
# 尝试3:优先还是https源,不行再切到git源。
#
$ git clone git://github.com/hardke
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值