netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* (Solved) Problem compile kernel on Ubuntu and using on Debian
@ 2009-10-13 11:01 Jesper Dangaard Brouer
  2009-10-13 17:19 ` Frans Pop
  0 siblings, 1 reply; 2+ messages in thread
From: Jesper Dangaard Brouer @ 2009-10-13 11:01 UTC (permalink / raw)
  To: Linux Kernel Mailing List; +Cc: netdev@vger.kernel.org, Sam Ravnborg


Hi Google,

I had a problem compile kernel 2.6.31.3 on an Ubuntu 9.04 server (CPU
core i7) and using it on a Debian 5.0.3 lenny (CPU Atom 330).  Both
systems using the 64-bit version of the OS'es.  And kernel compiled
for x86_64.

Problems seen:
 "Waiting for root file system..."

If you get past this one, by compiling enough modules into the kernel,
BUT then a lot of modules does not seem to be loaded (modprobe).

Solution:

The solution seems to be related to the modules.dep files generated on
the Ubuntu system and copied to the debian system.

Run the following commands on the debian system:

 depmod -a              2.6.31.3-ubuntu-compiled
 update-initramfs -u -k 2.6.31.3-ubuntu-compiled
 update-grub2

Which means:
 1. update the modules.dep files
 2. recreate the initrd.img
 3. update the grub config

Q: I don't know why a depmod update is required, anyone feel free to answer that question?



Ubuntu 9.04:
 depmod -V
     module-init-tools 3.7-pre9
 gcc --version
     gcc (Ubuntu 4.3.3-5ubuntu4) 4.3.3

Debian lenny:
 depmod -V
     module-init-tools 3.4
 gcc --version
     gcc (Debian 4.3.2-1.1) 4.3.2


My reason for compiling on the Ubuntu system, is that its CPU is a
Core i7, which can compile the kernel in 5 minuts where the Debian
systems has a ATOM 330 CPU which uses 58 minuts to compile the same
kernel...

-- 
Med venlig hilsen / Best regards
  Jesper Brouer
  ComX Networks A/S
  Linux Network developer
  Cand. Scient Datalog / MSc.
  Author of http://adsl-optimizer.dk
  LinkedIn: http://www.linkedin.com/in/brouer


^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: (Solved) Problem compile kernel on Ubuntu and using on Debian
  2009-10-13 11:01 (Solved) Problem compile kernel on Ubuntu and using on Debian Jesper Dangaard Brouer
@ 2009-10-13 17:19 ` Frans Pop
  0 siblings, 0 replies; 2+ messages in thread
From: Frans Pop @ 2009-10-13 17:19 UTC (permalink / raw)
  To: Jesper Dangaard Brouer; +Cc: linux-kernel, netdev, sam

Jesper Dangaard Brouer wrote:
> If you get past this one, by compiling enough modules into the kernel,
> BUT then a lot of modules does not seem to be loaded (modprobe).
[...] 
> Q: I don't know why a depmod update is required, anyone feel free to
> answer that question?

The most likely reason is that the two systems have different, and 
incompatible, versions of module-init-tools.

I've seen the same problem in the past [1] and, after a hefty discussion, 
accepted that you just _have_ to always run depmod -a after installing a 
kernel and before generating an initrd.

Cheers,
FJP

[1] http://bugs.debian.org/518407

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2009-10-13 17:20 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-10-13 11:01 (Solved) Problem compile kernel on Ubuntu and using on Debian Jesper Dangaard Brouer
2009-10-13 17:19 ` Frans Pop

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).