Which Khadas SBC do you use?
kvim3l
Which system do you use? Android, Ubuntu, OOWOW or others?
Android 9.0
Which version of system do you use? Khadas official images, self built images, or others?
self built images
Please describe your issue below:
使用repo无法成功下载 vim3l 代码
Post a console log of your issue below:
Receiving objects: 38% (22408/58030), 1.01 GiB | 4.65 MiB/s
fatal: the remote end hung up unexpectedly
fatal: early EOF
fatal: index-pack failed
error: Cannot fetch android_prebuilts_gradle-plugin from GitHub - khadas/android_prebuilts_gradle-plugin
fatal: fetch-pack:无效的 index-pack 输出
@tongguangli 有修改为清华源下载吗?没有的话,请先修改为清华源下载。有的话,请参考下面链接 a2)–repo版本问题
章节试下。
在repo sync之前修改default.xml文件,把Google的URL地址改为清华大学的,如下:
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"?>
<manifest>
- <remote fetch="https://android.googlesource.com/" name="aosp" review="https:/
+ <remote fetch="https://aosp.tuna.tsinghua.edu.cn/" name="aosp" review="https:
<remote fetch="https://github.com/khadas/" name="github"/>
<default remote="github" revision="refs/heads/Nougat" sync-j="4"/>
gouwa@Server:~/project/khadas/aosp/.repo/manifests$
通过查看论坛提问下载代码报错的帖子,总结如下几类:
a 类 :
a1)–权限问题
File “/snap/git-repo/18/usr/lib/python2.7/multiprocessing/synchronize.py”, line 75, in init
sl = self._semlock = _multiprocessing.SemLock(kind, value, maxvalue)
OSError: [Errno 13] Permission denied
a2)–repo版本问题
Traceback (most recent call last):
File “/home/zhang/workspace/khads/aosp/.repo/repo/main.py”, line 628, in
_Main(sys.argv[1:])
File “/home/zhang/workspace/khads/aosp/.repo/repo/main.py”, line 602, in _Main
result = run()
File “/home/zhang/wo…
您好:已经修改了清华的源了。这个是我的修改
“<remote fetch="https://aosp.tuna.tsinghua.edu.cn/" name="aosp" review="https://aosp.tuna.tsinghua.edu.cn/"/>
<remote fetch="https://ghproxy.com/https://github.com/khadas/" name="github"/>
<default remote="github" revision="khadas-vims-pie" sync-c="true" sync-j="4"/>”
tongguangli:
您好:已经修改了清华的源了
有的话,请参考上面链接 a2)–repo版本问题
章节替换repo版本试下。
tongguangli:
khadas-vims-pie
看这信息,这是32位的SDK,我们现已经有64位的SDK了。
https://docs.khadas.com/products/sbc/vim3/development/android/download-android-source-code
使用64位分支依然有这个问题
Receiving objects: 38% (22421/58030), 1.06 GiB | 1.39 MiB/s
fatal: the remote end hung up unexpectedly
fatal: early EOF
fatal: index-pack failed
error: Cannot fetch android_prebuilts_gradle-plugin from https://ghproxy.com/https://github.com/khadas/android_prebuilts_gradle-plugin
Fetching: 100% (705/705), done in 47m27.242s
goenjoy
August 23, 2023, 11:43am
#7
@tongguangli 你有替换repo版本验证吗?
我这边刚刚单独下载此目录验证是OK的。或者你同时可以先按照下面的步骤单独下载此目录验证下。
vim3_64$ repo init -u https://github.com/khadas/android_manifest.git -b khadas-vim3-p-64bit
vim3_64$ repo sync -c prebuilts/gradle-plugin
... A new version of repo (2.35) is available.
... New version is available at: /users/hlm/github_test/vim3_64/.repo/repo/repo
... The launcher is run from: /usr/bin/repo
!!! The launcher is not writable. Please talk to your sysadmin or distro
!!! to get an update installed.
Fetching: 100% (1/1), done in 54m45.483s
Checking out files: 100% (33748/33748), done.
Checking out: 100% (1/1), done in 19.256s
repo sync has finished successfully.