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 08-31-2003, 02:42 PM   #1
JROCK1980
Member
 
Registered: Aug 2003
Distribution: FreeBSD
Posts: 490

Rep: Reputation: 30
Question Linux Kernel


Ok I was following previous thread about the making your own kernel. I cannot find the make file where it is stated that it will be at. Can anyone tell me where it might be then
 
Old 08-31-2003, 03:03 PM   #2
Mara
Moderator
 
Registered: Feb 2002
Location: Grenoble
Distribution: Debian
Posts: 9,696

Rep: Reputation: 232Reputation: 232Reputation: 232
The file should be in the main directory of the kernel source (in the same one you have .config). The filename is 'Makefile'.
 
Old 08-31-2003, 04:26 PM   #3
LinFreak!
Member
 
Registered: Jul 2003
Location: England
Distribution: slack9.1
Posts: 209

Rep: Reputation: 30
you will have to run "make xconfig" to create the makefile first! Notice that when installing any software from source you will have to configure it for your system by running "./configure", or similar, from the source directory. The command "make xconfig" (or "make menuconfig" for text only interface) is for the configuration of a kernel from source.
 
Old 09-01-2003, 02:03 PM   #4
JROCK1980
Member
 
Registered: Aug 2003
Distribution: FreeBSD
Posts: 490

Original Poster
Rep: Reputation: 30
RE: Kernel

I am sorry but I cannot find the .config file for kernel
 
Old 09-01-2003, 02:07 PM   #5
trickykid
LQ Guru
 
Registered: Jan 2001
Posts: 24,149

Rep: Reputation: 269Reputation: 269Reputation: 269
Re: RE: Kernel

Quote:
Originally posted by JROCK1980
I am sorry but I cannot find the .config file for kernel
Well unless you had one previous saved, it doesn't exist until after you configure the kernel... like with make xconfig or make menuconfig....
 
Old 09-01-2003, 02:20 PM   #6
JROCK1980
Member
 
Registered: Aug 2003
Distribution: FreeBSD
Posts: 490

Original Poster
Rep: Reputation: 30
I don't think I installed the linux sources due to the fact that I do not have /usr/src/linux directory
 
Old 09-01-2003, 02:29 PM   #7
acid2000
Member
 
Registered: Nov 2001
Location: Exeter, UK
Distribution: Gentoo 1.4
Posts: 243

Rep: Reputation: 30
that'll be why then. kernel.org?
 
Old 09-01-2003, 02:45 PM   #8
JROCK1980
Member
 
Registered: Aug 2003
Distribution: FreeBSD
Posts: 490

Original Poster
Rep: Reputation: 30
RE: kernel

Ok what files do I need to get to start this process
 
Old 09-01-2003, 03:13 PM   #9
LinFreak!
Member
 
Registered: Jul 2003
Location: England
Distribution: slack9.1
Posts: 209

Rep: Reputation: 30
kernel source and kernel headers.

try these

ftp://ftp.slackware.com/pub/slackwar...0-noarch-5.tgz

ftp://ftp.slackware.com/pub/slackwar....20-i386-5.tgz



edit: once you have them, run "pkgtool" as root and install the above packages. You are now able to compile a kernel.

Last edited by LinFreak!; 09-01-2003 at 03:15 PM.
 
Old 09-02-2003, 01:10 AM   #10
JROCK1980
Member
 
Registered: Aug 2003
Distribution: FreeBSD
Posts: 490

Original Poster
Rep: Reputation: 30
Exclamation RE: Kernel

So I just install the 2 packages and then make the menuconfig and stuff like that. Is there a good site that you can recommend with step by step instructions
 
Old 09-02-2003, 01:30 AM   #11
Ekj530
LQ Newbie
 
Registered: Aug 2003
Location: Atlantic Beach, NC USA
Distribution: Slackware 9
Posts: 23

Rep: Reputation: 15
I just compiled my first kernel and used the Slackware book on the Slack site and the sticky at the top of this forum. Just go to the kernel section(in the Slackware book http://www.slackware.com/book/index....urce=x948.html and it will tell you how to do it. If you follow the directions, it works like a charm. But, you do need to spend some time when you are selecting options for the kernel. I used the menuconfig and the xconfig option and xconfig was by far the easiest to navigate. And, make sure you read the help files for most options that relate to things you know you need. I missed my network card and it did not make the dependencies properly so I had to redo it. But, it was great for the experience.
 
Old 09-02-2003, 02:00 AM   #12
JROCK1980
Member
 
Registered: Aug 2003
Distribution: FreeBSD
Posts: 490

Original Poster
Rep: Reputation: 30
Exclamation RE: Kernel

I will try that. I took a look and that book is nice. I will let you know how my first kernel goes.
 
Old 09-03-2003, 12:50 AM   #13
JROCK1980
Member
 
Registered: Aug 2003
Distribution: FreeBSD
Posts: 490

Original Poster
Rep: Reputation: 30
RE: Kernel

ok I got the teo packaages and I tar- xvzf filename do I have to add anything else or what do I do after that ?
 
Old 09-03-2003, 08:43 AM   #14
Kjetil4455
Member
 
Registered: Jul 2003
Location: Norway/Drammen
Distribution: Slackware~
Posts: 250

Rep: Reputation: 30
hey dude, if you want a good readme, use you one that follows in the source package it worked for me
 
Old 09-03-2003, 12:12 PM   #15
JROCK1980
Member
 
Registered: Aug 2003
Distribution: FreeBSD
Posts: 490

Original Poster
Rep: Reputation: 30
RE: Kernel

Ok I went thru the whole process and when I boot up in ether or my linux. They are both the same kernel. What did I do wrong?
 
  


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
smp kernel: uncompressing Linux ..ok booting the kernel krissb Linux - General 1 11-16-2005 06:31 PM
Debian patched kernel vs official Linux Kernel gerald45 Debian 7 10-12-2005 04:45 AM
Linux kernel debugging and Linux kernel module programming Igor007 Programming 2 08-13-2005 05:12 AM
Linux kernel debugging and Linux kernel module programming Igor007 Linux - Enterprise 3 08-12-2005 02:47 PM
Linux Kernel Problem -- Kernel panic: CPU context corrupt crcooney Linux - Distributions 0 01-15-2004 08:48 AM

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

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