同步vim3 android代码出错

HI:
采用“使用内地镜像服务器下载 + 百度网盘下载基版本代码”的方式同步代码
重复了很多遍,都是出现如下同样的错误:

error: refs/tags/studio-master-dev_before_29093141 does not point to a valid object!
error: refs/tags/studio_0.8.6 does not point to a valid object!
error: refs/tags/studio_1.0.0 does not point to a valid object!
error: refs/tags/studio_1.0.1 does not point to a valid object!
remote: Counting objects: 114976, done.
接收对象中: 27% (32026/114976), 8.49 MiB | 123.00 KiB/s

error: RPC failed; curl 56 GnuTLS recv error (-54): Error in the pull function.
fatal: The remote end hung up unexpectedly
fatal: 过早的文件结束符(EOF)
fatal: index-pack failed
error: Cannot fetch platform/prebuilts/tools from https://aosp.tuna.tsinghua.edu.cn/platform/prebuilts/tools
Fetching projects: 99% (694/695) platform/prebuilts/tools

error: RPC failed; curl 56 GnuTLS recv error (-54): Error in the pull function.
fatal: The remote end hung up unexpectedly
fatal: 过早的文件结束符(EOF)
fatal: index-pack failed
error: Cannot fetch platform/prebuilts/sdk from https://aosp.tuna.tsinghua.edu.cn/platform/prebuilts/sdk
Fetching projects: 100% (695/695), done.

error: Exited sync due to gc errors

我的环境如下:
sword@sword-Aspire-V3-471G:~/Amlogic-Android-source/khadas-aosp/khadas$ repo --version
repo version v1.13.8
(from https://gerrit.googlesource.com/git-repo)
repo launcher version 2.8
(from /home/sword/bin/repo)
(currently at 1.13.8)
repo User-Agent git-repo/1.13.8 (Linux) git/2.7.4 Python/3.6.11
git 2.7.4
git User-Agent git/2.7.4 (Linux) git-repo/1.13.8
Python 3.6.11 (default, Jun 29 2020, 05:15:03)
[GCC 5.4.0 20160609]

各位有没有解决办法?

@Sword @jasonl @Terry @goenjoy 帮忙看看这个问题

LOG太少,请发完整LOG。。。。。。。

这个错误请参考下面链接试试看:
https://www.pianshen.com/article/4397334526/

Hi goenjoy:
您说的方法试过了,不行。
sword@sword-Aspire-V3-471G:~/Amlogic-Android-source/khadas-aosp/khadas$ git config -l
user.email=xxxxxx@qq.com
user.name=Sword
color.ui=auto
http.postbuffer=1048576000
http.sslverify=false
core.compression=-1

完整同步的LOG呢????????????????

hi goenjoy:
如何上传日志详文件?

@Sword论坛没办法上传文件,你可以选择传到网盘,再分享链接过来

Hi goenjoy:
链接:https://pan.baidu.com/s/17DEJkpeB0utf8BIyCKArAA
提取码:jfbo

天啊,这么多错误。都怀疑你的.repo已经坏掉了。可以先试下只下载一个目录,先确认下你的电脑环境是否正确。在另外个目录输入如下命令:

repo init -u https://github.com/khadas/android_manifest.git -b khadas-vims-pie

执行上一步后,把Google的URL地址改为清华大学后,再执行下面命令看看能否下载这两个目录?

repo sync -j4 cts
repo sync -j4 bootloader/uboot
1 Like

hi goenjoy:
sword@sword-Aspire-V3-471G:~/Amlogic-Android-source/khadas-aosp/khadas$ ll
总用量 120
drwxrwxr-x 27 sword sword 4096 10月 21 11:25 ./
drwxrwxr-x 3 sword sword 4096 10月 20 19:42 …/
lrwxrwxrwx 1 sword sword 19 10月 12 18:07 Android.bp -> build/soong/root.bp
drwxrwxr-x 30 sword sword 4096 10月 12 18:06 art/
drwxrwxr-x 13 sword sword 4096 10月 12 18:07 bionic/
drwxrwxr-x 3 sword sword 4096 10月 12 18:07 bootable/
drwxrwxr-x 3 sword sword 4096 10月 12 18:07 bootloader/
lrwxrwxrwx 1 sword sword 26 10月 12 18:07 bootstrap.bash -> build/soong/bootstrap.bash*
drwxrwxr-x 6 sword sword 4096 10月 12 18:07 build/
drwxrwxr-x 25 sword sword 4096 10月 12 18:07 common/
drwxrwxr-x 3 sword sword 4096 10月 12 18:07 compatibility/
drwxrwxr-x 12 sword sword 4096 10月 12 18:08 cts/
drwxrwxr-x 10 sword sword 4096 10月 12 18:08 dalvik/
drwxrwxr-x 5 sword sword 4096 10月 12 18:08 developers/
drwxrwxr-x 20 sword sword 4096 10月 12 18:08 development/
drwxrwxr-x 3 sword sword 4096 10月 12 18:08 device/
drwxrwxr-x 290 sword sword 12288 10月 12 18:14 external/
drwxrwxr-x 17 sword sword 4096 10月 12 19:35 frameworks/
drwxrwxr-x 11 sword sword 4096 10月 12 19:35 hardware/
drwxrwxr-x 4 sword sword 4096 10月 12 19:36 kernel/
drwxrwxr-x 20 sword sword 4096 10月 12 19:36 libcore/
drwxrwxr-x 8 sword sword 4096 10月 12 19:36 libnativehelper/
-r–r--r-- 1 sword sword 92 10月 12 18:07 Makefile
drwxrwxr-x 9 sword sword 4096 10月 12 19:37 packages/
drwxrwxr-x 6 sword sword 4096 10月 12 19:37 pdk/
drwxrwxr-x 9 sword sword 4096 10月 12 19:37 platform_testing/
drwxrwxr-x 26 sword sword 4096 10月 12 19:49 prebuilts/
drwxrwxr-x 7 sword sword 4096 10月 12 16:08 .repo/
drwxrwxr-x 25 sword sword 4096 10月 12 19:49 sdk/
drwxrwxr-x 7 sword sword 4096 10月 12 20:36 system/
sword@sword-Aspire-V3-471G:~/Amlogic-Android-source/khadas-aosp/khadas$ ls cts/
Android.mk CleanSpec.mk development hostsidetests run_unit_tests.sh tests
apps common error_prone_rules.mk libs suite tools
build CtsCoverage.mk error_prone_rules_tests.mk PREUPLOAD.cfg test_defs.sh

sword@sword-Aspire-V3-471G:~/Amlogic-Android-source/khadas-aosp/khadas$ ls bootloader/uboot/
amlogic_help.sh bl2 bl31_1.3 common disk dts fs Kconfig MAINTAINERS mk README test
api bl30 board config.mk doc examples include lib MAKEALL net scripts tools
arch bl31 check_compile.sh configs drivers fip Kbuild Licenses Makefile post snapshot.commit
sword@sword-Aspire-V3-471G:~/Amlogic-Android-source/khadas-aosp/khadas$

您说的两个目录都已同步了。

请按照给的方法操作一遍。并把完整LOG贴出来。

Hi goenjoy:

     sword@sword-Aspire-V3-471G:~/Amlogic-Android-source/khadas-aosp$ mkdir test 
sword@sword-Aspire-V3-471G:~/Amlogic-Android-source/khadas-aosp$ 
sword@sword-Aspire-V3-471G:~/Amlogic-Android-source/khadas-aosp$ 
sword@sword-Aspire-V3-471G:~/Amlogic-Android-source/khadas-aosp$ cd test/
sword@sword-Aspire-V3-471G:~/Amlogic-Android-source/khadas-aosp/test$ 
sword@sword-Aspire-V3-471G:~/Amlogic-Android-source/khadas-aosp/test$ 
sword@sword-Aspire-V3-471G:~/Amlogic-Android-source/khadas-aosp/test$ ls
sword@sword-Aspire-V3-471G:~/Amlogic-Android-source/khadas-aosp/test$ 
sword@sword-Aspire-V3-471G:~/Amlogic-Android-source/khadas-aosp/test$ 
sword@sword-Aspire-V3-471G:~/Amlogic-Android-source/khadas-aosp/test$ 
sword@sword-Aspire-V3-471G:~/Amlogic-Android-source/khadas-aosp/test$ 
sword@sword-Aspire-V3-471G:~/Amlogic-Android-source/khadas-aosp/test$ 
sword@sword-Aspire-V3-471G:~/Amlogic-Android-source/khadas-aosp/test$ repo init -u https://github.com/khadas/android_manifest.git -b khadas-vims-pie
Downloading Repo source from https://mirrors.tuna.tsinghua.edu.cn/git/git-repo
remote: Counting objects: 5630, done.
remote: Compressing objects: 100% (2772/2772), done.
remote: Total 5630 (delta 3640), reused 4636 (delta 2791)
接收对象中: 100% (5630/5630), 2.02 MiB | 500.00 KiB/s, 完成.
处理 delta 中: 100% (3640/3640), 完成.
repo: Updating release signing keys to keyset ver 2.3
Downloading manifest from https://github.com/khadas/android_manifest.git
remote: Enumerating objects: 234, done.        
        中:  94% (220/234), 268.01 KiB | 31.00 KiB/s   eused 234接收对象中:  88% (206/234), 268.01 KiB | 31.00 KiB/s   
接收对象中: 100% (234/234), 278.66 KiB | 30.00 KiB/s, 完成.
处理 delta 中: 100% (73/73), 完成.
repo has been initialized in /home/sword/Amlogic-Android-source/khadas-aosp/test
sword@sword-Aspire-V3-471G:~/Amlogic-Android-source/khadas-aosp/test$ 
sword@sword-Aspire-V3-471G:~/Amlogic-Android-source/khadas-aosp/test$ ll
总用量 12
drwxrwxr-x 3 sword sword 4096 10月 21 17:04 ./
drwxrwxr-x 4 sword sword 4096 10月 21 17:03 ../
drwxrwxr-x 5 sword sword 4096 10月 21 17:05 .repo/
sword@sword-Aspire-V3-471G:~/Amlogic-Android-source/khadas-aosp/test$ ls .repo/
manifests  manifests.git  manifest.xml  repo
sword@sword-Aspire-V3-471G:~/Amlogic-Android-source/khadas-aosp/test$ 
sword@sword-Aspire-V3-471G:~/Amlogic-Android-source/khadas-aosp/test$ 
sword@sword-Aspire-V3-471G:~/Amlogic-Android-source/khadas-aosp/test$ 
sword@sword-Aspire-V3-471G:~/Amlogic-Android-source/khadas-aosp/test$ vim .repo/manifests
manifests/     manifests.git/ 
sword@sword-Aspire-V3-471G:~/Amlogic-Android-source/khadas-aosp/test$ vim .repo/manifests/default.xml 
sword@sword-Aspire-V3-471G:~/Amlogic-Android-source/khadas-aosp/test$ 
sword@sword-Aspire-V3-471G:~/Amlogic-Android-source/khadas-aosp/test$ 
sword@sword-Aspire-V3-471G:~/Amlogic-Android-source/khadas-aosp/test$ 
sword@sword-Aspire-V3-471G:~/Amlogic-Android-source/khadas-aosp/test$ 
sword@sword-Aspire-V3-471G:~/Amlogic-Android-source/khadas-aosp/test$ 
sword@sword-Aspire-V3-471G:~/Amlogic-Android-source/khadas-aosp/test$ 
sword@sword-Aspire-V3-471G:~/Amlogic-Android-source/khadas-aosp/test$ repo sync -j4 cts

remote: Counting objects: 1041269, done.        
remote: Compressing objects: 100% (284765/284765), done.        
接收对象中:   8% (92845/1041269), 28.71 MiB | 26.00 KiB/s    
接收对象中:   9% (95382/1041269), 29.36 MiB | 8.00 KiB/s   

接收对象中:  16% (171386/1041269), 53.50 MiB | 252.00 KiB/s   
error: RPC failed; curl 56 GnuTLS recv error (-54): Error in the pull function.
fatal: The remote end hung up unexpectedly
fatal: 过早的文件结束符(EOF)
fatal: index-pack failed
remote: Counting objects: 1084985, done.        
remote: Compressing objects: 100% (251/251), done.        
接收对象中:   1% (18791/1084985), 6.00 MiB | 258.00 KiB/s    
接收对象中:   1% (18840/1084985), 6.05 MiB | 24.00 KiB/s   

接收对象中:   2% (26404/1084985), 8.33 MiB | 2.00 KiB/s     
error: RPC failed; curl 56 GnuTLS recv error (-9): A TLS packet with unexpected length was received.
fatal: The remote end hung up unexpectedly
fatal: 过早的文件结束符(EOF)
fatal: index-pack failed
platform/cts:
remote: Counting objects: 1084985, done.        
remote: Compressing objects: 100% (251/251), done.        
error: RPC failed; curl 56 GnuTLS recv error (-9): A TLS packet with unexpected length was received.
fatal: The remote end hung up unexpectedly
fatal: 过早的文件结束符(EOF)
fatal: index-pack failed

remote: Counting objects: 1084985, done.        
remote: Compressing objects: 100% (251/251), done.        
接收对象中:   0% (532/1084985), 172.00 KiB | 9.00 KiB/s    

error: RPC failed; curl 56 GnuTLS recv error (-9): A TLS packet with unexpected length was received.
fatal: The remote end hung up unexpectedly
fatal: 过早的文件结束符(EOF)
fatal: index-pack failed
platform/cts:
remote: Counting objects: 1084985, done.        
remote: Compressing objects: 100% (251/251), done.        
error: RPC failed; curl 56 GnuTLS recv error (-9): A TLS packet with unexpected length was received.
fatal: The remote end hung up unexpectedly
fatal: 过早的文件结束符(EOF)
fatal: index-pack failed

error: Cannot fetch platform/cts from https://aosp.tuna.tsinghua.edu.cn/platform/cts
Fetching projects: 100% (1/1), done.
fatal: failed to unpack tree object HEAD
error: Cannot checkout platform/cts: GitError: Cannot initialize work tree for platform/cts
Traceback (most recent call last):
  File "/home/sword/Amlogic-Android-source/khadas-aosp/test/.repo/repo/main.py", line 628, in <module>
    _Main(sys.argv[1:])
  File "/home/sword/Amlogic-Android-source/khadas-aosp/test/.repo/repo/main.py", line 602, in _Main
    result = run()
  File "/home/sword/Amlogic-Android-source/khadas-aosp/test/.repo/repo/main.py", line 595, in <lambda>
    run = lambda: repo._Run(name, gopts, argv) or 0
  File "/home/sword/Amlogic-Android-source/khadas-aosp/test/.repo/repo/main.py", line 264, in _Run
    result = cmd.Execute(copts, cargs)
  File "/home/sword/Amlogic-Android-source/khadas-aosp/test/.repo/repo/subcmds/sync.py", line 982, in Execute
    self._Checkout(all_projects, opt, err_event, err_results)
  File "/home/sword/Amlogic-Android-source/khadas-aosp/test/.repo/repo/subcmds/sync.py", line 567, in _Checkout
    self._CheckoutWorker(**kwargs)
  File "/home/sword/Amlogic-Android-source/khadas-aosp/test/.repo/repo/subcmds/sync.py", line 447, in _CheckoutWorker
    return self._CheckoutOne(opt, project, *args, **kwargs)
  File "/home/sword/Amlogic-Android-source/khadas-aosp/test/.repo/repo/subcmds/sync.py", line 481, in _CheckoutOne
    project.Sync_LocalHalf(syncbuf, force_sync=opt.force_sync)
  File "/home/sword/Amlogic-Android-source/khadas-aosp/test/.repo/repo/project.py", line 1623, in Sync_LocalHalf
    self._InitWorkTree(force_sync=force_sync, submodules=submodules)
  File "/home/sword/Amlogic-Android-source/khadas-aosp/test/.repo/repo/project.py", line 3135, in _InitWorkTree
    raise GitError('Cannot initialize work tree for ' + self.name)
error.GitError: Cannot initialize work tree for platform/cts

此错误信息,说明网络不稳定,可以多次执行同步操作(repo sync -j4 cts)。可参考这里:

另外这一步你又没做完整贴出来:image

另外你可以参考下此贴:VIM3 android源码下载报错求助

hi goenjoy:

sword@sword-Aspire-V3-471G:~/Amlogic-Android-source/khadas-aosp/test$ repo sync -j1 cts
remote: Counting objects: 1041269, done.        
remote: Compressing objects: 100% (284765/284765), done.        
error: RPC failed; curl 56 GnuTLS recv error (-54): Error in the pull function.
fatal: The remote end hung up unexpectedly
fatal: 过早的文件结束符(EOF)
fatal: index-pack failed
remote: Counting objects: 1085056, done.        
error: RPC failed; curl 56 GnuTLS recv error (-9): A TLS packet with unexpected length was received.
fatal: The remote end hung up unexpectedly
fatal: 过早的文件结束符(EOF)
fatal: index-pack failed
platform/cts:
remote: Counting objects: 1085056, done.        
error: RPC failed; curl 56 GnuTLS recv error (-9): A TLS packet with unexpected length was received.
fatal: The remote end hung up unexpectedly
fatal: 过早的文件结束符(EOF)
fatal: index-pack failed

remote: Counting objects: 1085056, done.        
接收对象中:  12% (135154/1085056), 42.04 MiB | 377.00 KiB/s   
error: RPC failed; curl 56 GnuTLS recv error (-54): Error in the pull function.
fatal: The remote end hung up unexpectedly
fatal: 过早的文件结束符(EOF)
fatal: index-pack failed
platform/cts:
remote: Counting objects: 1085056, done.        
error: RPC failed; curl 56 GnuTLS recv error (-54): Error in the pull function.
fatal: The remote end hung up unexpectedly
fatal: 过早的文件结束符(EOF)
fatal: index-pack failed

error: Cannot fetch platform/cts from https://aosp.tuna.tsinghua.edu.cn/platform/cts
Fetching projects: 100% (1/1), done.

error: Unable to fully sync the tree.
error: Downloading network changes failed.
error: Checking out local projects failed.
Try re-running with "-j1 --fail-fast" to exit at the first error.
sword@sword-Aspire-V3-471G:~/Amlogic-Android-source/khadas-aosp/test$ 
sword@sword-Aspire-V3-471G:~/Amlogic-Android-source/khadas-aosp/test$ 
sword@sword-Aspire-V3-471G:~/Amlogic-Android-source/khadas-aosp/test$ 
sword@sword-Aspire-V3-471G:~/Amlogic-Android-source/khadas-aosp/test$ 
sword@sword-Aspire-V3-471G:~/Amlogic-Android-source/khadas-aosp/test$ repo sync -j1 --fail-fast cts
remote: Counting objects: 1041269, done.        
remote: Compressing objects: 100% (284765/284765), done.        
接收对象中:   0% (4765/1041269), 1.51 MiB | 6.00 KiB/s      

error: RPC failed; curl 56 GnuTLS recv error (-54): Error in the pull function.
fatal: The remote end hung up unexpectedly
fatal: 过早的文件结束符(EOF)
fatal: index-pack failed
remote: Counting objects: 1085056, done.        
error: RPC failed; curl 56 GnuTLS recv error (-54): Error in the pull function.
fatal: The remote end hung up unexpectedly
fatal: 过早的文件结束符(EOF)
fatal: index-pack failed
platform/cts:
remote: Counting objects: 1085056, done.        
error: RPC failed; curl 56 GnuTLS recv error (-54): Error in the pull function.
fatal: The remote end hung up unexpectedly
fatal: 过早的文件结束符(EOF)
fatal: index-pack failed

remote: Counting objects: 1085056, done.        
error: RPC failed; curl 56 GnuTLS recv error (-9): A TLS packet with unexpected length was received.
fatal: The remote end hung up unexpectedly
fatal: 过早的文件结束符(EOF)
fatal: index-pack failed
platform/cts:
remote: Counting objects: 1085056, done.        
error: RPC failed; curl 56 GnuTLS recv error (-9): A TLS packet with unexpected length was received.
fatal: The remote end hung up unexpectedly
fatal: 过早的文件结束符(EOF)
fatal: index-pack failed

error: Cannot fetch platform/cts from https://aosp.tuna.tsinghua.edu.cn/platform/cts

error: Exited sync due to fetch errors.
Local checkouts *not* updated. Resolve network issues & retry.
`repo sync -l` will update some local checkouts.
sword@sword-Aspire-V3-471G:~/Amlogic-Android-source/khadas-aosp/test$ 
sword@sword-Aspire-V3-471G:~/Amlogic-Android-source/khadas-aosp/test$ 
sword@sword-Aspire-V3-471G:~/Amlogic-Android-source/khadas-aosp/test$ 
sword@sword-Aspire-V3-471G:~/Amlogic-Android-source/khadas-aosp/test$ 
sword@sword-Aspire-V3-471G:~/Amlogic-Android-source/khadas-aosp/test$ repo sync -j1 --fail-fast -l cts
repo sync has finished successfully.
sword@sword-Aspire-V3-471G:~/Amlogic-Android-source/khadas-aosp/test$ 
sword@sword-Aspire-V3-471G:~/Amlogic-Android-source/khadas-aosp/test$ 
sword@sword-Aspire-V3-471G:~/Amlogic-Android-source/khadas-aosp/test$ repo sync -j1 --fail-fast -l cts
repo sync has finished successfully.
sword@sword-Aspire-V3-471G:~/Amlogic-Android-source/khadas-aosp/test$ 
sword@sword-Aspire-V3-471G:~/Amlogic-Android-source/khadas-aosp/test$ 
sword@sword-Aspire-V3-471G:~/Amlogic-Android-source/khadas-aosp/test$ 
sword@sword-Aspire-V3-471G:~/Amlogic-Android-source/khadas-aosp/test$ repo sync -j1 --fail-fast -l cts
repo sync has finished successfully.
sword@sword-Aspire-V3-471G:~/Amlogic-Android-source/khadas-aosp/test$ 
sword@sword-Aspire-V3-471G:~/Amlogic-Android-source/khadas-aosp/test$ repo sync -j1 --fail-fast -l cts
repo sync has finished successfully.
sword@sword-Aspire-V3-471G:~/Amlogic-Android-source/khadas-aosp/test$ 
sword@sword-Aspire-V3-471G:~/Amlogic-Android-source/khadas-aosp/test$ 
sword@sword-Aspire-V3-471G:~/Amlogic-Android-source/khadas-aosp/test$ ls
cts
sword@sword-Aspire-V3-471G:~/Amlogic-Android-source/khadas-aosp/test$ ls cts/
sword@sword-Aspire-V3-471G:~/Amlogic-Android-source/khadas-aosp/test$ 
sword@sword-Aspire-V3-471G:~/Amlogic-Android-source/khadas-aosp/test$ ls cts/
sword@sword-Aspire-V3-471G:~/Amlogic-Android-source/khadas-aosp/test$ 
sword@sword-Aspire-V3-471G:~/Amlogic-Android-source/khadas-aosp/test$ 
sword@sword-Aspire-V3-471G:~/Amlogic-Android-source/khadas-aosp/test$ 
sword@sword-Aspire-V3-471G:~/Amlogic-Android-source/khadas-aosp/test$ ls cts/
sword@sword-Aspire-V3-471G:~/Amlogic-Android-source/khadas-aosp/test$ 
sword@sword-Aspire-V3-471G:~/Amlogic-Android-source/khadas-aosp/test$ 
sword@sword-Aspire-V3-471G:~/Amlogic-Android-source/khadas-aosp/test$ ls
cts
sword@sword-Aspire-V3-471G:~/Amlogic-Android-source/khadas-aosp/test$ 
sword@sword-Aspire-V3-471G:~/Amlogic-Android-source/khadas-aosp/test$ 
sword@sword-Aspire-V3-471G:~/Amlogic-Android-source/khadas-aosp/test$ 
sword@sword-Aspire-V3-471G:~/Amlogic-Android-source/khadas-aosp/test$ ls .repo/
manifests  manifests.git  manifest.xml  project.list  project-objects  projects  repo
sword@sword-Aspire-V3-471G:~/Amlogic-Android-source/khadas-aosp/test$ 
sword@sword-Aspire-V3-471G:~/Amlogic-Android-source/khadas-aosp/test$ 
sword@sword-Aspire-V3-471G:~/Amlogic-Android-source/khadas-aosp/test$ 
sword@sword-Aspire-V3-471G:~/Amlogic-Android-source/khadas-aosp/test$ 
sword@sword-Aspire-V3-471G:~/Amlogic-Android-source/khadas-aosp/test$ ls
cts
sword@sword-Aspire-V3-471G:~/Amlogic-Android-source/khadas-aosp/test$ 
sword@sword-Aspire-V3-471G:~/Amlogic-Android-source/khadas-aosp/test$ 
sword@sword-Aspire-V3-471G:~/Amlogic-Android-source/khadas-aosp/test$ ll cts/
总用量 12
drwxrwxr-x 3 sword sword 4096 10月 21 17:48 ./
drwxrwxr-x 4 sword sword 4096 10月 21 17:48 ../
drwxrwxr-x 2 sword sword 4096 10月 21 17:48 .git/
sword@sword-Aspire-V3-471G:~/Amlogic-Android-source/khadas-aosp/test$ 
sword@sword-Aspire-V3-471G:~/Amlogic-Android-source/khadas-aosp/test$ ll cts/.git/
总用量 12
drwxrwxr-x 2 sword sword 4096 10月 21 17:48 ./
drwxrwxr-x 3 sword sword 4096 10月 21 17:48 ../
lrwxrwxrwx 1 sword sword   35 10月 21 17:48 config -> ../../.repo/projects/cts.git/config
lrwxrwxrwx 1 sword sword   56 10月 21 17:48 description -> ../../.repo/project-objects/platform/cts.git/description
-rw-rw-r-- 1 sword sword   41 10月 21 17:48 HEAD
lrwxrwxrwx 1 sword sword   50 10月 21 17:48 hooks -> ../../.repo/project-objects/platform/cts.git/hooks/
lrwxrwxrwx 1 sword sword   49 10月 21 17:48 info -> ../../.repo/project-objects/platform/cts.git/info/
lrwxrwxrwx 1 sword sword   33 10月 21 17:48 logs -> ../../.repo/projects/cts.git/logs/
lrwxrwxrwx 1 sword sword   52 10月 21 17:48 objects -> ../../.repo/project-objects/platform/cts.git/objects/
lrwxrwxrwx 1 sword sword   40 10月 21 17:48 packed-refs -> ../../.repo/projects/cts.git/packed-refs
lrwxrwxrwx 1 sword sword   33 10月 21 17:48 refs -> ../../.repo/projects/cts.git/refs/
lrwxrwxrwx 1 sword sword   53 10月 21 17:48 rr-cache -> ../../.repo/project-objects/platform/cts.git/rr-cache/
lrwxrwxrwx 1 sword sword   48 10月 21 17:48 svn -> ../../.repo/project-objects/platform/cts.git/svn/
sword@sword-Aspire-V3-471G:~/Amlogic-Android-source/khadas-aosp/test$ 
sword@sword-Aspire-V3-471G:~/Amlogic-Android-source/khadas-aosp/test$ 
sword@sword-Aspire-V3-471G:~/Amlogic-Android-source/khadas-aosp/test$ ll -h cts/.git/
总用量 12K
drwxrwxr-x 2 sword sword 4.0K 10月 21 17:48 ./
drwxrwxr-x 3 sword sword 4.0K 10月 21 17:48 ../
lrwxrwxrwx 1 sword sword   35 10月 21 17:48 config -> ../../.repo/projects/cts.git/config
lrwxrwxrwx 1 sword sword   56 10月 21 17:48 description -> ../../.repo/project-objects/platform/cts.git/description
-rw-rw-r-- 1 sword sword   41 10月 21 17:48 HEAD
lrwxrwxrwx 1 sword sword   50 10月 21 17:48 hooks -> ../../.repo/project-objects/platform/cts.git/hooks/
lrwxrwxrwx 1 sword sword   49 10月 21 17:48 info -> ../../.repo/project-objects/platform/cts.git/info/
lrwxrwxrwx 1 sword sword   33 10月 21 17:48 logs -> ../../.repo/projects/cts.git/logs/
lrwxrwxrwx 1 sword sword   52 10月 21 17:48 objects -> ../../.repo/project-objects/platform/cts.git/objects/
lrwxrwxrwx 1 sword sword   40 10月 21 17:48 packed-refs -> ../../.repo/projects/cts.git/packed-refs
lrwxrwxrwx 1 sword sword   33 10月 21 17:48 refs -> ../../.repo/projects/cts.git/refs/
lrwxrwxrwx 1 sword sword   53 10月 21 17:48 rr-cache -> ../../.repo/project-objects/platform/cts.git/rr-cache/
lrwxrwxrwx 1 sword sword   48 10月 21 17:48 svn -> ../../.repo/project-objects/platform/cts.git/svn/
sword@sword-Aspire-V3-471G:~/Amlogic-Android-source/khadas-aosp/test$ 
sword@sword-Aspire-V3-471G:~/Amlogic-Android-source/khadas-aosp/test$ 
sword@sword-Aspire-V3-471G:~/Amlogic-Android-source/khadas-aosp/test$ 

上面的log说明的是什么情况?算同步完了吗?
repo sync -j4 cts 都有问题,这一步repo sync -j4 bootloader/uboot 还有必要做吗?

要。他们网站都不一样的。

error: Cannot fetch platform/cts from https://aosp.tuna.tsinghua.edu.cn/platform/cts
这报错,按照这里修改看看:
1, repo 的REPO_URL和default.xml 的aosp的地址,两者都改成清华的看看
2,要不就直接还原回去,用默认的再看看。
3, 链接:百度网盘 请输入提取码 2
提取码:524h
用这里的repo试下。

或者你可以参考这两个链接试下:
解决repo init 错误 fatal: Cannot get https://gerrit.googlesource.com/git-repo/clone.bundle_repo init 报错-CSDN博客 1
https://my.oschina.net/eric0593/blog/344946?p=1

Hi goenjoy:
repo sync -j4 cts
repo sync -j4 bootloader/uboot
这两步都有把repo 的REPO_URL和default.xml 的aosp的地址,两者都改成清华

 repo sync -j4 bootloader/uboot这一步很顺利
 sword@sword-Aspire-V3-471G:~/Amlogic-Android-source/khadas-aosp/test$ repo sync -j4 bootloader/uboot

remote: Enumerating objects: 3810, done.
remote: Counting objects: 100% (3810/3810), done.
remote: Compressing objects: 100% (1438/1438), done.
接收对象中: 0% (1341/605719), 492.01 KiB | 6.00 KiB/s
接收对象中: 8% (53032/605719), 16.59 MiB | 14.00 KiB/s
接收对象中: 8% (53125/605719), 16.61 MiB | 11.00 KiB/s
接收对象中: 8% (53153/605719), 16.62 MiB | 10.00 KiB/s
接收对象中: 9% (59760/605719), 18.63 MiB | 6.00 KiB/s
remote: Total 605719 (delta 2651), reused 3188 (delta 2363), pack-reused 601909
接收对象中: 100% (605719/605719), 201.66 MiB | 71.00 KiB/s, 完成.
处理 delta 中: 100% (493269/493269), 完成.
Fetching projects: 100% (1/1), done.
Checking out projects: 100% (1/1), done.
repo sync has finished successfully.

sword@sword-Aspire-V3-471G:~/Amlogic-Android-source/khadas-aosp/test$ ls
bootloader
sword@sword-Aspire-V3-471G:~/Amlogic-Android-source/khadas-aosp/test$
sword@sword-Aspire-V3-471G:~/Amlogic-Android-source/khadas-aosp/test$
sword@sword-Aspire-V3-471G:~/Amlogic-Android-source/khadas-aosp/test$ ls bootloader/
uboot
sword@sword-Aspire-V3-471G:~/Amlogic-Android-source/khadas-aosp/test$ ls bootloader/uboot/
amlogic_help.sh bl2 bl31_1.3 common disk dts fs Kconfig MAINTAINERS mk README test
api bl30 board config.mk doc examples include lib MAKEALL net scripts tools
arch bl31 check_compile.sh configs drivers fip Kbuild Licenses Makefile post snapshot.commit

我现在有几个问题
1.像cts这个网络不好的工程,该怎么同步?
2.我现在把之前的同步都删除了,百度网盘下载的基版本代码解压后生成的.repo已经有了,是否还需要执行repo init -u https://github.com/khadas/android_manifest.git -b khadas-vims-pie?

网盘上的repo我没有用,这个要自己编译吗?

不需要,直接引用就可以用了:目录/.repo/repo/repo sync -j4 cts

1.像cts这个网络不好的工程,该怎么同步?
==》你先试下面的步骤看看,也用网盘提供的repo试试看
2.我现在把之前的同步都删除了,百度网盘下载的基版本代码解压后生成的.repo已经有了,是否还需要执行repo init -u https://github.com/khadas/android_manifest.git -b khadas-vims-pie?
==》要的

hi goenjoy:
如果不使用百度网盘的基代码,可否只同步khadas-vims-pie?