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 ...
| |||||||
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| ||||
| 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 |
| |||
| On Tue, 05 Oct 2004 12:15:46 +0100, Bill Holt wrote: > # make mrproper > > What does this actually do? RTFM --- - 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 |
| |||
| 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 |
| |||
| "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." |
| |||
| 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 |
| |||
| 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 |
| |||
| In message <pan.2004.10.05.11.57.28.727090@nowhere.nospam>, Daniel de Kok <daniel@nowhere.nospam> writes > >RTFM > 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 |
| |||
| 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. |
| |||
| 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. |