Linux re-compile the kernel

Source: Internet
Author: User

Linux re-compile kernel 1. linux kernel 1. check the Linux kernel version [plain] uname-r 2. download the corresponding linux kernel https://www.kernel.org/pub/linux/kernel/ and unzip the kernel folder to/usr/src/[plain] cd/usr/src/linux *** (your kernel folder) # make menuconfig the following error occurs: HOSTCC scripts/basic/fixdep HOSTCC scripts/basic/docproc HOSTCC scripts/kconfig/conf. o HOSTCC scripts/kconfig/kxgettext. o *** Unable to find the ncurses librariesor the *** required header files. * ** 'make menuconfig' requires thencurses libraries. * ***** Install ncurses (ncurses-devel) andtry again. * ** make [1]: *** [scripts/kconfig/dochecklxdialog] Error1 make: * ** [menuconfig] Error 2 prompt missing ncurses library apt-get install libncurses5-dev 2 # make xconfig CHECK qt * Unable to find the QT4 tool qmake. trying to useQT3 ** Unable to find any QT installation. please make surethat * the QT4 or QT3 development package is correctlyinstalled and * either qmake can be found or install pkg-config orset * the QTDIR environment variable to the correctlocation. * sed <scripts/kconfig/lkc_proto.h> scripts/kconfig/lkc_defs.h's/P (\ ([^,] * \),. */# define \ 1 (\ * \ prop P)/'hostcc scripts/kconfig/kconfig_load.omake [1]: *** No rule to make target 'scripts/kconfig /. tmp_qtcheck', needed by 'scripts/kconfig/qconf. O '. stop. make: *** [xconfig] Error 2 prompt missing qt Development Environment apt-get install qt4-dev-tools # make xconfig CHECK qt/usr/bin/moc-I scripts/kconfig/qconf. h-oscripts/kconfig/qconf. moc HOSTCXXscripts/kconfig/qconf. o HOSTLD scripts/kconfig/qconfscripts/kconfig/qconf KconfigNo protocol specifiedqconf: cannot connect to X server: 0.0 make [1]: *** [xconfig] Error 1 make: * ** [xconfig] Error 2 3. solve the problem by continuing to [plain] # sudo make menuconfig # select the module below # Networking support-> # Networking options-> # Network packet filtering framework (Netfilter)-> # IP: netfilter Configuration 4. recompile the system (For A Long Time) [plain] sudo make all 5. compile the module [plain] sudo make modules_install. Here the error [plain] # make menuconfig appears and enter Loadable module support, select Enable loadable module support. You can continue to compile the module [plain] sudo make modules_install [plain] sudo make install

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.