LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 06-25-2004, 04:12 AM   #1
Battousai
LQ Newbie
 
Registered: Jun 2004
Location: Deux-Montagnes
Distribution: Gentoo 1.4/Slackware 10 RC2
Posts: 19

Rep: Reputation: 0
Installing New Kernel


Ok i'm sure you linux guru's get this all the time.. but hey we have to start somewhere right

ok i installed slackware 10 RC2 and well i want to update the kernel to 2.6.7 and well... i downloaded the linux-2.6.7.tar.bz2 file... and well can someone guide me step by step on what to do now i'm totally lost .... and btw can someone help me fix my internet with slackware.. i got it configed in ifconfig.. i can ping my GW but i can't access the internet... any ideas


sorry for the two different problems in one thread.... thanks for helping me
 
Old 06-25-2004, 04:26 AM   #2
six6
Member
 
Registered: Jun 2004
Location: In Adamantine Chains and penal Fire
Distribution: Debian Sarge & Ubuntu Breezy
Posts: 107

Rep: Reputation: 16
About accessing the internet, maybe the OS can't find any nameservers to interpret ip addresses. Try

ping 204.147.80.1 -c4

and if you have no packet loss, this is almost definitely your issue. Check in /etc/resolv.conf (at least in Debian and Mandrake, don't know about Slack, but I'm guessing it's the same). If the file is empty, that's the issue. Mine has this in it:

nameserver 204.147.80.1
nameserver 205.171.3.65

You'll need root access to write the file. Your isp should provide your nameservers for you. I don't know if you could just add my nameservers to your file, but you can try. Good luck. Sorry if this isn't the solution.
 
Old 06-25-2004, 04:32 AM   #3
Battousai
LQ Newbie
 
Registered: Jun 2004
Location: Deux-Montagnes
Distribution: Gentoo 1.4/Slackware 10 RC2
Posts: 19

Original Poster
Rep: Reputation: 0
thanks for replying so quickly... i tried the command and i got 100% packet loss... so i'm lost lol
 
Old 06-25-2004, 04:45 AM   #4
six6
Member
 
Registered: Jun 2004
Location: In Adamantine Chains and penal Fire
Distribution: Debian Sarge & Ubuntu Breezy
Posts: 107

Rep: Reputation: 16
what does ifconfig report?

Edit: run ifconfig as root. And maybe try pinging 64.114.43.114 (a google address).

About step-by-step kernel configuration, I found http://www.digitalhermit.com/linux/K...ml#WHY-REBUILD really helpful.

Last edited by six6; 06-25-2004 at 04:50 AM.
 
Old 06-25-2004, 09:17 AM   #5
srichand
Member
 
Registered: May 2004
Location: Bangalore, India
Distribution: Fedora Core 2 (modified), Debian
Posts: 34

Rep: Reputation: 15
heres about compiling a new kernel

first off, copy the .bz2 to /usr/src (as superuser of course..)

# tar -jxvf kernel-2.6.7.tar.bz2

list of files will pass by

ln -s kernel-2.6.7 linux
this will create a symbolic link to the kernel sources directory

now

# cd linux

now, we need to configure the new kernel before compiling it
if you're running Xwindows (you most likely are)
do a
# make xconfig

here, you get to select what modules you would like to install in the kernel, along with other options..

if for some reason, you can't run make xconfig, do a
# make menuconfig

this will give you a ncurses based menu driven app which will help you select which configuration options you want.


then
# make dep
and
# make clean

this prepares the stage for the kernel compilation

# make bzImage

note the capital 'I` in bzImage

then do a
# make modules
and finally a
# make modules_install

the kernel is now complete, but we need an initrd image to go with it

# /sbin/mkinitrd initrd-2.6.7.img 2.6.7

finally copy the arch/i386/bzImage and initrd-2.6.7.img files to /boot and add your entries to the grub conf file

# cp arch/i386/bzImage /boot/kernel-2.6.7.img
# cp initrd-2.6.7 /boot/initrd-2.6.7

add the following lines to /boot/grub/grub.conf

title Kernel 2.6.7
root (hdx,y) -- where x is the hard drive number, and y the partition number . You can use the entry from the original kernel entry
kernel /boot/kernel-2.6.7.img
initrd /boot/initrd-2.6.7

reboot and select the new kernel to boot into it

compile time :
Heavily depends on your system
on my P133 with 32 mb of ram, it took a little over 5 hours to complete.. on my Duron 1200 with 256 mb, it took about 15 minutes..

Best of luck !
Srichand
 
Old 06-25-2004, 10:23 AM   #6
Battousai
LQ Newbie
 
Registered: Jun 2004
Location: Deux-Montagnes
Distribution: Gentoo 1.4/Slackware 10 RC2
Posts: 19

Original Poster
Rep: Reputation: 0
thanks a bunch sirchard, i followed the steps.. and it seems to work... just when it finishes booting it says still kernel 2.4.25 but when you go into the kernel it says 2.6.7 any thought?
 
Old 07-01-2004, 02:31 AM   #7
srichand
Member
 
Registered: May 2004
Location: Bangalore, India
Distribution: Fedora Core 2 (modified), Debian
Posts: 34

Rep: Reputation: 15
what exactly do you mean by "when it finishes booting" ?
and, whats the output of uname -r when you boot into the new kernel?

Srichand
 
Old 07-01-2004, 03:33 AM   #8
Demonbane
LQ Guru
 
Registered: Aug 2003
Location: Sydney, Australia
Distribution: Gentoo
Posts: 1,796

Rep: Reputation: 47
I think by default Slackware only comes with LILO, so you probably need to update /etc/lilo.conf.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Installing Kernel 2.6.8.1 - Kernel Panic error shaun85 Linux - Newbie 10 07-16-2007 05:20 PM
Ndiswrapper - Cant find kernel sources while installing (Kernel 2.6.11) krayhze Linux - Wireless Networking 6 05-23-2006 07:30 AM
Kernel panic problem with all of my kernels after installing new kernel nosebleed Linux - Software 2 04-14-2006 10:48 PM
Kernel panic when installing a new Kernel NeeD_ResT Debian 2 10-16-2004 09:10 PM
installing 2.2.10 kernel on Redhat 8.0 (kernel 2.4.18-20) sumit_nus Linux - Software 5 07-31-2003 04:06 AM


All times are GMT -5. The time now is 06:57 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration