LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
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 04-14-2002, 01:53 PM   #1
cerberus
Member
 
Registered: Apr 2002
Location: Toronto
Distribution: slackware 9.0 & Xtreme Poop
Posts: 46

Rep: Reputation: 15
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??
 
Old 04-14-2002, 02:06 PM   #2
NSKL
Senior Member
 
Registered: Jan 2002
Location: Rome, Italy ; Novi Sad, Srbija; Brisbane, Australia
Distribution: Ubuntu / ITOS2008
Posts: 1,207

Rep: Reputation: 47
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
 
Old 04-14-2002, 02:12 PM   #3
trickykid
LQ Guru
 
Registered: Jan 2001
Posts: 24,149

Rep: Reputation: 269Reputation: 269Reputation: 269
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...
 
Old 04-14-2002, 09:08 PM   #4
Aussie
Senior Member
 
Registered: Sep 2001
Location: Brisvegas, Antipodes
Distribution: Slackware
Posts: 4,590

Rep: Reputation: 58
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.
 
Old 04-15-2002, 05:17 AM   #5
Thymox
Senior Member
 
Registered: Apr 2001
Location: Plymouth, England.
Distribution: Mostly Debian based systems
Posts: 4,368

Rep: Reputation: 64
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?
 
Old 04-15-2002, 06:50 AM   #6
Aussie
Senior Member
 
Registered: Sep 2001
Location: Brisvegas, Antipodes
Distribution: Slackware
Posts: 4,590

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

 
Old 04-15-2002, 10:31 AM   #7
NSKL
Senior Member
 
Registered: Jan 2002
Location: Rome, Italy ; Novi Sad, Srbija; Brisbane, Australia
Distribution: Ubuntu / ITOS2008
Posts: 1,207

Rep: Reputation: 47
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
 
Old 04-15-2002, 01:38 PM   #8
taz.devil
Senior Member
 
Registered: Nov 2001
Location: Wa. State
Distribution: Slackware
Posts: 1,261

Rep: Reputation: 45
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.
 
Old 04-15-2002, 01:41 PM   #9
taz.devil
Senior Member
 
Registered: Nov 2001
Location: Wa. State
Distribution: Slackware
Posts: 1,261

Rep: Reputation: 45
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.
 
Old 04-16-2002, 01:28 AM   #10
rommel
LQ Newbie
 
Registered: Dec 2001
Location: a cornfield in SD
Posts: 15

Rep: Reputation: 0
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
 
  


Reply



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
slackwares package manager kurrupt Slackware 6 02-14-2005 03:54 PM
kernel recompile error (kernel panic) tombaaaaa Linux - Newbie 4 08-04-2004 04:32 PM
Recompile Kernel Hady Programming 4 12-03-2003 04:49 PM
how good is slackwares auto detection?? bosewicht Slackware 3 11-24-2003 04:32 PM
does slackwares frewall come configured shanenin Linux - Security 1 10-19-2003 03:14 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 08:04 PM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration