diff --git a/src/help/aosp.md b/src/help/aosp.md index d6a77a1..9894b04 100644 --- a/src/help/aosp.md +++ b/src/help/aosp.md @@ -5,6 +5,7 @@ 将 `https://android.googlesource.com/` 全部使用 `https://aosp.tuna.tsinghua.edu.cn/` 或 `git://aosp.tuna.tsinghua.edu.cn/aosp/` 代替即可。 +- **2015-12-21 : 增加每月初始化包,少量修正文档错误** - **2015-10-13 : 修复上游替换文档错误 ** - **2015-10-13 : 修复次级镜像文档错误 ** - **2015-10-09 : 恢复 git://aosp.tuna.tsinghua.edu.cn/aosp/ 访问 ** @@ -33,7 +34,7 @@ repo init -u https://aosp.tuna.tsinghua.edu.cn/platform/manifest # 或 repo init -u git://aosp.tuna.tsinghua.edu.cn/aosp/platform/manifest ## 如果提示无法连接到 gerrit.googlesource.com,可以编辑 ~/bin/repo,把 REPO_URL 一行替换成下面的: -## REPO_URL = 'https://gerrit-google.tuna.tsinghua.edu.cn/git-repo' +REPO_URL = 'https://gerrit-google.tuna.tsinghua.edu.cn/git-repo' ``` 如果需要某个特定的 Android 版本([列表](https://source.android.com/source/build-numbers.html#source-code-tags-and-builds)): @@ -46,11 +47,29 @@ repo init -u https://aosp.tuna.tsinghua.edu.cn/platform/manifest -b android-4.0. repo sync ``` +### 使用每月更新的初始化包 + +由于首次同步需要下载 36GB 数据,过程中任何网络故障都可能造成同步失败,因此你可以选择使用每月更新的初始化包。 + +首先到 http://mirrors.tuna.tsinghua.edu.cn/aosp-monthly/ 选择合适自己的构建包,aosp-latest.tar.bz2 经过了 bzip2 压缩, +相对 aosp-latest.tar 小一些,但是解压的时间也要考虑进来,28G的压缩包呢!(如果CPU核多可以使用pbzip2解压) + +使用方法如下: +``` +wget http://mirrors.tuna.tsinghua.edu.cn/aosp-monthly/aosp-latest.tar # 下载初始化包 +tar xf aosp-latest.tar +cd AOSP # 解压得到的 AOSP 工程目录 +repo sync # 正常同步 +``` + +初始化完之后,以后每次就只需要执行 `repo sync` 和 TUNA 保持同步就可以了。 + + ### 建立次级镜像 由于 AOSP 镜像需求量巨大,且 Git 服务占资源较多,TUNA 服务器因 AOSP 产生的负载已经占主要部分。 如果你是团队用户,我们强烈建议你通过 TUNA 建立次级镜像,再分享给团队内其他用户,减轻 TUNA 服务器压力。 -建立 AOSP 镜像需要占用约 65G 磁盘。 +建立 AOSP 镜像需要占用约 80G 磁盘。 具体步骤为: diff --git a/src/index.tpl.html b/src/index.tpl.html index 16ca2d8..03d34a5 100644 --- a/src/index.tpl.html +++ b/src/index.tpl.html @@ -39,9 +39,9 @@

新闻公告

more
diff --git a/src/news/news.md b/src/news/news.md index c45d322..d07894c 100644 --- a/src/news/news.md +++ b/src/news/news.md @@ -1,3 +1,26 @@ + +### # AOSP 每月打包 + 2015-12-21 + +由于从 TUNA 初始化 AOSP 工程时需要下载 36GB 数据,过程中任何网络故障都可能造成同步失败,因此我们决定每月对 +AOSP 完整工程进行一次打包,用户可以通过 HTTP 下载。解压后使用 Android 的 `repo` 工具直接同步即可。 + +首先到 http://mirrors.tuna.tsinghua.edu.cn/aosp-monthly/ 选择合适自己的构建包,aosp-latest.tar.bz2 经过了 bzip2 压缩, +体积相对 aosp-latest.tar 小一些,但是也有 28G 大小,请权衡自己的网络带宽和计算能力。 + +使用方法如下: +``` +wget http://mirrors.tuna.tsinghua.edu.cn/aosp-monthly/aosp-latest.tar # 下载初始化包 +tar xf aosp-latest.tar +cd AOSP # 解压得到的 AOSP 工程目录 +repo sync # 正常同步 +``` + +初始化完之后,以后每次就只需要执行 `repo sync` 和 TUNA 保持同步就可以了。 + +详情参考 [AOSP 镜像使用帮助](/help/#AOSP)。 + + ### # Chakra, Mageia, gitlab-ce 镜像 2015-11-11