Ted's Blog

Happy coding

今天编译了内核

Ted posted @ 2008年12月16日 01:38 in 未分类 with tags kernel , 4684 阅读

先看下 $lspci

00:00.0 Host bridge: Intel Corporation 82G33/G31/P35/P31 Express DRAM Controller (rev 10)
00:02.0 VGA compatible controller: Intel Corporation 82G33/G31 Express Integrated Graphics Controller (rev 10)
00:1b.0 Audio device: Intel Corporation 82801G (ICH7 Family) High Definition Audio Controller (rev 01)
00:1c.0 PCI bridge: Intel Corporation 82801G (ICH7 Family) PCI Express Port 1 (rev 01)
00:1c.1 PCI bridge: Intel Corporation 82801G (ICH7 Family) PCI Express Port 2 (rev 01)
00:1d.0 USB Controller: Intel Corporation 82801G (ICH7 Family) USB UHCI Controller #1 (rev 01)
00:1d.1 USB Controller: Intel Corporation 82801G (ICH7 Family) USB UHCI Controller #2 (rev 01)
00:1d.2 USB Controller: Intel Corporation 82801G (ICH7 Family) USB UHCI Controller #3 (rev 01)
00:1d.3 USB Controller: Intel Corporation 82801G (ICH7 Family) USB UHCI Controller #4 (rev 01)
00:1d.7 USB Controller: Intel Corporation 82801G (ICH7 Family) USB2 EHCI Controller (rev 01)
00:1e.0 PCI bridge: Intel Corporation 82801 PCI Bridge (rev e1)
00:1f.0 ISA bridge: Intel Corporation 82801GB/GR (ICH7 Family) LPC Interface Bridge (rev 01)
00:1f.1 IDE interface: Intel Corporation 82801G (ICH7 Family) IDE Controller (rev 01)
00:1f.2 IDE interface: Intel Corporation 82801GB/GR/GH (ICH7 Family) SATA IDE Controller (rev 01)
00:1f.3 SMBus: Intel Corporation 82801G (ICH7 Family) SMBus Controller (rev 01)
02:00.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL8111/8168B PCI Express Gigabit Ethernet controller (rev 02)

记下几个需注意的地方:

Power management options  --->

        [*] ACPI (Advanced Configuration and Power Interface) Support  --->

                [*]   Deprecated /proc/acpi/event support      #加上这个,避免开机时acpi抱怨

CPU类型:$cat /proc/cpuinfo

Intel(R) Pentium(R) Dual  CPU  E2180  @ 2.00GHz

   Processor type and features  --->  

         [*] Symmetric multi-processing support         #多CPU支持

            Processor family (Pentium-Pro)  --->

                (X) Pentium-Pro                                    #看半天觉得这个最像

            (2) Maximum number of CPUs (2-512)            #CPU数量

总线

    Bus options (PCI etc.)  --->  

        [*] PCI support

        [*] PCI Express support

设备驱动,这里面选项挺重要

   Device Drivers  --->

        [*] Block devices  --->

                <M>   Loopback device support           #支持挂载iso文件

        <*> ATA/ATAPI/MFM/RLL support  --->          #IDE硬盘

                <*>     Include IDE/ATA-2 DISK support

                 <*>     Intel PIIX/ICH chipsets support     #通过lspci中的信息Intel Corporation 82801G (ICH7 Family) IDE Controller , 找到对应的芯片组类型

            SCSI device support  --->              # SCSI硬盘,(SATA IDE Controller)

                <*> SCSI disk support

                <M> SCSI CDROM support

                [*] SCSI low-level drivers  --->

        <*> Serial ATA (prod) and Parallel ATA (experimental) drivers  --->

                [*]   ATA SFF support

                        <*>     Intel ESB, ICH, PIIX3, PIIX4 PATA/SATA support       

网卡

    Device Drivers  --->

        [*] Network device support  --->

                [*]   Ethernet (1000 Mbit)  --->

                        <*>   Realtek 8169 gigabit ethernet support    #根据lspci中的 RTL8111/8168B, 选择对应的芯片

显卡

            Device Drivers  --->

                <*> /dev/agpgart (AGP Support)  --->      #有Accelerated Graphics Port要选上,不然不能调高分辨率

                        <*>   Intel 440LX/BX/GX, I8xx and E7x05 chipset support         #只有这个有点像

                <*> Direct Rendering Manager (XFree86 4.1.0 and higher DRI support)  --->

                        <*>   Intel 830M, 845G, 852GM, 855GM, 865G (i830 driver)  --->        #看起来像

                                (X) i830 driver                  

                                              

声卡

        Device Drivers  --->

                <*> Sound card support  --->

                        <*>   Advanced Linux Sound Architecture  --->

                                [*]   PCI sound devices  --->

                                        <*>   Intel HD Audio      #根据lspci输出的High Definition Audio与此选项的帮助中的Intel "High Definition Audio" (Azalia) 相同,所以选择

                                                [*]     Enable generic HD-audio codec parser       #别的选项的芯片名字在lspci中找不到

鼠标键盘等USB设备

Device Drivers  --->

        Input device support  --->

                -*-   Keyboards  --->

                        <M>   Newton keyboard        #键盘,别的都不像

                [*]   Mice  --->

                        <M>   PS/2 mouse                #PS/2鼠标

Device Drivers  --->

        [*] HID Devices  --->

                {*}   Generic HID support

                         <M>   USB Human Interface Device (full HID) support

                [*] USB support  --->

                        <*>   Support for Host-side USB

                        [*]     USB device filesystem

                        [*]     USB Monitor

                        <*>     EHCI HCD (USB 2.0) support        #根据lspci中有EHCI的字眼

                        <*>     UHCI HCD (most Intel and VIA) support    #根据lspci中有UHCI的字眼

                        <M>   USB Mass Storage support        #移动硬盘等

读取硬件时间

Device Drivers  --->

        <*> Real Time Clock  --->

                [*]   /dev/rtcN (character devices)        #防止出现时钟错乱

                <*>   PC-style 'CMOS'

文件系统,相对简单些

File systems  --->

        <*> Second extended fs support

        <*> Ext3 journalling file system support

        [*] Dnotify support

        [*] Inotify file change notification support

        [*] Quota support

        CD-ROM/DVD Filesystems  --->

                <*> ISO 9660 CDROM file system support

                [*]   Microsoft Joliet CDROM extensions

                [*]   Transparent decompression extension

        DOS/FAT/NT Filesystems  --->

                <M> VFAT (Windows-95) fs support

                <*> NTFS file system support

                        [*]   NTFS write support

        [*] Network File Systems  --->

                <M>   SMB file system support (OBSOLETE, please use CIFS)        #支持与windows共享的连接

                <*>   CIFS support (advanced network filesystem, SMBFS successor)

        -*- Native language support  --->

                (UTF-8) Default NLS Option

                <M>   Codepage 437 (United States, Canada)

                <*>   Simplified Chinese charset (CP936, GB2312)

                 <*>   Traditional Chinese charset (Big5)                

                <M>   ASCII (United States)

                <M>   NLS ISO 8859-1  (Latin 1; Western European Languages)

                <*>   NLS UTF-8

Avatar_small
cutebt 说:
2011年5月28日 09:21

Pentium-Pro 不会吧。。这么旧的cpu...


登录 *


loading captcha image...
(输入验证码)
or Ctrl+Enter