Khan !!! This blog was written a few days ago, but there is an error, resulting in uboot compilation errors, only to find the original problem: Decompress the arm-linux-gcc-4.4.3.tgz, the file configuration error, what I saw in a book is
It is not complete enough to write it casually. Remember it for the moment, and there are still some things you haven't figured out !~
Recently, we are working on porting the new kernel version, and bringing the original BSP to the latest
Mkdir command
Function: create a directory (similarMsdosUnderMDCommand ).
Syntax:Mkdir [Option] Dir-name
Note: This command is createdDir-nameDirectory. You must create a directory in the current directory (Dir-nameIn the parent
# Include
# Include
As follows:
Key_t ftok (char * fname, int ID)
Fname is the specified file name (an existing file name). The current directory is generally used, for example:
Key_t key;
Key = ftok (".", 1); in this way, the fname is set
1. Learn to write simple makefile
2. Compile an application and run it with makefile.
3. Learn to write the driver makefile
4. Write a simple char driver. The makefile is compiled and can be insmod, lsmod, or rmmod. Print Hello world in the init
Each character device in the kernel corresponds to a variable in the cdev structure. Its definition is as follows:
Linux-2.6.22/include/Linux/cdev. hStruct cdev {Struct kobject kobj; // each cdev is a kobjectStruct module * owner; // point to the
Linux Process view system process information Commands include: static process view command (PS), dynamic process view command (top), and view process Tree Command (pstree ), these processes are described as follows:
1. view the PS of a static
┌ ── ─ Raw Driver (/dev/raw/rawn)│ Config_raw_driver:│ The raw driver permits Block devices to be bound to/dev/raw/rawn.│ Once bound, I/O against/dev/raw/rawn uses efficient zero-copy I/O.│ See the raw (8) manpage for more details. ││ Applications
Uevent in Linux kernel/Sys File System
Many kobject in sysfs have the uevent attribute, which is mainly used for a communication interface between the kernel and udev
In the previous article, we implemented a readn function to read fixed bytes of data to avoid the problem of sticking packets. If the length of each field in the application layer protocol is fixed, it is very convenient to use readn for reading.
Mutex lock for processing data of threads
Mutex lock
Mutex lock is used to ensure that only one thread is executing a piece of code within a period of time.The pthread_mutex_lock statement starts to lock with mutex lock. Subsequent code is locked
I. POSIX thread Overview
We know that processes run in their independent address spaces, and data sharing between processes requires inter-process communication mechanisms. In some cases, multiple control processes need to be executed simultaneously
I. Reading file metadata
Int Stat (const char * path, struct stat * BUF );Int fstat (int fd, struct stat * BUF );Int lstat (const char * path, struct stat * BUF );
Stat () stats the file pointed to by path and fills in Buf.
Lstat () is identical to
1. Fork system call
Contains the header file and Function: create a sub-processFunction prototypePid_t fork (void );Parameter: No parameter.Return Value:If a child process is successfully created, the child process ID is returned for the parent
I. inter-process communication
Each process has a different user address space. The global variables of any process cannot be seen in another process. Therefore, to exchange data between processes, a buffer zone must be opened in the kernel through
Linux processes communicate in the following ways:1-"pipelines (PIPE) and named pipelines (FIFO ).2-> Message Queue3-shared memory4-"semaphores5-"signal (signal)6-"socket (sicket)
Here, let's take a look at Pipeline (PIPE ). See other articles for
To print the printk content with Level Control of the Linux kernel, input dmesg-N 8 on the command line to print all levels of information.
Linux Command: dmesg Function Description: displays the boot information.
Syntax: dmesg [-cn] [-S ]
Note:
1. Introduce the simplest Hello World Driver .... I have read this part before.
2. Differences between module programs and Applications
@ The application executes a single task sequentially from start to end. The module program must first register
First of all, I really like the Linux deepin 10.12 gnome version this time. Indeed, I have always felt that xfce is really not so lightweight, and the operations are different from those of gnome. I usually only watch the post and don't post it.
Whether the description of the symbol name signal value complies with POSIXSighup 1 detected hanging up on the control terminal or the control thread diedSIGINT 2 interaction notice signal isSigquit 3 interaction stop signal isWhich of the following
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