LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (https://www.linuxquestions.org/questions/slackware-14/)
-   -   Problem with Modules_Install (https://www.linuxquestions.org/questions/slackware-14/problem-with-modules_install-153612/)

Optyx 03-04-2004 07:12 PM

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.

wapcaplet 03-04-2004 08:26 PM

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.

Optyx 03-04-2004 10:23 PM

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

wapcaplet 03-05-2004 06:14 AM

You can download the slackware package for it.

gnashley 03-05-2004 06:17 AM

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

Optyx 03-05-2004 09:09 AM

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.

wapcaplet 03-05-2004 12:33 PM

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.

Optyx 03-05-2004 12:46 PM

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.

BoonZie 03-05-2004 01:00 PM

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.

wapcaplet 03-05-2004 01:07 PM

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.


All times are GMT -5. The time now is 10:35 AM.