LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Quite the conundrum...... (https://www.linuxquestions.org/questions/linux-newbie-8/quite-the-conundrum-8189/)

Randall 11-01-2001 10:38 AM

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. :confused:

isajera 11-01-2001 04:55 PM

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.

Randall 11-01-2001 06:25 PM

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

taz.devil 11-06-2001 09:59 PM

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. =)

Randall 11-07-2001 01:58 PM

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 =)

taz.devil 11-07-2001 02:35 PM

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.

Randall 11-07-2001 02:51 PM

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 !

torne 11-08-2001 06:49 PM

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.

Randall 11-09-2001 11:45 AM

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 =)

torne 11-09-2001 12:52 PM

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.

Randall 11-09-2001 05:38 PM

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.


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