1. Create a kernel for the embedded platform (the 6410 Development Board is used as an example here)
1. Clear the original configuration and intermediate files
(1) x86: Make distclean
(2) arm: Make distclean
2. Configure the kernel
(1) x86: Make menuconfig
(2) arm: Make menuconfig arch = arm (platform to be specified)
3. Compile the kernel
(1) x86: Make bzimage
(
Programs running in the Linux kernel should always prevent competing states caused by concurrency. This will cause the data structure to be broken down and cause the kernel to crash in severe cases. Therefore, the kernel synchronization technology is very important to the driver developed by the
The Linux kernel of Android is stored in the kernel subdirectory. By comparing it with the standard Linux 2.6.25 kernel, we can find that it mainly adds the following content:
1. Add the gold-fish platform based on the ARM architecture. The directories added are as follows:
Linux kernel kernel_ nuclear travel_ Travel Linux kernelLinux 2.61Hellomod.c001Hello World driver for Linux 2.6#include #include #inlcude /* Header File */Static Int_init lkp_init (void){PRINTK ("Equivalent to the printf output function in c,return 0;}Static Void_exit lkp_cleanup (void){PRINTK ("}Module_init (Lkp_init)
Today is Laba Festival, said the woman ticket to give me to do the Laba porridge is so bad, so sad, good-hearted acid ah, it seems that the code is really annoying drops, so I warned you technical male wake alarm, do not want me to the same, or you can only and the Code as companion ~ ~ said no Laba porridge but there is code, and you have the support of readers , so you have to continue to write down, calm down, complete the Linux
how the job of a computer works http://www.cnblogs.com/zhengwei0712/p/5207299.htmljob Two how the operating system works http://www.cnblogs.com/zhengwei0712/p/5234622.htmljob three Linux kernel boot process http://www.cnblogs.com/zhengwei0712/p/5253703.html Chapter I.:Linux Development and UNIXChap
Chen Chaojan Original works reproduced please specify the source "Linux kernel Analysis" MOOC course http://mooc.study.163.com/course/USTC-1000029000first, the experimental processLanding Lab Building Virtual machine http://www.shiyanlou.com/courses/195Open the shell terminal and execute the following command:
CD Linuxkernel
RM-RF Menu
git clone https://github.com/mengning/menu.git
CD M
One, the Linux kernel compared to the traditional Unix kernel comparison:(1): Linux supports dynamic kernel modules. Although the Linux kernel is also a monolithic structure, it allows
I. Linux configuration and compilation
Linux has the following advantages:
1. Clear temporary files, intermediate files, and configuration files
(1) make clean: delete most of the generated files, but keep the configuration file
(2) Make mrproper: delete all generated files and configuration files
(3) make distclean: Delete the patch and backup files of the editor based on make mrproper.
2. Deter
corresponding __attribute__ parameters in parentheses.The syntax format is: __attribute__ ((attribute-list))Attribute sections are used for functions and variables, and typically the compiler places functions in the. Text section, where variables are placed in the. data or. BSS sections, and the section property allows the compiler to place functions or variables in the specified section.2, meaning of Is_err () in driverAll drivers are running in kernel
Operating system kernel (linux), operating system kernel linux
Kernel of the Operating System)
Is a group of programs that focus on managing all activities of the computer and all hardware in the drive system.
With the kernel
Linux kernel universal queue implementation KfifoLocation: kernel/kififo.cUse required include header file # include 1. Create queue (dynamically created)int Kfifo_alloc (struct kififo *fifo, unsigned int size, gfp_t gfp_mask);The function creates and initializes a FIFO of size, and the kernel uses the Gfp_mask identit
Transferred from: http://www.cnblogs.com/lcw/p/3159394.htmlPrefaceWhen a user compiles a Linux kernel code, several files are generated: Vmlinz, initrd.img, and System.map, and if the Grub Boot manager program is configured, the files are seen in the/boot directory.
VmlinuzThe Vmlinuz is a bootable, compressed kernel file.The file contains a minimal functio
I. measurement time difference
1. There is a constant "HZ" in the Linux kernel, and Hz is a constant unrelated to the architecture. It is used to configure the number of system interruptions per second. The value range is 50-1200 (meaning 50 to 1200 interruptions per second). The default value is 1000 on the X86 platform.
2. The global variable jiffies (unsigned long ). Every time a clock is interrupted, th
Turn from: http://www.cnblogs.com/wang_yb/archive/2012/08/15/2640972.html
This article briefly introduces the basic concepts of kernel-related.
Main content: Single kernel and microkernel kernel version number
1. Single Kernel and microkernel
Principle
Advantage
Disadvantage
Single
Specific questions
Reference Solutions
Solution Ideas
Deep solution
1. Specific questions:After porting the kernel of 3.6.6, download the startup card to die, specifically the serial printing information stuck in "uncompressing Linux ... done, booting the kernel."2. Reference Solution:According to the online statement to ensure that the following
Chen Chaojan Original works reproduced please specify the source"Linux kernel Analysis" MOOC course http://mooc.study.163.com/course/USTC-1000029000Experimental stepsLanding Lab Building Virtual machine http://www.shiyanlou.com/courses/195Open the shell terminal and execute the following command:CD linuxkernel/Qemu-kernel LIN
Then after the Linux kernel 2.6, can not directly export sys_call_table address, we want to get the address of the system call table, so as to achieve the interception of system calls.First put on my implementation of the good code, and then to explain it.Modu.c#include #include#include#include#include#include#includestring.h>#include#include#include#includeModule_license ("Dual BSD/GPL"); #define_debug#ifd
Original: 10 days the first day of learning the Linux kernel---kernel exploration tool classWinter vacation idle down, can enjoy doing their favorite things, concentrate on the lab in the dry up, because when the sophomore contact Linux, just about the kernel is really not u
The Linux kernel is one of the important tasks of the operating system for process management.This experiment is an overview of the kernel's process of creating a new process.For simplicity, create a process using fork and then user state. The code is as follows:Here is the preparation??? CD LINUXKERNELRM-RF menugit clone https://github.com/mengning/menu.gitcd menumv test_fork.c test.cmake rootfsOpen GDB fo
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.