Debian 64-bit kernel upgrade procedure (compile the kernel deb package)

Source: Internet
Author: User
Tags dell laptop
Debian64-bit kernel upgrade steps (compile the kernel deb package) apt-getinstallbzip2libncurses5-devkernel-packagezlib1g-devgccmakekernel-packagewgetmodule-init-toolsprocpslibncurses5-devcd/usr/src...
Debian 64-bit kernel upgrade procedure (compile the kernel deb package) apt-get install bzip2 libncurses5-dev kernel-package zlib1g-devgcc make kernel-package wget module-init-tools procps libncurses5-devcd/usr/src www.2cto.com wget http://www.kernel.org/pub/linux/kernel/v2.6/linux-2.6.35.9.tar.bz2tar-xvjf linux-2.6.35.9.tar.bz2cp/boot/config-'uname- r '/usr/src/linux-2.6.35.9 /. configThen we must configure the new kernel: cd linux-2.6.35.9make menuconfig
We need to modify the kernel configuration in at least two places. File systems-> Btrfs filesystem (EXPERIMENTAL) unstable disk format is marked before "Btrfs filesystem" <*> www.2cto.com Processor type and features-> Processor Family-> "our processor" to delete Dell laptop support and toshba Laptop support. Cut the sound card support. Cut down the Bluetooth subsystem support. Remove Wireless. Cut down the Kernel hacking.
Click "ESC" multiple times to exit and save it in include/linux/version. add a macro definition in h: # define UTS_RELEASE 2.6.35.9 make-kpkg linux-image linux-headers -- after initrd compilation is successful, execute cd .. dpkg-I linux-image-2.6.29_2.6.35.9-10.00.Custom_i386.debdpkg-I linux-headers-2.6.29_2.6.35.9-10.00.Custom_i386.deb restart, use uname-a to view the kernel version www.2cto.com after the error processing is compiled to generate a linux deb package, the first dpkg-I installed image, after installing headers, update-grub to enter/boot/grub/menu. in lst, the default first option of the Kernel item to be started is 0 ps: After the Kernel is compiled, the Kernel panic-not syncing: VFS may appear after the Kernel is started: unable to mount root fs on unknown-block () error in/boot/grub/menu. in lst, we can find that the newly added kernel may not have initrd/initrd. unknown reason the img-2.6.37.6 was not generated can be manually generated execute command mkinitramfs-o/boot/initrd. img-2.6.34.10 2.6.34.10 (/boot/initrd. the img-2.6.34.10 is the build path for this boot load file 2.6.34.10 is/lib/modules/2.6.34.10) then update-grub and then start the new kernel. then there is no problem. www.2cto.com uninstalling an installed kernel package debian. to unmount the old kernel, first check which old kernels are available and run the following command: dpkg -- get-selections | grep linux if your kernel starts with kernel, change the above linux to kernel, and then use dpkg -- purge -- force-remove-essential linux-image-XXX
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.