Winter 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 understand, so 10 days still hope to be able to add the Linux kernel related knowledge, Then continue to stay in the lab to summarize the
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
One: Linux kernel:
The operating system is a low-level support software used to deal with hardware and provide a limited set of services for user programs. A computer system is a symbiotic body of hardware and software that is interdependent and indivisible. Computer hardware that contains peripherals, processors, memory, hard disks, and other electronic devices
# Based on v2.6.26 KernelCompiling and generating kernel target files using Linux kernel makefile
Directly execute the make compilation process
1. First find the entry point (Entry Point Problem)# Compile the kernel line502 and directly execute make to compile all: vmlinux # compile the module line1037 by default. If
Linux Kernel proc file system usage example, Linux kernel proc example
/*
* Kernel programming test code** Copyright (C) 2014 Sun Mingbao * Dual licensed under the MIT and/or GPL licenses.**/# Include # Include # Include # Include # Include # Include MODULE_AUTHOR ("Sun Ming
Winter 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 understand, so 10 days still hope to be able to add the Linux kernel related knowledge, Then continue to stay in the lab to summarize the
Linux Kernel deadlock, Linux Kernel
A deadlock is a state where multiple processes (threads) are blocked because they wait for resources occupied by other processes for a long time. When the waiting resources are not released, the deadlock will continue. Once a deadlock occurs, the program itself cannot be solved. It
tree can also be applied to the stability tree, the same improvements will be made in the stability tree after tests in the Development tree. Once the development tree has been sufficiently developed, the development tree will become a new stable tree. The development number is reflected in the source program version number. The source program version number is in the form of X. y. z: for a stable tree, Y is an even number. For a development tree, Y is bigger than the corresponding stable tree
Linux Kernel Function fls (), Linux kernel function fls
Functions of Linux kernel functions fls ()
/*** Fls-find last (most-significant) bit set * @ x: the word to search ** This is defined the same way as ffs. * Note fls (0) =
program for Linux provides a range of configuration options. For each configuration option, the user can answer "y", "M", or "n". where "Y" means the support or device driver of the corresponding feature is compiled into the kernel; "M" means that the support or device driver for the corresponding feature is compiled
problem is very easy. Which is the 32-bit assembly on the 64-bit machine running to solve the problemAt the beginning of the corresponding assembly code, add a. code32OkSame. Will encounterHead.s:105:warning:using '%ebx ' instead of '%bx ' due to ' l ' suffixThis will change the corresponding BX register to ebx OKHead.s:248:error: '%al ' not allowed with ' MOVL 'Head.s:257:error: '%al ' not allowed with ' MOVL 'This changes the MOVL to MOVB. This should be a mistake. Rather than a platform diff
made in the stability tree after tests in the Development tree. Once the development tree has been sufficiently developed, the development tree will become a new stable tree. The development number is reflected in the source program version number. The source program version number is in the form of X. y. z: for a stable tree, Y is an even number. For a development tree, Y is bigger than the corresponding stable tree (therefore, it is an odd number ). So far, the highest version of the stabilit
debugging is based on the PNG format image conversion process, if it is in other formats please convert to PNG or use other commands to convert.
Second, the two ways to modify the boot picture:
1, method One: replace the original picture
Directly replace the picture under linux_kernel/driver/video/logo/and make sure that the replacement file name is consistent. Then make sure that the kernel configuration looks like this:
Device drivers-->
Graphic
function of this host to him into the good.1.3 Decompression, installation and observation of the kernel source code
Extract and drop directories for kernel source code: Kernel Primitives are generally recommended to be placed under the /usr/src/kernels/ directory. tar -jxvf linux-X.X.XX.X.tar.bz2 -C /usr/src/ker
, Direct, any) [any] This option sets the way Linux probes PCI devices. Select "BIOS", Linux will use the BIOS, select "Direct", Linux will not pass the BIOS, select "Any", Linux will directly detect the PCI device, if it fails, then use the BIOS.(4) Parallel Port Support (c
X86 platform: The Linux system compiles the configuration kernel and starts the kernel
This article turns from: http://blog.chinaunix.net/uid-25811099-id-1704590.html
PC System: Windows XP Virtual machine: VMware 6.5.1 build-126130 Virtual machine system: Linux system (provided on version:2.6.25-14.fc9.i686 friendly
For C in Linux, the GCC compiler is used for compiling, and the source code of the kernel is also dependent on the corresponding GCC version.
Because a large number of double-stranded tables are required in the kernel, the data structure of the double-stranded table is abstracted to become the list_head struct. For this problem, the
relationship between the VFS and the local file system in the kernel. jpg "/>
In linux, everything can be viewed as a file. Not only can common text files and directories be processed as files, but also character devices, Block devices, sockets, and so on can all be processed as files. Although these files are of different types, they use the same operation method. This is also one of the basic philosophie
Transferred from: http://www.linuxidc.com/Linux/2013-12/93637.htmWhen migrating Linux to a new architecture, a number of issues that developers encounter are related to incorrect data types. Sticking with strict data types and compiling with-wall-wstrict-prototypes can avoid most bugs.
-wall
Show all warnings
-wstrict-prototypes
Rigorous detection of prototypes, if n
Because I do not have a real machine environment, so I need to simulate in the simulator, so I want to download the source code version of the support simulator, and the goldfish version is specifically provided for the simulator environment.
The Goldfish project contains the kernel sources for the emulated platforms.
One, first, to
git clone https://android.googlesource.com/
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.