LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (http://www.linuxquestions.org/questions/slackware-14/)
-   -   no modules after kernel compile (http://www.linuxquestions.org/questions/slackware-14/no-modules-after-kernel-compile-364824/)

glorsplitz 09-19-2005 06:53 AM

no modules after kernel compile
 
slackware 10 2.4.26, i want to add wireless support through the kernel by
Network Device Support->Wireless LAN->Wireless LAN (non-hamradio)

the kernel compile steps i'm trying to follow are combined from 3 or 4 peoples
experiences compiling their kernel

kernel compile steps were
in /usr/src/linux
make mrproper
make menuconfig
- only thing i did was 'Y' for Network Device Support->Wireless LAN->Wireless LAN (non-hamradio)
make dep
make clean
make bzImage
cp /usr/src/linux/arch/i386/boot/bzImage /boot/vmlinuz
make modules (keeps saying 'nothing to do in ...')
make modules_install
cp System.map /boot

system comes up but lsmod shows no modules

/lib/modules/2.4.26/kernel has only net/dummy.o, no other directories or files

thank you

Bruce Hill 09-19-2005 07:11 AM

You've been a LQ member for almost 3 years with no post count?

Where you say "make modules (keeps saying 'nothing to do in ...')" that
is because you didn't add any modules, you made this built in (Y).

What is the chipset of your wireless NIC? Issue /sbin/lspci

You have enabled support for the module, which you'll get elsewhere.

In my case I have an Atheros 5212 802.11abg NIC, and the module (driver)
is provided by madwifi. I get no module until I build the madwifi package,
install it, then "modprobe ath_pci" for it.

glorsplitz 09-19-2005 08:46 AM

during menuconfig i said 'Y' to only Network Device Support->Wireless LAN->Wireless LAN (non-hamradio)
and didnt change or add any other kernel options

by no modules, i'm not talking about the wireless stuff, i mean no modules in /lib/modules/2.4.26/kernel,
make modules just flashes by saying 'nothing to do in directory....'

the wired nic module that i uncommented the /sbin line in rc.modules is gone

everything in /lib/modules/2.4.26/kernel is gone except net/dummy.o

egag 09-19-2005 10:27 AM

did you configure options as modules ?

look at the output of :

cat <configfile> |grep =m

egag

Bruce Hill 09-19-2005 10:40 AM

Quote:

Originally posted by glorsplitz
during menuconfig i said 'Y' to only Network Device Support->Wireless LAN->Wireless LAN (non-hamradio)
and didnt change or add any other kernel options

by no modules, i'm not talking about the wireless stuff, i mean no modules in /lib/modules/2.4.26/kernel,
make modules just flashes by saying 'nothing to do in directory....'

the wired nic module that i uncommented the /sbin line in rc.modules is gone

everything in /lib/modules/2.4.26/kernel is gone except net/dummy.o

Have you clobbered your old kernel by building in /usr/src/linux ?

I don't know which kernel guide you followed, but I only recommend
these three sources:

First, Linus Torvald's instructions in ./linux-2.x.x.x/README
Second, Kwan Lowe's Kernel Build HOW-TO
(be sure to build your kernel under /home as Linus instructs)
Third, Jesper Juhl's Guide to building a 2.6 kernel
(the System.map "shell magic" is not necessary)

When you issued "make mrproper" you wiped out your previous
configuration and reset the sources. At the very least, you wiped out
your original kernel's .config file. I never did that, so I can't tell what
was in the .config generated by "make menuconfig".

Since you're system is booting, please issue and post the output of:
/sbin/lspci
ls -alh /usr/src/linux-2.4.26/
lsmod
ls -al /lib/modules/2.4.26/

IMO there are two ways to go at this point. You decide which would
be easiest for you. But first, would you like another 2.4 or a 2.6 kernel?

You can decide if you want to build a custom kernel, or if you want to
use a .config file that's already available from Slackware. You can use
your Slackware-10.0 CDs and get the original .config file that you had.
Something like /mnt/cdrom/kernels/bare.i/config (whichever you chose).
Just copy it to /usr/src/linux-2.4.26/.config and then run these commands
from that directory as root:
(NB: when you copy as above, you copy over your present .config)
make oldconfig
make menuconfig
(and then choose Y for the wireless support)
make dep
make clean
make bzImage
cp arch/i386/boot/bzImage /boot/vmlinuz-ide-2.4.26
(must be the same name as what is in /boot/ now)
make modules
make modules_install
lilo
(since your /etc/lilo.conf entry for your kernel hasn't changed
there's no need to edit the file, but you must run "lilo" again)

The other option is to build a 2.6 kernel. You should NOT use the
.config file from 2.4 for a 2.6 kernel, so your choices if you want a
2.6 kernel are to either install one Patrick has in /testing/ or build
one yourself from scratch.

Bruce Hill 09-19-2005 10:41 AM

Somehow this was posted twice ...

glorsplitz 09-19-2005 10:53 AM

fresh install of slack 10.0, stock 2.4.26 kernel

when i go into menuconfig are all the kernel options set to the way the system was installed?

going back to the way i said i compiled the kernel, in menuconfig no one ever said to enable any options
for modules or anything else in particular, just 'Y' to what you need in the kernel like wireless extensions,
then follow steps below

in /usr/src/linux
make mrproper
make menuconfig
- ONLY thing i changed was 'Y' for Network Device Support->Wireless LAN->Wireless LAN (non-hamradio)
make dep
make clean
make bzImage
cp /usr/src/linux/arch/i386/boot/bzImage /boot/vmlinuz
make modules (KEEPS SAYING 'nothing to do in ...' something is missing before this step)
make modules_install
cp System.map /boot

egag 09-20-2005 10:26 AM

did you copy the config file for the 2.4.26 kernel to the source dir.
as " .config " before you started menuconfig ?

egag


All times are GMT -5. The time now is 07:21 PM.