LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   [HELP] make menuconfig problem (https://www.linuxquestions.org/questions/linux-newbie-8/%5Bhelp%5D-make-menuconfig-problem-827265/)

aicrop 08-19-2010 11:50 AM

[HELP] make menuconfig problem
 
hello! when i tried to type "make menuconfig" in my kernel directory
this is what i get
http://i913.photobucket.com/albums/a...g62/header.jpg

my ncurses are installed and latest according to the terminal when i tried updating it using "yum install ncurses"

please help me i dont have any idea on what to do next

Kenny_Strawn 08-19-2010 12:07 PM

After completing the menuconfig (or xconfig [requires Qt]), the next step is this command:

Code:

make dep && make clean && make bzImage && make modules
make dep actually builds the dependencies needed to build the kernel and make clean cleans up. make bzImage actually builds the kernel image itself and make modules builds, just as it says, the *.ko files known as loadable modules.

Now this:
Code:

cp linux-2.6.32.5/arch/x86/boot/bzImage /boot/vmlinuz
make modules_install

You need to copy the kernel image (which is what cp does) to /boot and then install the modules to /lib/modules, which is what make modules_install does.

Now, after the modules are installed, this:

Code:

su -c yum install initramfs-tools
mkinitramfs /boot/initrd.img 2.6.32.5

You need to install initramfs-tools before you can continue (that's obviously what yum does). What mkinitramfs does is build a ramdisk image needed for the kernel to interact with memory. Without it, the kernel image won't boot.

EDIT: One more thing:

Code:

su -c update-grub
Now, you're all set!

bathory 08-19-2010 12:08 PM

Hi,

You need the ncurses-devel package as make complains that you don't have the header files

Regards

Kenny_Strawn 08-19-2010 12:12 PM

Or, to use the xconfig command:

Code:

su -c yum install libqt3-mt-devel
Xconfig is much more newbie-friendly than menuconfig.


All times are GMT -5. The time now is 04:07 PM.