Mombu the GNU Linux Forum

Go Back   Mombu the GNU Linux Forum > GNU_Linux > Newbie and Kernel
User Name
Password
REGISTER NOW! Mark Forums Read




Reply Bookmark and Share
1 5th November 04:13
bill holt
External User
 
Posts: 1
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
  Reply With Quote


 


2 5th November 04:13
daniel de kok
External User
 
Posts: 1
Default Newbie and Kernel



RTFM , from linux/README:

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

cd linux
make mrproper
---

Should be clear enough.

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.

/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
  Reply With Quote
3 5th November 04:17
jeffrey froman
External User
 
Posts: 1
Default Newbie and Kernel


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
  Reply With Quote
4 5th November 04:18
ayaz ahmed khan
External User
 
Posts: 1
Default Newbie and Kernel


"Bill Holt" typed:

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."
  Reply With Quote
5 5th November 04:21
bill holt
External User
 
Posts: 1
Default Newbie and Kernel


In message <2sfv17F1itmnaU2@uni-berlin.de>, Ayaz Ahmed Khan
<resilient@myrealbox.com> writes


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
  Reply With Quote
6 5th November 04:21
bill holt
External User
 
Posts: 1
Default Newbie and Kernel


In message <10m5e2pa8m13n28@corp.supernews.com>, Jeffrey Froman
<jeffrey@fro.man> writes


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
  Reply With Quote
7 5th November 04:21
bill holt
External User
 
Posts: 1
Default Newbie and Kernel


In message <pan.2004.10.05.11.57.28.727090@nowhere.nospam>, Daniel de
Kok <daniel@nowhere.nospam> writes

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
  Reply With Quote
8 5th November 04:22
chud
External User
 
Posts: 1
Default Newbie and Kernel


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


Actually, you can build the kernel sources anywhere. Building under
/usr/src/linux-version/ is fine though.
  Reply With Quote
9 5th November 04:23
mikeyd
External User
 
Posts: 1
Default Newbie and Kernel


Deletes any built kernel image, any .o files, and any .config.


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.


/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.
  Reply With Quote


 


10 8th November 13:11
daniel de kok
External User
 
Posts: 1
Default Newbie and Kernel


Don't. We have all been there .
  Reply With Quote
Reply


Thread Tools
Display Modes


Some other forums that might be of your interest : Debian, Gentoo, Mandriva, Red hat, Suse, Slackware, Ubuntu, Gnu linux


Copyright © 2006 SmartyDevil.com - Dies Mies Jeschet Boenedoesef Douvema Enitemaus -
666