HUST OS 3.2 operating system to generate notes [self]

Copyright: learning, can there be so many rules ~ https://blog.csdn.net/Irish_Moonshine/article/details/91128135

3.2 operating system generates

  • Generating the operating system
    to meet user needs and the specific hardware environment, the operating system and build assembly process.

  • Major steps by the operating system
    1 and the function block configuration parameter configured based on the hardware environment / user requirements
    2. construct (build) OS image.

  • Generating system operating premise
    1. Operating system consists of removable module
    2. interactive configuration tool
    3. There are image build (Build) tool

  • Generating a Linux operating system
    1. Obtain Linux kernel source
    2. selects and starts kernel configuration program
    according to configure parameters and kernel module
    4. recompile the new kernel
    5. compile and install modules
    6. Start new kernel

  • 1. Obtain Linux kernel source
    , http://www.kernel.org/
    #cd / usr / the src
    #tar zxvf Linux-2.6.38.12.tar.gz

  • 2. Select and start the kernel configuration program
    #cd /usr/src/linux-2.6
    #make config (text interface, not recommended)
    #make xconfig (graphical window mode, xWindow use)
    #make menuconfig (text selection interface, character terminal )

  • make menuconfig
    After the Linux kernel extract the source, in the main directory, input on the command line after make menuconfig Enter. A pop-up window Blue:
    by pressing the space bar repeatedly can switch flag for each module.

  • make xconfig may configure the system

  • The kernel module and configure parameters
    1.Loadable module support is provided for supporting the module loadable
    -Enable Loadable Module1 Support
    -Set ON All info Version Module1 Symbols
    -kernel Module1 Loader

2.Processor type ans features 设置CPU的类型
-Processor family
-High Memory Support
-Math emulation
-MTTR support:
-Symmetric multi-processing support

3.General setup for some common attributes set
-Networking Support
-PCI Support
-PCI Access MODE
-Support for Hot-Pluggable Devices
-PCMCIA / the CardBus Support

  1. Parallel port support parallel port support

5.Plug and Play configuration plug and play configuration

6.Block devices block device support options
-Normal CFTD PC Disk Support
- Network Block Device Support

7.Networking options // select TCP / IP networking options

8.Network device support // network equipment support options
-Ethernet (10 or 100Mbit)
-RealTeck RTL-8139 PCI Fast Ethernet Adapter Support

9.Mice // mouse settings options: serial, PS / 2 mouse and other types

10.File systems // file system type
-DOS the FAT FS
-NTFS File System Support
- / proc File System Support

11.Sound // sound card driver options: sound card model

12.USB support // USB interface is set, according to the selection required

  • 4. recompile a new kernel
    #make dep build dependencies dependency information
    #make clean clear out old compile the results
    #make bzImage ./arch/i386/boot/bzImage

  • 5. compile and install modules
    #make module // compiling the operating system kernel
    #make module install // mounting module
    been compiled and installed to the / usr / lib <kernel version> directory.

  • 6. Start the new kernel (the specific process related to the version)
    cp bzImage / the Boot / bzImage

GRUB (common configuration startup process tool):
Configure /boot/grub/grub.conf

Guess you like

Origin blog.csdn.net/Irish_Moonshine/article/details/91128135