Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

What is the process of CyanogenMod compiling Google Nexus S & quot;crespo")

2025-04-04 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >

Share

Shulou(Shulou.com)06/02 Report--

What this article shares with you is about the process of CyanogenMod compiling Google Nexus S "crespo"). The editor thinks it is very practical, so I share it with you to learn. I hope you can get something after reading this article.

CyanogenMod × × and compilation and simple modification

Http://sunzeduo.blog.51cto.com/2758509/1349134

The editor compiles the version of gingerbread, that is, android 2.3.7, into a package of rom that can be used by nexus S crespo phones.

However, the official website under CyanogenMod is actually used at present.

Repo init-u git://github.com/CyanogenMod/android.git-b cm-10.2

This version is compiled and explained, and

The cm versions supported by the phone are as follows

CM Support: 7, 9, 10, 10.1, 10.2, 11

Here we compile the new version again, and through this operation, we can complete the effect of burning a phone into different android versions of the rom package.

A prerequisite:

1 configure the compilation environment of android

For details of the configuration method, please see the http://source.android.com/source/initializing.html web page.

2 download the source code

Curl http://commondatastorage.googleapis.com/git-repo-downloads/repo > ~ / bin/repo

Need to use the repo tool provided by CyanogenMod

Repo init-u git://github.com/CyanogenMod/android.git-b cm-10.2

Download the appropriate branch

Repo sync

download

As before, if you have already downloaded the cm-10.2 version, you don't need to download it anymore, which can save a lot of time.

3 Samsung Google Google Nexus S ("crespo") mobile phone

In my cell phone.

About cell phones.

Model No.: Nexus S

Baseband version: I9020XXKl1

4 brushing machine tools, such as perfect brushing machine

Two important web pages

1 http://wiki.cyanogenmod.org/w/Devices#vendor=;

This page contains all the models supported by cm and the corresponding drivers

2 http://wiki.cyanogenmod.org/w/Crespo_Info

This page contains all kinds of information that crespo needs before compilation.

The most important of these is

Device https://github.com/cyanogenmod/android_device_samsung_crespo

Kernel https://github.com/cyanogenmod/android_kernel_samsung_crespo

Both packages need to be downloaded.

Where the driver package:

After downloading and decompressing, put it in cm-10/device/samsung/crespo and crespo this folder if you don't want to create a new one.

Kernel package

After downloading and decompressing, put it in cm-10/kernel/samsung/crespo and crespo this folder if you don't want to create a new one.

Also note that there is also a hardware package

Https://github.com/CyanogenMod/android_hardware_samsung

After downloading and decompressing, put it in cm-10/hardware/samsung and samsung this folder if you don't want to create a new one.

3 http://wiki.cyanogenmod.org/w/Build_for_crespo

This page tells you how to compile this version of crespo cm-10.2 code

Three compiled source code

1 preparation before compilation

Cd ~ / android/system/vendor/cm

. / get-prebuilts

2. / extract-files.sh

First connect the samsung nexus S phone, then go to the cm-10/device/samsung/crepso directory and execute the above instructions.

The main function of this script is to pull the driver so library in the phone, then create a new cm-10/vendor/samsung/crespo directory, and then put the corresponding library files in it.

My phone did not report a single error when executing this command. If any files are missing, please see the previous article and fill in the so library.

3 really start compiling

In the past, there was no need for lunch commands to choose which version to compile. CyanogenMod has encapsulated these into simpler commands.

After returning to the root directory

Export USE_CCACHE=1

It is said that this will speed up the compilation

. Build/envsetup.sh

Only after the successful execution of this important can the later commands continue to be executed.

Croot

Brunch crespo

Ok starts compiling.

Fourth, use the brushing tool to brush the rom package to the mobile phone.

This is how CyanogenMod compiles Google Nexus S "crespo"). The editor believes that there are some knowledge points that we may see or use in our daily work. I hope you can learn more from this article. For more details, please follow the industry information channel.

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Development

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report