Android Deep Exploration (Vol. 1) HAL and Driver Development Seventh Chapter summary

Source: Internet
Author: User

This chapter studies the test environment of building s3c6410 Development Board, which is mainly carried out around the s3c6410 Development Board. This board is a low power, cost-effective RISC processor, based on the ARM11 core, introduced by Samsung.
First, build a compilation environment
Required cross-compilation toolchain: s3c6410x tool Chain 4.2.2-eabi V0.0-cross-4.2.2-eabi.tar
1. Unzip the tool chain above to get the folder: 4.2.2-eabi/
2. Create a directory under/usr/local/arm/(note that it is best to put it in this directory, or there may be some errors in the future compilation process)
3. Move the directory 4.2.2-eabi/below the/usr/local/arm/
4. Set Environment variables:
Edit the/etc/profile file and add it at the end of the file:
Path= "$PATH:/usr/local/arm/4.2.2-eabi/usr/bin"
Export PATH
To make an environment variable effective:
In the terminal input command: source/etc/profile
Test environment variable is set successfully:
In the terminal input: Echo $PATH, if the output path contains/usr/local/arm/4.2.2-eabi/usr/bin, the environment variable setting is successful
5. Test the cross-compilation tool chain
Second, build the file system image production environment
1. Create the root file system directory Rootfs and its subdirectories bin,sbin,boot,root,sys,srv,proc,usr, etc.
2. Compile busybox1.7.0: (Required source Bundle: BUSYBOX-1.7.0.TAR.BZ2)
2.1 Decompression Source Package, enter the source directory;
2.2 Configuration BusyBox: Do make menuconfig in the source directory, if you use the default configuration to exit, save, if you need to configure your own then change the appropriate options and then save exit.
Select the following options to support the tab completion function
Busybox Settings---> Busybox Library Tuning---> [] tab competion
The Mount NFS feature is already supported
2.3 Modify the makefile of the source directory:
2.4 Formally compiled BusyBox: perform make compilation in source directory
2.5 Install BusyBox: Execute command make CONFIG_PREFIX=/***/ROOTFS (root file system directory) install http://home.cnblogs.com/u/zivjeli/

Android Deep Exploration (Vol. 1) HAL and Driver Development Seventh Chapter summary

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.