【android】下载aosp镜像和开发板工程

【android】下载aosp镜像和开发板工程,第1张

概述###下载repo索引文件###chase@giga:~$curlhttps://storage.googleapis.com/git-repo-downloadsepo-orepo%Total%Received%XferdAverageSpeedTimeTimeTimeCurrentDloadUploadTotalSpentLeft
### 下载repo索引文件 ###chase@giga:~$ curl https://storage.GoogleAPIs.com/git-repo-downloads/repo -o repo  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current                                 Dload  Upload   Total   Spent    left  Speed100 29829  100 29829    0     0  21185      0  0:00:01  0:00:01 --:--:-- 21170chase@giga:~$ 
chase@giga:~$ vi repo### REPO_URL 替换成国内源 'https://mirrors.tuna.tsinghua.edu.cn/git/git-repo' ###chase@giga:~$ chmod a+rx repo
chase@giga:~$ vi .bashrc ### 永久环境变量 最后一行添加 export PATH=$PATH:~/ ###
### 刷新立即生效 ### chase@giga:~$ source .bashrc chase@giga:~$ chase@giga:~$ echo $PATH/home/chase/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/home/chase/chase@giga:~$ chase@giga:~$
### 从开发板指定地址下载manifest清单以及repo工具, 都在.repo目录下###
chase@giga:~/projects/khadas-vims$ repo init -u https://github.com/khadas/androID_manifest.git -b khadas-vims-pIEGet https://gerrit-Googlesource.proxy.ustclug.org/git-repo/clone.bundleGet https://gerrit-Googlesource.proxy.ustclug.org/git-repoGet https://github.com/khadas/androID_manifest.git % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent left Speed 0 0 0 0 0 0 0 0 --:--:-- 0:00:01 --:--:-- 0curl: (22) The requested URL returned error: 404 Not FoundServer does not provIDe clone.bundle; ignoring.remote: Enumerating objects: 9, done. remote: Counting objects: 100% (9/9), done. remote: Compressing objects: 100% (5/5), done. remote: Total 201 (delta 2), reused 7 (delta 1), pack-reused 192 Receiving objects: 100% (201/201), 253.52 KiB | 377.00 KiB/s, done.Resolving deltas: 100% (63/63), done.From https://github.com/khadas/androID_manifest * [new tag] V180622 -> V180622 * [new branch] Mmallow -> origin/Mmallow * [new branch] Nougat -> origin/Nougat * [new branch] Oreo -> origin/Oreo * [new branch] khadas-edge-nougat -> origin/khadas-edge-nougat * [new branch] khadas-edge-pIE -> origin/khadas-edge-pIE * [new branch] khadas-vim3-pIE -> origin/khadas-vim3-pIE * [new branch] khadas-vims-nougat -> origin/khadas-vims-nougat * [new branch] khadas-vims-pIE -> origin/khadas-vims-pIE * [new branch] master -> origin/master * [new branch] test -> origin/testYour IDentity is: chase <xxxxxx@hotmail.com>If you want to change this, please re-run 'repo init' with --config-namerepo has been initialized in /home/chase/projects/khadas-vimschase@giga:~/projects/khadas-vims$
chase@giga:~/projects/khadas-vims$ cd .repo/manifests
chase@giga:~/projects/khadas-vims/.repo/manifests$ vi default.xml
### remote中的fetch和revIEw都替换成国内镜像https://aosp.tuna.tsinghua.edu.cn ###

### 可以查看下远程服务器的分支版本 ###
chase@giga:~/projects/khadas-vims/.repo/manifests$ git branch -av
* default                           17f19da PIE: V200103
  remotes/origin/Mmallow            856410c update download link of svox repository to Google
  remotes/origin/Nougat             2f08215 Set function key adc value for VIM2 different versions
  remotes/origin/Oreo               b75302d fixup! Oreo: V171229
  remotes/origin/khadas-edge-nougat 402b195 update to Edge_Nougat_V191115
  remotes/origin/khadas-edge-pIE    16f0d2b Fix compile error
  remotes/origin/khadas-vim3-pIE    33144e9 fixup! PIE: V190823
  remotes/origin/khadas-vims-nougat 2f08215 Set function key adc value for VIM2 different versions
  remotes/origin/khadas-vims-pIE    17f19da PIE: V200103
  remotes/origin/master             f351208 fixup! update: V161211
  remotes/origin/test               3142359 fixup! PIE: V190704
chase@giga:~/projects/khadas-vims/.repo/manifests$
### 从服务器同步aosp和project源码 ###chase@giga:~/projects/khadas-vims$ repo sync -j4......Checking out projects: 100% (687/687), done.### 建立新分支 ###chase@giga:~/projects/khadas-vims$ repo start khadas-vims-pIE --all

 

总结

以上是内存溢出为你收集整理的【android】下载aosp镜像和开发板工程全部内容,希望文章能够帮你解决【android】下载aosp镜像和开发板工程所遇到的程序开发问题。

如果觉得内存溢出网站内容还不错,欢迎将内存溢出网站推荐给程序员好友。

欢迎分享,转载请注明来源:内存溢出

原文地址: http://outofmemory.cn/web/1067829.html

(0)
打赏 微信扫一扫 微信扫一扫 支付宝扫一扫 支付宝扫一扫
上一篇 2022-05-26
下一篇 2022-05-26

发表评论

登录后才能评论

评论列表(0条)

保存