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