How to configure the latest linux-2.6.6 kernel

Source: Internet
Author: User
Article title: hands-on instructions on how to configure the latest linux-2.6.6 kernel. Linux is a technology channel of the IT lab in China. Includes basic categories such as desktop applications, Linux system management, kernel research, embedded systems, and open source.
Download kernel source code
Http://www.kernel.org/pub/linux/kernel/v2.6/linux-2.6.6.tar.gz
Place it under/usr/src/
Decompress tar zxvf linux-2.6.6.tar.gz
# Cd linux-2.6.6
# Make menuconfig (if X11 is installed with the Xconfig command available), you must select your NIC driver to configure the kernel!
If no value is selected, the * M is compiled into the module form and can be inserted manually in the future.
  
Upgrade module-init-tools software package
To compile and run a new kernel normally, you need to upgrade some software packages. The information is in the Documentation/Changes file under the source code directory. Please select the upgrade based on your actual situation.
In particular, because the modutils toolkit under 2.4.x is no longer suitable for the new 2.6.x kernel, you must upgrade it to the module-init-toolstool package. I download the module-init-tools-3.0.tar.gz source code package:
  
Http://www.kernel.org/pub/linux/kernel/people/rusty/modules/module-init-tools-3.0.tar.gz
  
Next, follow these steps to install the module-init-tools toolkit:
  
Tar-zxvf module-init-tools-3.0.tar.gz
  
Under the module-init-tools-3.0 Directory,
  
# Configure -- prefix =/
# Make moveold
# Make all install
#./Generate-modprobe.conf/etc/modprobe. conf
  
Command "make moveold" will change the system's original modutils tool program to "*. old" (for example, lsmod. old, etc.). NOTE! This is an important step. do not omit it. this will allow you to continue using the original linux-2.4.x system, because the new module-init-tools toolkit in The 2.4.x system is actually dependent on the original "*. old "program to load the kernel module. if you forget this step, you can first download and install the original modutils package, and then follow the steps above to repeat it.
The new module-init-tools tool kit does not use the original/etc/modules. the conf configuration file is used, but the new configuration file/etc/modprobe is used. conf. therefore, the command ". generate-modprobe.conf/etc/modprobe. conf "to generate a new configuration file/etc/modprobe. conf.
If you use the devfs system, you also need to copy modprobe. devfs to the/etc directory.
After you upgrade the software package, the preparation is complete. next we will go to the compilation stage.
  
1. Code maturity level options
?? Code maturity level. There is only one item: prompt for development and/or incomplete code/drivers. if you want to test functions that are still in the experimental stage, such as khttpd and IPv6, you must select Y. Otherwise, you can select N.
2. Loadable module support
?? Module support. There are three items:
?? Enable loadable module support: This item is required unless you want to compile all required content into the kernel.
?? Set version information on all module symbols: Optional.
?? Kernel module loader: enables the Kernel to load required modules at startup. we recommend that you select this module.
3. Processor type and features
?? CPU type. There are a lot of content. I will not introduce them one by one. The following are some of the relevant content:
?? Processor family: Select the CPU type based on your situation.
?? High Memory Support: supports large Memory capacity. It can be 4 GB or 64 GB.
?? Math emulation: coprocessor simulation. Coprocessor is the darling of the 386 age and is no longer needed.
?? MTTR support: supported by MTTR. Optional.
?? Hierarchical Ric multi-processing support: supports Symmetric multi-processing. Unless you are rich enough to have multiple CPUs, you do not need to choose.
4. General setup
?? Here are some of the most common attributes. This part contains a lot of content. Generally, you can use the default settings. The following describes some frequently used options:
?? Networking support: network support. Required. we recommend that you select this option if no network adapter is available.
?? PCI support: supports PCI. If the PCI card is used, it is required.
?? PCI access mode: PCI access mode. Options include BIOS, Direct, and Any. select Any.
?? Support for hot-pluggabel devices: supports hot swapping devices. It is not very good to support.
?? PCMCIA/carw.support: PCMCIA/carw.support. PCMCIA is required.
?? System V IPC
?? BSD Process Accounting
?? Sysctl support: the above three types of support are related to process processing and IPC calls, mainly System V and BSD. If you are not using BSD, follow the default setting.
?? Power Management support: Power Management support.
?? Advanced Power Management BIOS support: Advanced Power Management BIOD support.
5. Memory Technology Device (MTD)
?? MTD device support. Optional.
6. Parallel port support
?? Serial port support. If you do not want to use the serial port, do not select it.
7. Plug and Play configuration
?? Plug-and-play is supported. Although plug-and-play in Linux is not as good as that in Windows currently, you can choose it. in this way, you can unplug the mouse and try plug-and-play in Linux.
8. Block devices
?? Block device support. You have to select one based on your own situation. here is a brief description:
?? Normal PC floppy disk support: General PC floppy disk support. This should be required.
?? XT hard disk support:
?? Compaq SMART2 support:
?? Mulex DAC960/DAC1100 pci raid Controller support: For RAID images.
?? Loopback device support:
?? Network block device support: supported by Network block devices. If you want to access the Internet neighbors, choose.
?? Logical volume manager (LVM) support: Logical volume management support.
?? Multiple devices driver support: supports Multiple device drivers.
?? RAM disk support: ramdisk support.
9. Networking options
?? Network options. The network protocol is configured here. There is too much content. I will not introduce it one by one. let's take a look at it. if you have some knowledge about network protocols, you should be able to understand it. If you are too lazy to check the network, use the default option (you must select the TCP/IP networking option. Let's take a look at TCP/IP, ATM, IPX, DECnet, Appletalk ...... Many protocols are supported, IPv6 is also supported, Qos and/or fair queueing is also supported, and kHTTPd is also supported, but these are still in the experimental phase.
10. Telephony Support
?? Phone support. What is this? Let me check the help. it turns out that Linux supports phone cards, so that you can use a common phone to provide voice services on an IP address. Remember, the phone card has nothing to do with modem.
11. ATA/IDE/MFM/RLL support
?? This is supported by hard disks, optical drives, tapes, and floppy disks with many interfaces. use the default options. if you use special devices, such as PCMCIA, find the corresponding options.
12. SCSI support
?? Support for SCSI devices. I don't have a SCSI device, so I don't need to select it. if you use a SCSI hard drive, optical drive, tape, and other devices, you can find them yourself.
13. IEEE 1394 (FireWire) support
?? What is this? I have never seen any earlier version. let's look at the help. I used to use Fireware hardware to improve the performance of the serial bus. I did not select it.
14. I2O device support
?? This is not clear. in the help section, it is said that the I2O Interface Adapter is required to support this function. it is used in intelligent Input/Output (I2O) system interfaces and hardware is required.
15. Network device support
?? Network device support. I have selected the protocol above. now I have to select a device. as you can imagine, the content must be much more. Fortunately, it is probably classified into ARCnet devices, Ethernet (10 or 100 Mbit), Ethernet (1000 Mbit), and Wireless LAN (non-hamradio), Token Ring device, Wan interfaces, and PCMCIA network device support. I use 10/100 M ethernet. it seems that I only need to select this one. Or 10/100 M Ethernet device familiar, although the content is much, at a glance can see my RealTeck RTL-8139 PCI Fast Ethernet Adapter support, in order to avoid trouble, compiled into the kernel is good, if M is not selected, select Y. Be patient. Generally, you can find your own network card. If not, you have to go to the vendor to get the driver.
16. Amateur Radio support
?? If you don't understand it, you should configure amateur wireless broadcasting. no, no.
17. IrDA (infrared) support
?? This requires infrared support.
18. ISDN subsystem
?? If you use ISDN to access the internet, this is essential. I have done it myself.
19. Old CD-ROM drivers (not SCSI, not IDE)
?? Do really thoughtful, originally those who are not SCSI/IDE optical drive who is still using AH, choose it, anyway, I am using the IDE CD-ROM, do not choose this.
20. Character devices
?? Character device. This content is too much. use the default settings first, and modify the content as needed. Let's introduce the main categories:
?? I2C support: I2C is a low-speed serial bus protocol used in micro-control applications promoted by Philips. This option is required if you want to select the following Video For Linux.
?? Mice: Mouse. Now you can select bus, serial port, PS/2, C & T 82C710 mouse port, and PC110 digitizer pad as needed.
?? Joysticks: handle. Even if you drive the handle in Linux, it doesn't make much sense, and there are too few games.
?? Watchdog Cards: Although it is called Cards, it can be implemented with pure software, and of course there are hardware. If you select this option, a file named watchdog will be created under your/dev, which can record the running status of your system, it takes about 1 minute to restart the system. With this file, you can restore the system to the state before restart.
?? Video For Linux: audio/Video cards are supported.
?? Ftape, the floppy tape device driver:
?? PCMCIA character device support:
21. File systems
?? File system. There are too many contents. the old method is to modify the content based on the default options. This section describes the following items:
?? Quo
Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.