Ubuntu Forums ubuntu.com - launchpad.net - ubuntu help  

Go Back   Ubuntu Forums > The Ubuntu Forum Community > Forum Archive > Main Support Categories > General Help
Register Reset Password Forum Help Forum Council Search Today's Posts Mark Forums Read

Hello, Unregistered You are browsing a READ only archive of the main support categories pre 4/21/2008. You will not be able to post or reply any threads in this section.
Ubuntu 9.10 is out!!!

When downloading Ubuntu 9.10 please consider using bittorrent to get your copy of Ubuntu.

The Ubuntu Developers Summit for Lucid Lynx will be held the week of 16-Nov-2009 till 20-Nov-2009 in Dallas, TX USA. Visit the the Ubuntu wiki for more information about UDS and how to participate remotely.

General Help
All your general support questions for Ubuntu, Kubuntu, Edubuntu and Xubuntu.

 
Thread Tools Display Modes
Old October 21st, 2004   #1
butters
5 Cups of Ubuntu
 
Join Date: Oct 2004
Beans: 19
how to build a custom kernel / initrd for Ubuntu

I am interested in building a custom kernel for Ubuntu, as the one I'm running now tries to assign IRQ7 to both the ramdisk and Intel ICH, taking out my wireless networking and sound (even though Ubuntu perfectly recognizes and loads the modules for these devices). I took a look through the config file in /boot to check if Ubuntu has any special requirements that are different from Gentoo. Mainly its just ramdisk and initrd support (I can probably get rid of devfs since Ubuntu now uses udev).

I have no experience with building initrd images. How do I build a new initrd for my custom kernel? Is there a make initrd target? Can I boot Ubuntu without an initrd?

I have to give the Ubuntu developers some serious credit. It's not as tinker-friendly as Gentoo, but it's definately far ahead in the "90% perfect after 35 minute out-of-the-box default install" category. Its like Fedora Core but without the wretched stink of Red Hat. One minor gripe: gstreamer is simply not ready for consumption. I had to remove totem-gstreamer and install totem-xine in order to get mpeg playback to work.
butters is offline   Reply With Quote
Old October 21st, 2004   #2
triad169
Just Give Me the Beans!
 
Join Date: Oct 2004
Beans: 48
Re: how to build a custom kernel / initrd for Ubuntu

Howdy Butters,

Yes kernel is a beast (reminds me of them genkernel days). I havent messed with kernel yet in Ubuntu but it should be very similiar to Debian since it is based off debian. Just saw this nice How-to posted on PCLinux for compiling kernel in debian.

http://www.falkotimme.com/howtos/deb...pile/index.php

Actually after lookinmg through the Ubuntu Wiki there is a HowTo also in there:

http://wiki.ubuntu.com/KernelCompile

So between the two you should be all set.

Triad
triad169 is offline   Reply With Quote
Old October 21st, 2004   #3
butters
5 Cups of Ubuntu
 
Join Date: Oct 2004
Beans: 19
Re: how to build a custom kernel / initrd for Ubuntu

Oh god!! Why does Ubuntu make kernel configuration so painful? Even after doing a make mrproper on the source tree, it still insists on having tons and tons of modules enabled by default. I had to go through a keep hitting "n down" over and over again to clear out all the worthless nonsense.

Well, I still don't know how to deal with the whole initrd thing, so I just disabled ramdisk and initrd support. I assume the dpkg -i kernel-image command makes an entry in grub.conf (oops called by the deprecated menu.lst filename in Ubuntu), so I'll check that to see if it wants to have an initrd line for my new kernel, and delete it if it does.

Coming from an original love-sources tester who moved to the nitro patchset and typically compiles 2-3 kernels per week, it really disturbed me to have to slash and burn through menuconfig in order to get a reasonably trim kernel.

make help doesn't say anything about building an initrd image, but I did find some other configuration targets like make defconfig and minconfig that might make the next configuration less irritating than this one.

Since I'm not using Reiser4 anymore (sigh), I opted for a slightly more conservative kernel than my usual diet of nitro and love: plain vanilla 2.6.9 patched with 2.6.9-ck1.

It is my sincere hope that one day these forums can achieve the greatness of the Gentoo forums I love so much. First I'm going to have to work my way back into the 300+ post count...
butters is offline   Reply With Quote
Old October 23rd, 2004   #4
graham
5 Cups of Ubuntu
 
Join Date: Oct 2004
Beans: 12
Re: how to build a custom kernel / initrd for Ubuntu

Quote:
Originally Posted by butters
Oh god!! Why does Ubuntu make kernel configuration so painful? Even after doing a make mrproper on the source tree, it still insists on having tons and tons of modules enabled by default. I had to go through a keep hitting "n down" over and over again to clear out all the worthless nonsense.
I'm sure you've already thought of the obvious possibility - to make as much hardware as possible work out of the box.
Quote:
First I'm going to have to work my way back into the 300+ post count...
And what will that tell us?
__________________
Graham

Last edited by graham; October 23rd, 2004 at 05:07 AM..
graham is offline   Reply With Quote
Old March 14th, 2007   #5
tareko
First Cup of Ubuntu
 
Join Date: May 2006
My beans are hidden!
Re: how to build a custom kernel / initrd for Ubuntu

The link above from the ubuntu wiki is not right. The proper link is:

https://wiki.ubuntu.com/KernelCustomBuild

tarek : )
tareko is offline   Reply With Quote

Bookmarks

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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 12:04 PM.


vBulletin ©2000 - 2009, Jelsoft Enterprises Ltd. Ubuntu Logo, Ubuntu and Canonical © Canonical Ltd. Tango Icons © Tango Desktop Project. lingonberry