要取得 Chromium OS 的 Source Code 必須使用 repo 下載。
參考網頁:
http://www.chromium.org/chromium-ossudo
http://www.chromium.org/chromium-os/quick-start-guide
Ubuntu 系統需要安裝下列套件:
apt-get install git-core gitk git-gui subversion curl
Download Source Code:
mkdir ${SOURCE_REPO} cd ${SOURCE_REPO} repo init -u https://chromium.googlesource.com/chromiumos/manifest.git repo sync
如果出現下面的錯誤:
fatal: manifest 'default.xml' not available fatal: duplicate project chromiumos/third_party/kernel-next in /home/raysung/Android-BSP/ChromeBook/.repo/manifests/default.xml
是因為在 .repo/manifests/default.xml 檔案中有兩個 kernel-next 標籤造成的錯誤,如下:
<project path="src/third_party/kernel-next" name="chromiumos/third_party/kernel-next" revision="refs/heads/chromeos-3.8" /> <project path="src/third_party/kernel/3.10" name="chromiumos/third_party/kernel-next" revision="refs/heads/chromeos-3.10" />
移除其中一個標籤,即可順利下載。修改後如下:
<project path="src/third_party/kernel/3.10" name="chromiumos/third_party/kernel-next" revision="refs/heads/chromeos-3.10" />
About the author