LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware > Slackware - Installation
User Name
Password
Slackware - Installation This forum is for the discussion of installation issues with Slackware.

Notices


Reply
  Search this Thread
Old 06-30-2007, 12:03 PM   #1
lifeforce4
Member
 
Registered: May 2003
Location: 2:16:840
Distribution: Slackware, CentOS, Arch, Debian
Posts: 169
Blog Entries: 1

Rep: Reputation: 32
Installing 11.0 from DVD updating kernel to 2.6.21.5


I have successfully completed an install from the DVD I selected to install everything well besides the kernel source (it kept freezing on me at that point). I started learning how to move around KDE with the keyboard because my logitech mice for some reason will not work. I read that in kernel 2.6.X they are supported more. Well I have been reading all these things for compiling the kernel. I have downloaded 2.6.21.5.tar.bz2 and want to know should I install wait to install other things before I compile the kernel?

What I have read makes me think I am going to have to recompile and install all these other things after I update the kernel. I plan on installing GRUB 0.97, right now I start slack with the boot disk if its not in then windows boots up. Everything I have found for slackware is talking about lilo which I understand because slack comes with lilo only. Should I wait to install GRUB after the kernel upgrade? Just to make things more simple or is it easier to have grub installed and then compile?

I have 2.4.33.3 installed and I was reading about the .config file Do I really need to pull that over because its hard to start from scratch or can I do just that forget the .config file and start fresh? One thing I read said that after I do this the first time after compiling it will be easier to update the kernel to a newer one. This is a fresh install so I have not really edited slack in anyway yet besides running KDE and going through the wizard to set it up.

Here are the forums I have read or a few of the many.

http://www.linuxquestions.org/questi...threadid=49035

http://www.linuxquestions.org/questi...d.php?t=127095

http://www.linuxquestions.org/linux/...Slackware_10_1

Thank you,
Kyle
 
Old 06-30-2007, 02:20 PM   #2
BCarey
Senior Member
 
Registered: Oct 2005
Location: New Mexico
Distribution: Slackware
Posts: 1,639

Rep: Reputation: Disabled
Quote:
Originally Posted by lifeforce4
because my logitech mice for some reason will not work.
Did you run mouseconfig?

Quote:
I have downloaded 2.6.21.5.tar.bz2 and want to know should I install wait to install other things before I compile the kernel?
Depends on what the other things are. If they are slackware packages it shouldn't matter. If you are building something like kernel modules you should wait because you will need to redo them after you do a new kernel.
Quote:
Everything I have found for slackware is talking about lilo which I understand because slack comes with lilo only.
Lilo is the default in slackware, but grub ships with the distribution, you can find it in /extra.

Quote:
Should I wait to install GRUB after the kernel upgrade? Just to make things more simple or is it easier to have grub installed and then compile?
As long as you don't do both simultaneously I don't think it matters much. Personally, I'd try to get the kernel right first.

Quote:
I have 2.4.33.3 installed and I was reading about the .config file Do I really need to pull that over because its hard to start from scratch or can I do just that forget the .config file and start fresh?
A 2.4.x config file will not be very useful in compiling a 2.6.x kernel. If you want to start from a "working" config, use the one from slackware's "generic" kernel.
Quote:
One thing I read said that after I do this the first time after compiling it will be easier to update the kernel to a newer one.
When going from 2.6.x to 2.6.y you can start with your old config.

Brian
 
Old 06-30-2007, 03:48 PM   #3
lifeforce4
Member
 
Registered: May 2003
Location: 2:16:840
Distribution: Slackware, CentOS, Arch, Debian
Posts: 169

Original Poster
Blog Entries: 1

Rep: Reputation: 32
Quote:
Originally Posted by BCarey
Did you run mouseconfig?


Depends on what the other things are. If they are slackware packages it shouldn't matter. If you are building something like kernel modules you should wait because you will need to redo them after you do a new kernel.

Lilo is the default in slackware, but grub ships with the distribution, you can find it in /extra.


As long as you don't do both simultaneously I don't think it matters much. Personally, I'd try to get the kernel right first.


A 2.4.x config file will not be very useful in compiling a 2.6.x kernel. If you want to start from a "working" config, use the one from slackware's "generic" kernel.

When going from 2.6.x to 2.6.y you can start with your old config.

Brian
Thanks for all the information I will try these things and see how it works out.

Kyle

[Edit] Alright well I played around with the mouseconfig. I remember doing that at install I guess I just selected the wrong mouse. Now its working well at least my wired one is. I have been reading people were having problems with the MX700 from logitech. I will work on that later just wanted to get the mouse working. Thanks a lot. Now time to try an compile 2.6.21.5 lol hopefully it works if not guess I will just format and try again. Trial and error best way to learn.

Last edited by lifeforce4; 06-30-2007 at 04:47 PM.
 
Old 06-30-2007, 06:10 PM   #4
H_TeXMeX_H
LQ Guru
 
Registered: Oct 2005
Location: $RANDOM
Distribution: slackware64
Posts: 12,928
Blog Entries: 2

Rep: Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301
have you tried 'xorgsetup' ?
 
Old 06-30-2007, 06:58 PM   #5
lifeforce4
Member
 
Registered: May 2003
Location: 2:16:840
Distribution: Slackware, CentOS, Arch, Debian
Posts: 169

Original Poster
Blog Entries: 1

Rep: Reputation: 32
Quote:
Originally Posted by H_TeXMeX_H
have you tried 'xorgsetup' ?
No never heard of xorgsetup is that to configure the mouse? Or something about the kernel?

I have a question if I dont have lilo or grub installed can I still do this for updating the kernel?

Here is all the commands I think I would need and the order in which I have to put them from my understanding. This is having the kernel .tar.bz2 file on my /dev/sda1 usb drive to start off.

Code:
/dev/sda1# tar xjvf linux-2.6.21.5.tar.bz2 /usr/src
/dev/sda1# cd /usr/src/linux-2.6.21.5

Do I need to copy some .config file to the /linux-2.6.21.5 dir or can I just do this?

/usr/src/linux-2.6.21.5# make menuconfig
/usr/src/linux-2.6.21.5# make dep
/usr/src/linux-2.6.21.5# make clean
/usr/src/linux-2.6.21.5# make bzImage
/usr/src/linux-2.6.21.5# make             //Do I need this what does this make do?
/usr/src/linux-2.6.21.5# make install     //Moves the files if I dont have lilo wont matter if it tries to update it right?
/usr/src/linux-2.6.21.5# make modules
/usr/src/linux-2.6.21.5# make modules_install
/usr/src/linux-2.6.21.5# reboot
Now that should change everything to the new 2.6.x kernel correct? Did I leave something out that I need to add?

Thanks,
Kyle
 
Old 06-30-2007, 08:12 PM   #6
H_TeXMeX_H
LQ Guru
 
Registered: Oct 2005
Location: $RANDOM
Distribution: slackware64
Posts: 12,928
Blog Entries: 2

Rep: Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301
'xorgsetup' sets up xorg (xserver). Run it when xserver is down and see if it detects the mouse properly.
 
Old 06-30-2007, 08:41 PM   #7
lifeforce4
Member
 
Registered: May 2003
Location: 2:16:840
Distribution: Slackware, CentOS, Arch, Debian
Posts: 169

Original Poster
Blog Entries: 1

Rep: Reputation: 32
Quote:
Originally Posted by H_TeXMeX_H
'xorgsetup' sets up xorg (xserver). Run it when xserver is down and see if it detects the mouse properly.
Well I did mouseconfig and saw I selected the wrong one when I was installing slackware. Now my wired mouse works yay but my Logitech MX700 does nothing but movie up and down when I move it right and left. lol I read some where on here about that problem once so I have to search for it. but first since the wired one is working I need to get the kernel updated. I will how ever try xorgsetup before I startx next time I load linux.

Thanks,
Kyle
 
Old 06-30-2007, 09:39 PM   #8
H_TeXMeX_H
LQ Guru
 
Registered: Oct 2005
Location: $RANDOM
Distribution: slackware64
Posts: 12,928
Blog Entries: 2

Rep: Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301
I had similar problem with my Logitech mice (both of them) ... it only happened on 2.4.x kernels, and I am unsure to what the cause is as they work fine in DSL (on a 2.4.x kernel there).

Check which kernel version you are running with 'uname -r'.
 
Old 06-30-2007, 09:49 PM   #9
lifeforce4
Member
 
Registered: May 2003
Location: 2:16:840
Distribution: Slackware, CentOS, Arch, Debian
Posts: 169

Original Poster
Blog Entries: 1

Rep: Reputation: 32
Quote:
Originally Posted by H_TeXMeX_H
I had similar problem with my Logitech mice (both of them) ... it only happened on 2.4.x kernels, and I am unsure to what the cause is as they work fine in DSL (on a 2.4.x kernel there).

Check which kernel version you are running with 'uname -r'.
I know I am running 2.4.33.3 thats why I am trying to compile the 2.6.21.5 so problems are less. But I think their might be to much information and ways to go about doing this as it is confusing me to death what commands I need to run and how I need to set my system up for prep.

Thanks,
Kyle
 
Old 06-30-2007, 11:09 PM   #10
H_TeXMeX_H
LQ Guru
 
Registered: Oct 2005
Location: $RANDOM
Distribution: slackware64
Posts: 12,928
Blog Entries: 2

Rep: Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301
It should compile like any other kernel. See the slackbook (in my sig) for more ... it has a decent guide to compiling.

What I would do is:
1) run 'make mrproper' on the kernel source
2) copy in a .config file, perhaps from the Slackware 2.6.17.13 in the '/extra' directory of the install CD/DVD
3) run 'make oldconfig'
4) run 'make menuconfig' and set things up like you want (see the kernel compile thread)
5) run 'make'
6) install the kernel manually like it says in the slackbook
7) run 'make modules_install'
8) if you run lilo, update '/etc/lilo.conf'
9) run '/sbin/lilo'
10) reboot, and cross your fingers ...
 
Old 07-01-2007, 04:52 PM   #11
lifeforce4
Member
 
Registered: May 2003
Location: 2:16:840
Distribution: Slackware, CentOS, Arch, Debian
Posts: 169

Original Poster
Blog Entries: 1

Rep: Reputation: 32
Quote:
Originally Posted by H_TeXMeX_H
It should compile like any other kernel. See the slackbook (in my sig) for more ... it has a decent guide to compiling.

What I would do is:
1) run 'make mrproper' on the kernel source
2) copy in a .config file, perhaps from the Slackware 2.6.17.13 in the '/extra' directory of the install CD/DVD
3) run 'make oldconfig'
4) run 'make menuconfig' and set things up like you want (see the kernel compile thread)
5) run 'make'
6) install the kernel manually like it says in the slackbook
7) run 'make modules_install'
8) if you run lilo, update '/etc/lilo.conf'
9) run '/sbin/lilo'
10) reboot, and cross your fingers ...
Humm I just tried to tar the file but I kept getting this....
Code:
/FAT32-DATA/:# tar xjvf linux-2.6.21.5.tar.bz2 /usr/src/
tar: /usr/src: not found in archive
tar: error exit delayed from previous errors.
I will need to be in the directory that has the untar linux kernel correct? so if that tar did work I would then #cd /usr/src and run the make commands from there? Also I am not seeing my DVD drive so I think I have to mount it... I am still giving it a go before I start asking about getting the drive working.

I hope i get this kernel installed because if I don't keep messing with the system it will freeze and I then need to do a cold reboot.

Thanks you,
Kyle
 
Old 07-01-2007, 05:29 PM   #12
H_TeXMeX_H
LQ Guru
 
Registered: Oct 2005
Location: $RANDOM
Distribution: slackware64
Posts: 12,928
Blog Entries: 2

Rep: Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301
You can build the kernel anywhere. The right command to extract it to '/usr/src' (if that's where you choose to build it) is:

Code:
tar -xjf linux-2.6.21.5.tar.bz2 -C /usr/src
 
Old 07-01-2007, 05:40 PM   #13
lifeforce4
Member
 
Registered: May 2003
Location: 2:16:840
Distribution: Slackware, CentOS, Arch, Debian
Posts: 169

Original Poster
Blog Entries: 1

Rep: Reputation: 32
Quote:
Originally Posted by H_TeXMeX_H
You can build the kernel anywhere. The right command to extract it to '/usr/src' (if that's where you choose to build it) is:

Code:
tar -xjf linux-2.6.21.5.tar.bz2 -C /usr/src
Oh ok thank you I will try that. I was successful on figuring out how to get the DVD mounted :-D now to install grub for the next step. That will be after I get this kernel working. I have to keep rebooting my system. the laptop is being used right now.

Thanks
Kyle

Alright seems like everything is working but I cant fine the .config file in the /extra dir of the dvd and when I check the linux-2.6.17.13 dir it is just tgz .asc and .txt files. Is tgz the same as a tar file, a compressed?

Last edited by lifeforce4; 07-01-2007 at 06:07 PM.
 
Old 07-01-2007, 08:03 PM   #14
H_TeXMeX_H
LQ Guru
 
Registered: Oct 2005
Location: $RANDOM
Distribution: slackware64
Posts: 12,928
Blog Entries: 2

Rep: Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301
It's short for tar.gz, the .config file is inside there, and is hidden, hence the '.' before it.
 
Old 07-01-2007, 10:41 PM   #15
lifeforce4
Member
 
Registered: May 2003
Location: 2:16:840
Distribution: Slackware, CentOS, Arch, Debian
Posts: 169

Original Poster
Blog Entries: 1

Rep: Reputation: 32
Quote:
Originally Posted by H_TeXMeX_H
It's short for tar.gz, the .config file is inside there, and is hidden, hence the '.' before it.
Ok so is there a way for me to view hidden files? Sorry I am trying to pull over my knowledge from windows which is a bad idea. I guess I need to understand a little more about the Linux file structure to use it properly.

Thank you for all the help.

Kyle
 
  


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
Installing RHEL off non-boot DVD using external DVD ROM yunus.raza Red Hat 2 12-30-2009 10:00 PM
Updating to SP1 With DVD ? nuro305 SUSE / openSUSE 1 06-23-2007 03:31 PM
Fedora Core 6, Updating Kernel = Kernel panic anon1234 Linux - Newbie 2 05-01-2007 03:21 PM
Updating / installing new drivers. ellion Linux - Newbie 5 05-15-2006 09:20 PM
Updating and installing Lucasite Red Hat 1 03-04-2004 05:06 PM

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

All times are GMT -5. The time now is 10:12 PM.

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