LinuxQuestions.org
Go Job Hunting at the LQ Job Marketplace
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices

Reply
 
Search this Thread
Old 11-01-2001, 10:38 AM   #1
Randall
Member
 
Registered: Oct 2001
Location: Ontario, Canada (for now, i'm from NJ )
Distribution: Redhat 7.2
Posts: 106

Rep: Reputation: 15
Quite the conundrum......


The story so far:
In an effort to get my ethernet to work i've been trying to updates things. I have RedHat 7.1 on my thinkpad and i have never been able to get the pcmcia etherjet cardbus adapter to work to i can get access to the network i built. In light of that i've been poking around and reading around and i thought if i updated the Kernel(i had no idea how to do that) and the pcmcia card services maybe just maybe it'd work. But no it doesn't, now that i have the 2.4.7 Kernel (had the 2.4.2-2) my sound doesn't work and the ethernet card doesn't work.....and certain module dependencies are missing....ANY help,tips and pointers will be very much appreciated.
 
Old 11-01-2001, 04:55 PM   #2
isajera
Senior Member
 
Registered: Jun 2001
Location: San Antonio, TX
Distribution: distro? what's a distro?
Posts: 1,635

Rep: Reputation: 45
are you sure you correctly made and installed the kernel modules?

there's quite a few threads on this site about kernel installation that you can browse. do a search on "kernel install" - if you have any other questions, post them to this thread.
 
Old 11-01-2001, 06:25 PM   #3
Randall
Member
 
Registered: Oct 2001
Location: Ontario, Canada (for now, i'm from NJ )
Distribution: Redhat 7.2
Posts: 106

Original Poster
Rep: Reputation: 15
to be honest with you i don't exactly know what i did .....i was just happed it booted. i don't think i modularized anything i just included it in the Kernel. it was my first kernel compile ever so i don't know what's supposed to be there
 
Old 11-06-2001, 09:59 PM   #4
taz.devil
Senior Member
 
Registered: Nov 2001
Location: Wa. State
Distribution: Slackware
Posts: 1,261

Rep: Reputation: 45
Post

Just for info if you want some kernel install info. You would assumingly have a /usr/src/kernel-2.x.x whatever, where the new kernel source is. You do the following:

make menuconfig (configs the kernel)
make dep (make dependancies)
make clean (cleans things up)
make bzImage (makes the bootable image)
make modules (self explanitory)
make modules_install (ditto)
make bzlilo (does many tasks including update lilo etc.)

That's the average format for installing/compiling a new kernel and setting the dependancies and modules. You may get some errors but that happens and you can go from there. Type: dmesg |more to find errors. It's a lot of learning, I don't think it ends honestly...Hope it helps any, if not good luck either way. =)
 
Old 11-07-2001, 01:58 PM   #5
Randall
Member
 
Registered: Oct 2001
Location: Ontario, Canada (for now, i'm from NJ )
Distribution: Redhat 7.2
Posts: 106

Original Poster
Rep: Reputation: 15
thanks very much for your help, i've tried the various commands and they work quite well but i still seem to be missing a modules.dep file. i definitely concur with your conclusion that the learning is a lot and it probably never ends but isn't that half the joy in it?

your help is much appreciated =)
 
Old 11-07-2001, 02:35 PM   #6
taz.devil
Senior Member
 
Registered: Nov 2001
Location: Wa. State
Distribution: Slackware
Posts: 1,261

Rep: Reputation: 45
Sorry to hear you still have a problem! I can't say I know why you are missing that file, but given you have the source, you could try copying the complete source to the directory and try a fresh config, or something to that effect. Don't know if you have the cd's or downloaded, but good luck and post how it's going.
 
Old 11-07-2001, 02:51 PM   #7
Randall
Member
 
Registered: Oct 2001
Location: Ontario, Canada (for now, i'm from NJ )
Distribution: Redhat 7.2
Posts: 106

Original Poster
Rep: Reputation: 15
i have the red hat 7.1 cd's but this only happens when i try to upgrade the kernel, i'll keep fidling and i will post what happens.....i don't even know if this will fix the ethernet problem or not..but i'll learn something !
 
Old 11-08-2001, 06:49 PM   #8
torne
LQ Newbie
 
Registered: Nov 2001
Location: Cambridge, UK
Distribution: Debian!
Posts: 13

Rep: Reputation: 0
modules.dep

To generate a modules.dep file for the kernel you are *currently* running, type (as root):
depmod -a
This should output nothing if it generates it correctly. To make one for a non-running kernel you'll need to refer to the man page for depmod.

Torne
Electric Wuffpup.
 
Old 11-09-2001, 11:45 AM   #9
Randall
Member
 
Registered: Oct 2001
Location: Ontario, Canada (for now, i'm from NJ )
Distribution: Redhat 7.2
Posts: 106

Original Poster
Rep: Reputation: 15
That depmod -a came in quite handy because now i see that i have Three files missing, the modprobe for my sound wouldn't work, i can't mount the windows partition and three files aren't ELF files. i'm not quite sure what ELF is but....i'm sure someone out there does. Alas, the plot thickens!
Thanks for your help =)
 
Old 11-09-2001, 12:52 PM   #10
torne
LQ Newbie
 
Registered: Nov 2001
Location: Cambridge, UK
Distribution: Debian!
Posts: 13

Rep: Reputation: 0
Lightbulb ELF

If depmod is complaining that files are not ELF format executables (or something similar) and they are filenames that end in .o then there is a problem.
Modules on disk have .o on the end of their names (for object file, if you care), thus the sb driver is sb.o and so on. An ELF file is simply the format that Linux uses for programs and modules - if a file that is expected to be a program is not in ELF format then it is almost certainly corrupted.

I suggest starting again with the kernel build and looking out carefully for errors. What you want to do to ensure a clean build:
cd /usr/src/linux (or wherever you put your kernel source)
mv .config preciousconfig (saves your configuration)
make mrproper (cleans the source tree to a pristine state)
mv preciousconfig .config (restores the configuration)
make menuconfig (just quit straight away and save changes - the options will be correct but the config program must be run in order to build the kernel correctly)
make dep
make bzImage
make modules
Move any existing modules for the current kernel version (in /lib/modules) out of the way
make modules_install
make bzlilo (or other installation command - that's *probably* the one you want but you ought to check docs).

Hope that helps.. if you build a kernel from a fresh source tree and there are still dependency problems then something bad is happening.
If the dependancy problems go away but the sound still doesn't work then you have a different problem. =)

Torne
Electric Wuffpup.
 
Old 11-09-2001, 05:38 PM   #11
Randall
Member
 
Registered: Oct 2001
Location: Ontario, Canada (for now, i'm from NJ )
Distribution: Redhat 7.2
Posts: 106

Original Poster
Rep: Reputation: 15
The good news:
The modules.dep is there atleast i think so but the kernel says it doesn't support vfat file system which brings me back to the not being able to mount my /C partition. will keep fidling and i'll post what happens.
 
  


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
sendmail conundrum! siepmann Linux - Networking 1 07-02-2005 09:17 AM
Network/Hub conundrum spage0506 MEPIS 15 06-24-2005 09:51 AM
Lilo configuration conundrum Larry O Slackware - Installation 1 05-25-2005 10:13 AM
A sed conundrum! Bert Linux - Software 2 12-09-2003 08:38 AM
@Home Conundrum. bzzt-whir Linux - Networking 0 02-18-2002 01:08 PM


All times are GMT -5. The time now is 09:28 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration