精品丰满熟女一区二区三区_五月天亚洲欧美综合网_亚洲青青青在线观看_国产一区二区精选

  • <menu id="29e66"></menu>

    <bdo id="29e66"><mark id="29e66"><legend id="29e66"></legend></mark></bdo>

  • <pre id="29e66"><tt id="29e66"><rt id="29e66"></rt></tt></pre>

      <label id="29e66"></label><address id="29e66"><mark id="29e66"><strike id="29e66"></strike></mark></address>
      學習啦 > 學習電腦 > 操作系統(tǒng) > Linux教程 > 如何最簡內(nèi)核配置

      如何最簡內(nèi)核配置

      時間: 若木635 分享

      如何最簡內(nèi)核配置

        最簡內(nèi)核配置

        怎樣得到一個最簡內(nèi)核配置呢?

        (1)首先,用內(nèi)核的 allnoconfig 配置目標,得到一個最最基本的內(nèi)核配置。即,執(zhí)行下面的命令:

        make allnoconfig

        內(nèi)核的 allnoconfig 配置目標會把所有的內(nèi)核選項都設(shè)置為no,也就是把它們既不編譯進內(nèi)核,也不編譯成模塊。

        有了這個最基本的配置,我們再添加必須的配置項:再執(zhí)行

        make menuconfig

        命令,按下面的步驟添加其他的配置——

        (2)把 Executable file formats 下的ELF 和 emulations for 32bit ELF 選項編譯進內(nèi)核。

        (3)在 Processor type and features 下面,選擇合適的CPU類型。

        (4)選擇PCI/PCI-Express支持,位于Bus options (PCI, PCMCIA, EISA, MCA, ISA) 配置目錄下。

        (5)加入對根文件系統(tǒng)所在磁盤控制器的驅(qū)動:

        Device Driver

        |---->SCSI device support

        |---->SCSI disk support

        |----->SCSI low-level drivers

        |---->Serial ATA (SATA) support

        |---->intel PIIX/ICH SATA support

        (6)加入Ext2文件系統(tǒng)的支持:在 File systems 配置目錄下,選擇 Second extended fs support。如果根文件系統(tǒng)是Ext3,則選擇 Ext3 journalling file system support。

        (7)為了是 Udev 正常工作,需要內(nèi)核支持 Unix domain sockets。此配置選項位于 Networking 配置目錄中的 Networking support ---> Networking options 下。

        (8)使內(nèi)核支持 /proc 虛擬文件系統(tǒng)和 tmpfs 文件系統(tǒng):

        File systems ---> Pseudo filesystems ---> /proc file system support / Virtual memory file system support (former shm fs)

        (9)支持 swap 分區(qū):

        General setup ---> Support for paging of anonymous memory (swap)

        (10)支持 RTC 設(shè)備:

        Device Drivers ---> Character devices ---> Enhanced Real Time Clock Support

        (11)為了充分發(fā)揮我的雙核CPU的能力,我又加入了對SMP的支持:

        Processor type and features ---> Symmetric multi-processing support。

        這樣一個最簡的內(nèi)核配置,編譯出來的內(nèi)核映像文件的大小只有744KB。

      75345