📄 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 + -