In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-04-06 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >
Share
Shulou(Shulou.com)06/01 Report--
This article mainly introduces the Android separate 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 that you read this Android compilation method is what the article will have a harvest, let's take a look.
After the kernel default files are configured, run the Android directory and run the one-click compilation script "build_android.sh".
Note: this article is based on the iTOP-4418 development board, compiling Android must be guaranteed to provide more than 4G memory 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 the user compiles, the total memory of the PC machine is 6 gigabytes, which is set to allocate 4 gigabytes of memory in the virtual machine, but in Windows
Under the system, open QQ, antivirus software, music player, browser, etc., so that the memory occupied under Windows is 2 gigabytes faster
Then the virtual machine is automatically adjusted to occupy only 3G, or even less than 3G memory, so it may not be able to compile through. behind
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, and then turn off as much as possible under Windows
If there are more unnecessary applications, turn off 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.
Compiling, as shown in the following figure.
After the compilation is complete, in the result directory, as shown in the following figure.
Generated the uboot file "u-boot-iTOP-4418.bin"
Generated the kernel file "boot.img"
The Android file system "cache.img"system.img"userdata.img" is generated.
As shown in the following figure, after the compilation is complete, the uboot source code, kernel,Android and intermediate files (excluding the source code)
Zip package) takes up a total of 40 gigabytes of space. If the compilation fails, use the command "df-l" to see if the hard disk space is enough.
5.3.2 Android source code compiled separately
If the user wants to compile any of the uboot,kernel,Android separately, you can open the
"build_android.sh" compiles scripts.
Go to the last line of the script, as shown in the following figure.
As shown in the figure above, the script in the red box corresponds to the compile command.
Script code build_uboot
-- compiling the uboot image
Script code build_kernel
-- compiling kernel images
Script code build_module
-- compile the KO file of the kernel
Script code build_android
-- compiling the Android image
Script code post_process and build_dist
-- copy the compiled image to the result directory
Compile uboot separately, and build_kernel,build_module,build_android will be compiled as shown in the following figure
Comment out, and then execute the compilation script "build_android.sh".
Compile the kernel separately, as shown in the following figure, comment out the build_uboot,build_android, and then execute the compilation footer
Ben "build_android.sh".
If you compile Android separately, note the build_uboot,build_kernel,build_module as shown in the following figure
Release, and then execute the compilation script "build_android.sh".
This is the end of the article on "what is the method of compiling Android separately?" Thank you for reading! I believe that everyone has a certain understanding of the knowledge of "what is the method of compiling Android separately". 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: 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.
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.