LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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 09-19-2005, 07:53 AM   #1
glorsplitz
Member
 
Registered: Dec 2002
Distribution: slackware!
Posts: 262

Rep: Reputation: 29
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
 
Old 09-19-2005, 08:11 AM   #2
Bruce Hill
HCL Maintainer
 
Registered: Jun 2003
Location: Tupelo, MS
Distribution: Gentoo
Posts: 6,926

Rep: Reputation: 124Reputation: 124
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.
 
Old 09-19-2005, 09:46 AM   #3
glorsplitz
Member
 
Registered: Dec 2002
Distribution: slackware!
Posts: 262

Original Poster
Rep: Reputation: 29
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
 
Old 09-19-2005, 11:27 AM   #4
egag
Senior Member
 
Registered: Jul 2004
Location: Netherlands
Distribution: Slackware
Posts: 2,721

Rep: Reputation: 52
did you configure options as modules ?

look at the output of :

cat <configfile> |grep =m

egag
 
Old 09-19-2005, 11:40 AM   #5
Bruce Hill
HCL Maintainer
 
Registered: Jun 2003
Location: Tupelo, MS
Distribution: Gentoo
Posts: 6,926

Rep: Reputation: 124Reputation: 124
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.

Last edited by Bruce Hill; 09-20-2005 at 07:40 AM.
 
Old 09-19-2005, 11:41 AM   #6
Bruce Hill
HCL Maintainer
 
Registered: Jun 2003
Location: Tupelo, MS
Distribution: Gentoo
Posts: 6,926

Rep: Reputation: 124Reputation: 124
Somehow this was posted twice ...

Last edited by Bruce Hill; 09-20-2005 at 07:42 AM.
 
Old 09-19-2005, 11:53 AM   #7
glorsplitz
Member
 
Registered: Dec 2002
Distribution: slackware!
Posts: 262

Original Poster
Rep: Reputation: 29
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
 
Old 09-20-2005, 11:26 AM   #8
egag
Senior Member
 
Registered: Jul 2004
Location: Netherlands
Distribution: Slackware
Posts: 2,721

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

egag
 
  


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
no lib/modules/2.6.13 after kernel compile Motown Slackware 2 09-07-2005 08:59 AM
unable to compile new modules in the kernel Menestrel Slackware 1 01-09-2005 06:41 AM
Modules error after compile 2.6.8.1 kernel mathias1975 Slackware 12 10-05-2004 03:52 AM
No more modules after kernel compile w/ ck patch uglydot Slackware 3 11-10-2003 04:04 PM
modules after re-compile kernel skarim Linux - Software 3 10-15-2003 02:48 AM


All times are GMT -5. The time now is 08:52 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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration