Edge-V的AOSP源码下载无法连接服务器

在另外个目录重新解压后,执行下面命令并贴出结果看看:

ls -l .repo/repo/

建议不要用root来搞工程。

当你切换成root并给权限后,执行初始化命令已经成功并没有报错,不明白你所说还不能下载是什么意思?最后你只需再执行下面就可以正常下载了:
1,修改成华清源
2,.repo/repo/repo sync -j8

uiox777@ubuntu:~/androi10$ ls -l .repo/repo/
total 732
-rw-rw-r-- 1 uiox777 uiox777 4463 Jun 11 2020 color.py
-rw-rw-r-- 1 uiox777 uiox777 6240 Jun 11 2020 color.pyc
-rw-rw-r-- 1 uiox777 uiox777 8277 Jun 11 2020 command.py
-rw-rw-r-- 1 uiox777 uiox777 9361 Jun 11 2020 command.pyc
drwxrwxr-x 2 uiox777 uiox777 4096 Jun 11 2020 docs
-rw-rw-r-- 1 uiox777 uiox777 2943 Jun 11 2020 editor.py
-rw-rw-r-- 1 uiox777 uiox777 2960 Jun 11 2020 editor.pyc
-rw-rw-r-- 1 uiox777 uiox777 3258 Jun 11 2020 error.py
-rw-rw-r-- 1 uiox777 uiox777 5926 Jun 11 2020 error.pyc
-rw-rw-r-- 1 uiox777 uiox777 5495 Jun 11 2020 event_log.py
-rw-rw-r-- 1 uiox777 uiox777 5891 Jun 11 2020 event_log.pyc
-rw-rw-r-- 1 uiox777 uiox777 10718 Jun 11 2020 git_command.py
-rw-rw-r-- 1 uiox777 uiox777 11567 Jun 11 2020 git_command.pyc
-rw-rw-r-- 1 uiox777 uiox777 22542 Jun 11 2020 git_config.py
-rw-rw-r-- 1 uiox777 uiox777 25334 Jun 11 2020 git_config.pyc
-rw-rw-r-- 1 uiox777 uiox777 5596 Jun 11 2020 gitc_utils.py
-rw-rw-r-- 1 uiox777 uiox777 4651 Jun 11 2020 gitc_utils.pyc
-rw-rw-r-- 1 uiox777 uiox777 3970 Jun 11 2020 git_refs.py
-rw-rw-r-- 1 uiox777 uiox777 4686 Jun 11 2020 git_refs.pyc
-rw-rw-r-- 1 uiox777 uiox777 681 Jun 11 2020 git_ssh
drwxrwxr-x 2 uiox777 uiox777 4096 Jun 11 2020 hooks
-rw-rw-r-- 1 uiox777 uiox777 11358 Jun 11 2020 LICENSE
-rw-rw-r-- 1 uiox777 uiox777 20063 Jun 11 2020 main.py
-rw-rw-r-- 1 uiox777 uiox777 99 Jun 11 2020 MANIFEST.in
-rw-rw-r-- 1 uiox777 uiox777 41678 Jun 11 2020 manifest_xml.py
-rw-rw-r-- 1 uiox777 uiox777 36528 Jun 11 2020 manifest_xml.pyc
-rw-rw-r-- 1 uiox777 uiox777 3148 Jun 11 2020 pager.py
-rw-rw-r-- 1 uiox777 uiox777 2840 Jun 11 2020 pager.pyc
-rw-rw-r-- 1 uiox777 uiox777 12502 Jun 11 2020 platform_utils.py
-rw-rw-r-- 1 uiox777 uiox777 15920 Jun 11 2020 platform_utils.pyc
-rw-rw-r-- 1 uiox777 uiox777 8478 Jun 11 2020 platform_utils_win32.py
-rw-rw-r-- 1 uiox777 uiox777 2688 Jun 11 2020 progress.py
-rw-rw-r-- 1 uiox777 uiox777 2260 Jun 11 2020 progress.pyc
-rw-rw-r-- 1 uiox777 uiox777 120014 Jun 11 2020 project.py
-rw-rw-r-- 1 uiox777 uiox777 102804 Jun 11 2020 project.pyc
-rw-rw-r-- 1 uiox777 uiox777 691 Jun 11 2020 pyversion.py
-rw-rw-r-- 1 uiox777 uiox777 340 Jun 11 2020 pyversion.pyc
-rw-rw-r-- 1 uiox777 uiox777 2090 Jun 11 2020 README.md
drwxrwxr-x 2 uiox777 uiox777 4096 Jun 11 2020 release
-rw-rw-r-- 1 uiox777 uiox777 39134 Jun 11 2020 repo
-rw-rw-r-- 1 uiox777 uiox777 38198 Jun 11 2020 repoc
-rw-rw-r-- 1 uiox777 uiox777 1067 Jun 11 2020 repo_trace.py
-rw-rw-r-- 1 uiox777 uiox777 988 Jun 11 2020 repo_trace.pyc
-rw-rw-r-- 1 uiox777 uiox777 1662 Jun 11 2020 run_tests
-rw-rw-r-- 1 uiox777 uiox777 2177 Jun 11 2020 setup.py
drwxrwxr-x 2 uiox777 uiox777 4096 Jun 11 2020 subcmds
-rw-rw-r-- 1 uiox777 uiox777 5899 Jun 11 2020 SUBMITTING_PATCHES.md
drwxrwxr-x 3 uiox777 uiox777 4096 Jun 11 2020 tests
-rw-rw-r-- 1 uiox777 uiox777 973 Jun 11 2020 tox.ini
-rw-rw-r-- 1 uiox777 uiox777 1128 Jun 11 2020 wrapper.py
-rw-rw-r-- 1 uiox777 uiox777 1148 Jun 11 2020 wrapper.pyc
uiox777@ubuntu:~/androi10$
新建目录解压后的文件list

在repo sync之前修改default.xml文件,把Google的URL地址改为清华大学的,如下:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
gouwa@Server:~/project/khadas/aosp/.repo/manifests$ git diff
diff --git a/default.xml b/default.xml
index f48a988…b8cb9da 100644
— a/default.xml
+++ b/default.xml
@@ -1,6 +1,6 @@

<?xml version="1.0" encoding="UTF-8"?> - gouwa@Server:~/project/khadas/aosp/.repo/manifests$

能否改好的清华源的default.xml文件发给我呢

权限不对:
chmod 777 .repo/repo/repo

[quote=“goenjoy, post:17, topic:14062”][/quote]

.repo/repo/repo sync -j4.repo/repo/repo sync -j8是下载所以版本源码吗?发现
.repo/repo/repo init -u https://github.com/khadas/android_manifest.git -b khadas-edge-Qt
无法连接清华源,但是.repo/repo/repo sync -j8可以连接清华源下载

.repo/repo/repo sync -j8是下载所以版本源码吗?发现
.repo/repo/repo init -u https://github.com/khadas/android_manifest.git -b khadas-edge-Qt
无法连接清华源,但是.repo/repo/repo sync -j8可以连接清华源下载


已经更换了,还是这样


下载速度很慢,而且有erro,是否正常?劳烦帮看下


是否正常这样子,有error

.repo/repo/repo init -u GitHub - khadas/android_manifest: AOSP for Khadas VIMs & Edge -b khadas-edge-Qt仅仅初始化而已。.repo/repo/repo sync -j8才是连接下载。

我亲自验证了,好像目前的清华源有问题。要把你不修改清华源,先看看你能否下载(你网络无VPN,估计不行)

0K2OUJYR8Q3OL59_VL{3BP
能否给个VPN账号密码!或什么申请


不用清华源也是一样的报错

@waerrr5614615 清华源那边证书过期了。可以通过关闭证书校验方法解决:

export  GIT_SSL_NO_VERIFY=1

下面是我验证的完整过程,只同步清华源上对应的一个目录:

hlm@Server:/wesion/users/hlm/xx55$.repo/repo/repo init -u https://github.com/khadas/android_manifest.git -b khadas-edge-Qt
Downloading Repo source from .repo/repo/.git
remote: Counting objects: 7103, done.
remote: Compressing objects: 100% (3718/3718), done.
remote: Total 7103 (delta 3404), reused 6989 (delta 3311)
Downloading manifest from https://github.com/khadas/android_manifest.git
remote: Enumerating objects: 294, done.
remote: Counting objects: 100% (60/60), done.
remote: Compressing objects: 100% (26/26), done.
remote: Total 294 (delta 23), reused 57 (delta 21), pack-reused 234
Receiving objects: 100% (294/294), 377.60 KiB | 311.00 KiB/s, done.
Resolving deltas: 100% (96/96), done.

If you want to change this, please re-run 'repo init' with --config-name

repo has been initialized in /wesion/users/hlm/xx55
hlm@Server:/wesion/users/hlm/xx55$ export  GIT_SSL_NO_VERIFY=1
hlm@Server:/wesion/users/hlm/xx55$ cd .repo/manifests
hlm@Server:/wesion/users/hlm/xx55/.repo/manifests$ git diff
diff --git a/default.xml b/default.xml
index 413c65f..5f1baeb
--- a/default.xml
+++ b/default.xml
@@ -1,6 +1,6 @@
 <?xml version="1.0" encoding="UTF-8"?>
 <manifest>
-  <remote fetch="https://android.googlesource.com/" name="aosp" review="https://android.googlesource.com/"/>
+  <remote fetch="https://aosp.tuna.tsinghua.edu.cn/" name="aosp" review="https://aosp.tuna.tsinghua.edu.cn/"/>
   <remote fetch="https://github.com/khadas/" name="github"/>
   
   <default remote="aosp" revision="refs/tags/android-10.0.0_r45" sync-c="true" sync-j="4"/>
hlm@Server:/wesion/users/hlm/xx55/.repo/manifests$ cd -
/wesion/users/hlm/xx55
hlm@Server:/wesion/users/hlm/xx55$.repo/repo/repo sync -j4 external/pcre
b'  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current\n                                 Dload  Upload   Total   Spent    Left  Speed\n\r  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0\r  0     0    0     0    0     0      0      0 --:--:--  0:00:01 --:--:--     0\ncurl: (60) server certificate verification failed. CAfile: /etc/ssl/certs/ca-certificates.crt CRLfile: none\nMore details here: http://curl.haxx.se/docs/sslcerts.html\n\ncurl performs SSL certificate verification by default, using a "bundle"\n of Certificate Authority (CA) public keys (CA certs). If the default\n bundle file isn\'t adequate, you can specify an alternate file\n using the --cacert option.\nIf this HTTPS server uses a certificate signed by a CA represented in\n the bundle, the certificate verification probably failed due to a\n problem with the certificate (it might be expired, or the name might\n not match the domain name in the URL).\nIf you\'d like to turn off curl\'s verification of the certificate, use\n the -k (or --insecure) option.\n'
Fetching: 100% (1/1), done in 6.739s
Garbage collecting: 100% (1/1), done in 0.014s
repo sync has finished successfully.
hlm@Server:/wesion/users/hlm/xx55$ 


这种错误是否影响代码完整


加了export GIT_SSL_NO_VERIFY=1还是出现这个,是权限问题吗?

这是另外一种问题了。

见d类问题解决方案。


这个错误如何解

参考上一个回复,试下d类问题解决方案看看。


这个是不是已经同步下载成功


z这个错误如何处理