In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-04-02 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >
Share
Shulou(Shulou.com)06/01 Report--
This article mainly introduces the Android7.1 system compilation method is what the relevant knowledge, the content is detailed and easy to understand, the operation is simple and fast, with a certain reference value, I believe you will have something to gain after reading this Android7.1 system compilation method, let's take a look at it.
The Android source code needs to be decompressed under Windows to get a separate 4418/6818-android7.1-20191121.tar.gz package.
Copy 4418-android7.1-20191121.tar.gz to Ubuntu and extract it to get the nexell_nougat_r2 folder.
Note: it takes about 60 gigabytes to compile the Android7.1 source code.
10.1 build a compilation environment
10.1.1 missing dtc
Install the dtc compilation tool:
Apt-get install device-tree-compiler
10.1.2 openjdk version issu
Install Openjdk1.8:
Add-apt-repository ppapenjdk-r/ppa
Apt-get update
Apt-get install openjdk-8-jdk
Switch JDK in multiple JDK versions:
Update-alternatives-config java
Update-alternatives-config javac
Update-alternatives-config javadoc
Check the version number: java-version
10.2 Android7.1 source code compilation
Note: when compiling Android, you must ensure that more than 4G memory is provided to the Ubuntu system. Here, "providing more than 4G memory" means more than just setting up the allocation of 4G memory in the VMware Workstations virtual machine. For example, when users compile, the total memory of the PC machine is 6G, and 4G memory is allocated in the virtual machine, but in the Windows system, with QQ, antivirus software, music player, browser, etc., so that the memory occupied under Windows is almost 2G, then the virtual machine is automatically adjusted to occupy only 3G or even less 3G memory, so it may not be able to compile through. Later, compiling Android separately also requires more than 4G memory.
The correct way to allocate memory is to first allocate more than 4 gigabytes of memory to the virtual machine, then turn off as many unnecessary applications as possible under Windows, and shut down the background programs for as many applications as possible. Of course, if the user's PC is 8 gigabytes or 16 gigabytes of memory, whatever you want.
There are compiled scripts in the nexell_nougat_r2 directory. As shown in the following figure:
Compiling script execution is selected according to different core boards and different memory. 4418 script compilation commands:
. / 4418_create_1G.sh android
. / 4418_create_1G.sh qt
. / 4418_create_1G.sh Ubuntu
Android source code compilation process:
Android compilation completes the generation of the result-s5p4418-topeet4418_ref folder under nexell_nougat_r2. It contains images that need to be compiled.
10.3 Kernel configuration file
4418 path: there are different configuration files under nexell_nougat_r2/kernel/arch/arm/configs
There are configuration files for Android, qt, and Ubuntu, and a configuration file for Android is required to compile Android. Execute the command:
Cp s5p4418_topeet4418_ref_nougat_defconfig-android s5p4418_topeet4418_ref_nougat_defconfig
Then execute the following command
Export ARCH=arm
Make s5p4418_topeet4418_ref_nougat_defconfig
In particular, if the user wants to configure the default file using menuconfig, enter "export ARCH=arm" in the console before using the menuconfig tool.
10.4 modify the screen
I. uboot modification
4418 documents:
Nexell_nougat_r2/device/nexell/u-boot/u-boot-2016.01/arch/arm/dts/s5p4418-topeet4418-ref.dts
II. Kernel modification
Kernel device tree modification
4418 documents:
Nexell_nougat_r2/kernel/arch/arm/boot/dts/s5p4418-topeet4418_ref-common.dtsi
At the beginning of the file, there is a macro definition about the screen size, and different macro definitions are selected according to different screens.
III. Kernel configuration
Choose different kernel configurations according to different systems and screen sizes, and go to the kernel directory for execution
Export ARCH=arm
Make menuconfig
4.3 inch screen configuration:
Device Drivers->
Input device support->
This is the end of the article on "what is the method of compiling Android7.1 system?" Thank you for reading! I believe that everyone has a certain understanding of the knowledge of "what is the method of compiling Android7.1 system". If you want to learn more knowledge, you are welcome to 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: 224
*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.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.