Unix Technical Forum

Newbie and Kernel

This is a discussion on Newbie and Kernel within the Slackware Linux Support forums, part of the Unix Operating Systems category; --> I'm trying to work way beyond my knowledge or ability, so please be gentle. Have installed Slackware 10 with ...


Go Back   Unix Technical Forum > Unix Operating Systems > Slackware Linux Support

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 02-19-2008, 04:10 PM
Bill Holt
 
Posts: n/a
Default Newbie and Kernel

I'm trying to work way beyond my knowledge or ability, so please be
gentle.

Have installed Slackware 10 with 2.4.26 and want to try building and
perhaps installing a different kernel with the eventual aim of making a
Disk-On-Chip work. My first attempt has (as expected) failed.

In the Slackware book, Chap 4, I have reached

# make mrproper

What does this actually do? I read that it brings the kernel source into
its base state, but don't know what this means.

From KDE, I've tried to find a file called mrproper, but nothing comes
up.

In the initial installation, I said 'Install All'.

Before this, I am told to go to /usr/src/linux ..... Is this correct
or should I start in /usr/src/linux-2.4.26 ?
--
Bill Holt
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 02-19-2008, 04:10 PM
Daniel de Kok
 
Posts: n/a
Default Re: Newbie and Kernel

On Tue, 05 Oct 2004 12:15:46 +0100, Bill Holt wrote:
> # make mrproper
>
> What does this actually do?


RTFM , from linux/README:

---
- Make sure you have no stale .o files and dependencies lying around:

cd linux
make mrproper
---

Should be clear enough.

> From KDE, I've tried to find a file called mrproper, but nothing comes
> up.


Because mrproper is not a file, but a target in the Makefile. In the
Makefile you will see a line starting with "mrproper:". The lines that are
following describe what the mrproper target doesn.

> Before this, I am told to go to /usr/src/linux ..... Is this correct or
> should I start in /usr/src/linux-2.4.26 ?


/usr/src/linux is a symlink (softlink) to /usr/src/linux-2.4.26, you can
verify this with "ls -l /usr/src/linux".

With kind regards,
Daniel de Kok
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 02-19-2008, 04:11 PM
Jeffrey Froman
 
Posts: n/a
Default Re: Newbie and Kernel

Bill Holt wrote:

> # make mrproper
>
> What does this actually do? I read that it brings the kernel source into
> its base state, but don't know what this means.


It means that it removes any stale files left over from a previous compile
in that source tree, much like "make clean". The main difference between
"make clean" and "make mrproper" is that it ALSO wipes out your kernel
configuration, causing any previous configuration changes you've made to
disappear. Use with caution, or better yet, avoid using make mrproper
altogether. It is not necessary.

Jeffrey


Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 02-19-2008, 04:11 PM
Ayaz Ahmed Khan
 
Posts: n/a
Default Re: Newbie and Kernel

"Bill Holt" typed:
> Have installed Slackware 10 with 2.4.26 and want to try building and
> perhaps installing a different kernel with the eventual aim of making a
> Disk-On-Chip work. My first attempt has (as expected) failed.
>
> In the Slackware book, Chap 4, I have reached
>
> # make mrproper
>
> What does this actually do? I read that it brings the kernel source into
> its base state, but don't know what this means.
>
> From KDE, I've tried to find a file called mrproper, but nothing comes
> up.
>
> In the initial installation, I said 'Install All'.
>
> Before this, I am told to go to /usr/src/linux ..... Is this correct
> or should I start in /usr/src/linux-2.4.26 ?


There's a nice kernel HOWTO in /usr/doc/Linux-HOWTOs called
Kernel-HOWTO,

/usr/doc/Linux-HOWTOs/Kernel-HOWTO

which I read and followed carefully, and successfully recompiled a
kernel on my desktop machine for the first time two-to-three days
ago. You might want to have a look at it.

I observed that while the older kernel on my desktop machine took
approximately forty-seven seconds to boot, the recompiled kernel takes
approximately seven seconds less.

--
Ayaz Ahmed Khan, <http://fast-ce.org/linux>
"This is Linux Country. On a quiet night, you can hear NT reboot."
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #5 (permalink)  
Old 02-19-2008, 04:11 PM
Bill Holt
 
Posts: n/a
Default Re: Newbie and Kernel

In message <2sfv17F1itmnaU2@uni-berlin.de>, Ayaz Ahmed Khan
<resilient@myrealbox.com> writes
>
>There's a nice kernel HOWTO in /usr/doc/Linux-HOWTOs called
>Kernel-HOWTO,
>
> /usr/doc/Linux-HOWTOs/Kernel-HOWTO
>
>which I read and followed carefully, and successfully recompiled a
>kernel on my desktop machine for the first time two-to-three days
>ago. You might want to have a look at it.


Hmm... I find KernelAnalysis-HOWTO there but not the one you mention.
Again a search finds nothing of that name on the machine.

I am looking at the Kernel Rebuild HOWTO on

http://www.digitalhermit.com/linux/K...ild-HOWTO.html

in conjunction with the Slackware docs that I've found

Thanks.


--
Bill Holt
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #6 (permalink)  
Old 02-19-2008, 04:11 PM
Bill Holt
 
Posts: n/a
Default Re: Newbie and Kernel

In message <10m5e2pa8m13n28@corp.supernews.com>, Jeffrey Froman
<jeffrey@fro.man> writes
>Bill Holt wrote:
>
>> # make mrproper
>>
>> What does this actually do? I read that it brings the kernel source into
>> its base state, but don't know what this means.

>
>It means that it removes any stale files left over from a previous compile
>in that source tree, much like "make clean". The main difference between
>"make clean" and "make mrproper" is that it ALSO wipes out your kernel
>configuration, causing any previous configuration changes you've made to
>disappear. Use with caution, or better yet, avoid using make mrproper
>altogether. It is not necessary.


The Slackware.com 'book' says to:

# make mrproper
# make config
# make dep
# make clean

and then compile

so I now need to understand about what exactly these commands are
blowing away.

Are log files produced by these operations? If so where?

I'm very grateful for the help.
--
Bill Holt
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #7 (permalink)  
Old 02-19-2008, 04:11 PM
Bill Holt
 
Posts: n/a
Default Re: Newbie and Kernel

In message <pan.2004.10.05.11.57.28.727090@nowhere.nospam>, Daniel de
Kok <daniel@nowhere.nospam> writes
>
>RTFM , from linux/README:
>

Thanks. I feel stupid! :-)

I'm getting bogged down in so many readme type files and had missed this
one completely.

Very grateful for the pointer and will be back soon with more questions,
no doubt.
--
Bill Holt
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #8 (permalink)  
Old 02-19-2008, 04:11 PM
chud
 
Posts: n/a
Default Re: Newbie and Kernel

On Tue, 05 Oct 2004 12:15:46 +0100, Bill Holt wrote:

> I'm trying to work way beyond my knowledge or ability, so please be
> gentle.
>
> Have installed Slackware 10 with 2.4.26 and want to try building and
> perhaps installing a different kernel with the eventual aim of making a
> Disk-On-Chip work. My first attempt has (as expected) failed.
>

How did it fail? What error messages, etc.?

>
> Before this, I am told to go to /usr/src/linux ..... Is this correct
> or should I start in /usr/src/linux-2.4.26 ?


Actually, you can build the kernel sources anywhere. Building under
/usr/src/linux-version/ is fine though.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #9 (permalink)  
Old 02-19-2008, 04:11 PM
MikeyD
 
Posts: n/a
Default Re: Newbie and Kernel

Bill Holt wrote:

> I'm trying to work way beyond my knowledge or ability, so please be
> gentle.
>
> Have installed Slackware 10 with 2.4.26 and want to try building and
> perhaps installing a different kernel with the eventual aim of making a
> Disk-On-Chip work. My first attempt has (as expected) failed.
>
> In the Slackware book, Chap 4, I have reached
>
> # make mrproper
>
> What does this actually do? I read that it brings the kernel source into
> its base state, but don't know what this means.


Deletes any built kernel image, any .o files, and any .config.
>
> From KDE, I've tried to find a file called mrproper, but nothing comes
> up.


You won't. You need to run "make mrproper" from that directory. The command
is make, it reads the Makefile to understand what the parameter you give it
means.
>
> In the initial installation, I said 'Install All'.
>
> Before this, I am told to go to /usr/src/linux ..... Is this correct
> or should I start in /usr/src/linux-2.4.26 ?


/usr/src/linux is just a symlink to linux-x.y.z on a slack install, so it
doesn't matter. But yes, /usr/src/linux is the "proper" place.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #10 (permalink)  
Old 02-19-2008, 04:12 PM
Daniel de Kok
 
Posts: n/a
Default Re: Newbie and Kernel

On Tue, 05 Oct 2004 18:28:39 +0100, Bill Holt wrote:

>>RTFM , from linux/README:

> Thanks. I feel stupid! :-)


Don't. We have all been there .
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 11:26 AM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0
www.UnixAdminTalk.com