LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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-31-2003, 01:12 PM   #1
wildtiger23
LQ Newbie
 
Registered: Mar 2003
Location: Montreal
Distribution: Slackware
Posts: 24

Rep: Reputation: 15
slackware 9, kernel???


I download the source files for the kernel 2.4.20 from slackware ftp site.

I used pkgtool for installing the sources.

And I have done this.

make menuconfig
make dep;make clean;make bzImage
cp /usr/src/linux/arch/i386/boot/bzImage /boot/vmlinuz.test

I add the new kernel in /etc/lilo.conf with label test

lilo [enter] without error

depmod -a [enter] without error

rm -rf /lib/modules/2.4.20

make modules modules_install

If a choose test or linux at startup, when the kernel try module depencies, a recived failes to initialize modules...... my xfree86, mouse, sound, etc.... doesn't work anymore.

I don't know what to do.
 
Old 03-31-2003, 02:09 PM   #2
bahamat
Member
 
Registered: Mar 2003
Distribution: Debian
Posts: 158

Rep: Reputation: 30
Compiling your kernel the quick and easy way:

make [menu|x|old]config
make dep clean bzImage modules modules_install install

Make will plop your hot off the press binaries in / (or /boot), update all of your links, and run lilo for you.

How come nobody thinks of running make install? What install guide are you using that tells you to cp your kernel manually??
 
Old 03-31-2003, 02:12 PM   #3
wildtiger23
LQ Newbie
 
Registered: Mar 2003
Location: Montreal
Distribution: Slackware
Posts: 24

Original Poster
Rep: Reputation: 15
KERNEL

Because I want to keep a kernel for backup....

ok make install do it?
 
Old 03-31-2003, 02:23 PM   #4
DaOne
Member
 
Registered: Jan 2003
Location: USA
Distribution: Slackware
Posts: 498

Rep: Reputation: 30
http://www.linuxquestions.org/questi...threadid=49035

It's at the top of the forum...check what you're doing against it, and maybe it'll help.
 
Old 03-31-2003, 04:27 PM   #5
bahamat
Member
 
Registered: Mar 2003
Distribution: Debian
Posts: 158

Rep: Reputation: 30
Quote:
Because I want to keep a kernel for backup....
make install doesn't overwrite your current kernel. Even if the versions match it'll rename your old one to *.old
 
Old 03-31-2003, 08:07 PM   #6
Hangdog42
LQ Veteran
 
Registered: Feb 2003
Location: Maryland
Distribution: Slackware
Posts: 7,803
Blog Entries: 1

Rep: Reputation: 422Reputation: 422Reputation: 422Reputation: 422Reputation: 422
Quote:
make install doesn't overwrite your current kernel. Even if the versions match it'll rename your old one to *.old
This is true, but you still want to have a backup kernel and Sysmap named something like *.good or *.dontmesswiththisifyouvalueyoursystem. If you don't and have two bad compiles in a row, you no longer have a good kernel. Believe me, I learned this one the hard way.
 
Old 03-31-2003, 08:49 PM   #7
DaOne
Member
 
Registered: Jan 2003
Location: USA
Distribution: Slackware
Posts: 498

Rep: Reputation: 30
Quote:
Believe me, I learned this one the hard way.
Yes...this is very good advice
 
Old 06-15-2003, 05:16 AM   #8
Lethario
LQ Newbie
 
Registered: Jun 2003
Posts: 11

Rep: Reputation: 0
Angry Kernel source

I am going crazy, I downloaded the new and improved slackware 9 ISO file burned it on to CD and installed it, but when I go to add drivers to my wireless LAN it says that it can't find the linux install directory, so I think ok I will first build a custom kernel and then add the drivers, but once again defeated, when I try to move to the /usr/src/linux directory it says that the directory is an invalid directory, and of course the make mrproper doesn't run from out side that directory. I know that the OS has a kernel because it runs but can someone help me find this directory. I know that the /usr/src/linux is normally a link but to where.
And how do you create a link.

I am a newbie so any help that could be given to this stupid and blind newbie that has obviously done something wrong would be great. I even download a different slackware9 iso and installed that hopping that would give the dir but no luck.

please help
 
Old 06-15-2003, 06:08 AM   #9
bongski55
Member
 
Registered: May 2003
Location: Somewhere in Asia
Distribution: ubuntu on Dell, Vista,XP triple boot
Posts: 276
Blog Entries: 1

Rep: Reputation: 30
The ISO you downloaded does not include the kernel source for space reasons. You have to "installpkg kernel source2.4.20.tgz" in order for you to compile anything.Download the kernel source from k directory in the ftp site where you dl the ISO .

Please read ALL the readme files that are included in the ISO and also the ftp site directory for slackware. You will find instructions there on what to do in case of problems.

I had a problem booting the CD in burned using the ISO and the solution is there in one of the readmes in the ftp site.
 
Old 06-15-2003, 06:15 AM   #10
bongski55
Member
 
Registered: May 2003
Location: Somewhere in Asia
Distribution: ubuntu on Dell, Vista,XP triple boot
Posts: 276
Blog Entries: 1

Rep: Reputation: 30
To wildTiger23,

IF you are using Slack 9 why do you need to compile a 2.4.20 kernel? It is already using the kernel. I think what you wanted is to install the kernel source which can be done simply by "installpkg kernel-source-2.4.20-noarch.tgz".
 
Old 06-15-2003, 10:05 PM   #11
awdoyle
Member
 
Registered: Aug 2002
Location: Portland, OR
Distribution: Xubuntu
Posts: 135

Rep: Reputation: 15
Quote:
What install guide are you using that tells you to cp your kernel manually?? --bahamat
http://www.tldp.org/HOWTO/Kernel-HOWTO/quick_steps.html
See section 2.4, step 10
 
Old 06-15-2003, 10:06 PM   #12
Lethario
LQ Newbie
 
Registered: Jun 2003
Posts: 11

Rep: Reputation: 0
Talking kernel

thanks for your help. I just needed the kernel source /usr/src/linux and all the files for a install that i am trying to do for my wlan card. I will try your suggestion. This is a great site thanks for all the good advice.
 
  


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
Slackware Walkthrough for kernel 2.6.12.4 from kernel 2.4.29 silverdrgn Slackware 14 08-15-2005 06:46 PM
compiled kernel 2.6.10 with slackware 10.0, kernel panic salviadud Linux - Newbie 1 02-09-2005 04:05 PM
Kernel Panic with new kernel in slackware Omniscientist Linux - General 4 11-12-2004 01:21 PM
Slackware 10, custom 2.6.7 kernel, lilo, loads kernel very slowly entropyv Slackware 3 08-19-2004 06:06 PM
slackware kernel source install (kernel 2.6.6) ? LinuxOG Slackware 22 06-06-2004 04:34 PM

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

All times are GMT -5. The time now is 09:08 AM.

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