KernelCustomBuild

Differences between revisions 56 and 57
Revision 56 as of 2007-11-04 09:24:26
Size: 3431
Editor: 80-219-112-71
Comment: doc moved to https://help.ubuntu.com/community/Kernel/Compile
Revision 57 as of 2007-11-04 09:26:28
Size: 3158
Editor: 80-219-112-71
Comment:
Deletions are marked like this. Additions are marked like this.
Line 3: Line 3:
Please update any bookmarks. Please update any bookmarks or links pointing to this page.
Line 5: Line 5:
This page is now used for comments and questions. This page is now used for comments, questions and discussion.
Line 48: Line 48:
\!/ This page is duplicated on https://help.ubuntu.com/community/Kernel/Compile for some reason. Any changes here should be merged into that page, and this page should be deleted (redirected to the other) or provide additional information. Otherwise this will get even more messy over time.
Line 51: Line 49:
CategoryKernel CategoryDocumentation CategoryKernel

The Kernel build documentation has moved to https://help.ubuntu.com/community/Kernel/Compile

Please update any bookmarks or links pointing to this page.

This page is now used for comments, questions and discussion.

Comments

Q: What about custom install and netboot images (and their initrd etc)?, PeterMagnusson

A: Take a look at the Debian Installer instructions for this: http://wiki.debian.org/DebianInstaller/Modify/CustomKernel Although I haven't tried these instructions yet, and they might not quite work with the current Ubuntu Way, they look fairly comprehensive and should at least be a step in the right direction. (MatthewPalmer)

Q: What directory are you in when you run these commands ls -l debian/config/i386/ I'm sure you mean to untar the kernel source you just downloaded and cd into that tree (cd /usr/src ; tar xf linux-source-2.6.17.tar.bz2 ; cd linux-source-2.6.17) but there is no directory debian/config/i386 in there. debian/Config has .config files in it, but no bigiron file so i dono where that kernel comes from? EliCriffield

A: Maybe he meant debian/Config?

A2: On 6.06, the linux-source package does not include the debian directory, it seems. You need to install the source package for linux-image, with a command like

sudo apt-get source linux-image-2.6.15-27-386

SteveEdmondson

Q: Is there any way to get a kernel build faster? I would like to do some "light" kernel hacking. What are the easy steps to just compile a kernel image?

Q: What is Ubuntu's default kernel config? The kernel doesn't put anything in /proc/config.

  • like all debian-based system, ubuntu's kernel puts the config in  /boot/config-`uname -r` 

Q: Maybe that's not the right place to ask, but I am stuck... I am trying to compile a vanilla kernel (to test an issue with suspend/resume). I do not want to use the make-kpkg method --- too slow on recompiles. So I can compile the kernel, install modules, and then I make the initrd.img with the update-initramfs thing... and all seems to work, but the new kernel simply boots on a BusyBox and does not boot the system. How do I build an initramfs image equivalent to the standard ubuntu one? RomanoGiannetti2

  • Well, auto-answering. update-initramfs do work. I was bitten by this bug:

http://lists.debian.org/debian-kernel/2006/07/msg00427.html which seems to still exists. Call update-initramfs with -v and it will fail.

Q: What is the correct way to add 'lib/firmware/<custom-kernel>' to a custom kernel .deb so that the kernel and firmware can be distributed together?

Q: Where do the firmware images from the generic kernel come from - (ie which package?) - or how does one get them so one can build a generic kernel? It would be useful if this was explained somewhere.


CategoryKernel

KernelCustomBuild (last edited 2011-03-13 19:14:33 by 84-73-137-162)