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