Slackware This Forum is for the discussion of Slackware Linux.
|
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
|
03-10-2005, 05:11 AM
|
#1
|
Senior Member
Registered: Sep 2004
Location: Philadelphia, PA
Distribution: Xubuntu, Mythbuntu, Lubuntu, Picuntu, Mint 18.1, Debian Jessie
Posts: 1,207
Rep:
|
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?
|
|
|
03-10-2005, 07:32 AM
|
#2
|
Member
Registered: Nov 2004
Distribution: KDE Neon User edition; Manjaro; OpenSUSE Leap
Posts: 298
Rep:
|
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.
|
|
|
03-10-2005, 08:05 AM
|
#3
|
Member
Registered: Apr 2004
Location: Arkansas
Distribution: Ubuntu 8.10
Posts: 365
Rep:
|
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
|
|
|
03-10-2005, 08:23 AM
|
#4
|
Member
Registered: Nov 2004
Location: Columbus, Ohio
Distribution: Slackware-Current / Debian
Posts: 795
Rep:
|
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 08:24 AM.
|
|
|
03-10-2005, 09:27 AM
|
#5
|
Senior Member
Registered: Sep 2004
Location: Philadelphia, PA
Distribution: Xubuntu, Mythbuntu, Lubuntu, Picuntu, Mint 18.1, Debian Jessie
Posts: 1,207
Original Poster
Rep:
|
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 09:28 AM.
|
|
|
03-10-2005, 09:36 AM
|
#6
|
Member
Registered: Nov 2004
Location: Columbus, Ohio
Distribution: Slackware-Current / Debian
Posts: 795
Rep:
|
I would start all over with make clean, and proceed from the beginning
|
|
|
03-10-2005, 12:26 PM
|
#7
|
Senior Member
Registered: Sep 2004
Location: Philadelphia, PA
Distribution: Xubuntu, Mythbuntu, Lubuntu, Picuntu, Mint 18.1, Debian Jessie
Posts: 1,207
Original Poster
Rep:
|
ok-modules take forever, though. I was hoping there was a shortcut.
|
|
|
03-10-2005, 01:33 PM
|
#8
|
Member
Registered: Nov 2004
Location: Columbus, Ohio
Distribution: Slackware-Current / Debian
Posts: 795
Rep:
|
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...
|
|
|
03-10-2005, 02:19 PM
|
#9
|
Senior Member
Registered: Sep 2004
Location: Philadelphia, PA
Distribution: Xubuntu, Mythbuntu, Lubuntu, Picuntu, Mint 18.1, Debian Jessie
Posts: 1,207
Original Poster
Rep:
|
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??
|
|
|
03-10-2005, 02:22 PM
|
#10
|
Member
Registered: Nov 2004
Location: Columbus, Ohio
Distribution: Slackware-Current / Debian
Posts: 795
Rep:
|
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)
|
|
|
03-10-2005, 04:19 PM
|
#11
|
Senior Member
Registered: Sep 2004
Location: Philadelphia, PA
Distribution: Xubuntu, Mythbuntu, Lubuntu, Picuntu, Mint 18.1, Debian Jessie
Posts: 1,207
Original Poster
Rep:
|
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
|
|
|
03-10-2005, 04:54 PM
|
#12
|
Senior Member
Registered: Sep 2004
Location: Philadelphia, PA
Distribution: Xubuntu, Mythbuntu, Lubuntu, Picuntu, Mint 18.1, Debian Jessie
Posts: 1,207
Original Poster
Rep:
|
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 01:46 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|