LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 07-23-2002, 07:48 AM   #1
Milkman00
Member
 
Registered: Jul 2002
Location: Tampa Bay area of FLORIDA!
Distribution: Slackware 8.1
Posts: 76

Rep: Reputation: 15
Question Linux expert needed that knows INS & OUTS!


OK folks - here is the deal.

I am relatively a beginner at Linux, and I do know DOS very well, so I am hoping I can pick up on this too. ANYWAY. I am finding myself typing a lot of commands, but I really do not know what they do. I am just kinda typing blindly because it works. BUT when things go crazy (which they sometimes do) - It helps to know what the commands actually mean so the problem can be troubleshot.

For instance - when compiling the kernel, I type

make menuconfig (of course)
make clean
make dep
make modules
make modules_install

Now I think I understand that 'make' is having the OS run something similar to a DOS batch file... What what are all these batches doing (also please correct me if I am wrong!)

Another command that I am having trouble understanding is

depmod -a

I actually currently have a problem where I recompiled the kernel, and got a whole bunch of unresolved symbols, when depmod -a was run. I read somewhere on here, that if that happens to delete /lib/modules/2.4.18 and run make modules_install again. But because I don't understand what is happening, its very hard to troubleshoot.

I appreciate any and all help you folks can give me with this, also, is there a website, or a book out there, that outlines all this basic stuff, in BASIC terms, for the newbie???

PLEASE HELP!!!

Thanks so much in advance
 
Old 07-23-2002, 08:17 AM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
make will use a Makefile in the current directory which contins lots of sections, e.g. modules, clean, bzImage and so forth, depending on what you are compiling.

depmod -a will reload all modules that have been loaded in etc.modules.conf. refresh them so to speak.

most linux books outline basics, any one should do to get you going, such as http://80.4.78.28/redhat_unleashed.tar.bz2 and obviously check all the relevant manpages for each command.

analogies to DOS conventions will only go so far tho, you'll need to accept that make doesn't use a "batch file" it's not like that really...

Last edited by acid_kewpie; 07-23-2002 at 08:57 AM.
 
Old 07-23-2002, 08:23 AM   #3
Aussie
Senior Member
 
Registered: Sep 2001
Location: Brisvegas, Antipodes
Distribution: Slackware
Posts: 4,590

Rep: Reputation: 58
Have a browse at The Linux Documentation Project and at http://www.gnu.org/ for info on the make command, look for Automake, Autoconf and GCC.
For compiling slackware kernels you can read about the system I use here.
With your unresolved symbols the problem could be that slackware 8.1 already uses kernel-2.4.18 and therefore already has a /lib/modules/2.4.18 directory populated with all the kernel modules from the slack install that are not going to play nice with the ones that you made, but don't delete them, back them up by renaming the directory to /lib/modules/2.4.18-these-are-the-old-modules (or something shorter like 2.4.18-old) then do make modules_install.

Last edited by Aussie; 07-23-2002 at 09:09 AM.
 
Old 07-23-2002, 08:24 AM   #4
Milkman00
Member
 
Registered: Jul 2002
Location: Tampa Bay area of FLORIDA!
Distribution: Slackware 8.1
Posts: 76

Original Poster
Rep: Reputation: 15
I didn't look at the book in the link you posted, but I noticed it says REDHAT unleashed. I am using Slackware... Is there one for Slack?
 
Old 07-23-2002, 08:34 AM   #5
Milkman00
Member
 
Registered: Jul 2002
Location: Tampa Bay area of FLORIDA!
Distribution: Slackware 8.1
Posts: 76

Original Poster
Rep: Reputation: 15
That message about the book was for acid...

Aussie - I like the link you sent me at p-two... I was hoping you could elaborate a little bit for me on the last paragraph you mentioned. I am a newbie, so I don't quite understand what I did as it relates to what you are saying.

Your assitance is much appreciated

Thanks!
 
Old 07-23-2002, 08:37 AM   #6
Milkman00
Member
 
Registered: Jul 2002
Location: Tampa Bay area of FLORIDA!
Distribution: Slackware 8.1
Posts: 76

Original Poster
Rep: Reputation: 15
Acid - Can you tell me what the make file is in /usr/src/linux for all of those commands I listed above??? I would like to disect that file, and see what it is doing....
 
Old 07-23-2002, 08:46 AM   #7
Aussie
Senior Member
 
Registered: Sep 2001
Location: Brisvegas, Antipodes
Distribution: Slackware
Posts: 4,590

Rep: Reputation: 58
The last paragraph at p-two or in my post here?
 
Old 07-23-2002, 08:51 AM   #8
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
Makefiles are called "Makefile" always.

98% of the time a linux book is a linux book, specific distribution very seldom come into play.
 
Old 07-23-2002, 08:53 AM   #9
Milkman00
Member
 
Registered: Jul 2002
Location: Tampa Bay area of FLORIDA!
Distribution: Slackware 8.1
Posts: 76

Original Poster
Rep: Reputation: 15
Ok will try it Acid - Thanks!

Aussie - this paragraph

With your unresolved symbols the problem could be that slackware 8.1 already uses kernel-2.4.18 and therefore already has a /lib/modules/2.4.18 directory populated with all the kernel modules from the slack install that are not going to play nice with the ones that you made, but don't delete them, back them up by renaming the directory to /lib/modules/2.4.18-these-are-the-old-modules (or something shorter like 2.4.19-old) then do make modules_install.

Thanks!
 
Old 07-23-2002, 09:08 AM   #10
Aussie
Senior Member
 
Registered: Sep 2001
Location: Brisvegas, Antipodes
Distribution: Slackware
Posts: 4,590

Rep: Reputation: 58
You'll have modules in /lib/modules/2.4.18 that were installed when you installed slackware that don't match up with your custom kernel, normally when making a new kernel this is not a problem as most of the time you would be compiling an updated version and modules get installed to /lib/modules/<kernel-version>.
 
Old 07-23-2002, 09:11 AM   #11
Milkman00
Member
 
Registered: Jul 2002
Location: Tampa Bay area of FLORIDA!
Distribution: Slackware 8.1
Posts: 76

Original Poster
Rep: Reputation: 15
Well thats the problem - I haven't installed a new kernel. I am just modifying the one I currently have. I am still using 2.4.18. I am just taking obvious things out that I do not need. When I recompiled, I got the unresolved symbol errors.

ALSO - When you compile a kernel, is it actually building the selected modules in the /lib/modules/2.4.18 directory into the kernel???
 
Old 07-23-2002, 09:21 AM   #12
Aussie
Senior Member
 
Registered: Sep 2001
Location: Brisvegas, Antipodes
Distribution: Slackware
Posts: 4,590

Rep: Reputation: 58
Quote:
When I recompiled, I got the unresolved symbol errors.
Thats the problem, some of the 2.4.18 modules in /lib/modules/2.4.18 are not working with your custom kernel because they were made with the stock kernel. Just because you de-selected some options when you did your kernel config dosn't mean the modules are going to vaporise from /lib/modules/2.4.18, you have to remove them from the equation first by re-naming /lib/modules/2.4.18 to something that is not /lib/modules/2.4.18 before you do "make modules_install".

Last edited by Aussie; 07-23-2002 at 09:25 AM.
 
Old 07-23-2002, 09:24 AM   #13
Milkman00
Member
 
Registered: Jul 2002
Location: Tampa Bay area of FLORIDA!
Distribution: Slackware 8.1
Posts: 76

Original Poster
Rep: Reputation: 15
ok, I think I understand. Because I made changes in the kernel, the modules needed didn't match up. SO how is the best way to fix this???
 
Old 07-23-2002, 09:19 PM   #14
xcp
LQ Newbie
 
Registered: Jul 2002
Location: Canada
Distribution: Slackware
Posts: 11

Rep: Reputation: 0
>When you compile a kernel, is it actually building the selected modules in the /lib/modules/2.4.18 directory into the kernel???

The other way around. When you build and install the modules, it builds them in the /usr/src/linux tree and copies them to /lib/modules/<kern#>

When you make a custom kernel, with only the features you want and modules you want, you should edit /etc/rc.d/rc.modules and only load (modprobe) the modules that you use. There are what seems like hundreds of modules loaded by default in the slack installation - you should fix this. Also try deleting /lib/modules/2.4.18 before you make modules_install, who knows, maybe it's not cleaning up for you.
 
Old 07-27-2002, 05:54 PM   #15
Rashkae
Member
 
Registered: May 2002
Distribution: Slackware
Posts: 125

Rep: Reputation: 15
If I could add my 2 cents to the unresolved symbols problem... I noticed that he did a make modules and make modules_install, which should have cleaned out the modules directory and copy over all new ones. But did he install the new kernel? I would suspect he's booting the Slack default Kernel, with his new modules.
 
  


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
expert help needed with bash and bc karistouf Programming 5 06-22-2005 12:55 AM
X11 Expert Needed hilltop*Tech Linux - Hardware 4 06-10-2005 09:11 AM
New to ubuntu, can someone give me the ins and outs of apt? enigma_0Z Ubuntu 2 05-25-2005 11:19 AM
Expert help with iptables needed k1mgy Linux - Networking 2 08-01-2004 07:21 AM
Security Expert needed Lloydlec Linux - Security 1 04-27-2004 11:45 AM

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

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