同步vim3 android代码出错

完整同步的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?

你是说只同步khadas-vims-pie分支?同步会把所有分支都同步下来的。

hi goenjoy:
使用百度网盘的repo:
sword@sword-Aspire-V3-471G:~/Amlogic-Android-source/khadas-aosp/khadas$ …/test/repo/repo sync -j4
Fetching projects: 0% (2/695) linuxerror: info is different in /home/sword/Amlogic-Android-source/khadas-aosp/khadas/.repo/projects/system/extras.git vs /home/sword/Amlogic-Android-source/khadas-aosp/khadas/.repo/project-objects/android_system_extras.git
error: Cannot fetch android_system_extras (GitError: --force-sync not enabled; cannot overwrite a local work tree. If you’re comfortable with the possibility of losing the work tree’s git metadata, use repo sync --force-sync system/extras to proceed.)
Exception in thread Thread-1:
Traceback (most recent call last):
File “/usr/lib/python3.6/threading.py”, line 916, in _bootstrap_inner
self.run()
File “/usr/lib/python3.6/threading.py”, line 864, in run
self._target(*self._args, **self._kwargs)
File “/home/sword/Amlogic-Android-source/khadas-aosp/test/repo/subcmds/sync.py”, line 305, in _FetchProjectList
success = self._FetchHelper(opt, project, *args, **kwargs)
File “/home/sword/Amlogic-Android-source/khadas-aosp/test/repo/subcmds/sync.py”, line 351, in _FetchHelper
clone_filter=clone_filter)
File “/home/sword/Amlogic-Android-source/khadas-aosp/test/repo/project.py”, line 1499, in Sync_NetworkHalf
self._InitGitDir(force_sync=force_sync, quiet=quiet)
File “/home/sword/Amlogic-Android-source/khadas-aosp/test/repo/project.py”, line 2822, in _InitGitDir
raise e
File “/home/sword/Amlogic-Android-source/khadas-aosp/test/repo/project.py”, line 2808, in _InitGitDir
self._CheckDirReference(self.objdir, self.gitdir, share_refs=False)
File “/home/sword/Amlogic-Android-source/khadas-aosp/test/repo/project.py”, line 3008, in _CheckDirReference
‘proceed.’.format(self.relpath))
error.GitError: --force-sync not enabled; cannot overwrite a local work tree. If you’re comfortable with the possibility of losing the work tree’s git metadata, use repo sync --force-sync system/extras to proceed.

Fetching projects: 4% (34/695) android_hardware_amlogic_bluetoothremote: Enumerating objects: 151, done.
Fetching projects: 7% (54/695) android_vendor_amlogic_external_DTVKit_android-inputsource接收对象中: 14% (22/151), 44.01 KiB | 12.00 KiB/s ^Caborted by user: 17% (122/695) platform/tools/external/gradle接收对象中: 14% (22/151), 220.01 KiB | 6.00 KiB/s
error: Cannot fetch android_vendor_amlogic_gpu-lib from https://github.com/khadas/android_vendor_amlogic_gpu-lib
Fetching projects: 17% (123/695) android_vendor_amlogic_gpu-libsword@sword-Aspire-V3-471G:~/Amlogic-Android-source/khadas-aosp/khadas$
sword@sword-Aspire-V3-471G:~/Amlogic-Android-source/khadas-aosp/khadas$
sword@sword-Aspire-V3-471G:~/Amlogic-Android-source/khadas-aosp/khadas$
sword@sword-Aspire-V3-471G:~/Amlogic-Android-source/khadas-aosp/khadas$ …/test/repo/repo sync -j4 --force-sync system/extras
error: hooks is different in /home/sword/Amlogic-Android-source/khadas-aosp/khadas/.repo/projects/system/extras.git vs /home/sword/Amlogic-Android-source/khadas-aosp/khadas/.repo/project-objects/android_system_extras.git
Retrying clone after deleting /home/sword/Amlogic-Android-source/khadas-aosp/khadas/.repo/projects/system/extras.git
remote: Enumerating objects: 387, done.
remote: Counting objects: 100% (387/387), done.
remote: Compressing objects: 100% (50/50), done.
remote: Total 23946 (delta 360), reused 337 (delta 337), pack-reused 23559
接收对象中: 100% (23946/23946), 562.13 MiB | 96.00 KiB/s, 完成.
处理 delta 中: 100% (13590/13590), 完成.
Fetching projects: 100% (1/1), done.
正在检出文件: 100% (891/891), 完成.
Checking out projects: 100% (1/1), done.
repo sync has finished successfully.
sword@sword-Aspire-V3-471G:~/Amlogic-Android-source/khadas-aosp/khadas$
sword@sword-Aspire-V3-471G:~/Amlogic-Android-source/khadas-aosp/khadas$
sword@sword-Aspire-V3-471G:~/Amlogic-Android-source/khadas-aosp/khadas$
sword@sword-Aspire-V3-471G:~/Amlogic-Android-source/khadas-aosp/khadas$
sword@sword-Aspire-V3-471G:~/Amlogic-Android-source/khadas-aosp/khadas$
sword@sword-Aspire-V3-471G:~/Amlogic-Android-source/khadas-aosp/khadas$ …/test/repo/repo sync -j4
Fetching projects: 99% (694/695) android_system_extrasremote: Enumerating objects: 151, done.
remote: Total 151 (delta 0), reused 0 (delta 0), pack-reused 151
接收对象中: 100% (151/151), 214.67 MiB | 188.00 KiB/s, 完成.
处理 delta 中: 100% (62/62), 完成.
Fetching projects: 100% (695/695), done.
正在检出文件: 100% (67/67), 完成.695) android_test_vts-testcase_vndk正在检出文件: 28% (19/67)
正在检出文件: 100% (18572/18572), 完成.ndroid_toolchain_benchmark正在检出文件: 3% (650/18572)
Checking out projects: 90% (628/695) android_tools_appbundle
正在检出文件: 100% (17/17), 完成.695) android_tools_external_fat32lib正在检出文件: 35% (6/17)
正在检出文件: 100% (6350/6350), 完成. android_vendor_amlogic_external_exfat正在检出文件: 39% (2527/6350)
正在检出文件: 100% (7434/7434), 完成. android_vendor_amlogic_external_ffmpeg正在检出文件: 24% (1792/7434)
正在检出文件: 100% (117/117), 完成.5) android_vendor_amlogic_gpu正在检出文件: 7% (9/117)
Checking out projects: 97% (679/695) android_vendor_amlogic_ir_tools
Checking out projects: 100% (695/695), done.
repo sync has finished successfully.
sword@sword-Aspire-V3-471G:~/Amlogic-Android-source/khadas-aosp/khadas$

这样应该算是同步成功了。
接下来这一步repo start <BRANCH_NAME> --all 有什么作用?<BRANCH_NAME>这个是自己取名吗?我如果只想保留vim3这个分支应该如何做?

是的,是同步成功了。最终原因是什么呢?
接下来这一步repo start <BRANCH_NAME> --all 有什么作用?<BRANCH_NAME>这个是自己取名吗?
==》创建并切换分支。可以自己取名。repo start khadas-vims-pie --all

hi goenjoy:
我使用了你给的repo,bing把repo 的REPO_URL和default.xml 的aosp的地址,两者都改成清华
repo start khadas-vims-pie --all,做这一步是不是等同于删掉了其它分支?我想只保留vim3的分支。

没有删掉,只是没有显示出来而已。。。。。。