LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 09-27-2002, 01:18 AM   #1
moger
Member
 
Registered: Sep 2002
Distribution: Fedora Core 3
Posts: 247

Rep: Reputation: 30
Cool 2 more kernel compiling questions


This is my first time customizing the kernel. I patched to 2.4.19 and am using SLackware 8.1. A few questions:

1. When I compile some options as loadable modules, do I then have to go into /lib/modules/2.4.19/..... and then insmod module.o and/or put it in modules.conf? Or does it do this automatically when you make some things loadable modules. Because it didn't do this for me...I had to go in there and insmod ntfs.o. WHich brings me to my second question:

2. I could have sworn I set my RealTek NIC as a loadable kernel module. I made sure I did make modules then make modules_install. However, I cannot find my NIC driver anywehere....Not in /lib/modules or anywhere. It was using natsemi.o before the compile and now is no longer there. Should I recompile even though I thought I chose the NIC as a loadable module before. And if I do, must I make a new bzImage file or can I skip all that and make menuconfig ; make modules ; make modules_install ?

Thanks.
 
Old 09-27-2002, 01:30 AM   #2
MasterC
LQ Guru
 
Registered: Mar 2002
Location: Salt Lake City, UT - USA
Distribution: Gentoo ; LFS ; Kubuntu ; CentOS ; Raspbian
Posts: 12,613

Rep: Reputation: 69
Well if you haven't touched your tree yet after your compile, you can browse in there, and see if you did set things up the way you wanted to. So you could see if you did set it as module or whatever.

Cool
 
Old 09-27-2002, 01:36 AM   #3
moger
Member
 
Registered: Sep 2002
Distribution: Fedora Core 3
Posts: 247

Original Poster
Rep: Reputation: 30
How/where do I do that?
 
Old 09-27-2002, 01:51 AM   #4
moger
Member
 
Registered: Sep 2002
Distribution: Fedora Core 3
Posts: 247

Original Poster
Rep: Reputation: 30
ok, I went back into "make menuconfig" . My NIC does have a "M" next to it meaning it should be a loadable module in /lib/modules, right?
 
Old 09-27-2002, 03:58 AM   #5
MasterC
LQ Guru
 
Registered: Mar 2002
Location: Salt Lake City, UT - USA
Distribution: Gentoo ; LFS ; Kubuntu ; CentOS ; Raspbian
Posts: 12,613

Rep: Reputation: 69
Yes, well it's not directly in /lib/modules (sorry if you knew that) it would actually be in the sub directory of the kernel in question.
 
Old 09-27-2002, 11:26 AM   #6
moger
Member
 
Registered: Sep 2002
Distribution: Fedora Core 3
Posts: 247

Original Poster
Rep: Reputation: 30
I dont see my NIC card driver in /lib/modules...../ even though I selected it as a loadable module in menuconfig. I think I forgot to "make clean" when I compiled; could that have messed something up?
 
Old 09-27-2002, 06:41 PM   #7
MasterC
LQ Guru
 
Registered: Mar 2002
Location: Salt Lake City, UT - USA
Distribution: Gentoo ; LFS ; Kubuntu ; CentOS ; Raspbian
Posts: 12,613

Rep: Reputation: 69
I really doubt it. If it's a generic Realtek card, you only need the module '8139too' if it's based off the 8139 chipset. There are others listed in the device section, 8129 and such. I'd say look for that one, try it, if it's not there, then rebuild with one of the other choices. I doubt make clean could have messed things up, as long as the compile finished cleanly and didn't error out.

I'd give each one a try, and then start looking for other solutions.

Cool
 
Old 09-28-2002, 12:32 AM   #8
moger
Member
 
Registered: Sep 2002
Distribution: Fedora Core 3
Posts: 247

Original Poster
Rep: Reputation: 30
Oh man, I think I know the problem. My NIC in my linux box might not be a Realtek NIC. My windows box has a Realtek NIC and I thought I bought an identical NIC for my Linux box. But I just remember I probably didn't, LOL. Before the recompile, I was using the natsemi driver, which is for a Netgear NIC - that's the NIC I must have in there! So yes, when I chose Realtek as my loadable module, 8139too.o was in /lib/modules/... and as expected I got errors when I used modprobe or put it in rc.modules because it's the wrong module for that NIC. So I'll either recompile the kernel or just download natsemi.c. Then this all should be solved. Sometimes the stupidest things (like forgetting what NIC you bought for your box) is the cause of problems.
 
Old 09-28-2002, 01:35 AM   #9
MasterC
LQ Guru
 
Registered: Mar 2002
Location: Salt Lake City, UT - USA
Distribution: Gentoo ; LFS ; Kubuntu ; CentOS ; Raspbian
Posts: 12,613

Rep: Reputation: 69
Yeah, but you still learn something along the way anyway, glad you figured it out.

Cool
 
  


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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
kernel compiling questions panzram Linux - General 1 06-26-2003 08:34 AM
Kernel Compiling; What/Why/How and other assorted questions Ashandarel Linux - Newbie 4 04-27-2003 04:20 AM
APM/Kernel compiling questions Wynd Slackware 6 04-11-2003 01:21 AM
Kernel compiling questions Mentecapto Linux - Newbie 1 09-26-2002 04:20 PM
Kernel compiling questions mistery Linux - Newbie 1 07-19-2002 07:15 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

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