Install a new kernel for the linux release

Source: Internet
Author: User
Install the new kernel for the linux release. my machine is ThinkpadT420i and the system is debianwheezy. [cpp] 1, compile Kernel: makemenuconfigmake-jnsudomakemodules_installsudomakeheaders_installsudo... install the new kernel for the linux release. my machine is Thinkpad T420i and the system is debian wheezy. [cpp] 1. compile Kernel: make menuconfig make-jn sudo make modules_install sudo make headers_install sudo make install sudo update-grub (Ubuntu only) NOTE: ERROR: P: installing debian theme... cp: cannot stat '/usr /Share/syslinux/themes/debian-wheezy/extlinux/memtest. bin': No such file or directory FIXED: sudo touch/boot/memtest. bin 2. restart the system and start it with the self-compiled Kernel. 3. if initrd does not generate initrd. img, which must be manually generated and added to grub. cfg sudo mkinitramfs-o/boot/initrd. img-3.2.34 3.2.34-LEE @ Ts (new module directory name/lib/modules/3.2.34-LEE @ Ts/) added to grub. cfg: if sudo update-grub is executed, the following information is added to grub. if not, you can copy the previous one after executing sudo update-grub. Add initrd. img to grub. cfg: menuentry "Ubuntu 10.10, kernel 3.2.34 (on/dev/sda1)" {insmod part_msdos insmod ext2 set root = '(hd0, msdos1) 'search -- no-floppy -- fs-uuid -- set xxxxxxxxxxx linux/boot/vmlinuz-3.2.34 root = UUID = xxxxxxxxxxxx ro quiet splash ### Add the initrd ### initrd/boot/initrd. img-3.2.34} where xxxxxxxxx is UUID, obtained by ls-l/dev/disk/by-uuid. 4. install source and headers: (the current directory is the kernel compiled just now) export OBJ =/tmp/obj-linux-source mkdir $ OBJ cp Makefile $ OBJ/cp Module. symvers $ OBJ/cp-rf. /include/$ OBJ/mkdir-p $ OBJ/arch/x86/kernel/cp-f arch/x86/Makefile * $ OBJ/arch/x86/cp-f arch/x86 /kernel/asm-offsets * $ OBJ/arch/x86/kernel/cp-rf arch/x86/include/$ OBJ/arch/x86/cd scripts /; make bin2c pnmtologo; cd ..; cp-rf scripts/$ OBJ/mv $ OBJ // usr/src/linux-source-your-version cd/usr/src/rm linux -Kbuild-3.2; ln-s/usr/src/linux-source-your-version linux-kbuild-3.2; cd/usr/lib/rm-rf linux-kbuild-3.2/ln-s/usr/src/linux-source-your-version linux-kbuild-3.2 cd/lib/modules/new-modules/rm build source ln-s/usr/src/linux-source-your-version build ln-s/usr/src/linux-source-your-version source 5, cleanup-delete the created "/boot/memtest. bin "-delete old kernel rm memtest86 +. bin config-3.2.0-4-amd64 initrd. Img-3.2.0-4-amd64 System. map-3.2.0-4-amd64 vmlinuz-3.2.0-4-amd64-change link/initrd. img->/boot/initrd. img-3.2.34-LEE @ Ts/vmlinuz->/boot/vmlinuz-3.2.34-LEE @ Ts-delete old/lib/modules/xxxx some software (e.g. virtual box) you may have created a directory with only a few files in it. do not delete them. delete the version you are currently using. -sudo updata-grub2 6, third-party driver in addition to the installation of the Kernel itself, but also need to install the header file, in order to compile the third-party driver. sometimes, in your own Kernel configuration, you must disable the CONFIG_MODVERSIONS option. Otherwise, the WIFI driver module cannot be loaded because some symbols cannot be found. [*] Enable loadable module support ---> [] Module versioning support <--- not selected. if the compiled Kernel is selected, recompile and install it. http://sudolee.googlecode.com/files/92ce_se_de_linux_mac80211_0005.1230.2011.tar.gz Sudo make install sudo make modules_install sudo make headers_install manual loading: sudo modprobe rtl8192se-end-
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.