?? 00000005.htm
字號:
<*> RealTek RTL-8139 PCI Fast Ethernet Adapter support <BR> Ethernet (1000 Mbit) ---> <BR> [ ] FDDI driver support <BR> < > PPP (point-to-point protocol) support <BR> < > SLIP (serial line) support <BR> Wireless LAN (non-hamradio) ---> <BR> Token Ring devices ---> <BR> [ ] Fibre Channel driver support <BR> Wan interfaces ---> <BR> 網絡設備支持。主要選擇網卡類型,Ethernet (10 or 100Mbit)子選項中列出 <BR>了內核可以支持的10/100M以太網卡,這里僅列出了我們選中的2種。其他子選項都 <BR>沒有選。 <BR>4.2.12 Character devices <BR> [*] Virtual terminal <BR> [*] Support for console on virtual terminal <BR> <*> Standard/generic (8250/16550 and compatible UARTs) serial suppo <BR>rt <BR> [*] Support for console on serial port <BR> [ ] Extended dumb serial driver options <BR> [ ] Non-standard serial port support <BR> [ ] Unix98 PTY support <BR> I2C support ---> <BR> Mice ---> <BR> Joysticks ---> <BR> < > QIC-02 tape support <BR> Watchdog Cards ---> <BR> < > AMD 768 Random Number Generator support <BR> < > Intel i8x0 Random Number Generator support <BR> < > AMD 76x native power management (Experimental) <BR> < > /dev/nvram support <BR> < > Enhanced Real Time Clock Support <BR> < > Double Talk PC internal speech card support <BR> < > Siemens R3964 line discipline <BR> < > Applicom intelligent fieldbus card support <BR> Ftape, the floppy tape device driver ---> <BR> < > /dev/agpgart (AGP Support) <BR> [ ] Direct Rendering Manager (XFree86 DRI support) <BR> < > ACP Modem (Mwave) support <BR> 字符設備。這里主要就是選擇了最前面4個跟終端和串口有關的選項,以支持虛 <BR>擬終端(遠程登錄要用到),支持標準串口,支持串口控制臺。 <BR>4.2.13 File systems <BR> [*] Quota support <BR> < > Kernel automounter support <BR> <*> Kernel automounter version 4 support (also supports v3) <BR> <*> Reiserfs support <BR> [ ] Enable reiserfs debug mode <BR> [*] Stats in /proc/fs/reiserfs <BR> <*> Ext3 journalling file system support <BR> [ ] JBD (ext3) debugging support <BR> <*> DOS FAT fs support <BR> <*> MSDOS fs support <BR> < > UMSDOS: Unix-like file system on top of standard MSDOS fs <BR> <*> VFAT (Windows-95) fs support <BR> < > Compressed ROM file system support <BR> [*] Virtual memory file system support (former shm fs) <BR> <*> ISO 9660 CDROM file system support <BR> [*] Microsoft Joliet CDROM extensions <BR> [ ] Transparent decompression extension <BR> < > JFS filesystem support <BR> < > Minix fs support <BR> < > FreeVxFS file system support (VERITAS VxFS(TM) compatible) <BR> < > NTFS file system support (read only) <BR> < > OS/2 HPFS file system support <BR> [*] /proc file system support <BR> < > QNX4 file system support (read only) <BR> < > ROM file system support <BR> <*> Second extended fs support <BR> < > System V/Xenix/V7/Coherent file system support <BR> < > UDF file system support (read only) <BR> < > UFS file system support (read only) <BR> Network File Systems ---> <BR> < > Coda file system support (advanced network fs) <BR> <*> NFS file system support <BR> [*] Provide NFSv3 client support <BR> [ ] Root file system on NFS <BR> <*> NFS server support <BR> [*] Provide NFSv3 server support <BR> <*> SMB file system support (to mount Windows shares etc.) <BR> [ ] Use a default NLS <BR> < > NCP file system support (to mount NetWare volumes) <BR> Partition Types ---> <BR> Native Language Support ---> <BR> Default NLS Option: "iso8859-1" <BR> <*> Codepage 437 (United States, Canada) <BR> <*> Simplified Chinese charset (CP936, GB2312) <BR> <*> Traditional Chinese charset (Big5) <BR> 文件系統。這部分內容比較多,也很重要。首先是Quota,如果目標系統支持這 <BR>個功能,這里就要選中。然后是選擇要支持的文件系統,常用的有Reiserfs,Ext3 <BR>,FAT,ISO9660,JFS等等,可以根據情況選擇。/proc和ext2一定要選中。 <BR> 還有Network File Systems子選項,可以選擇是否支持NFS和SMB。Native Lan <BR>guage Support子選項跟所支持的語言有關,這里沒有全部列出來,我們選中了英語 <BR>和簡體、繁體中文字符集。 <BR>4.2.14 Console drivers <BR> [*] VGA text console <BR> [ ] Video mode selection support <BR> 控制臺驅動。調試的時候可以給目標系統接顯示器看一下,實際系統應該可以 <BR>不選。 <BR>4.2.15 USB support <BR> <*> Support for USB <BR> [ ] USB verbose debug messages <BR> --- Miscellaneous USB options <BR> [*] Preliminary USB device filesystem <BR> [ ] Long timeout for slow-responding devices (some MGE Ellipse UP <BR>Se <BR> --- USB Host Controller Drivers <BR> <*> UHCI Alternate Driver (JE) support <BR> <*> OHCI (Compaq, iMacs, OPTi, SiS, ALi, ...) support <BR> --- USB Device Class drivers <BR> < > USB MIDI support <BR> <*> USB Mass Storage support <BR> [*] USB Mass Storage verbose debug <BR> [ ] Freecom USB/ATAPI Bridge support <BR> [ ] ISD-200 USB/ATA Bridge support <BR> [ ] Microtech CompactFlash/SmartMedia support <BR> < > USB Modem (CDC ACM) support <BR> < > USB Printer support <BR> --- USB Human Interface Devices (HID) <BR> <*> USB Human Interface Device (full HID) support <BR> --- Input core support is needed for USB HID input layer or HID <BR>BP <BR> [ ] /dev/hiddev raw HID device support <BR> --- USB Imaging devices <BR> < > USB Kodak DC-2xx Camera support <BR> < > USB Scanner support <BR> < > Microtek X6USB scanner support <BR> --- USB Multimedia devices <BR> --- Video4Linux support is needed for USB Multimedia device suppo <BR>rt <BR> --- USB Network adaptors <BR> --- USB port drivers <BR> USB Serial Converter support ---> <BR> --- USB Miscellaneous drivers <BR> < > Texas Instruments Graph Link USB (aka SilverLink) cable suppo <BR>rt <BR> < > USB LCD device support <BR> USB支持。如果沒有使用USB設備,這部分可以不選。要使用USB盤,一定要選中 <BR>USB Mass Storage support。其余很多選項我也不清楚是干什么用的。 <BR>4.3 提示 <BR>4.3.1 EXTRAVERSION <BR> 在系統中使用uname可以獲得系統版本信息。比如Redhat 9: <BR> [root@lips root]# uname -r <BR> 2.4.20-8 <BR> [root@lips root]# <BR> 返回結果表示了Redhat修訂后的內核版本號。前面我們提到過,這個“-8”就 <BR>是Redhat附加在標準內核版本號后面的一個信息。 <BR> 在一個運行LiPS的系統中,我們也需要確定當前使用的內核版本,通過版本信 <BR>息來知道這個內核的配置,也可以通過在標準內核版本后面附加特定的編碼來實現 <BR>。 <BR> /usr/src/linux-2.4/Makefile中的變量EXTRAVERSION可以幫助我們達到這個目 <BR>標。下面是Makefile文件的最前面幾行內容: <BR> VERSION = 2 <BR> PATCHLEVEL = 4 <BR> SUBLEVEL = 20 <BR> EXTRAVERSION = -8 <BR> KERNELRELEASE=$(VERSION).$(PATCHLEVEL).$(SUBLEVEL)$(EXTRAVERSION) <BR> 現在KERNELRELEASE的值就是2.4.20-8。這個信息會被編譯到內核中,uname工 <BR>具會從內核文件中提取出版本號。如果將Makefile做一些修改,比如, <BR> EXTRAVERSION = -8-R2Lips <BR> 那么我們可以得到內核版本號2.4.20-8-R2Lips,表示為了創建LiPS而編譯的一 <BR>個特定配置的內核,這個內核是以2.4.20-8為基礎,R2Lips(Release 2 Lips)即 <BR>第二個版本。 <BR> 對Makefile的修改要在編譯內核之前完成。 <BR>4.3.2 .config <BR> 內核配置(make menuconfig)完成之后,會詢問: <BR> Do you wish to save your new kernel configuration? <BR> < Yes > < No > <BR> 回答Yes,配置信息會保存在/usr/src/linux-2.4/.config文件中。注意以“. <BR>”開頭的文件是個隱藏文件,要用ls –a才看的到。.config是個文本文件,內容類 <BR>似下面: <BR> # <BR> # Loadable module support <BR> # <BR> CONFIG_MODULES=y <BR>
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -