Shell redirection Debugging informationFulinux*************************************************************************************************************** ***********************Author: fulinuxReprint statement: http://blog.csdn.net/fulinus/article/details/29912333*************************************************************************************************************** ***********************Background: When porting WiFi, you want to be able to access it via WiFi when you start, mainly t
/LINUXRC executes the init process initialization file. The main task is to mount the installed root file system (/etc) to Ramfs, and copy all files in the/mnt/etc/directory to/etc, where the system starts many special files, and then LINUXRC to reconstruct the file allocation table Inittab, then perform the system initialization process/ Sbin/init.LINUXRC #!/bin/"mount/etc as Ramfs"/bin/mount-n-T Ramfs Ramfs/etc* /etcecho "Re-create the/etc/mtab entries" # Re-create The/etc/mtab Entries/bin/mo
Description of UseCreate a static library. A file. It is often used when developing programs in C/D + +, but I rarely use AR commands on the command line alone, usually in makefile, and sometimes in shell scripts. For knowledge about library files, static libraries, dynamic libraries, and how to create and use Linux, see the related data "3", "about Linux static and dynamic Libraries" later in this article.Common parametersFormat: ar RCS libxxx.a xx1.
intercept a little part of the interpretation.
Copy Code code as follows:
Mandatory arguments to long options are mandatory for short options too.
--normal output a normal diff (the default)
-Q,--brief, only when files differ
-S,--report-identical-files when two files are the same
-C,-C num,--context[=num] Output NUM (default 3) lines of copied context
-U,-u num,--unified[=num] Output NUM (default 3) lines of unified context
-E,--ed output an ED script
-N,--
The AR command can be used to create, modify, or present a single module from a library. A library is a separate file that contains other files that are organized according to a particular structure (referred to as member of this library file). The original file's content, pattern, timestamp, owner, group, and so on are kept in the library file.
AR allows you to assemble many files into a single, stored file. In a saved file, all member files retain their original attributes and permissions.
P
var var/log var/wwwThe files are used in the files in the RAMDisk provided by Xilinx and copied to the relevant folderCreate a "etc/fstab" file with the following contentTouch Etc/fstabTouch Etc/fstab echo "label=//TMPFS defaults 0 0 " >> etc/fstabecho "none/dev/pts devpts gid=5,mode=620 0 0 ">> etc/fstabecho" none/proc proc defaults 0 0 ">> etc/fstabecho" None/sys sysfs defaults 0 0 " >> Etc/fstabecho "none/tmp tmpfs
1, problem descriptionThe serial port outputs the following information without any response.Ip-config:complete: device=eth0, addr=192.168.1.88, mask=255.255.255.0, gw=192.168.1.1, host=192.168.1.88 , domain=, nis-domain= (none), bootserver=192.168.1.58, rootserver=192.168.1.58, rootpath=vfs:mounted root (NFS FileSystem) on device 0:12.freeing init memory:212kstarting pid 1434, tty ': '/etc/rc.d/rcs ' Mounting/proc and/sys Star Ting the Ho
management chapter. 2. Load the system kernel and start the INIT process. The INIT process is the root process of Linux, and all system processes are its sub-processes. 3. The INIT process reads the information in the "/etc/inittab" file, enters the preset running level, and runs the scripts in the corresponding folder of the running level in sequence. The script is usually started with the "Start" parameter and points to a program in the system. Generally, the startup script under the "/etc/
Start Process
==========
To start a Linux system, follow these steps:
1. Read the MBR information and start the Boot Manager.
In Windows, NTLDR is used as the Boot Manager. If multiple versions of Windows are installed in your system, you need to select the system to enter from NTLDR.
Linux usually uses the powerful and flexible GRUB configuration as the Boot Manager. We will introduce how to use it in the startup management chapter.
2. Load the system kernel and start the init process.
The ini
clocks. In the/etc/default/rcS file, whether or not the system uses UTC is set, and UTC = yes is used.
The computer has its own time, that is, the hardware time, hard clock, that is, the time in the BIOS, And the shutdown will not be lost. This time will be read when the computer starts. If this time is set to UTCGMT), that is, the time in the place of London, you must set UTC = yes in the rcS file, and vi
. Otherwise, you need to add-static to the Cross-compiled APPLICATION TO INDICATE static links.The generated file is very large.First, go to my/home/minifs$ CD/home/minifs$ Mkdir lib$ CP/crosstool/gcc-3.4.5-glibc-2.3.6/ARM-Linux-GNU/lib/* So *./lib-Note: Remember to add-a, otherwise it will be very large.-A can save the soft connection without directly copying it.By the way, you can reduce the size of the database.$ Arm-Linux-GNU-strip lib/* sbin/* bin /*$ Du-H lib)3.3 m lib
In this way, the dat
$ Header $ Standard Header, including the full path name, date, and author of the RCS
$ ID $ except for incomplete names of the RFM file, it is the same as $ header $.
$ Log $ contains the full path name, version number, date, author, and log information provided at the time of submission of the RCS.
$ Rcsfile $ name of the file that contains the RCs, excluding
?= arm-linux-
Among them, arch specifies the target platform as arm, and cross_compile specifies the cross compiler. Here the default cross compiler is specified. If you want to use other, write the full path of the compiler here.
(2) configure and compile the kernel module
You can copy the friendly built-in configuration file in the kernel. Then execute:
make menuconfigmake zImage
(3) Compile the kernel module
make modules ARCH=arm CROSS_COMPILE=arm-linux-
(4) install the kernel module
make m
Previous postI have already introduced some preparations. Let's take a look at the specific process today. For every step of the process, I will emphasize what is prone to problems.
★Submit code to the source code Management ServerThe following is a Revision Control System for ease of typing ).Unlike the old-fashioned software workshop, programmers do not need to compile binary files and submit them to the test after implementing a Function Point. Instead, the code is submitted to the
/inittab | | true) "
Fi
......
# Run the system initialisation scripts
[-N "${from_single_user_mode}"] | | /etc/init.d/rcs
Obviously, Ubuntu still supports/etc/initab files. At the end of the script,/etc/init.d/rcs is executed, and the contents of the RcS are:[HTML]View Plaincopyprint?
#! /bin/sh
#
#
from:http://blog.csdn.net/xljiulong/article/details/7082960Description of the use of the Linux AR command that and exampleTags: linuxmakefilegccarchivecodecshell2011-12-19 09:14 5409 People read comments (0) favorite reports Description of UseCreate a static library. A file. It is often used when developing programs in C/D + +, but I rarely use AR commands on the command line alone, usually in makefile, and sometimes in shell scripts. For knowledge about library files, static libraries, dynam
, in.telnetd, IN.TALKD, SendMail====================================================================/proc mount proc File system, log process information/sys mount the Sysfs file system, record the special files, devices, buses and other information required by the kernel/mnt temporary mount points, mounting other file systems using/tmp Temporary mount point, Mount other file system using====================================================================/Dev Device node (file)"4" Root file syst
Purpose description
Create a static library. A file. It's often used when developing programs with C + +, but I rarely use the AR command on the command line alone, which is generally written in makefile and sometimes used in shell scripts. For Linux library files, static libraries, dynamic libraries and how to create and use related knowledge, see the relevant information later in this article "3" on Linux static Library and dynamic library analysis.
Common parameters
Format: ar
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.