LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 03-04-2004, 07:12 PM   #1
Optyx
Member
 
Registered: Jan 2004
Location: Sydney, Australia
Distribution: Slackware 6
Posts: 95

Rep: Reputation: 15
Problem with Modules_Install


Ok so im upgrading from slackware default 9.1 kernel to 2.6.0
Everything (i think) has been done properly.

I made the bzImage , make modules was fine.

But upon make modules_install i run in to this

root@darkstar:/usr/src/linux# make modules_install
/bin/sh: line 1: /sbin/depmod: No such file or directory
Warning: you may need to install module-init-tools
See http://www.codemonkey.org.uk/post-halloween-2.5.txt
INSTALL drivers/char/agp/agpgart.ko
INSTALL drivers/char/agp/ati-agp.ko
INSTALL drivers/net/dummy.ko
INSTALL drivers/usb/gadget/g_ether.ko
INSTALL drivers/usb/gadget/net2280.ko
INSTALL drivers/video/radeonfb.ko
INSTALL drivers/char/agp/sis-agp.ko
if [ -r System.map ]; then /sbin/depmod -ae -F System.map 2.6.0; fi
/bin/sh: line 1: /sbin/depmod: No such file or directory
make: *** [_modinst_post] Error 127
root@darkstar:/usr/src/linux#



Please only people that know whats wrong need reply for the reason that-
I dont want to upgrade my kernel to 2.6xxx im happy with 2.6.0

Thanks for reviewing my problem.
 
Old 03-04-2004, 08:26 PM   #2
wapcaplet
LQ Guru
 
Registered: Feb 2003
Location: Colorado Springs, CO
Distribution: Gentoo
Posts: 2,018

Rep: Reputation: 48
Looks like you need to have /sbin/depmod (something which is rather important if you want to use modules). Not sure what package contains it in slackware; should be something like "modutils" or "module-init-tools". See if you can get one of those installed.
 
Old 03-04-2004, 10:23 PM   #3
Optyx
Member
 
Registered: Jan 2004
Location: Sydney, Australia
Distribution: Slackware 6
Posts: 95

Original Poster
Rep: Reputation: 15
Any suggestions to where i can get such a fix to my current 9.1 install (defualt 2.4)
to let me further carry out this upgrade.
Im also now changing the upgrade to 2.6.3 because i thought the kernel might have been somthing to do with it (obviously not.. the problem is still there).
 
Old 03-05-2004, 06:14 AM   #4
wapcaplet
LQ Guru
 
Registered: Feb 2003
Location: Colorado Springs, CO
Distribution: Gentoo
Posts: 2,018

Rep: Reputation: 48
You can download the slackware package for it.
 
Old 03-05-2004, 06:17 AM   #5
gnashley
Amigo developer
 
Registered: Dec 2003
Location: Germany
Distribution: Slackware
Posts: 4,928

Rep: Reputation: 612Reputation: 612Reputation: 612Reputation: 612Reputation: 612Reputation: 612
For kernel 2.6.x you'll need module-init-tools package from the /a series. modutils will only work with kernels 2.4.x
 
Old 03-05-2004, 09:09 AM   #6
Optyx
Member
 
Registered: Jan 2004
Location: Sydney, Australia
Distribution: Slackware 6
Posts: 95

Original Poster
Rep: Reputation: 15
Ok, i did somthing probably pretty stupid.

I went ahead copyed the bzImage over to boot, made another Entry for lilo so i can boot 2.4.22 or 2.6.3 And i had the following problems

CPU overload (sounds) im guessing this is because i selected 3 sound cards in the Menuconfig before i compiled.

No working mouse or keyboard (both are usb), i was stuck with using my old and very yellow Serial keyboard.


Then- when i tryed to fix the mouse/keyboard through xf86 config i screwed everything up and cant even get the gui going again- whats wrose is the config passed over to 2.4 so that wont work either- Luckily i have an array of Live distros to post and go to irc with (ok ok so i could use lynx/bitchx) but i would rather not.

Any ideas why this is? Anyideas why i could boot with no Modutils?

One error i am getting is insmod (command not found)
and somthing else upon startup i cant quite remember.
 
Old 03-05-2004, 12:33 PM   #7
wapcaplet
LQ Guru
 
Registered: Feb 2003
Location: Colorado Springs, CO
Distribution: Gentoo
Posts: 2,018

Rep: Reputation: 48
Well, you can boot without modutils - in fact, you can boot without any modules whatsoever, since practically all of the important stuff you need for booting is compiled into the kernel. Modules are used for lots of different drivers, though - when you configured your kernel, anything you chose to build as a module will not be available until you get your modules installed properly. If your USB mouse and keyboard don't work, and sound cards are exhibiting problems, it's pretty likely that you compiled those drivers as modules, and the kernel doesn't know how to use them. There might be several other important things compiled as modules also - drivers for using different kinds of filesystems (such as ext2, or ext3, which your system probably uses), drivers for ethernet cards, CDRom drives, printers, and so on.

You could just compile everything you need directly into the kernel (that is, answer "yes" instead of "module" in your kernel configuration for everything), but it shouldn't be too hard to install modutils so you can use modules.
 
Old 03-05-2004, 12:46 PM   #8
Optyx
Member
 
Registered: Jan 2004
Location: Sydney, Australia
Distribution: Slackware 6
Posts: 95

Original Poster
Rep: Reputation: 15
Your exactly right,
Most of the things i did set as a module- actually nearly everything.
Would i have to recompile again to fix this?

I suppose another problem would be that i completly erased slackware in a desperation to have a working Distro and so installed FreeBSD only to find out that i cant get the X server to work (no screens found).
Im definatly new to linux but im giving it all my best shot.

Since im posting to you using Slax again im going to just sit here a bit and see if theres anyone out here that has a working config file.

There is a small problem im having tho, I cant see my Freebsd install?

When i had slackware i could see it through devices but this time i cant.
 
Old 03-05-2004, 01:00 PM   #9
BoonZie
Member
 
Registered: Oct 2002
Location: Malmoe Sweden
Distribution: Slackware 9.1
Posts: 50

Rep: Reputation: 15
I had the same error as you when I installed the 2.6.3-kernel in Slack 9.1. The problem was that module-init-tools didn't install lsmod properly. There was two symlinks created wich were called lsmod, these links linked to each other creating a loop wich made module-init-tools fail. When I deleted the lilnks module-init-tools installed OK, and the kernel/modules installed nicely afterwards.
 
Old 03-05-2004, 01:07 PM   #10
wapcaplet
LQ Guru
 
Registered: Feb 2003
Location: Colorado Springs, CO
Distribution: Gentoo
Posts: 2,018

Rep: Reputation: 48
Quote:
Originally posted by Optyx
Would i have to recompile again to fix this?
No, I think you just need to install module-init-tools, and try 'make modules_install' again.
 
  


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
make modules_install problem tuxandme Linux - Software 5 01-27-2005 06:24 AM
Kernel modules_install depmod problem Onyx^ Linux - Software 0 07-20-2004 08:35 AM
Kernel 2.6.5 make modules_install problem ss_ffs Linux - General 0 05-06-2004 05:54 AM
Problem with 2.6.0 Kernel on modules_install jimmyjimmy Linux - Software 14 01-07-2004 05:29 PM
2.6 test6 "make modules_install" problem yocompia Slackware 2 10-06-2003 03:56 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 01:12 AM.

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
Open Source Consulting | Domain Registration