LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (https://www.linuxquestions.org/questions/slackware-14/)
-   -   new kernel built....no modules (https://www.linuxquestions.org/questions/slackware-14/new-kernel-built-no-modules-299919/)

linuxhippy 03-10-2005 04:11 AM

new kernel built....no modules
 
I'm almost there-on my fourth try with Slack 10 I was able to build and install my new kernel of 2.4.29. My old kernel was 2.4.26. The problem is that I now have no sound and alsaconf cannot find modules (I use ESS module).

Here's what I did after I untarred the new kernel:

cd /usr/src/linux-2.4.29
cp /usr/src/linux-2.4.26/.config /usr/src/linux-2.4.29/.config
modprobe oldconfig
change some settings
make dep && make clean bzImage modules modules_install
mv /boot/vmlinuz /boot/vmlinuz.old
cat arch/i386/boot/bzImage > /boot/vmlinuz
mv /boot/System.map /boot/System.map.old
cp System.map /boot/System.map

There is a modules directory in /lib/modules/2.4.29.

Also /usr/src/linux is still a symbolic link to /usr/src/linux-2.4.26. Should I point this link towards my new kernel 2.4.29?

APB_4 03-10-2005 06:32 AM

I have a similar problem with a 2.6.11 kernel. When i run make modules_install it doesn't seem to move many files and there are hardly any modules moved into the /lib/modules/2.6.11 folder whereas my 2.4.26 has loads. The 2.6 module files also seem to be .ko files which apparently are the wrong format.

MMYoung 03-10-2005 07:05 AM

Quote:

Originally posted by APB_4
I have a similar problem with a 2.6.11 kernel. When i run make modules_install it doesn't seem to move many files and there are hardly any modules moved into the /lib/modules/2.6.11 folder whereas my 2.4.26 has loads.
If there were * by most of your selections then you didn't build them as modules, they compiled into the kernel. Or if you were using xconfig and it was a check mark instead of a "round black circle" (sorry I can't remember what those are called now), then they were compiled into the kernel and weren't compiled as modules. So you wouldn't have many modules. The stock kernel that comes with Slackware has "most" stuff built as modules.
Quote:

Originally posted by APB_4
The 2.6 module files also seem to be .ko files which apparently are the wrong format.
Actually that's EXACTLY how it's supposed to be named. Starting with the 2.6 kernel modules started using the .ko extension rather than the .o extension. That said, the kernel modules that Pat builds somehow get "extended" with .t.gz or something similar. It's been so long since I looked a stock Slackware module that I've forgotten.

Later,
MMYoung

mdarby 03-10-2005 07:23 AM

cd /usr/src/linux-2.4.29
cp /usr/src/linux-2.4.26/.config /usr/src/linux-2.4.29/.config
make oldconfig
change some settings
make bzImage && make modules && make modules_install
cp arch/i386/boot/bzImage /boot/bzImage-2.6.11
cp System.map /boot/System.map-2.6.11
nano /etc/lilo
lilo
reboot

You weren't making any modules with your original posted commands.
bzImage & vmlinuz are the same thing (confusing, but the same thing)

linuxhippy 03-10-2005 08:27 AM

I had just woke up when I posted and made a typo-I didn't modprobe anything. That should have been make oldconfig. I started with make mrproper before I did anything and then finished by editing /etc/lilo.conf and executing lilo.

It does look like modules weren't made. uname -r shows 2.4.29. Can I copy the modules from 2.4.26 over to the modules directory for 2.4.29? If not, do I need to start over with mrproper or can I just pick up with:

make modules
make modules_install

mdarby 03-10-2005 08:36 AM

I would start all over with make clean, and proceed from the beginning

linuxhippy 03-10-2005 11:26 AM

ok-modules take forever, though. I was hoping there was a shortcut.

mdarby 03-10-2005 12:33 PM

Just select to build modules that you need. If you don't have the hardware, there is no need to build the modules ;)

I compile everything I need into the kernel...

linuxhippy 03-10-2005 01:19 PM

That's one of the reasons I'm recompiling the kernel. My laptop is 6 yrs. old and pre-dates most of the hardware that the modules are for. I looked over the .config file that came with Slack 10 and saw that everything under the sun was compiled into it using modules. I want to take those out.....I'll do my 5th kernel compile tonight without all those modules. I just need a couple....I know I need the ESS ones for my ESS soundcard.

APM is another that currently has a module but doesn't power down my laptop. Should I select Y to compile that into the kernel...would my laptop then power down by itself??

mdarby 03-10-2005 01:22 PM

I've never come across a system that will turn off power after 'shutdown' under linux.

If you do 'lsmod' it will show you exactly which drivers your system is using... (in case you didn't know)

linuxhippy 03-10-2005 03:19 PM

my other pc is 5+ years old and it has had difficulty shutting down with Slack 10 and some other linux distros. It does power off automatically with Fedora Core 3.

I got this link off another thread: http://tuxmobil.org/apm_linux.html

linuxhippy 03-10-2005 03:54 PM

good idea-lsmod. I did that and saw I don't have that many modules active. I'd like to use xconfig on my existing .config file for 2.4.29 that I know works, but trim down on the modules. Any idea how I can do that knowing which modules I typically use?

Here are my modules:

Module Size Used by Not tainted
snd-pcm-oss 37736 1
snd-mixer-oss 12504 0 [snd-pcm-oss]
snd-es1938 11240 1
snd-pcm 56072 0 [snd-pcm-oss snd-es1938]
snd-page-alloc 6328 0 [snd-pcm]
snd-opl3-lib 5892 0 [snd-es1938]
snd-hwdep 4804 0 [snd-opl3-lib]
snd-timer 13604 0 [snd-pcm snd-opl3-lib]
snd-mpu401-uart 3200 0 [snd-es1938]
snd-rawmidi 12740 0 [snd-mpu401-uart]
snd-seq-device 3888 0 [snd-opl3-lib snd-rawmidi]
snd 30852 0 [snd-pcm-oss snd-mixer-oss snd-es1938 snd-pcm snd-opl3-lib snd-hwdep snd-timer snd-mpu401-uart snd-rawmidi snd-seq-device]
soundcore 3396 6 [snd]
pcnet_cs 11444 1
8390 6000 0 [pcnet_cs]
crc32 2880 0 [8390]
ds 6548 1 [pcnet_cs]
yenta_socket 10336 1
pcmcia_core 39972 0 [pcnet_cs ds yenta_socket]
ide-scsi 9328 0
analog 7776 0 (unused)
gameport 1420 0 [snd-es1938 analog]
joydev 5888 0 (unused)
keybdev 2052 0 (unused)
mousedev 4212 0 (unused)
hid 21220 0 (unused)
input 3200 0 [analog joydev keybdev mousedev hid]
usb-ohci 19240 0 (unused)
usbcore 59308 1 [hid usb-ohci]
agpgart 43940 0 (unused)


All times are GMT -5. The time now is 02:32 AM.