緊接 上一篇源碼下載,上一篇用一網上公用的repo,本篇用高通下的repo.
1、高通repo源,經過驗證。
git clone git://codeaurora.org/tools/repo.git
2、拷貝repo 到~/bin下面,並將repo權限更改過來, chmod a+x ~/bin/repo
3、下載源碼
repo init -u git://codeaurora.org/platform/manifest.git -b release -m LA.UM.5.9.r1-01700-8x53.0.xml --repo-url=git://codeaurora.org/tools/repo.git --repo-branch=caf-stable
下載過程 中出如下錯誤
object 666d534636d262cbfd971509dd0f0be0cddb2e11
type commit
tag v1.12.16
tagger Conley Owens <[email protected]> 1398976458 -0700
repo 1.12.16
gpg: Signature made Thu 01 May 2014 01:34:18 PM PDT using RSA key ID 692B382C
gpg: Can't check signature: public key not found
error: could not verify the tag 'v1.12.16'
4、修改下載方法 ,去掉–repo-url=git://codeaurora.org/tools/repo.git –repo-branch=caf-stable
repo init -u git://codeaurora.org/platform/manifest.git -b release -m LA.UM.5.9.r1-01700-8x53.0.xml
5、如顯示下面錯誤,可按如下修改repo , 最好一上來直接修改
gpg: keyring `/home/XXXX/.repoconfig/gnupg/secring.gpg' created
gpg: keyring `/home/XXXX/.repoconfig/gnupg/pubring.gpg' created
gpg: /home/XXXX/.repoconfig/gnupg/trustdb.gpg: trustdb created
gpg: key 920F5C65: public key "Repo Maintainer <[email protected]>" imported
gpg: Total number processed: 1
gpg: imported: 1
Getting repo ...
from git://android.git.kernel.org/tools/repo.git
fatal: unable to connect to android.git.kernel.org:
android.git.kernel.org[0: 221.179.46.190]: errno=Connection refused
6、修改repo
sudo gedit ~/bin/repo
打開後可以看到
REPO_URL='git://android.git.kernel.org/tools/repo.git'
更改成如下所示,因爲android.git.kernel.org 這個連接不穩定或者連不上
REPO_URL='git://codeaurora.org/tools/repo.git'
7、完成以上可以正常下載了
repo init -u git://codeaurora.org/platform/manifest.git -b release -m LA.UM.5.9.r1-01700-8x53.0.xml
8、如果碰到如下,按提示用git增加用戶和用戶郵箱即可,然後重新下載
u = self.bare_git.var('GIT_COMMITTER_IDENT')
File "/home/XXX/MSM8953/.repo/repo/project.py", line 1772, in runner
p.stderr))
error.GitError: manifests var:
*** Please tell me who you are.
Run
git config --global user.email "[email protected]"
git config --global user.name "Your Name"
to set your account's default identity.
Omit --global to set the identity only in this repository.
fatal: unable to auto-detect email address
9、同步, repo init 後會有一些提示 , 輸入y即可。
repo init -u git://codeaurora.org/platform/manifest.git -b release -m LA.UM.5.9.r1-01700-8x53.0.xml
repo sync