LinuxQuestions.org
Help answer threads with 0 replies.
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 03-28-2006, 09:17 AM   #1
CrEsPo
Member
 
Registered: Apr 2005
Location: Canada
Distribution: Slackware 12
Posts: 184

Rep: Reputation: 30
Quick Recompile Kernel Question


Right now I'm running the kernel, 2.4.31, from the Slackware 10.2 install. I haven't done anything with it yet. I don't want to compile a new kernel yet, just want to update the one I have. How would I go about doing this? I want to keep the same kernel and settings that Patrick originally had, but just want to include one more option.

I know how to compile the kernel if I wanted to upgrade from say 2.4 to 2.6, just not sure on how to recompile my current kernel and not loose the previous settings.

Thanks
 
Old 03-28-2006, 09:41 AM   #2
odevans
Member
 
Registered: Nov 2005
Location: Columbus, OH, USA
Distribution: Slackware
Posts: 246

Rep: Reputation: 30
The Slackware 2.4.31 config is here:

ftp://ftp.slackware.com/pub/slackwar...ource/k/config

EDIT:

The config file may be in your /boot directory too (config-ide-2.4.31)

Last edited by odevans; 03-28-2006 at 09:43 AM.
 
Old 03-28-2006, 09:56 AM   #3
kilgoretrout
Senior Member
 
Registered: Oct 2003
Posts: 2,987

Rep: Reputation: 388Reputation: 388Reputation: 388Reputation: 388
If you just want to tweak your existing kernel by including one more option, that is easy. If you do "make menuconfig" or "make xconfig" if you like a graphical interface, all the options set in your original kernel will be selected and you just have to add the additional one you want and recompile a new kernel with that option.
 
Old 03-28-2006, 12:05 PM   #4
CrEsPo
Member
 
Registered: Apr 2005
Location: Canada
Distribution: Slackware 12
Posts: 184

Original Poster
Rep: Reputation: 30
Thanks for the replies, so am I right if I follow this?

----
1. make menuconfig
- Add option
2. make -j5 bzImage
3. cp System.map /boot/System.map-2.4.31-aad
4. cp .config /boot/config-2.4.31-aad
5. cp /usr/src/linux/arch/i386/boot/bzImage /boot/vmlinuz-2.4.31-aad
6. mv /boot/vmlinuz /boot/vmlinuz-old
7. rm /boot/System.map
8. rm /boot/config
9. rm /boot/vmlinuz
10. cd /boot
11. ln -s System.map-2.4.31-aad System.map
12. ln -s config-2.4.31-aad config
13. ln -s vmlinuz-2.4.31-aad vmlinuz
14. vi /etc/lilo.conf
- Edit old kernel and add new kernel
15. /sbin/lilo
-----

I'm assuming I won't need to make and install the modules if I don't add the option I'm adding in as a module. This will keep my old kernel in case something screws up and create a kernel with my one option I need to add?
 
Old 03-28-2006, 03:13 PM   #5
cwwilson721
Senior Member
 
Registered: Dec 2004
Location: In my house.
Distribution: Ubuntu 10.10 64bit, Slackware 13.1 64-bit
Posts: 2,649
Blog Entries: 1

Rep: Reputation: 67
Looks good, except, just in case, do a 'make modules_install' anyways....Sometimes, it can be a life saver....
 
Old 03-28-2006, 04:24 PM   #6
danieldk
Member
 
Registered: Aug 2002
Posts: 150

Rep: Reputation: 15
0. Copy the current configuration. The config files are also on the first Slack CD. E.g. if you use the bare.i kernel, and have the Slack CD mounted on /mnt/cdrom:

cp /mnt/cdrom/kernels/bare.i/config /usr/src/linux/.config
 
Old 03-28-2006, 06:04 PM   #7
CrEsPo
Member
 
Registered: Apr 2005
Location: Canada
Distribution: Slackware 12
Posts: 184

Original Poster
Rep: Reputation: 30
Thanks for all the replies. I think I'm set, I don't have time to do it today, but tomorrow I'll do it as soon as I get home from my tests. Thanks .

Update: Everything worked, at least I think. Thanks to everyone who replied in this thread, I appreciate it.

By the way, I did need to do the 'make modules' also because the first boot everything failed. At least it's working now, thanks again everyone.

In case some on looker wants to know, here's exactly what I did:

-----
0. cp /mnt/cdrom/kernels/bare.i/config /usr/src/linux/.config
1. make menuconfig
- Add option
2. make -j5 bzImage
3. make modules
4. make modules_install
5. cp System.map /boot/System.map-2.4.31-aad
6. cp .config /boot/config-2.4.31-aad
7. cp /usr/src/linux/arch/i386/boot/bzImage /boot/vmlinuz-2.4.31-aad
8. mv /boot/vmlinuz /boot/vmlinuz-old
9. rm /boot/System.map
10. rm /boot/config
11. rm /boot/vmlinuz
12. cd /boot
13. ln -s System.map-2.4.31-aad System.map
14. ln -s config-2.4.31-aad config
15. ln -s vmlinuz-2.4.31-aad vmlinuz
16. vi /etc/lilo.conf
- Edit old kernel and add new kernel
17. /sbin/lilo
-----

Edit: Sorry, another edit . Just noticed, ALSA no longer works. If I use alsaconf I get the following:

Code:
No supported PnP or PCI card found.

Would you like to probe legacy ISA cards/chips?
Any ideas? I got a Audigy 2 ZS card. I tried the following:

Code:
bash-3.00# modprobe emu10k1
/lib/modules/2.4.31/kernel/drivers/sound/emu10k1/emu10k1.o: init_module: No such device
/lib/modules/2.4.31/kernel/drivers/sound/emu10k1/emu10k1.o: Hint: insmod errors can be caused by incorrect module parameters, including invalid IO or IRQ parameters.
      You may find more information in syslog or the output from dmesg
/lib/modules/2.4.31/kernel/drivers/sound/emu10k1/emu10k1.o: insmod /lib/modules/2.4.31/kernel/drivers/sound/emu10k1/emu10k1.o failed
/lib/modules/2.4.31/kernel/drivers/sound/emu10k1/emu10k1.o: insmod emu10k1 failed
Do I need to reinstall ALSA?

Also noticed /etc/modules.conf is now empty, anybody got the default Slackware modules.conf?

Last edited by CrEsPo; 03-29-2006 at 09:12 PM.
 
Old 03-29-2006, 11:21 PM   #8
CrEsPo
Member
 
Registered: Apr 2005
Location: Canada
Distribution: Slackware 12
Posts: 184

Original Poster
Rep: Reputation: 30
I followed this link to try and fix this problem. ALSA compiled with no errors and the modules loaded fine, but still no sound. Any ideas? I'm really not in the mood to reinstall the whole OS .
 
Old 03-30-2006, 12:33 AM   #9
wchild
Member
 
Registered: Mar 2006
Distribution: Slackware
Posts: 63

Rep: Reputation: 15
After every kernel modification you have to reinstall alsa-modules.
Remember, in 2.4 alsa is not included into the kernel.
And you've got no sound because probably all sound channels are muted by default like alsa uses to do. Run alsamixer and see.
 
Old 03-30-2006, 06:14 AM   #10
CrEsPo
Member
 
Registered: Apr 2005
Location: Canada
Distribution: Slackware 12
Posts: 184

Original Poster
Rep: Reputation: 30
Is there a specific alsa-modules package that I need? I tried two ways:

1. Installing the alsa packages from the Slackware 10.2 CD:
- alsa-driver-1.0.9b_2.4.31-i486-1
- alsa-lib-1.0.9-i486-1
- alsa-utils-1.0.9a-i486-2

2. Installing from a manual compile

I always checked alsamixer and the master was unmuted. I seen somewhere to unmute 'Audigy Analog/Digital Output Jack', which I did, but when I do that I hear static sounds. Is there anything else I should unmute?

Thanks for the reply.

Edit: I seemed to have solved it. I was doing some searches and noticed that I did not use the following when I compiled alsa.

Code:
./snddevices

chmod a+rw /dev/dsp /dev/mixer /dev/sequencer /dev/midi
I must of missed this on the page I followed. Just ran those commands and unmuted the 'Audigy Analog/Digital Output Jack' and it seems to be working. Thanks for all the replies .

Last edited by CrEsPo; 03-30-2006 at 06:28 AM.
 
Old 03-30-2006, 07:39 AM   #11
wchild
Member
 
Registered: Mar 2006
Distribution: Slackware
Posts: 63

Rep: Reputation: 15
Quote:
Originally Posted by CrEsPo
Is there a specific alsa-modules package that I need?
It's called alsa-driver and it contains alsa kernel modules.
Sorry for confusing you
 
Old 03-30-2006, 09:18 AM   #12
b0nd
Senior Member
 
Registered: Jan 2005
Distribution: Slackware, BackTrack, Windows XP
Posts: 1,020

Rep: Reputation: 45
hi,
me too had the same issue of "sound" everytime i compiled my 2.4.26 slackware kernel.
finally it was sorted out.
you can check out the link:
http://www.linuxquestions.org/questi...d.php?t=400204

regards
 
  


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
Very quick kernel recompile geomatt Linux - Software 4 02-22-2005 06:15 PM
quick q about kernel recompile verify_reality Linux - Newbie 1 07-19-2004 11:50 PM
kernel recompile question Danforth Linux - General 2 04-26-2004 12:36 AM
Quick Kernel Recompile Question PrimaryDataLoop Linux - Newbie 1 07-18-2003 04:10 AM
Kernel recompile question... phishman3579 Slackware 2 06-27-2003 10:48 PM

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

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