Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I want to recompile the stock Ubuntu kernel (on Oneiric) with just one change: include usbcore as a kernel module so it can be reloaded at runtime (I have some issue with usb support crashing at certain times and want to avoid rebooting).

I am following these instructions. I had/have two issues:

  1. I have already found out from the docs of kernel-package, that instead of what above instructions suggest, I should apparently be using the --append-to-version flag of make-kpkg to give a custom name for my compiled kernel (instead of just --revision).

  2. As I said I want to start of with all the default settings like in the Ubuntu stock kernel. When I start from the sources in the ubuntu package linux-source-3.0.0 and just call make menuconfig, will I be presented with the Ubuntu stock configuration, or some other defaults (mainline?). Should I then be rather copying a default configuration from somewhere else (e.g. /boot/config-...)?



share|improve this question
up vote 0 down vote accepted

Well, as I just gave somebody this answer an hour ago or so I'd hope you'd get a stock configuration.

Reasoning: When you download the source via apt-get source linux-image-3.0.0-16-generic or whatever it downloads the original Debian source then Ubuntu patches and applies them. Theoretically that'd include a .config...

share|improve this answer
Just doubled checked and I was correct in my assumptions. It doesn't include a .config, but it does include Ubuntu presets somewhere. For example, the "arbitrary version signature" is Ubuntu 3.0.0-15.26-generic – Chuck R Feb 18 '12 at 18:45
I double checked as well. When you run "make menuconfig" once, but dont change anything, it will create a .config that is identical to /boot/config-3.0.0-16-generic. Thanks for the response. – demmeln Feb 21 '12 at 14:52

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.