Go to the dev directory: CD/dev
Check whether CDROM exists: ls
Create a mount point under/mnt, for example:
CD/mnt
Mkdir CDROM
Last Mount
Mount/dev/CDROM/mnt/CDROM
The content of the CD will be mounted to/mnt/CDROM.
First create a
InProgramWhen an unusual exit occurs, the kernel will generate a core file (a memory image with debugging information added) in the current working directory ).
Use GDB to view the core file, which indicates that the program may fail.CodeFile and
1. Change the Linux version number in Android in the version. c file in the init folder!
2. the SPI clock is changed when the SPI reception is not ideal!
3. Single-CPU kernel and lockOn a single CPU machine, the spin lock does not exist for
In Linux, find the device overview and find which modules are required.
To find a driver that has been bound to a device, follow these steps:
1. Find the file corresponding to the device in the sysfs class folder. For example, network devices
Linux Process Control
1. Common system calls
Fork (), exec (), wait (), exit, getpid (), getppid ()
2. Process Synchronization
Signal,
MPs queue,
Pipelines are divided into famous and anonymous pipelines. Famous pipelines can
When we introduced the segment mechanism earlier, we mentioned that the x86 segment mechanism converts the logic address of the program into a linear address. The paging mechanism here is to map the linear address into a physical address, in other
I. Explanation of DD commandsDD: Use a block of the specified size to copy an object and perform the specified conversion at the same time. Note: If the following column ends with a specified number, multiply it by the corresponding number: B = 512;
Similar to the dynamic link library in windows, Linux also has a shared library to support code reuse. *. Dll in windows and *. So in Linux. I will detail how to write a dynamic library in Linux and how to use it.
InLinuxTo write a dynamic link
Address type:
32-bit CPU, 4G space in total, 0-3G belongs to the user space address, 3G-4G is the kernel space address.
User Virtual Address: user space program address
Physical address: Address used between CPU and memory
BUS address: the address
I have been in the Hall of Linux for more than a year. Here I want to analyze the various implementation mechanisms of Linux. On the one hand, it is also a warm story for myself, and on the other hand, it will promote communication between everyone,
Linux 2.6.32.2 driver code location
(Unzip the kernel source code (linux-2.6.32.2 at the beginning of the tgz Compression Files) can find the following driver, mini2440)Provides linux-2.6.32.2-Based Kernel 100% fully usable driver source code, no
Common programming errors of Embedded Linux drivers
1. Warning: function declaration isn' t a prototypeThis kind of error is also very common, mainly for some function fixed format errors. For example, int function () is renamed as int function
The interfaces provided by the kernel include registering and deregistering interrupt handlers, forbidding interruptions, shielding interruption, and checking the status of the interrupt system.
The following are several interrupt control methods:
Linux dynamic connection principle
Note:
The following connector refers to, LD,
The loader refers to the ld-linux.so;
1. Got table;
Each item in the got (Global Offset Table) table is the address of a global variable or function to be referenced by
In Linux, many functions are loaded into the kernel only when necessary through the module method. In this way, the kernel can be simplified to improve efficiency and maintain greater flexibility. These Dynamically Loaded modules are usually system
1. Common shell and Shell operations under Fedora
Common shells include bash, CSH, tcsh, and KSh.
Operation: exit (from one shell to another), exec (from one shell to another)
2. Sleep Time
Sleep 5
Meaning: Sleep for 5 seconds
3. Common Directories
\
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