锤头的AOSP 6.0 Build-专有二进制文件 [英] AOSP 6.0 Build for hammerhead - proprietary binaries

查看:232
本文介绍了锤头的AOSP 6.0 Build-专有二进制文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我刚刚为锤头构建了AOSP 6.0,并尝试对其进行刷新.我的手机冻结了Google徽标,并拒绝启动.我假设我需要使用在 https://developers.google.com/上找到的专有二进制文件. android/nexus/drivers

I just built AOSP 6.0 for hammerhead and attempted to flash it. My phone froze at the Google logo and refused to boot. I'm assuming I need to use the proprietary binaries found here https://developers.google.com/android/nexus/drivers

我将如何提取它们并将其放入我的构建中?谢谢.

How would I extract these and put them in to my build? Thanks.

推荐答案

请确保下载与要构建的AOSP版本匹配的Nexus 5二进制文件.例如,如果您正在构建AOSP的最新版本,则在初始化存储库时输入以下命令:

Be certain to download the Nexus 5 binaries that match the version of AOSP that you're building. For example, if you're building the most recent version of AOSP, when you initialized your repo you entered this command:

$ repo init -u https://android.googlesource.com/platform/manifest -b android-6.0.1_r72  

获取最后一个分支代码("-b"之后的所有内容) android-6.0.1_r72 并在此处进行搜索: https://source.android.com/source/build-numbers.html#source-code-tags-and-builds

Take that last branch code (everything after '-b') android-6.0.1_r72 and search for it over here: https://source.android.com/source/build-numbers.html#source-code-tags-and-builds

它与版本 M4B30X

现在,获取该构建代码M4B30X并在此处进行搜索: https://developers.google.com/android/nexus/drivers

Now, take that build code M4B30X and search for it over here: https://developers.google.com/android/nexus/drivers

下载相应的二进制文件:
$ cd ~/Downloads

Download the corresponding binaries:
$ cd ~/Downloads

$ wget https://dl.google.com/dl/android/aosp/broadcom-hammerhead-m4b30x-7c7b231f.tgz $ wget https://dl.google.com/dl/android/aosp/lge-hammerhead-m4b30x-74fa3aa5.tgz $ wget https://dl.google.com/dl/android/aosp/qcom-hammerhead-m4b30x-158606cf.tgz

$ wget https://dl.google.com/dl/android/aosp/broadcom-hammerhead-m4b30x-7c7b231f.tgz $ wget https://dl.google.com/dl/android/aosp/lge-hammerhead-m4b30x-74fa3aa5.tgz $ wget https://dl.google.com/dl/android/aosp/qcom-hammerhead-m4b30x-158606cf.tgz

验证每次下载的完整性:

Verify the integrity of each download:

 $ echo "01a03cf36b20ee2460d108c1d199f4b012b084368cddfbff1e40ff8270b54d6f broadcom-hammerhead-m4b30x-7c7b231f.tgz" | sha256sum -c
 $ echo "a533f4c82d430181b97ab2321acf10ab1e2b126de7bb15437c969331541af7cb lge-hammerhead-m4b30x-74fa3aa5.tgz" | sha256sum -c
 $ echo "9a2760bda79e3be7bbe7203c05273c80b0d043d9aaf15be20361e35b16ef8905 qcom-hammerhead-m4b30x-158606cf.tgz" | sha256sum -c

提取每个gzip文件:

Extract each gzip file:

 $ tar xzvf broadcom-hammerhead-m4b30x-7c7b231f.tgz  
 $ tar xzvf lge-hammerhead-m4b30x-74fa3aa5.tgz    
 $ tar xzvf qcom-hammerhead-m4b30x-158606cf.tgz

从源树的根文件夹(〜/AOSP)执行生成的自解压文件

Execute the resulting self-extracting files from the source tree's root folder(~/AOSP)

$ cd ~/AOSP
$ ~/Downloads/extract-broadcom-hammerhead.sh
$ ~/Downloads/extract-lge-hammerhead.sh
$ ~/Downloads/extract-qcom-hammerhead.sh 

执行完每个文件后,按一次 Enter键,然后按一下 空格键,直到到达每个文档的末尾. 在每个文档的末尾:

After executing each file hit the Enter key once and then hit the Space bar until you reach the end of each document. At the end of each document type:

    I ACCEPT

,然后按 Enter键.

要容纳新的二进制文件,必须启动完全重建,因此请设置 环境:
$ ./ build/envsetup.sh
$ lunch aosp_hammerhead-userdebug

To accommodate the new binaries you must initiate a full rebuild, so set the environment:
$ ./ build/envsetup.sh
$ lunch aosp_hammerhead-userdebug

并使合成目标口水"以进行清洁:

And make the synthetic target 'clobber' in order to clean:

$ make clobber

现在重建: (如果您正在运行Core2Duo)

Now rebuild: (If you're running a Core2Duo)

 $ make -j4  

(或者,如果您要运行更大的东西)

(Or, if you're running something bigger)

$ make -j16

这篇关于锤头的AOSP 6.0 Build-专有二进制文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆