What are the defaults when recompiling the kernel
I have read the online docs at slackware.com for recompiling the kernel, and I have a question on the following 2 commands
make mrproper make menuconfig The docs say for "make mrproper" the following Quote:
What I'm trying to achieve is to recompile the kernel for my architecture and possibly change some configuration options, but I would want to start with the options the currently distributed kernel (13.37) was compiled with. TIA, Andrew |
Look at /boot/config-generic-2.6.37.6 (which you can copy to /path/to/your/kernel/source/.config)
|
Thanks zakame
|
if you need a more detailed description of the necessary steps to follow for building a custom kernel, you can also have a look at the very detailed Alien BOB's kernel building wiki page.
|
Well illustrated Recompiling same kernel or compiling a new one process:
http://www.bitbenderforums.com/forum...&postid=296303 http://blog.tpa.me.uk/slackware-kernel-compile-guide/ command make mrproper restores your source code to its original or clean state command make menuconfig will bring up the text based interface for you to configure you kernel Which brings us to the question of how to preserve the running kernel as a fail safe? I've seen the answer in posts & tuts, maybe someone can explain the output process used to achieve this? |
Quote:
Start with /etc/lilo.conf, it includes references to your current set-up. This should show where is your kernel and initrd. Your modules should not be touched unless you are recompiling exactly the same kernel with the same LOCALVERSION. The firmware is tricky. I move it before I install the new one: mv /lib/firmware /lib/firmware-2.6.36 then make modules_install You may need to proprietary firmware from your old firmware directory (for example for wireless LAN) at a later stage. If it goes wrong, your system should still boot without the firmware, but it would lack some functionality until you restore it and reboot. |
Quote:
Your last question is answered as well in the wiki page pointed out by Ponce. Better learn the basics of lilo before trying to recompile your kernel. |
A good kernel building reference is Greg Kroah-Hartman's Linux Kernel in a Nutshell. The book is also available on Greg's website. Greg is a well known kernel developer.
Also, if you built a driver/module for your wifi card, for example. Keep the source code on your system in, say, /usr/local/src since you may need to rebuild the module for the new kernel. DNA AKA mrascii |
Hello mrascii, welcome to LQ.
Though Linux Kernel in a Nutshell be a interesting book, its reading is not necessary here; it could be even confusing for a beginner. @dualarrow & NightSky: again, just read carefully what Alien BOB wrote and if you don't understand the purpose or effect of a specific command, first read the manual for it, i.e. Code:
man <command_name> To know the commands available to configure and make the kernel, just launch an xterm and type: Code:
cd /usr/src/linux-<version> |
Quote:
|
@Zordrak: I meant the first link, sorry about that. The quoted post is now corrected :confused:
EDIT About "the vaguest sense of what you're doing", let me quote Shakespeare: Quote:
|
Thank you each and every one. First link I knew is outdated..just found all the detailed explanations of profiling your system's hardware + stat files & options in MenuConfig very clarifying, easy to read, it actually helped me understand the more current documentation. I Apologize if I've misinformed anyone.
|
zordak, thank for your tutorial, its one of the best an is printed. Specifying kernel version is not required. More important is clarifying:
Quote:
Your tutorialspecifies: Quote:
Here is what I have: Code:
:~$ ls -l /var/log/packages/ | grep kernel |
My advise is simpler than that: do not compile a pre-release kernel at all. The only people who really need to do that are the kernel or driver developers or maintainers.
Granted, nobody may forbid you to try. But bear in mind that as long as a kernel is not officially released there are possibilities that it breaks something in your system that you would have to fix yourself, if you can. |
Didier, Good to understand that. What about your post: Easier kernel configuration with 2.6.32? Went to kernel newbies, looking for current information for 3.2.21? Yes reading kernel release notes.
Thanks Didier. All i want to do is set the running kernel to the current hardware? Keeping kernel 3.2.21 is not a problem, because then i can keep running current upgrades without running slackpkg install new. Chris have you done this? |
All times are GMT -5. The time now is 07:49 PM. |