LinuxQuestions.org
Review your favorite Linux distribution.
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 12-09-2002, 03:47 PM   #1
Compuholic
LQ Newbie
 
Registered: Sep 2002
Distribution: Debian & Mandrake
Posts: 8

Rep: Reputation: 0
insmod/modprobe Problem


Hi,

i've just managed to compile a new kernel (2.4.20). After that I did a "make modules" and "make modules_install". All the modules are created correctly in /lib/modules/2.4.20/[..]
After rebooting: I realized that almost no devices are available. lsmod shows that no modules are loaded. So I tried to load my network-adapter by hand using modprobe. This fails and tons of errors appear ("unresolved symbol [blah]"). insmod -f produces the same errors.

I've read that this could be caused by mismatching versions. But this can't be the reson because the modules are newly created by "make".

Does anyone has an idea why this could happen? Could this be caused by kmod?
Thanks
 
Old 12-11-2002, 05:21 AM   #2
peeples
Member
 
Registered: Sep 2002
Location: Wichita Falls, TX
Distribution: tried a lot of 'em, now using kubuntu
Posts: 180

Rep: Reputation: 30
Are you sure that you configured the kernel for loadable modules?
 
Old 12-11-2002, 11:18 AM   #3
ianv
Member
 
Registered: Dec 2002
Location: North West England
Distribution: fedora
Posts: 52

Rep: Reputation: 15
Howdy,
Did you do a
$ depmod -ae
before you moved onto your new kernel?
HTH
Ian
 
Old 12-11-2002, 11:23 AM   #4
Compuholic
LQ Newbie
 
Registered: Sep 2002
Distribution: Debian & Mandrake
Posts: 8

Original Poster
Rep: Reputation: 0
Yes, I configured Loadable Modules

Isn't depmod -ae called when I do "make modules"? What does the "e"-Parameter mean?

And a gereral question. Does modprobe use the config-file generated by depmod or is modprobe a replacement for it.

Thanks
 
Old 12-11-2002, 11:31 AM   #5
nxny
Member
 
Registered: May 2002
Location: AK - The last frontier.
Distribution: Red Hat 8.0, Slackware 8.1, Knoppix 3.7, Lunar 1.3, Sorcerer
Posts: 771

Rep: Reputation: 30
Check your toplevel kernel Makefile and see if you have an extraversion defined ( line #4 )

Try
uname -r
to make sure that you're using the right kernel. It should be 2.4.20[extraversion].

. The kernel looks for modules under /lib/modules/2.4.20[extraversion]. try to search for [your netmodule-here].o in this directory, if you find it, you're good to go. Otherwise do
updatedb
wait for it to finish.
and then post results to
locate [netmodule-here].o
so that we know where your modules ended up and we can figure what's gone wrong.
 
Old 12-11-2002, 01:56 PM   #6
Compuholic
LQ Newbie
 
Registered: Sep 2002
Distribution: Debian & Mandrake
Posts: 8

Original Poster
Rep: Reputation: 0
I don't have an extra-version.

I already tried uname -r. The right kernel is used. And as I said in my first post. All Modules are created in the correct directory (/lib/modules/2.4.20). modprobe/insmod fails even if I try to load them manually. In my opinion the modules are found, but for some reason they can't be inserted into the kernel
(unresolved symbol [some-kind-of-mem-adress] GetProcAdress[...] blah. There are lots of errors of this type. Each one seems to refer to a unresolved function)
 
Old 12-11-2002, 04:24 PM   #7
nxny
Member
 
Registered: May 2002
Location: AK - The last frontier.
Distribution: Red Hat 8.0, Slackware 8.1, Knoppix 3.7, Lunar 1.3, Sorcerer
Posts: 771

Rep: Reputation: 30
oo. How exactly did you compile your kernel?
 
Old 12-12-2002, 02:35 PM   #8
Compuholic
LQ Newbie
 
Registered: Sep 2002
Distribution: Debian & Mandrake
Posts: 8

Original Poster
Rep: Reputation: 0
make mrproper
startx
make xconfig

Here I configure the modules I need.
Loadable Module Support. Executable Format ELF, etc...

make dep
make bzImage
make modules
make modules_install


Or Do you want the exact configuration?
 
Old 12-12-2002, 05:27 PM   #9
nxny
Member
 
Registered: May 2002
Location: AK - The last frontier.
Distribution: Red Hat 8.0, Slackware 8.1, Knoppix 3.7, Lunar 1.3, Sorcerer
Posts: 771

Rep: Reputation: 30
Quote:
Originally posted by Compuholic
Or Do you want the exact configuration? [/B]
This is the answer to my question.

The way I do it is ( inside an xterm )

make clean
make mrproper
make xconfig ( -- do my configuration here -- )
make dep
make
make bzImage
make modules
make install
make modules_install

Your compilation steps look fine. Looks like something is messed up in your configuration file.

You can download my .config file , copy it to /usr/src/linux-2.4.20/ *after* you make mrproper. My config is derived from a redhat-i686 config file and has most modules one would need to boot up. When you 'make xconfig', enable your sound module, disable mine etc, but try to make as few changes as possible. After you boot your new kernel, you can always come back and disable everything that you dont need and complie a fresh version.
 
Old 12-13-2002, 09:26 AM   #10
Compuholic
LQ Newbie
 
Registered: Sep 2002
Distribution: Debian & Mandrake
Posts: 8

Original Poster
Rep: Reputation: 0
Thanks, I'll give it a try tomorrow
 
Old 12-15-2002, 07:37 AM   #11
Compuholic
LQ Newbie
 
Registered: Sep 2002
Distribution: Debian & Mandrake
Posts: 8

Original Poster
Rep: Reputation: 0
Thanks

Your Configuration works fine. The error still persists but I don't care as long as all modules are loaded.
But a general question. Is this a normal configuration? You configured almost everything as loadable modul. Doesn't this make the kernel too big and slow?
 
Old 12-16-2002, 03:06 PM   #12
nxny
Member
 
Registered: May 2002
Location: AK - The last frontier.
Distribution: Red Hat 8.0, Slackware 8.1, Knoppix 3.7, Lunar 1.3, Sorcerer
Posts: 771

Rep: Reputation: 30
What error are you getting? unresolved symbols? output to dmesg will be helpful.

Are you using a fresh kernel source tree? If not, try getting one from ftp://ftp.kernel.org/pub/linux/kernel/ The one that came with your distro might be patched. My config file is guaranteed to work only with plain-vanilla kernels.

About complie-in vs Kernel, this might be worth a thread. As I said, my config is tightly based on a redhat-i686 config file. To me.. that means Redhat wants most flexibility by keeping the core within the kernel and load/unload whatever is needed by the zillion hardware combinations accordingly. This is a good point to start with for those who do not have a point to start with ( you're the perfect candidate - your previous kernel did not take off very well!! ). Now, you can proceed to make changes to the config, compile in some of the modules that you need and are working well. About performance, it doesnt make noticeable difference ONCE the module that you need has been loaded, I hear. Although you can gradually ( a few at a time ) move em in as you deem necessary.

Last edited by nxny; 12-16-2002 at 04:44 PM.
 
Old 12-18-2002, 06:55 PM   #13
jtlinux1967
Member
 
Registered: Dec 2002
Posts: 31

Rep: Reputation: 15
Kernel Recompile

Since you have already had a few compiles I would run it this way...

cd /usr/src/kernel source

make mrproper (this will remove the .config file)

make dep

make bzImage

make clean ( optional ) I don't use it

make modules

make modules_install

make install this will take care of the details ..renaming the bzImage etc....

Grub will pick the new kernel
 
Old 12-19-2002, 12:05 PM   #14
Compuholic
LQ Newbie
 
Registered: Sep 2002
Distribution: Debian & Mandrake
Posts: 8

Original Poster
Rep: Reputation: 0
nxny: I'm already using the 2.4.20 kernel from kernel.org
I'll try some configurations. This will take much time *g*

[edit]
Here's the output of dm

Linux version 2.4.20 (root@WinBlaster) (gcc version 2.96 20000731 (Mandrake Linux 8.2 2.96-0.76mdk)) #3 Son Dez 15 03:40:03 CET 2002
BIOS-provided physical RAM map:
BIOS-e820: 0000000000000000 - 000000000009fc00 (usable)
BIOS-e820: 000000000009fc00 - 00000000000a0000 (reserved)
BIOS-e820: 00000000000f0000 - 0000000000100000 (reserved)
BIOS-e820: 0000000000100000 - 0000000017ff0000 (usable)
BIOS-e820: 0000000017ff0000 - 0000000017ff8000 (ACPI data)
BIOS-e820: 0000000017ff8000 - 0000000018000000 (ACPI NVS)
BIOS-e820: 00000000fec00000 - 00000000fec01000 (reserved)
BIOS-e820: 00000000fee00000 - 00000000fee01000 (reserved)
BIOS-e820: 00000000fffc0000 - 0000000100000000 (reserved)
0MB HIGHMEM available.
383MB LOWMEM available.
On node 0 totalpages: 98288
zone(0): 4096 pages.
zone(1): 94192 pages.
zone(2): 0 pages.
Kernel command line: BOOT_IMAGE=2420 ro root=341 devfs=mount
Initializing CPU#0
Detected 1740.776 MHz processor.
Console: colour dummy device 80x25
Calibrating delay loop... 3473.40 BogoMIPS
Memory: 386028k/393152k available (1098k kernel code, 6736k reserved, 442k data, 112k init, 0k highmem)
Dentry cache hash table entries: 65536 (order: 7, 524288 bytes)
Inode cache hash table entries: 32768 (order: 6, 262144 bytes)
Mount-cache hash table entries: 8192 (order: 4, 65536 bytes)
Buffer-cache hash table entries: 32768 (order: 5, 131072 bytes)
Page-cache hash table entries: 131072 (order: 7, 524288 bytes)
CPU: L1 I Cache: 64K (64 bytes/line), D cache 64K (64 bytes/line)
CPU: L2 Cache: 256K (64 bytes/line)
Intel machine check architecture supported.
Intel machine check reporting enabled on CPU#0.
CPU: After generic, caps: 0383fbff c1c3fbff 00000000 00000000
CPU: Common caps: 0383fbff c1c3fbff 00000000 00000000
CPU: AMD Athlon(tm) XP 2100+ stepping 02
Enabling fast FPU save and restore... done.
Enabling unmasked SIMD FPU exception support... done.
Checking 'hlt' instruction... OK.
POSIX conformance testing by UNIFIX
mtrr: v1.40 (20010327) Richard Gooch (rgooch@atnf.csiro.au)
mtrr: detected mtrr type: Intel
PCI: PCI BIOS revision 2.10 entry at 0xfdb31, last bus=1
PCI: Using configuration type 1
PCI: Probing PCI hardware
PCI: Using IRQ router default [1106/3147] at 00:11.0
PCI: Hardcoded IRQ 14 for device 00:11.1
isapnp: Scanning for PnP cards...
isapnp: No Plug & Play device found
Linux NET4.0 for Linux 2.4
Based upon Swansea University Computer Society NET3.039
Initializing RT netlink socket
apm: BIOS version 1.2 Flags 0x03 (Driver version 1.16)
Starting kswapd
VFS: Diskquotas version dquot_6.4.0 initialized
vesafb: framebuffer at 0xd8000000, mapped to 0xd880d000, size 65536k
vesafb: mode is 800x600x16, linelength=1600, pages=3
vesafb: protected mode interface info at c000:b5b0
vesafb: scrolling: redraw
vesafb: directcolor: size=0:5:6:5, shift=0:11:5:0
Console: switching to colour frame buffer device 100x37
fb0: VESA VGA frame buffer device
pty: 2048 Unix98 ptys configured
Serial driver version 5.05c (2001-07-08) with MANY_PORTS MULTIPORT SHARE_IRQ SERIAL_PCI ISAPNP enabled
ttyS00 at 0x03f8 (irq = 4) is a 16550A
ttyS01 at 0x02f8 (irq = 3) is a 16550A
Real Time Clock Driver v1.10e
Uniform Multi-Platform E-IDE driver Revision: 6.31
ide: Assuming 33MHz system bus speed for PIO modes; override with idebus=xx
VP_IDE: IDE controller on PCI bus 00 dev 89
PCI: Hardcoded IRQ 14 for device 00:11.1
VP_IDE: chipset revision 6
VP_IDE: not 100% native mode: will probe irqs later
ide: Assuming 33MHz system bus speed for PIO modes; override with idebus=xx
VP_IDE: VIA vt8233a (rev 00) IDE UDMA133 controller on pci00:11.1
ide0: BM-DMA at 0xfc00-0xfc07, BIOS settings: hdaMA, hdbMA
ide1: BM-DMA at 0xfc08-0xfc0f, BIOS settings: hdcMA, hddio
hda: MAXTOR 4K080H4, ATA DISK drive
hdb: Maxtor 92041U4, ATA DISK drive
hdc: _NEC DV-5700A, ATAPI CD/DVD-ROM drive
ide0 at 0x1f0-0x1f7,0x3f6 on irq 14
ide1 at 0x170-0x177,0x376 on irq 15
blk: queue c02d6c84, I/O limit 4095Mb (mask 0xffffffff)
hda: 156301488 sectors (80026 MB) w/2000KiB Cache, CHS=9729/255/63, UDMA(100)
blk: queue c02d6dc0, I/O limit 4095Mb (mask 0xffffffff)
hdb: 40020624 sectors (20491 MB) w/512KiB Cache, CHS=2491/255/63, UDMA(66)
ide-floppy driver 0.99.newide
Partition check:
hda: hda1
hdb: hdb1 hdb2 < hdb5 >
Floppy drive(s): fd0 is 1.44M
FDC 0 is a post-1991 82077
NET4: Frame Diverter 0.46
RAMDISK driver initialized: 16 RAM disks of 4096K size 1024 blocksize
ide-floppy driver 0.99.newide
md: md driver 0.90.0 MAX_MD_DEVS=256, MD_SB_DISKS=27
md: Autodetecting RAID arrays.
md: autorun ...
md: ... autorun DONE.
NET4: Linux TCP/IP 1.0 for NET4.0
IP Protocols: ICMP, UDP, TCP, IGMP
IP: routing cache hash table of 4096 buckets, 32Kbytes
TCP: Hash tables configured (established 32768 bind 65536)
Linux IP multicast router 0.06 plus PIM-SM
NET4: Unix domain sockets 1.0/SMP for Linux NET4.0.
RAMDISK: Compressed image found at block 0
Freeing initrd memory: 133k freed
VFS: Mounted root (ext2 filesystem).
Freeing unused kernel memory: 112k freed
Adding Swap: 489940k swap-space (priority -1)
SCSI subsystem driver Revision: 1.00
scsi0 : Adaptec AIC7XXX EISA/VLB/PCI SCSI HBA DRIVER, Rev 6.2.8
<Adaptec 29160 Ultra160 SCSI adapter>
aic7892: Ultra160 Wide Channel A, SCSI Id=7, 32/253 SCBs

blk: queue d7e7f774, I/O limit 4095Mb (mask 0xffffffff)
Vendor: PLEXTOR Model: CD-R PX-W124TS Rev: 1.07
Type: CD-ROM ANSI SCSI revision: 02
blk: queue d7e7fb74, I/O limit 4095Mb (mask 0xffffffff)
3c59x: Donald Becker and others. www.scyld.com/network/vortex.html
00:0c.0: 3Com PCI 3c905C Tornado at 0xdc00. Vers LK1.1.16
divert: allocating divert_blk for eth0
8139too Fast Ethernet driver 0.9.26
divert: allocating divert_blk for eth1
eth1: RealTek RTL8139 Fast Ethernet at 0xdc893600, 00:20:ed:38:78:74, IRQ 5
eth1: Identified 8139 chip type 'RTL-8139C'
usb.c: registered new driver usbdevfs
usb.c: registered new driver hub
usb-uhci.c: $Revision: 1.275 $ time 03:31:37 Dec 15 2002
usb-uhci.c: High bandwidth mode enabled
usb-uhci.c: USB UHCI at I/O 0xd800, IRQ 10
usb-uhci.c: Detected 2 ports
usb.c: new USB bus registered, assigned bus number 1
hub.c: USB hub found
hub.c: 2 ports detected
usb-uhci.c: USB UHCI at I/O 0xd400, IRQ 10
usb-uhci.c: Detected 2 ports
usb.c: new USB bus registered, assigned bus number 2
hub.c: USB hub found
hub.c: 2 ports detected
usb-uhci.c: USB UHCI at I/O 0xcc00, IRQ 5
usb-uhci.c: Detected 2 ports
usb.c: new USB bus registered, assigned bus number 3
hub.c: USB hub found
hub.c: 2 ports detected
usb-uhci.c: USB UHCI at I/O 0xc800, IRQ 5
usb-uhci.c: Detected 2 ports
usb.c: new USB bus registered, assigned bus number 4
hub.c: USB hub found
hub.c: 2 ports detected
usb-uhci.c: v1.275:USB Universal Host Controller Interface driver
hub.c: new USB device 00:11.2-1, assigned address 2
usb.c: USB device 2 (vend/prod 0x45e/0x3b) is not claimed by any active driver.
usbdevfs: remount parameter error
usb.c: registered new driver hiddev
usb.c: registered new driver hid
usb-uhci.c: interrupt, status 3, frame# 1418
hiddev0: USB HID v1.00 Gamepad [Microsoft SideWinder Game Voice] on usb1:2.0
hid-core.c: v1.8.1 Andreas Gal, Vojtech Pavlik <vojtech@suse.cz>
hid-core.c: USB HID support drivers
hub.c: new USB device 00:11.2-2, assigned address 3
mice: PS/2 mouse device common for all mice
usb.c: USB device 3 (vend/prod 0x5a9/0xa511) is not claimed by any active driver.
Linux video capture interface: v1.00
usb.c: registered new driver ov511
ov511.c: USB OV511+ video device found
ov511.c: model: Generic Camera (no ID)
ov511.c: Sensor is an OV7620
ov511.c: Device registered on minor 0
ov511.c: v1.61 for Linux 2.4 : ov511 USB Camera Driver
parport0: PC-style at 0x378 (0x778) [PCSPP,TRISTATE]
parport0: irq 7 detected
ip_conntrack version 2.1 (3071 buckets, 24568 max) - 292 bytes per conntrack
eth1: Setting half-duplex based on auto-negotiated partner ability 0000.
CSLIP: code copyright 1989 Regents of the University of California
PPP generic driver version 2.4.2
divert: not allocating divert_blk for non-ethernet device ppp0
divert: no divert_blk to free, ppp0 not ethernet
divert: not allocating divert_blk for non-ethernet device ppp0
divert: not allocating divert_blk for non-ethernet device ppp1
divert: no divert_blk to free, ppp0 not ethernet
divert: not allocating divert_blk for non-ethernet device ppp0
nvidia: loading NVIDIA Linux x86 NVdriver Kernel Module 1.0-3123 Tue Aug 27 15:56:48 PDT 2002
Linux agpgart interface v0.99 (c) Jeff Hartmann
agpgart: Maximum main memory to use for agp memory: 321M
agpgart: Detected Via Apollo Pro KT266 chipset
agpgart: AGP aperture is 128M @ 0xe0000000
NVRM: AGPGART: VIA Apollo KT133 chipset
NVRM: AGPGART: aperture: 128M @ 0xe0000000
NVRM: AGPGART: aperture mapped from 0xe0000000 to 0xdda3c000
NVRM: AGPGART: mode 4x
NVRM: AGPGART: allocated 16 pages
divert: no divert_blk to free, ppp0 not ethernet
divert: not allocating divert_blk for non-ethernet device ppp0
divert: no divert_blk to free, ppp0 not ethernet
divert: not allocating divert_blk for non-ethernet device ppp0
divert: no divert_blk to free, ppp0 not ethernet
divert: not allocating divert_blk for non-ethernet device ppp0
divert: no divert_blk to free, ppp0 not ethernet
divert: not allocating divert_blk for non-ethernet device ppp0
divert: no divert_blk to free, ppp0 not ethernet
divert: not allocating divert_blk for non-ethernet device ppp0
divert: no divert_blk to free, ppp0 not ethernet
divert: not allocating divert_blk for non-ethernet device ppp0
divert: no divert_blk to free, ppp0 not ethernet
divert: not allocating divert_blk for non-ethernet device ppp0
divert: no divert_blk to free, ppp0 not ethernet
(scsi0:A:4): 20.000MB/s transfers (20.000MHz, offset 8)

[/edit

Last edited by Compuholic; 12-19-2002 at 12:10 PM.
 
Old 12-22-2002, 07:52 PM   #15
pika
LQ Newbie
 
Registered: May 2002
Location: Belgium
Distribution: Fedora 11
Posts: 10

Rep: Reputation: 0
Hello,

I just compiled kernel 2.4.20 and have a similar problem.

I did:

make mrproper
make xconfig
make dep
make clean
make
make bzImage
make install
make modules
make modules_install

When I look in /lib/modules/2.4.20/kernel/drivers/net the only module I see is dummy.o, and it is also the only driver there is (drivers/ only contains net/ directory).

lsmod shows me zero modules (what I can understand, no modules seem to be installed).

I guess something went wrong with make modules or make modules_install but these didn't return error messages.

This weirdness has been keeping me busy for a few hours, I really hope someone can enlighten me on this.

Thanks in advance,

pika

Last edited by pika; 12-24-2002 at 07:53 PM.
 
  


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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Fresh Slack 10 install::Can't modprobe...insmod failing. kersten78 Slackware 3 11-07-2004 12:16 PM
Help with insmod. I have a problem with insmod. RJARRRPCGP Linux - Newbie 5 08-24-2004 08:23 PM
modprobe or insmod? GT_Onizuka Linux - Newbie 7 04-10-2004 06:03 PM
modprobe or insmod agts Linux - Newbie 2 03-14-2004 01:18 PM
modprobe and insmod same modules, diff kernel ? qwijibow Linux - Software 1 11-06-2003 09:22 AM


All times are GMT -5. The time now is 11:14 AM.

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