Ordinary files can be created with open or create, FIFO files can be created with pipe, Mknod is mainly used for the creation of device files.In the kernel, Mknod is implemented by Sys_mknod, with the following code:Asmlinkage Long Sys_mknod (const
Mknod [Options] Name {BC} major minorMknod [Options] Name PGNU options (abbreviation ):[-M mode] [-- help] [-- version] [--]DescriptionMknod uses the specified name to generate a FIFO (Named Pipe), character-specific or block-specific file.A special
Mknod-Make block or character special files
Mknod [Option]... name type [major minor]
Option is-M.
Name Customization
Type has B, c, and P
Master device number
Device No.
The master device number is defined by/usr/src/Linux/include/Linux/major. h.
Mknod command: used to create a special file prototype: # mknod [options] device file name {bcu} device No. Times device No. www.2cto.com option [-mmode] [-- modemode] [-- help] [-- version] option:-m, -- mode...
Mknod command: used to create a
Linux mknod Command parsingHttp://www.cnblogs.com/cobbliu/archive/2011/07/05/2389014.htmlThe primary and secondary device numbers can be found in the./documenttation/devices.txt of the kernel source code. Of course, the location of the node does not
Device files: block Device file B: A device that is randomly accessed by block;character device file C : by character, linear device;Common block device file B: HDDDevice file name for the hard disk device:IDE, ATA:HDSATA, SCSI, USB:SDA,b,c, ... To
Mbr:master Boot Record Master boot recording (512byte bytes)Bootloader:446byteMark Partition: 16byte mark a partition (total 64byte)Indicates if the MBR is valid: 2byte Magic number################################################lnln [options] ...
2.6.24 kernel compilation-initrd-2.6.24.img analysis-Linux general technology-Linux programming and kernel information, the following is a detailed reading. The English meaning of initrd is boot loader initialized RAM disk, which is the memory disk
Build one of the basic Linux frameworks
Building a Linux by yourself can not only deepen your understanding of Linux, but also help you learn embedded Linux. The process of building a Linux (kernel compilation, file system creation, graphical
EXP/IMP massive data
From: Macro Beth Oracle exp/IMP are two tools frequently used by many users. they are often used for database logical backup, database restructuring, data transfer, and other work. first,
The device under/proc/devices/is generated by the driver, which can generate a major for mknod as the parameter.The devices under/dev/are added by mknod. You can use this device name to access the driver.The following script, scull_load, is part of
Chapter 1 Preface The purpose of this article is to introduce the general process of establishing and developing an embedded Linux system. A small Linux system can be transplanted to other hard disks, floppy disks, USB disks, and Flash ROM
1. install required software:
1. If you cannot find VMware gsx Server 2.5, you can download it at www.vmware.com and apply for a trial serial number. You can also search for it at www.google.com, I believe you want it!
2. RedHat Linux 6.2 is an
I. Partition Information
HHARM2410-STUDY Development Board uses 16 bit 8 m nor flash, partition information is as follows:
0x00000000-0x00040000: "bootloader"
0x00040000-0x00140000: "kernel"
0x00140000-0x00540000: "ramdisk"
0x0054-0x00740000:
Cramfs Making Method
1. Compile Cramfs production tool Mkcramfs
A. Extract cramfs-1.1.tar.bz2, create cramfs-1.1 folder
B. Use a terminal to enter the cramfs-1.1 folder, run make, compile Cramfs tools
C. Compile and generate Mkcramfs and cramfsck
U disk to start Linux1. Install grub to the USB flash drive1. Use the fdisk tool provided by Linux to format the USB flash disk as the boot disk.1), => fdisk-l view the mount point of the USB flash diskMy USB flash drive is mounted to/dev/SDC, And
In Linux, what is the difference between the content in the/dev/directory and that in the/proc/file devices? I'mWhen I did an experiment on the board, I found that when I loaded the driver module to the Board, there were changes in the devices file,
In embedded arm development, when making the root file system with BusyBox, one of the directories that must be built is the/dev directory. This directory is important to all users because the directory contains all the external devices used in all
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.