1

我一直在尝试下载 Chromium OS 的源代码来检查它,但显然我一直遇到 GIT 存储库的问题。我按照 Google 提供的说明进行操作,但仍然遇到问题。这是我在 depot_tools 下载中使用 REPO 看到的内容:

root@Ubuntu1204:/usr/local/path/to/source/chromiumos# repo sync
Fetching projects:   8% (12/147)  remote: Counting objects: 7, done.
remote: Compressing objects: 100% (4/4), done.
remote: Total 4 (delta 3), reused 0 (delta 0)
Unpacking objects: 100% (4/4), done.
From https://git.chromium.org/git/chromiumos/overlays/board-overlays
   ece0843..99b4022f master     -> cros/master
Fetching projects:  77% (114/147)  fatal: Not a git repository: '/usr/local/path/to/source/chromiumos/.repo/projects/src/third_party/ltp.git'
Fetching projects:  78% (115/147)  fatal: Not a git repository: '/usr/local/path/to/source/chromiumos/.repo/projects/src/third_party/marvell.git'
Fetching projects:  79% (117/147)  fatal: Not a git repository: '/usr/local/path/to/source/chromiumos/.repo/projects/src/third_party/memtest.git'
fatal: Not a git repository: '/usr/local/path/to/source/chromiumos/.repo/projects/src/third_party/mesa.git'
Fetching projects:  80% (118/147)  fatal: Not a git repository: '/usr/local/path/to/source/chromiumos/.repo/projects/src/third_party/miniFakeDns.git'
fatal: Not a git repository: '/usr/local/path/to/source/chromiumos/.repo/projects/src/third_party/mobile-broadband-provider-info.git'
Fetching projects:  81% (120/147)  fatal: Not a git repository: '/usr/local/path/to/source/chromiumos/.repo/projects/src/third_party/modemmanager-next.git'
Fetching projects:  95% (140/147)  fatal: Not a git repository: '/usr/local/path/to/source/chromiumos/.repo/projects/src/third_party/mesa.git'
fatal: Not a git repository: '/usr/local/path/to/source/chromiumos/.repo/projects/src/third_party/memtest.git'
fatal: Not a git repository: '/usr/local/path/to/source/chromiumos/.repo/projects/src/third_party/ltp.git'
fatal: Not a git repository: '/usr/local/path/to/source/chromiumos/.repo/projects/src/third_party/miniFakeDns.git'
fatal: Not a git repository: '/usr/local/path/to/source/chromiumos/.repo/projects/src/third_party/modemmanager-next.git'
fatal: Not a git repository: '/usr/local/path/to/source/chromiumos/.repo/projects/src/third_party/mobile-broadband-provider-info.git'
fatal: Not a git repository: '/usr/local/path/to/source/chromiumos/.repo/projects/src/third_party/marvell.git'
error: Cannot fetch chromiumos/third_party/mesa
error: Cannot fetch chromiumos/third_party/modemmanager-next
error: Cannot fetch chromiumos/third_party/ltp
error: Cannot fetch chromiumos/third_party/minifakedns
error: Cannot fetch chromiumos/third_party/memtest
error: Cannot fetch chromiumos/third_party/marvell
error: Cannot fetch chromiumos/third_party/mobile-broadband-provider-info

error: Exited sync due to fetch errors

这是直接从终端复制的。我检查了数据,它似乎都在那里,它下载了,但对于我的生活,我不明白我错过了什么。如果有任何进一步的信息会有所帮助,请告诉我。

另外,安装了 git,所以我知道这不是问题。

4

1 回答 1

0

尝试从糟糕的说明中跳过带有 /usr/local/path/to/source/chromiumos/ 的部分。

使用 /home/$USER/chromiumos/

然后5小时后。

cd  ~/chromiumos
./chromite/bin/cros_sdk

那么你应该登陆 src 然后:

export BOARD=panda
./setup_board --board=${BOARD}
./set_shared_user_password.sh
./build_packages --board=${BOARD}
# go camping... :)
./build_image --board=${BOARD} --noenable_rootfs_verification dev
cd ~/trunk/src/build/images/${BOARD}/latest
于 2013-05-07T03:57:17.837 回答