Compile the kernel using Gentoo

Source: Internet
Author: User

Started Gentoo on the day and found that X server could not be started. Check the log. The NVIDIA driver was not installed. Remember to install it when upgrading. I don't know why this problem occurs.

Then reinstall NVIDIA-drivers.
# Emerge NVIDIA-Drivers

An error occurred and cannot be found. config File, check, kernel 2.6.37/usr/src/linux-2.6.37-gentoo-r4 has no kernel source code, check Gentoo latest stable kernel is 39, then
# Emerge Gentoo-Sources

Install kernel 39 First. To save the trouble, compile with genkernel. After eselect, wk cannot be compiled.

Error: cocould not find source tarball:/var/Cache/genkernel/src/busybox-1.7.4.tar.bz2!

Therefore, instead of manually compiling the kernel, after the compilation is complete, the kernel panic does not understand how Gentoo can load the kernel,
Genkernel requires initrd, but manual compilation is not required. The reason for the kernel panic is that after the kernel is started up, there is no corresponding driver (module) to identify the hard disk.

Use genkernel for the moment,
# Etc-Update
Update the configuration file. Now genkernel is normal, and then install the NVIDIA driver.

You have time to study this issue.

**************************************** ****************************************

Originally, initial Ram filesystem and RAM disk support were selected during compilation. Here (Deleted)


This is selected. During the kernel startup, this small File System (mainly composed of busybox) will be mounted. After the disk driver and other drivers are loaded, start mounting the disk partition to the root file system, and the system will be ready.

During manual compilation, the initrd is not generated, so an error occurs when an error occurs.

There are two solutions:
1. If you do not use initrd, compile disks and other drivers into the kernel, and do not compile initial Ram filesystem and RAM disk support.

2. Using initrd, You can manually generate initrd, or use genkernl to generate initrd.

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.