The Debian compiler kernel supports "large" memory.

Source: Internet
Author: User
The Debian compiling kernel supports "large" memory-the Linux Release Technology-Debian information. The following is a detailed description. Environment: Debian testing/lenny 2.6.26-1-486
Cause: the default kernel does not support large memory. If it is larger than 1 GB, it will be processed as 1 GB?
Reference: http://www.howtoforge.com/kernel_compilation_debian_etch

Details:

1. install required tools
$ Su-root
# Apt-get install kernel-package libncurses5-dev fakeroot wget bzip2 build-essential


2. Download the kernel source code
Download the required version source code to http://www.kernel.org/pub/linux/kernel/v2.6
2.6.26.5 under me
# Cd/usr/src
# Wget http://www.kernel.org/pub/linux/... ux-2.6.26.5.tar.bz2
# Tar xf linux-2.6.26.5.tar.bz2
# Cd linux-2.6.26.5
PS: refer to the patch selection mentioned in the article. I have not found any patch required yet.

3. Configure the kernel
# Make clean & make mrproper
# Cp/boot/config-2.6.26-1-486./. config (copy the current Kernel configuration and modify it on this basis)

# Make menuconfig

The. config configuration is automatically imported.
Select
Processor type and features ---> High Memory Support (4 GB)
Disabled by default.
Then exit and prompt to save.
PS: I am AMD 64x2 5000 + CPU. I tried to select the CPU family K8, but I don't know the difference.

4. Build the kernel
# Make-kpkg clean
# Fakeroot make-kpkg -- initrd -- append-to-version =-k8-4gb-memory kernel_image kernel_headers
The "-- append-to-version" parameter is the text displayed after the kernel version. It must start with "-" and then be a combination of lowercase letters and numbers.
The name of the kernel generated above is: linux-image-2.6.26.5-k8-4gb-memory

Then it took me more than 50 minutes to wait.
It can save a lot of time to get rid of unnecessary drivers.

5. Install
The deb package has been generated under/usr/src /.
# Cd/usr/src
# Dpkg-I linux-image-2.6.26.5-k8-4gb-memory_2.6.26.5-k8-4gb-memory-10.00.Custom_i386.deb
# Dpkg-I linux-headers-2.6.26.5-k8-4gb-memory_2.6.26.5-k8-4gb-memory-10.00.Custom_i386.deb

The installer automatically generates initrd and updates grub.

Restart the new kernel.
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.