Ubuntu6.10 compile the kernel-general Linux technology-Linux programming and kernel information. The following is a detailed description. Download an internal package from http://www.kernel.org/to download the package (generally the latest version, and download the complete package "F)
First, we upgrade the software (Package) Library:
Sudo apt-get update
Then we install all required software packages:
Sudo apt-get install kernel-package libncurses5-dev gcc module-init-tools make
Tar xvf linux-2.6.19.tar.bz2
Cd linux-2.6.19/
Change the file name according to the downloaded file.
Configure Compilation
Make menuconfig
Selecting "Y" (*) is to compile it into the kernel, and selecting "M" (M) to compile it into a module for dynamic kernel calling. If "N" is selected, it is not installed.
We recommend that drivers that are not often changed be compiled into the kernel, so the performance will be better.
The following is a brief description of some options.
General setup
Optimize for size (Look out for broken compilers !) Enthusiasts can select Y to get a smaller kernel.
Processor type and features
Symmetric multi-processing support if you do not have a multi-thread processor, you can select N
Processor family depends on your CPU.
For High Memory Support Memory larger than 1 GB, select "4 GB" and less than 1 GB, and do not plan to upgrade to 1 GB in the future. Select "off ".
Bus options (PCI, PCMCIA, EISA, MCA, ISA)
PCI support
PCI Express support vintage machines no PCI-E device available N
ISA support newer machines do not have an ISA Device. You can select N
Generally, N is selected as the MCA support.
NatSemi SCx200 support is generally N
PCI Hotplug Support
Support for PCI Hotplug (EXPERIMENTAL) if there is no PCI Hot swapping device, select N
Device Drivers
Block devices
Packet writing on CD/DVD media
Enable write caching (EXPERIMENTAL) If you have a burner and want to Enable the write cache function, select Y
ATA/ATAPI/MFM/RLL support
Include IDE/ATA-2 DISK support if your/boot is on the IDE hard DISK, You must select Y here, choose M none. Otherwise, the system prompts "waiting for root file system" to stop running.
If SCSI device support has a SATA hard disk, select Y.
SCSI disk support if your/boot is on the SATA hard disk, select Y.
Network device support
Bonding driver support if you want to bind a dual-nic/Multi-nic, compile the file into the kernel (*) to improve the performance of multiple NICs.
Character devices
Generally, I2C support can be Y or M.
Graphics support does not recommend compiling the Graphics card driver into the kernel ., Select M and compile it into a module to facilitate driver upgrade in the future.
Support for frame buffer devices
You can select Y for vesa vga graphics support.
Logo configuration
Bootup logo if you want to see the Linux Startup logo, select Y
Sound
Select Y for Sound card support, unless you do not have a Sound card
Add or delete other drivers as needed. deleting unnecessary Drivers Based on Machine configurations can shorten the Compilation Time. You can enter lspci or dmesg in the command line to view hardware information.
File systems
CD-ROM/DVD Filesystems
ISO 9660 CDROM file system support is generally Y
DOS/FAT/NT Filesystems
VFAT (Windows-95) fs support has a FAT32 partition. Select Y.
If NTFS file system support has NTFS partitions, select Y.
NTFS write support if you want to write the NTFS partition, select Y
Native Language Support
Simplified select Y or M for the Chinese charset (CP936, GB2312) to avoid Chinese garbled characters when reading the FAT partition.
Title Ubuntu, kernel 2.6.19 (recovery mode)
Root (hd0, 1)
Kernel/vmlinuz-2.6.19 root =/dev/hda0 ro single
Initrd/initrd. img-2.6.19
Boot
Note that the root and kernel fields must be copied to the existing content under menu. lst. Only the vmlinuz-2.6.19, initrd. img-2.6.19 can change accordingly. The content after the title can be changed at will.
Below is (hd0, 1), then you also write (hd0, 1), below write root =/dev/hda0, you also write root =/dev/hda0, only the kernel version is changed to the current compiled version.
Delete the repeated savedefault below.
Restart the computer and select a new kernel to start in GRUB. If the startup fails, you can restart and select the old kernel.
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