Installing 11.0 from DVD updating kernel to 2.6.21.5
Slackware - InstallationThis forum is for the discussion of installation issues with Slackware.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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.
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.
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.
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?
'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.
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 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.
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 ...
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.
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.
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.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.