SlackwareThis 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.
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.
help well i got slackware about a week ago and i wanna recompile a new kernel so my speakers will work why my speakers wont work: insmod sound
Using /lib/modules/2.2.19/misc/sound.o.gz
/lib/modules/2.2.19/misc/sound.o.gz: unresolved symbol sound_preinit_lowlevel_drivers
/lib/modules/2.2.19/misc/sound.o.gz: unresolved symbol sound_unload_lowlevel_drivers
/lib/modules/2.2.19/misc/sound.o.gz: unresolved symbol sound_init_lowlevel_drivers
how would i be able to recompile my kernel and get those sound drivers to work??
Location: Rome, Italy ; Novi Sad, Srbija; Brisbane, Australia
Distribution: Ubuntu / ITOS2008
Posts: 1,207
Rep:
To recompile: cd /usr/src/linux , make mrproper , make menuconfig , make dep , make clean , make bzImage , make modules , make modules_install , mv /boot/System.map /boot.System.map.old , mv System.map /boot/System.map cd arch/i386/boot , cp bzImage /bzImage and pico /etc/lilo.conf and edit it adding the new kernel entry, /sbin/lilo and ur done.
Before doing that try modprobe sound instead of insmod and then modprobe your drivers as well and it should work with out recompiling.
Hope that helps
This is how I do it,
Step 1. Fixing up /etc/lilo.conf
Add the below entires to your lilo.conf
# Backup Image
image = /vmlinuz.old
root = /dev/hda1
label = oldlinux
Note: replace /dev/hda1 with your boot partition.
Step 2. Compiling the kernel the quick way
Once you have this you are ready to build that new kernel the quick way.
Below is the sequence you should follow:
make mrproper (I dont do this most of the time since it will remove
your .config)
make menuconfig (ncurses based kernel configuration menu system)
make dep (fix up dependencies)
make clean (get rid of old o files and stuff)
make bzImage (build it)
make install (read the note below for this one)
make modules (build the modules)
make modules_install (install the modules)
Note: "make install" is one that most don't use but if you run Slackware
it will work fine. What it does is: copies, moves, and renames all the
files to where they need to be. It also updates lilo for you. This method
is very clean fast and easy to use. Again saves a few steps that the
readme file says you need to make. If your new kernel fails to work you
can boot the old one by hitting the left shift key at the lilo prompt
during bootup and typing oldlinux.
Not being daft, but do you really need to recompile your kernel? I know it's good for you, but have you tried, rather than insmoding sound, modprobe sound? Or, if you've got a SBLive, then modprobe emu10k1?
Location: Rome, Italy ; Novi Sad, Srbija; Brisbane, Australia
Distribution: Ubuntu / ITOS2008
Posts: 1,207
Rep:
make install?
So if i run make install am i done? Will make install replace my old kernel, update lilo, move System.map and all that? After make install am i done ,can I reboot my box? I never used it so im a bit paranoid as to what it does, and how...
And will make install be still safe to use if i have 4 kernel entried in lilo.conf?
Originally posted by Thymox Not being daft, but do you really need to recompile your kernel? I know it's good for you, but have you tried, rather than insmoding sound, modprobe sound? Or, if you've got a SBLive, then modprobe emu10k1?
Couldn't get above thread to open from Aussie, so i hope it doesn't have to do with this but, over in the Slack forums, Patrick explained to me once that, "Slackware's kernel is meant to be recompiled at least once." I'm sure he had a reason for saying this, probably due to reducing size and getting hardware to work optimally. Thought i'd throw that in there for the fun of, "from the horse's mouth" type thingiemawhachit.
Originally posted by NSKL So if i run make install am i done? Will make install replace my old kernel, update lilo, move System.map and all that? After make install am i done ,can I reboot my box? I never used it so im a bit paranoid as to what it does, and how...
And will make install be still safe to use if i have 4 kernel entried in lilo.conf?
And what does make bzlilo do?
Thanks for help
-Nskl
You'll still need to do the make modules and make modules_install after that. Then you'll be Golden! As Aussie explained what make install does, the files should be put where they need to be. I'm one of those he speaks of not using it. I use make bzlilo. I can't tell you the differences since that's all i use, but it sounds like it does the same things essentially.
first download the kernel to your home directory and unpack it there.
then edit lilo ...rename the current kernel vmlinuz.old and the label oldlinux...then add the the script for the new kernel your about to build
label it say kernel2418 or whaeva
cd to the linux directory it creates
no need to run 'make mrproper' because there is no crud lyin around from previous builds.
go su or root
make menuconfig
make dep
make clean
make
make install
make modules
make modules_install
after this you are ready to reboot using your new kernel
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.