[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Compiling kernel for other machines



I need to be able to compile a kernel on my fast workstation, and install
it on a sarge machine under vmware.  I am able to compile the kernel just
fine using make-kpkg (targets kernel_image and kernel_headers), and it
installs on the vmware machine and runs fine.

I am having a problem with the way the modules directory is set up.  If I
install a 2.6.x kernel using aptitude, the modules directory looks like
this:

$ ls -l /lib/modules/2.6.8-2-686
total 824
drwxr-xr-x   2 root root   4096 2005-03-02 05:10 boot
lrwxrwxrwx   1 root root     35 2005-03-02 05:10 build ->
/usr/src/kernel-headers-2.6.8-2-686
drwxr-xr-x   2 root root   4096 2005-03-02 05:10 initrd
drwxr-xr-x  10 root root   4096 2005-01-27 02:19 kernel
-rw-r--r--   1 root root 138720 2005-03-02 05:11 modules.alias
-rw-r--r--   1 root root     69 2005-03-02 05:11 modules.ccwmap
-rw-r--r--   1 root root 233307 2005-03-02 05:11 modules.dep
-rw-r--r--   1 root root    517 2005-03-02 05:11 modules.ieee1394map
-rw-r--r--   1 root root   1061 2005-03-02 05:11 modules.inputmap
-rw-r--r--   1 root root  16427 2005-03-02 05:11 modules.isapnpmap
-rw-r--r--   1 root root 131958 2005-03-02 05:11 modules.pcimap
-rw-r--r--   1 root root 104901 2005-03-02 05:11 modules.symbols
-rw-r--r--   1 root root 157116 2005-03-02 05:11 modules.usbmap
lrwxrwxrwx   1 root root     89 2005-03-02 05:10 source ->
/home/dilinger/src/kernel/kernel-image/2.6.8-13/kernel-image-2.6.8-i386-2.6.8/install-686

However, when I install my custom kernel, it looks like this:

$ ls -l /lib/modules/2.6.11.20050307vmware
total 500
lrwxrwxrwx  1 root root     21 2005-03-07 03:12 build ->
/usr/src/linux-2.6.11
drwxr-xr-x  9 root root   4096 2005-03-07 03:12 kernel
-rw-r--r--  1 root root  89137 2005-03-07 03:12 modules.alias
-rw-r--r--  1 root root     69 2005-03-07 03:12 modules.ccwmap
-rw-r--r--  1 root root  91080 2005-03-07 03:12 modules.dep
-rw-r--r--  1 root root     73 2005-03-07 03:12 modules.ieee1394map
-rw-r--r--  1 root root   1141 2005-03-07 03:12 modules.inputmap
-rw-r--r--  1 root root   2006 2005-03-07 03:12 modules.isapnpmap
-rw-r--r--  1 root root  40503 2005-03-07 03:12 modules.pcimap
-rw-r--r--  1 root root  37111 2005-03-07 03:12 modules.symbols
-rw-r--r--  1 root root 209244 2005-03-07 03:12 modules.usbmap
lrwxrwxrwx  1 root root     21 2005-03-07 03:12 source ->
/usr/src/linux-2.6.11

Notice that the symlink to build is pointing at the kernel-headers
directory when I install the Debian package.  But when I install my custom
kernel package, the symlink to build points at the source directory, which
is totally useless on the vmware machine.

What am I doing wrong?  Any ideas?





Reply to: