紀錄一下以免自己忘記
原本的步驟:
1.先取得TI(米格魯的主人)所提供的xml檔
$ wget http://software-dl.ti.com/dsps/dsps_public_sw/sdo_tii/TI_Android_DevKit/02_00_00/exports/TI-Android-FroYo-DevKit-V2.xml
2.初始化repo (這邊repo的位置是看你放在哪,每個人不同)
$ ~/bin/repo init -u git://gitorious.org/rowboat/manifest.git -m TI-Android-FroYo-DevKit-V2.xml
然後....就出錯了!!!
Getting repo ...-------------------------------------------------------------------------------------------------------
from git://android.git.kernel.org/tools/repo.git
android.git.kernel.org[0: 149.20.4.77]: errno=Connection timed out
android.git.kernel.org[0: 199.6.1.173]: errno=Connection refused
android.git.kernel.org[0: 130.239.17.13]: errno=Connection refused
android.git.kernel.org[0: 2001:500:60:10:1972:112:1:0]: errno=Network is unreachable
android.git.kernel.org[0: 2001:6b0:e:4017:1972:112:1:0]: errno=Network is unreachable
android.git.kernel.org[0: 2001:4f8:1:10:1972:112:1:0]: errno=Network is unreachable
android.git.kernel.org[0: 2001:4f8:8:10:1972:112:1:0]: errno=Network is unreachable
fatal: unable to connect a socket (Network is unreachable)
似乎是無法正常連線到原有的網站做下載的動作
所以上網尋找了一些解決方法,整理如下
1.修改原有的repo
vim ~bin/repo
把原來的
REPO_URL='git://android.git.kernel.org/tools/repo.git'
置換成
REPO_URL='http://android.git.kernel.org/tools/repo.git'
2. 改執行
$ ~/bin/repo init -u git://github.com/android/platform_manifest.git -m TI-Android-FroYo-DevKit-V2.xml
執行完以上這行,會出現這個錯誤訊息
fatal: manifest 'TI-Android-FroYo-DevKit-V2.xml' not available
fatal: manifest TI-Android-FroYo-DevKit-V2.xml not found
只差最後一步就可以解決這個問題了
3.將 TI-Android-FroYo-DevKit-V2.xml 改檔名
$ mv TI-Android-FroYo-DevKit-V2.xml TI-Android-FroYo-DevKit-V2.2.0.0.xml
再去執行一次
$ ~/bin/repo init -u git://github.com/android/platform_manifest.git -m TI-Android-FroYo-DevKit-V2.2.0.0.xml
真正初始化設定完畢
4.開始下載Android Source code!!!
$ ~/bin/repo sync
0 意見:
張貼留言