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 method of android4.4 compilation

2025-02-24 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >

Share

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

This article introduces the relevant knowledge of "what is the method of android4.4 compilation". In the operation of actual cases, many people will encounter such a dilemma, so let the editor lead you to learn how to deal with these situations. I hope you can read it carefully and be able to achieve something!

Based on Xunwei iTOP4412 development board

6.3.2.1 repo download

Android code management is different from uboot,kernel, because Android code is relatively large, we put Android

The project is split by folder, and each subdirectory under the android source directory is divided into a repository or

Version management is carried out in multiple repositories. The code download of Android needs to use the repo tool, and the repo tool is the seal of Git.

The bottom layer is downloaded using the Git command.

Suppose the repo tool is stored in the / media/data/gitHub directory:

Cd / media/data/GitHub/

Git clone git://aosp.tuna.tsinghua.edu.cn/android/git-repo.git/

After downloading the git-repo repository, you will see that there is a repo script file in this folder:

6.3.2.2 download Android4.4 Code

Suppose our Android4.4 code is stored in the / media/data/GitHub/iTop4412_KK4.4_git directory

Record:

# cd / media/data/GitHub/iTop4412_KK4.4_git

#.. / git-repo/repo init-u https://github.com/TOPEET-Develop/android.git-b

Exynos4412_android4.4.4_master

The previous command character "- b" is followed by a space

Note: the-u parameter in the repo init command specifies the download address of the android warehouse, and the-b parameter specifies the download in the warehouse.

Branch.

What I download here is the exynos4412_android4.4.4_master branch, which needs to be typed during the execution of the command.

Related information, as shown in the following figure:

Your Name input root

Your Email: enter directly, and then enter y to continue:

#.. / git-repo/repo sync

Note: repo sync begins to download Android code. The download process has something to do with the network environment.

If there is no progress display for a long time during the loading process, you can stop the download by ctrl+c, and then execute the repo sync command to start over.

The following figure shows the progress during the download of the source code:

When the code is downloaded, it will be displayed under the / media/data/GitHub/ iTop4412_KK4.4_git directory.

Android system source code directory. The source code of Android4.4 is about 20 gigabytes. The first download process is long. Please be patient.

Wait. After the code download is complete, when you use the repo sync command again, only update the upgrade code, which is faster.

There will be one or more Git repositories under each folder directory. By default, these repositories have no branches. We need to

To create a branch using the repo start command, here we create a master branch, or you can define it under a different name

The name of the branch. The repo branch command can view the created branch:

#.. / git-repo/repo start master-- all

#.. / git-repo/repo branch

6.3.2.3 Android4.4 source code compilation

After the Android code is downloaded, it can be compiled. The Android source code needs to be supported by the kernel header file.

So we need to put the Android code and the kernel code in the same level directory:

In the figure above, kernel is the kernel code of Android4.4 and the Android4.4 source code directory.

ITOP4412_KK4.4_git is at the same level.

The kernel directory is the kernel code of Android4.4 that we downloaded:

Execute the compile command for Android4.4:

# cd iTop4412_KK4.4_git

#. / build_android.sh

Note: after the Android code is downloaded and compiled, we can periodically use the repo sync command to synchronize our Git

Warehouse to local, so that your local code will be updated synchronously with our warehouse, and the latest system will be formed after compilation.

Mirror image. In addition, Android4.4 code currently does not partition elite backplane and omnipotent backplane, and the image formed by code compilation can be found in the

The elite version can also run in the all-around version, which is different from Android4.0.

6.3.3 download and production of Linux Qt file system

Download the Git command:

# git clone https://github.com/TOPEET-Develop/linux_rootfs.git-b

Rootfs_qt_master

The previous command character "- b" is followed by a space

After the download is complete, you can see the following directory structure:

Root: the root file system of Linux

Test: the test program of Linux

Tools: tools for making file systems and ramdisk.img binaries designed for Linux systems.

The mkfs script under the Tools directory is used to create a file system image. Copy the script to the Linux_rootfs directory.

Next, the command line can be executed to generate system.img.

Note: you can download uboot and kernel,Linux file systems using the git clone command, or you can download them from the web page.

Source code compression package. Go to the GitHub home page and select the warehouse you want to download:

In the red box in the upper left corner of the unit price, select the branch of the warehouse, and then click "Download" in the lower right corner of the page.

ZIP "can download the package through the browser."

6.3.4 Ubuntu file system

The Ubuntu file system is divided into:

LCD display version: iTOP4412_ubuntu_12.04_for_LCD_20141230.tar.gz

HDMI display version: iTOP4412_ubuntu_12.04_for_HDMI_20141230.tar.gz

These two versions are not available on the GitHub platform and are currently being released on CD-ROMs and web disks.

This is the end of the content of "what is the method of android4.4 compilation". Thank you for reading. If you want to know more about the industry, you can follow the website, the editor will output more high-quality practical articles for you!

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

Internet Technology

Wechat

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

12
Report