LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 05-06-2006, 12:52 AM   #1
adityavpratap
Member
 
Registered: Dec 2004
Location: Hyderabad, India
Distribution: Slackware 13, Ubuntu 12.04
Posts: 440

Rep: Reputation: 32
Having problems compiling kernel 2.6.16


Hi all,
I am trying to compile the kernel 2.6.16 as per the method delineated here -
http://www.linuxquestions.org/questi...d.php?t=127095
extracted the kernel source to /usr/src/linux-2.6.16/
then from /usr/src I gave the following commands

$ rm -f linux
$ ln -s linux-2.6.16 linux
$ cd linux
$ make mrproper
$ cp /usr/src/linux-2.4.9/.config /usr/src/linux
$ make oldconfig
$ make xconfig

made the necessary alterations / selections here and then

$ make
$ su -c "make modules_install"
$ make install

everything goes on fine. But the vmlinuz-2.6.16 is not being added to /boot, nor are the other files.
Where am I going wrong? What else do I have to do? Any suggestions?
 
Old 05-06-2006, 01:35 AM   #2
/bin/bash
Senior Member
 
Registered: Jul 2003
Location: Indiana
Distribution: Mandrake Slackware-current QNX4.25
Posts: 1,802

Rep: Reputation: 47
Try this:
cp /usr/src/linux/arch/i386/boot/bzImage /boot/vmlinuz-2.6.16
cp /usr/src/linux/System.map /boot/System.map-2.6.16
cp /usr/src/linux/.config /boot/config-2.6.16

Edit /etc/lilo.conf and add entry for new kernel. Run lilo.

<edit> Maybe this is the problem.
$ make install
s/b
$ su -c "make install"

Last edited by /bin/bash; 05-06-2006 at 01:36 AM.
 
Old 05-06-2006, 01:36 AM   #3
Toods
Member
 
Registered: Dec 2005
Location: UK
Distribution: Slackware 12.1
Posts: 249

Rep: Reputation: 32
This is what I do which is only slightly different to yours:

I forget about creating 'symlinks' and work directly from the source directory

$ cd /usr/src/linux-2.6.16.X
$ make clean
$ make mrproper
$ cp /usr/src/linux-'old source'/.config /usr/src/linux-2.6.16.x
$ make menuconfig

Make the necessary alterations / selections here and then I build the objects and check that they are present before copying to their finial destinations. That gives me some control over what I am doing.

Also, I do not line to use 'symlinks' in the '/boot' directory.

$ make bzImage
$ make modules
$ make modules_install
$ cp /usr/src/linux-2.6.16.x/arch/i386/boot/bzImage /boot/vmlinuz-2.6.16.x
$ cp /usr/src/linux-2.6.16.x/System.map /boot/System.map-2.6.16.x

Than I edit my 'lilo.conf' file to include the following line:

image = /boot/vmlinuz-2.6.16

Than run 'lilo' and reboot to the new kernel.

I know this is a bit more long-winded than the method you describe, but you can see where you are are each stage.

Last edited by Toods; 05-06-2006 at 01:38 AM.
 
Old 05-06-2006, 11:41 AM   #4
Linux~Powered
Member
 
Registered: Jan 2004
Location: /lost+found
Distribution: Slackware 14.2
Posts: 849

Rep: Reputation: 33
The only thing your not doing is copying the the kernel to you /boot directory so LILO can find it. You need to do what /bin/bash said...

cp /usr/src/linux/arch/i386/boot/bzImage /boot/vmlinuz-2.6.16
cp /usr/src/linux/System.map /boot/System.map-2.6.16
cp /usr/src/linux/.config /boot/config-2.6.16

You don't need to edit your LILO config script if you add the symbolic links to the new kernel. Like Patrick intended.

ln -s /boot/vmlinuz-2.6.16 /boot/vmlinuz
ln -s /boot/System.map-2.6.16 /boot/System.map
ln -s /boot/config /boot/config-2.6.16

You'll have to remove your existing links first of course. Though it's a good idea to have at least two kernels to choose from. For that you'll have to edit LILO and run /sbin/lilo when you're done.
 
Old 05-06-2006, 10:23 PM   #5
adityavpratap
Member
 
Registered: Dec 2004
Location: Hyderabad, India
Distribution: Slackware 13, Ubuntu 12.04
Posts: 440

Original Poster
Rep: Reputation: 32
Thanks to all of you for having promptly answered my querry. I am now able to boot into brand new kernel - 2.6.16. :-)
You people are just great.
XavierP > Sorry for having posted this thread twice. It was done inadvertently.
-=Graz=- > Thanks for the tip about the mouse. But instead of PS/2 I have chosen IMPS/2 in /etc/X11/xorg.conf. The mouse is working fine and scrolling too. Thanks once again.

Last edited by adityavpratap; 05-06-2006 at 10:32 PM.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Problems with compiling the kernel hardstyleFX SUSE / openSUSE 3 08-13-2006 08:02 AM
Problems Compiling Kernel KenGr Linux - General 2 01-24-2005 01:31 PM
problems compiling kernel 2.6.8.1 dominica Linux - Newbie 1 10-17-2004 06:58 AM
Problems Compiling Kernel 2.6.8.1 ernesto_lelo Linux - Newbie 18 10-16-2004 10:18 PM
Problems compiling Kernel 2.6.7 stardust2678 Linux - Software 5 07-05-2004 01:42 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 11:50 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration