LinuxQuestions.org
Visit Jeremy's Blog.
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-10-2005, 04:11 AM   #1
linuxhippy
Senior Member
 
Registered: Sep 2004
Location: Philadelphia, PA
Distribution: Xubuntu, Mythbuntu, Lubuntu, Picuntu
Posts: 1,189

Rep: Reputation: 47
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?
 
Old 03-10-2005, 06:32 AM   #2
APB_4
Member
 
Registered: Nov 2004
Location: England
Distribution: Ubuntu 9.04; Crunchee; EEE Xandros
Posts: 289

Rep: Reputation: 30
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.
 
Old 03-10-2005, 07:05 AM   #3
MMYoung
Member
 
Registered: Apr 2004
Location: Arkansas
Distribution: Ubuntu 8.10
Posts: 365

Rep: Reputation: 30
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
 
Old 03-10-2005, 07:23 AM   #4
mdarby
Member
 
Registered: Nov 2004
Location: Columbus, Ohio
Distribution: Slackware-Current / Debian
Posts: 795

Rep: Reputation: 30
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)

Last edited by mdarby; 03-10-2005 at 07:24 AM.
 
Old 03-10-2005, 08:27 AM   #5
linuxhippy
Senior Member
 
Registered: Sep 2004
Location: Philadelphia, PA
Distribution: Xubuntu, Mythbuntu, Lubuntu, Picuntu
Posts: 1,189

Original Poster
Rep: Reputation: 47
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

Last edited by linuxhippy; 03-10-2005 at 08:28 AM.
 
Old 03-10-2005, 08:36 AM   #6
mdarby
Member
 
Registered: Nov 2004
Location: Columbus, Ohio
Distribution: Slackware-Current / Debian
Posts: 795

Rep: Reputation: 30
I would start all over with make clean, and proceed from the beginning
 
Old 03-10-2005, 11:26 AM   #7
linuxhippy
Senior Member
 
Registered: Sep 2004
Location: Philadelphia, PA
Distribution: Xubuntu, Mythbuntu, Lubuntu, Picuntu
Posts: 1,189

Original Poster
Rep: Reputation: 47
ok-modules take forever, though. I was hoping there was a shortcut.
 
Old 03-10-2005, 12:33 PM   #8
mdarby
Member
 
Registered: Nov 2004
Location: Columbus, Ohio
Distribution: Slackware-Current / Debian
Posts: 795

Rep: Reputation: 30
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...
 
Old 03-10-2005, 01:19 PM   #9
linuxhippy
Senior Member
 
Registered: Sep 2004
Location: Philadelphia, PA
Distribution: Xubuntu, Mythbuntu, Lubuntu, Picuntu
Posts: 1,189

Original Poster
Rep: Reputation: 47
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??
 
Old 03-10-2005, 01:22 PM   #10
mdarby
Member
 
Registered: Nov 2004
Location: Columbus, Ohio
Distribution: Slackware-Current / Debian
Posts: 795

Rep: Reputation: 30
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)
 
Old 03-10-2005, 03:19 PM   #11
linuxhippy
Senior Member
 
Registered: Sep 2004
Location: Philadelphia, PA
Distribution: Xubuntu, Mythbuntu, Lubuntu, Picuntu
Posts: 1,189

Original Poster
Rep: Reputation: 47
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
 
Old 03-10-2005, 03:54 PM   #12
linuxhippy
Senior Member
 
Registered: Sep 2004
Location: Philadelphia, PA
Distribution: Xubuntu, Mythbuntu, Lubuntu, Picuntu
Posts: 1,189

Original Poster
Rep: Reputation: 47
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)
 
  


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
kernel: modules or built in? sh4d0w13 Linux - Newbie 1 10-31-2005 07:00 PM
No pre-built modules jamaso Slackware 11 05-29-2004 08:07 AM
Modules.dep needs to be re-built araldit Linux - Newbie 1 03-13-2004 09:51 AM
Just built my first kernel, but... plisken Linux - General 7 10-01-2003 09:03 AM
loadable modules vs built-in modules nuzzy Linux - Hardware 1 07-21-2003 04:16 PM


All times are GMT -5. The time now is 07:33 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