LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (https://www.linuxquestions.org/questions/slackware-14/)
-   -   help, how to recompile slackwares kernel (https://www.linuxquestions.org/questions/slackware-14/help-how-to-recompile-slackwares-kernel-18497/)

cerberus 04-14-2002 01:53 PM

help, how to recompile slackwares kernel
 
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??

NSKL 04-14-2002 02:06 PM

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

-Nskl

trickykid 04-14-2002 02:12 PM

actually there is an easier way in slack:

cd /usr/src/linux

make xconfig
make dep
make bzImage
make modules
make modules_install
make bzlilo
make clean

there you go...

Aussie 04-14-2002 09:08 PM

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.

Thymox 04-15-2002 05:17 AM

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?

Aussie 04-15-2002 06:50 AM

Have a look here Thymox,
http://www.linuxquestions.org/questi...threadid=18251

:cool:

NSKL 04-15-2002 10:31 AM

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?

And what does make bzlilo do?
Thanks for help

-Nskl

taz.devil 04-15-2002 01:38 PM

Quote:

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.

taz.devil 04-15-2002 01:41 PM

Re: make install?
 
Quote:

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.

rommel 04-16-2002 01:28 AM

this is what i would do

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


All times are GMT -5. The time now is 06:16 AM.