LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 06-18-2004, 02:06 PM   #16
Kovacs
Member
 
Registered: Jul 2003
Distribution: FreeBSD 8.2 RELEASE
Posts: 607

Rep: Reputation: 32

In make menuconfig: device drivers => usb support
 
Old 06-18-2004, 03:18 PM   #17
iZvi
Member
 
Registered: Mar 2004
Location: Valhalla
Distribution: Slackware-current, kernel 2.6.31
Posts: 284

Rep: Reputation: 35
From the menuconfig: Device drivers --> USB support --> Support for Host-side USB

Hmm I didn't see the previous reply and repeated the same

Last edited by iZvi; 06-18-2004 at 03:22 PM.
 
Old 06-18-2004, 07:19 PM   #18
subaruwrx
Member
 
Registered: Mar 2004
Distribution: Ubuntu Feisty
Posts: 641

Original Poster
Rep: Reputation: 30
So er I have to re-do the kernel compiling again?
 
Old 06-18-2004, 07:37 PM   #19
Kovacs
Member
 
Registered: Jul 2003
Distribution: FreeBSD 8.2 RELEASE
Posts: 607

Rep: Reputation: 32
Yup, basically you keep redoing it until you get the most minimal .config you can that still fully supports all the hardware you want. It takes a bit of mucking around with menuconfig and recompiling and rebooting, but at the end of the day you end up with a kick ass kernel, you've learnt a lot about what is and isn't in the kernel, and you can re-use that .config for later versions of the 2.6 kernel (so when 2.6.8 comes out you can just copy your .config to the new source tree and compile, you don't have to go through and redo all your settings in menuconfig again).
 
Old 06-19-2004, 02:14 AM   #20
subaruwrx
Member
 
Registered: Mar 2004
Distribution: Ubuntu Feisty
Posts: 641

Original Poster
Rep: Reputation: 30
Quote:
Originally posted by Kovacs
Yup, basically you keep redoing it until you get the most minimal .config you can that still fully supports all the hardware you want. It takes a bit of mucking around with menuconfig and recompiling and rebooting, but at the end of the day you end up with a kick ass kernel, you've learnt a lot about what is and isn't in the kernel, and you can re-use that .config for later versions of the 2.6 kernel (so when 2.6.8 comes out you can just copy your .config to the new source tree and compile, you don't have to go through and redo all your settings in menuconfig again).
Then if I'm satisfied with the new kernel, how do I delete the old one?

btw, I still not sure what am I doing other than just upgrading kernel. Which step is building, compiling or re-compiling kernel?
 
Old 06-19-2004, 03:36 AM   #21
SBing
Member
 
Registered: Mar 2004
Posts: 519

Rep: Reputation: 35
When you are upgrading your kernel you are configuring then building your kernel. When you type 'make clean' you are cleaning it all up ready to configure then build again.

I wouldn't bother deleting your old kernel unless you are really strapped for space (a few megabytes!)

And configuring a kernel gets easier everytime, you just learn to remember what to do, plus you'll be compiling the 2.6.x series in the same way with nearly the same options. (In a later kernel version you may want an extra option or two)

Steve
 
Old 06-19-2004, 04:46 AM   #22
subaruwrx
Member
 
Registered: Mar 2004
Distribution: Ubuntu Feisty
Posts: 641

Original Poster
Rep: Reputation: 30
Quote:
Originally posted by SBing

I wouldn't bother deleting your old kernel unless you are really strapped for space (a few megabytes!)
You mean the old kernel only about few megabytes after the upgrade? Where exactly are the old kernel files located at?
 
Old 06-19-2004, 09:37 AM   #23
XPediTioN
Member
 
Registered: Jun 2003
Location: Illinois
Distribution: Slackware 9.1
Posts: 305

Rep: Reputation: 30
I upgraded from 2.4.22 to 2.6.5 and then to 2.6.7. I have /usr/src/linux pointed to /usr/src/linux-2.6.7. If I ran the nvidia driver before changing the symlink from linux --> /usr/src/linux-2.6.5 to linux --> /usr/src/linux-2.6.7. Does it make it any difference?
I have another question. Since I have three kernel sources:
bash-2.05b# ls
2.4.22.nat.diff linux-2.4.22 linux-2.6.7 xfs-2.4.22
linux linux-2.6.5 rpm
Can I delele /usr/src/linux-2.4.22 and linux-2.6.5 and just keep 2.6.7??? will that mess up anything?? I am running out of space. I got 600 mb left (Damn Windows XP, it's using 75 GB out of my 80 GB drive).

XPediTioN
 
Old 06-19-2004, 11:33 AM   #24
reddazz
LQ Guru
 
Registered: Nov 2003
Location: N. E. England
Distribution: Fedora, CentOS, Debian
Posts: 16,298

Rep: Reputation: 77
Kerneltrap

There is a good guide at kerneltrap.org, the url is http://kerneltrap.org/node/view/799. I had never compiled a kernel before, until 2.6.6 came out and found kerneltraps guide very useful. Try to use "make xconfig" if you have kde/qt installed, I find it easier than the other methods for compiling the kernel.
 
Old 06-19-2004, 11:38 AM   #25
reddazz
LQ Guru
 
Registered: Nov 2003
Location: N. E. England
Distribution: Fedora, CentOS, Debian
Posts: 16,298

Rep: Reputation: 77
@XPediTioN

It's okay to delete them, but you may have to rerun the nvidia installer when you login again into your system. I would suggest renaming your old kernel source folders as backup files just in case you have a problem. I usually do the following for folders or files "mv file(or folder) file.bak (or folder.bak) so that if I have a problem I can revert the system to the way it was before.
 
Old 06-19-2004, 07:53 PM   #26
r_jensen11
Senior Member
 
Registered: Apr 2003
Location: Minnesota, USA
Distribution: Slack 10.0 w/2.4.26
Posts: 1,032

Rep: Reputation: 45
Quote:
Originally posted by Kovacs
afaik you don't have to do any of those if you're using the make install method, I've always compiled successfully with make && make modules_install && make install.
forgot the make modules command: here's what I do:

#make menuconfig
#make
#make modules
#make modules_install
#make install
#pico /etc/lilo.conf (Change LILO configuration)
#mv /vmlinuz /boot/vmlinuz-*Kernel version*
#mv /System.map /boot/System.map-*Kernel version*
#lilo

I like to keep my original kernel as /boot/vmlinuz so if I boot from a boot disk, I can load more quickly. Also, remember that /boot/vmlinuz is the same thing as /boot/vmlinuz-ide-2.4.22 unless you removed /boot/vmlinuz.
 
Old 06-20-2004, 01:37 AM   #27
subaruwrx
Member
 
Registered: Mar 2004
Distribution: Ubuntu Feisty
Posts: 641

Original Poster
Rep: Reputation: 30
sigh, messed up both my old and new kernel. Now, both have the graphics display problem when booting from lilo.

Currently, booting from floppy. Tried re-compiling kernel but to no avail. Looks like gotta re-install

btw, whats the difference with booting from floppy and from lilo? Why is it I'm able to boot from floppy with all my devices working? (Kernel 2.4.22)
Floppy is using its own vmlinuz?

Last edited by subaruwrx; 06-20-2004 at 02:16 AM.
 
Old 06-20-2004, 10:00 PM   #28
r_jensen11
Senior Member
 
Registered: Apr 2003
Location: Minnesota, USA
Distribution: Slack 10.0 w/2.4.26
Posts: 1,032

Rep: Reputation: 45
Quote:
Originally posted by subaruwrx
sigh, messed up both my old and new kernel. Now, both have the graphics display problem when booting from lilo.

Currently, booting from floppy. Tried re-compiling kernel but to no avail. Looks like gotta re-install

btw, whats the difference with booting from floppy and from lilo? Why is it I'm able to boot from floppy with all my devices working? (Kernel 2.4.22)
Floppy is using its own vmlinuz?
What the floppy has on it is the original kernel that you used when you installed Slackware. It loads the kernel into your RAM, so it stays there until you do a system halt. You could try copying your kernel over from the cd or from your floppy after you've booted with the boot disk. What kind of problems are you having with your video? Perhaps it's a framebuffer problem? Did you make any changes to LILO?
 
Old 06-21-2004, 01:41 AM   #29
subaruwrx
Member
 
Registered: Mar 2004
Distribution: Ubuntu Feisty
Posts: 641

Original Poster
Rep: Reputation: 30
Quote:
Originally posted by r_jensen11
What the floppy has on it is the original kernel that you used when you installed Slackware. It loads the kernel into your RAM, so it stays there until you do a system halt. You could try copying your kernel over from the cd or from your floppy after you've booted with the boot disk. What kind of problems are you having with your video? Perhaps it's a framebuffer problem? Did you make any changes to LILO?
How do I copy the kernel over?

Its the typical "no display" after compiling to kernel 2.6.7. But I'm sure I did add the necessary commands to the .config file before building the kernel. Furthermore, it also affects my vmlinuz.old.
 
Old 06-21-2004, 11:03 AM   #30
r_jensen11
Senior Member
 
Registered: Apr 2003
Location: Minnesota, USA
Distribution: Slack 10.0 w/2.4.26
Posts: 1,032

Rep: Reputation: 45
Quote:
Originally posted by subaruwrx
How do I copy the kernel over?

Its the typical "no display" after compiling to kernel 2.6.7. But I'm sure I did add the necessary commands to the .config file before building the kernel. Furthermore, it also affects my vmlinuz.old.
It seems really odd that it would affect an old kernel. I'm guessing it overwrote it. I'm guessing that the problem has to do with the framebuffer. Try booting from a disk, disabling framebuffer support, and then reinstall the kernel. Either that, or instead of having your drivers in there as modules, you have them built into the kernel.
 
  


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
Compiling kernel = kernel panic Tons of Fun Debian 5 07-02-2005 01:59 PM
Compiling kernel module for linux kernel 2.4 in 2.6 guam Linux - Software 0 01-13-2005 02:02 AM
Where Is Kernel Directory In Rh9(kernel 2.4.20-8), For Compiling HSP56 MR(pctel) Mode rudy3107 Linux - Software 1 07-25-2004 04:17 AM
Compiling new kernel joseph Linux - Software 2 10-14-2003 07:26 AM
Kernel compiling and module compiling tarballed Linux - General 1 12-22-2002 05:31 PM

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

All times are GMT -5. The time now is 09:54 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