Embedded Linux kernel Authoring

Source: Internet
Author: User

Today to summarize the mini2440 kernel production process.
One
Copy the kernel file to the target directory and unzip it.
II. clearing of intermediate documents
Command: Make Distclean
Third, configure the kernel file
Copy the kernel files produced by the board manufacturer to the kernel file directory and name the. config to exit the save.
There's a special pit here. The kernel file that was given by the teacher kept the information of his own PC while it was being configured, so I started compiling the kernel and never succeeded.

  

This is the mistake of the thousand knives. The solution is actually quite simple, modify the compilation options.
Command: Make Menuconfig arch=arm, and then find this

  

Make sure to clear the front, delete!!! Then locate Mkimage in the Tools folder in the Uboot directory and copy the file to/bin/
Iv. Compiling kernel files
By doing these steps, you will be able to compile successfully.
Command: Make Uimage arch=arm cross_compile=arm-linux-
The Operation section is above so many. And then about the kernel of some knowledge of God horse, I heard the end of the forgotten, here to copy the National forum in the bar, after the arrival here to see.

------------------------------------------------------------------------------------------------
Hua       Li      li           points       cut      line   China      Li                      cut      line China       Li      Li           Division      cut      lines  
--------------------------------------------------------------------------- ---------------------

I. Kernel introduction:
1. System Architecture
(1) Linux is composed of user space and kernel space


(2) User space is primarily user applications and some C library files, profiles. It is generally visible. The


(3) kernel space is mainly the system call interface, the narrow kernel, the processor architecture-related code.


(4) The reason for dividing two spaces: the processor has different operating modes, different mode permissions are not the same, the instructions can be run differently. Two spaces correspond to different operating modes (Operation level), two different states of program execution. Can play a role in system protection. such as low user space level, high level of kernel space.


(5) can switch between the two types of space through system calls and hardware interrupts.




2. Kernel architecture (narrowly defined kernel, pure code)
(1) System Invoke Interface
(2) Process management (Create process---fork,exec, stop process--kill,exit, control communication---signal, POSIX mechanism, shared cpu--process scheduling)
(3) storage management (memory allocation, reclamation, control of shared memory areas of multiple processes security)
(4) CPU architecture-related code (to improve to portability)
(5) device drivers
(6) network protocol stack (only protocol, hardware-independent)
(7) Virtual file system (hide the detailed operation details of various file systems, provide a unified file operation interface)


3. Introduction to Source code directory
(1) ARCH: Store architecture-related code. Sub-directories, respectively, corresponding to the specific CPU, no lattice directory and boot,mm, as well as kernel three subdirectories, respectively, corresponding to the system boot and storage management, and system calls


(2) Documentation: kernel documentation, including help information, Modify information, etc.


(3) Drivers: Device driver directory


(4) Include: the header file directory required by the kernel. The platform-independent header file is under the/include/linux subdirectory. Platform-related is placed in the include sub-directory.


(5) FS: The implementation code that holds the various file systems. Each subdirectory corresponds to a file system. The common source code is used to implement the VFS.


(6) NET: The implementation directory for the network protocol.


(7) Manage source code: Sourceinsight software.

Embedded Linux kernel authoring

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.