参考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