Miscellaneous knowledge about Linux and its kernel

Source: Internet
Author: User
Linux and its kernel miscellaneous knowledge 1. linux version. next version. number of revisions (times: odd beta version, even release version) 2. linux source code directory content description/arch architecture code www.2cto.com/driversdriver/fsfile...
Linux and its kernel miscellaneous knowledge 1. linux version. next version. number of revisions (times: odd beta version, even release version) 2. linux source code directory content description/arch architecture code www.2cto.com/drivers driver/fs file system/include header file/include/linux file/init initialization code/ipc process inter-communication/kernel/lib core library code/mm memory management is independent of the memory management code of the CPU system. Such as allocation, release/net network protocol code such as TCP/IP full protocol implementation/script configuration core script file 3. main functions of the operating system 1) multi-task scheduling and communication support 2) device management www.2cto.com 3) file system 4) network protocol stack 5) graphics system (if any) 4. compile the Linux kernel. for kernel 2.6.28.7, use the Cross-3.4.1 Cross compiler. 1) modify the kernel MakeFile and modify the "CROSS_COMPILE? = [Cross-compiler Directory] "2) # make menuconfig; configure make 3) # make zImage; compile the kernel 4) generate ~ /2.6.28.7/arch/arm/boot/zImage, that is, the kernel file ※cross-compiled program: arm-linux-gcc (~ /Arm/3.4.1/bin/arm-linux-gcc) 5. mount network file system NFS 1) set the VM Nic to: Bridge 2) # ifconfig eth0 [IP address] mask [subnet mask]; set virtual machine IP Address 3) # service nfs start; start the virtual machine NFS service 4) # vi/etc/exports; configure NFS 5) add sharing settings/root/MySource 192. 168. *. * (rw, sync, no_root_squash): the shared directory, client address (* any) rw = readable, ro = read-only sync = synchronization, async = asynchronous no_root_squash = the client root user can obtain the root permission of the host. root_squash = cannot obtain 6) exportfs-rv; reload configuration 7) development board # mount-t nfs-0 nolock 192.1 68.10.20:/root/MySorce/mnt; Mount the Network File System to/mnt www.2cto.com 6. linux environment variable settings 1) add environment variables permanently: all users # vi/etc/profile; append "export PATH = $ PATH:/mypath" # source/etc/profile 2) add Environment variables permanently: Single user # vi ~ /. Bash_profile; append "export PATH = $ PATH:/mypath" # souce ~ /. Bash_profile 3) temporarily add environment variables # export PATH = $ PATH:/mypath 4) common commands # env; view all environment variables # set; view local environment variables # unset; delete the environment variable author.
Related Article

Contact Us

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

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.