Hallo zusammen,
ich versuche auf Opensuse 11.1 den Kernel von der Source neu zu erstellen.
Ich benutze die xen-3.3.1.tar.gz Source.
Dafür habe ich die Readme Datei vom Xen Server, Punkt 5 benutzt.
-------------
5. To rebuild a kernel with a modified config:
# make linux-2.6-xen-config CONFIGMODE=menuconfig (or xconfig)
# make linux-2.6-xen-build
# make linux-2.6-xen-install
Depending on your config, you may need to use 'mkinitrd' to create
an initial ram disk, just like a native system e.g.
# depmod 2.6.18-xen
# mkinitrd -v -f --with=aacraid --with=sd_mod --with=scsi_mod initrd-2.6.18-xen.img 2.6.18-xen
--------------------------------------
Bis depmod 2.6.18-xen und mkinitrd hat alles funktioniert.
-----
Bei depmod 2.6.18-xen habe ich folgenden Fehler bekommen:
NODE2:/usr/src/xen-3.3.1 # depmod 2.6.18-xen
WARNING: Couldn't open directory /lib/modules/2.6.18-xen: No such file or directory
FATAL: Could not open /lib/modules/2.6.18-xen/modules.dep.temp for writing: No such file or directory
bei mkinitrd -v -f --with=aacraid --with=sd_mod --with=scsi_mod initrd-2.6.18-xen.img 2.6.18-xen
-----
NODE2:/usr/src/xen-3.3.1 # mkinitrd -v -f --with=aacraid --with=sd_mod --with=scsi_mod initrd-2.6.18-xen.img 2.6.18-xen
/sbin/mkinitrd: illegal option -- -
---
und bei
---
mkinitrd -v -f initrd-2.6.18-xen.img 2.6.18-xen
Kernel image: /boot/vmlinuz-2.6.18.8-xen
Initrd image: /boot/initrd-2.6.18.8-xen
Kernel Modules: <not available>
Could not find map 2.6.18-xen/boot/System.map, please specify a correct file with -M.
Kernel image: /boot/vmlinuz-2.6.27.23-0.1-xen
Initrd image: /boot/initrd-2.6.27.23-0.1-xen
Kernel Modules: <not available>
Could not find map 2.6.18-xen/boot/System.map, please specify a correct file with -M.
---
NODE2:/usr/src/xen-3.3.1 # mkinitrd -v -f -M /boot/System.map-2.6.18.8-xen
Kernel image: /boot/vmlinuz-2.6.18.8-xen
Initrd image: /boot/initrd-2.6.18.8-xen
Kernel Modules: <not available>
Could not find map /boot/System.map-2.6.18.8-xen/boot/System.map, please specify a correct file with -M.
Kernel image: /boot/vmlinuz-2.6.27.23-0.1-xen
Initrd image: /boot/initrd-2.6.27.23-0.1-xen
Kernel Modules: <not available>
Could not find map /boot/System.map-2.6.18.8-xen/boot/System.map, please specify a correct file with -M.
----
Was soll ich machen? Ich verstehe es nicht? Warum werden die xen-3.3.1???.gz und
initrd-2.6.18.8-xen nicht erzeugt? Warum funktioniert der Befehl mkinitrd -v -f -M /boot/System.map-2.6.18.8-xen nicht?
---
Im boot habe ich folgender Dateien:
---
ls -la -tr -h /boot
total 35M
-rw-r--r-- 1 root root 1.3K Jan 8 02:03 boot.readme
-rw-r--r-- 1 root root 8.0M May 14 22:37 xen-syms-dbg-3.3.1_18546_16-0.1.1
-rw-r--r-- 1 root root 510K May 14 22:37 xen-dbg-3.3.1_18546_16-0.1.1.gz
-rw-r--r-- 1 root root 7.8M May 14 22:38 xen-syms-3.3.1_18546_16-0.1.1
-rw-r--r-- 1 root root 507K May 14 22:38 xen-3.3.1_18546_16-0.1.1.gz
-rw-r--r-- 1 root root 2.2M May 27 11:35 vmlinuz-2.6.27.23-0.1-xen
-rw-r--r-- 1 root root 2.6M May 27 11:43 vmlinux-2.6.27.23-0.1-xen.gz
-rw-r--r-- 1 root root 87K May 27 11:43 config-2.6.27.23-0.1-xen
-rw-r--r-- 1 root root 117K May 27 11:44 symvers-2.6.27.23-0.1-xen.gz
-rw-r--r-- 1 root root 393K May 27 11:46 symtypes-2.6.27.23-0.1-xen.gz
-rw-r--r-- 1 root root 151K May 27 11:47 symsets-2.6.27.23-0.1-xen.tar.gz
-rw-r--r-- 1 root root 2.9M May 27 11:51 vmlinux-2.6.27.23-0.1-default.gz
-rw-r--r-- 1 root root 89K May 27 11:51 config-2.6.27.23-0.1-default
-rw-r--r-- 1 root root 117K May 27 11:52 symvers-2.6.27.23-0.1-default.gz
-rw-r--r-- 1 root root 396K May 27 11:53 symtypes-2.6.27.23-0.1-default.gz
-rw-r--r-- 1 root root 145K May 27 11:54 symsets-2.6.27.23-0.1-default.tar.gz
drwx------ 2 root root 12K Jun 23 16:14 lost+found
lrwxrwxrwx 1 root root 1 Jun 23 16:15 boot -> .
-rw------- 1 root root 512 Jun 23 16:25 backup_mbr
lrwxrwxrwx 1 root root 29 Jun 24 10:52 vmlinuz -> vmlinuz-2.6.27.23-0.1-default
lrwxrwxrwx 1 root root 28 Jun 24 10:53 initrd -> initrd-2.6.27.23-0.1-default
lrwxrwxrwx 1 root root 25 Jun 24 10:55 vmlinuz-xen -> vmlinuz-2.6.27.23-0.1-xen
lrwxrwxrwx 1 root root 24 Jun 24 10:55 initrd-xen -> initrd-2.6.27.23-0.1-xen
-rw-r--r-- 1 root root 6.0M Jun 24 10:55 initrd-2.6.27.23-0.1-xen
lrwxrwxrwx 1 root root 29 Jun 24 12:19 xen-syms -> xen-syms-3.3.1_18546_16-0.1.1
lrwxrwxrwx 1 root root 31 Jun 24 12:19 xen-dbg.gz -> xen-dbg-3.3.1_18546_16-0.1.1.gz
lrwxrwxrwx 1 root root 31 Jun 24 12:19 xen-dbg-3.gz -> xen-dbg-3.3.1_18546_16-0.1.1.gz
lrwxrwxrwx 1 root root 31 Jun 24 12:19 xen-dbg-3.3.gz -> xen-dbg-3.3.1_18546_16-0.1.1.gz
lrwxrwxrwx 1 root root 27 Jun 24 12:19 xen-3.gz -> xen-3.3.1_18546_16-0.1.1.gz
lrwxrwxrwx 1 root root 27 Jun 24 12:19 xen-3.3.gz -> xen-3.3.1_18546_16-0.1.1.gz
lrwxrwxrwx 1 root root 27 Jun 24 12:19 xen.gz -> xen-3.3.1_18546_16-0.1.1.gz
lrwxrwxrwx 1 root root 33 Jun 24 12:19 xen-syms-dbg -> xen-syms-dbg-3.3.1_18546_16-0.1.1
-rw-r--r-- 1 root root 438K Jul 2 16:17 message
-rw-r--r-- 1 root root 1.5M Jul 3 10:35 vmlinuz-2.6.18.8-xen
-rw-r--r-- 1 root root 62K Jul 3 10:35 config-2.6.18.8-xen
-rw-r--r-- 1 root root 938K Jul 3 10:35 System.map-2.6.18.8-xen
drwxr-xr-x 2 root root 1.0K Jul 3 10:48 grub
drwxr-xr-x 2 root root 1.0K Jul 3 11:48 System.map
drwxr-xr-x 5 root root 3.0K Jul 3 11:48 .
drwxr-xr-x 23 root root 4.0K Jul 3 13:09 ..
----
Soweit ich es verstanden habe, brauche ich im boot Verzeichnis folgender Dateien, die im Grub bei den alten Xen Grub eingetragen standen:
xen.gz -> xen-3.3.1???.gz (ist nicht neu erstellt worden)
initrd-2.6.18.8-xen -> initrd-2.6.18.8-xen (ist auch nicht erstellt worden)
vmlinuz-2.6.18.8-xen
###Don't change this comment - YaST2 identifier: Original name: xen###
title Xen -- openSUSE 11.1 - 2.6.27.23-0.1
root (hd0,0)
kernel /xen.gz
module /vmlinuz-2.6.27.23-0.1-xen root=/dev/system/root resume=/dev/system/swap splash=silent showopts vga=0x31a
module /initrd-2.6.27.23-0.1-xen
ich versuche auf Opensuse 11.1 den Kernel von der Source neu zu erstellen.
Ich benutze die xen-3.3.1.tar.gz Source.
Dafür habe ich die Readme Datei vom Xen Server, Punkt 5 benutzt.
-------------
5. To rebuild a kernel with a modified config:
# make linux-2.6-xen-config CONFIGMODE=menuconfig (or xconfig)
# make linux-2.6-xen-build
# make linux-2.6-xen-install
Depending on your config, you may need to use 'mkinitrd' to create
an initial ram disk, just like a native system e.g.
# depmod 2.6.18-xen
# mkinitrd -v -f --with=aacraid --with=sd_mod --with=scsi_mod initrd-2.6.18-xen.img 2.6.18-xen
--------------------------------------
Bis depmod 2.6.18-xen und mkinitrd hat alles funktioniert.
-----
Bei depmod 2.6.18-xen habe ich folgenden Fehler bekommen:
NODE2:/usr/src/xen-3.3.1 # depmod 2.6.18-xen
WARNING: Couldn't open directory /lib/modules/2.6.18-xen: No such file or directory
FATAL: Could not open /lib/modules/2.6.18-xen/modules.dep.temp for writing: No such file or directory
bei mkinitrd -v -f --with=aacraid --with=sd_mod --with=scsi_mod initrd-2.6.18-xen.img 2.6.18-xen
-----
NODE2:/usr/src/xen-3.3.1 # mkinitrd -v -f --with=aacraid --with=sd_mod --with=scsi_mod initrd-2.6.18-xen.img 2.6.18-xen
/sbin/mkinitrd: illegal option -- -
---
und bei
---
mkinitrd -v -f initrd-2.6.18-xen.img 2.6.18-xen
Kernel image: /boot/vmlinuz-2.6.18.8-xen
Initrd image: /boot/initrd-2.6.18.8-xen
Kernel Modules: <not available>
Could not find map 2.6.18-xen/boot/System.map, please specify a correct file with -M.
Kernel image: /boot/vmlinuz-2.6.27.23-0.1-xen
Initrd image: /boot/initrd-2.6.27.23-0.1-xen
Kernel Modules: <not available>
Could not find map 2.6.18-xen/boot/System.map, please specify a correct file with -M.
---
NODE2:/usr/src/xen-3.3.1 # mkinitrd -v -f -M /boot/System.map-2.6.18.8-xen
Kernel image: /boot/vmlinuz-2.6.18.8-xen
Initrd image: /boot/initrd-2.6.18.8-xen
Kernel Modules: <not available>
Could not find map /boot/System.map-2.6.18.8-xen/boot/System.map, please specify a correct file with -M.
Kernel image: /boot/vmlinuz-2.6.27.23-0.1-xen
Initrd image: /boot/initrd-2.6.27.23-0.1-xen
Kernel Modules: <not available>
Could not find map /boot/System.map-2.6.18.8-xen/boot/System.map, please specify a correct file with -M.
----
Was soll ich machen? Ich verstehe es nicht? Warum werden die xen-3.3.1???.gz und
initrd-2.6.18.8-xen nicht erzeugt? Warum funktioniert der Befehl mkinitrd -v -f -M /boot/System.map-2.6.18.8-xen nicht?
---
Im boot habe ich folgender Dateien:
---
ls -la -tr -h /boot
total 35M
-rw-r--r-- 1 root root 1.3K Jan 8 02:03 boot.readme
-rw-r--r-- 1 root root 8.0M May 14 22:37 xen-syms-dbg-3.3.1_18546_16-0.1.1
-rw-r--r-- 1 root root 510K May 14 22:37 xen-dbg-3.3.1_18546_16-0.1.1.gz
-rw-r--r-- 1 root root 7.8M May 14 22:38 xen-syms-3.3.1_18546_16-0.1.1
-rw-r--r-- 1 root root 507K May 14 22:38 xen-3.3.1_18546_16-0.1.1.gz
-rw-r--r-- 1 root root 2.2M May 27 11:35 vmlinuz-2.6.27.23-0.1-xen
-rw-r--r-- 1 root root 2.6M May 27 11:43 vmlinux-2.6.27.23-0.1-xen.gz
-rw-r--r-- 1 root root 87K May 27 11:43 config-2.6.27.23-0.1-xen
-rw-r--r-- 1 root root 117K May 27 11:44 symvers-2.6.27.23-0.1-xen.gz
-rw-r--r-- 1 root root 393K May 27 11:46 symtypes-2.6.27.23-0.1-xen.gz
-rw-r--r-- 1 root root 151K May 27 11:47 symsets-2.6.27.23-0.1-xen.tar.gz
-rw-r--r-- 1 root root 2.9M May 27 11:51 vmlinux-2.6.27.23-0.1-default.gz
-rw-r--r-- 1 root root 89K May 27 11:51 config-2.6.27.23-0.1-default
-rw-r--r-- 1 root root 117K May 27 11:52 symvers-2.6.27.23-0.1-default.gz
-rw-r--r-- 1 root root 396K May 27 11:53 symtypes-2.6.27.23-0.1-default.gz
-rw-r--r-- 1 root root 145K May 27 11:54 symsets-2.6.27.23-0.1-default.tar.gz
drwx------ 2 root root 12K Jun 23 16:14 lost+found
lrwxrwxrwx 1 root root 1 Jun 23 16:15 boot -> .
-rw------- 1 root root 512 Jun 23 16:25 backup_mbr
lrwxrwxrwx 1 root root 29 Jun 24 10:52 vmlinuz -> vmlinuz-2.6.27.23-0.1-default
lrwxrwxrwx 1 root root 28 Jun 24 10:53 initrd -> initrd-2.6.27.23-0.1-default
lrwxrwxrwx 1 root root 25 Jun 24 10:55 vmlinuz-xen -> vmlinuz-2.6.27.23-0.1-xen
lrwxrwxrwx 1 root root 24 Jun 24 10:55 initrd-xen -> initrd-2.6.27.23-0.1-xen
-rw-r--r-- 1 root root 6.0M Jun 24 10:55 initrd-2.6.27.23-0.1-xen
lrwxrwxrwx 1 root root 29 Jun 24 12:19 xen-syms -> xen-syms-3.3.1_18546_16-0.1.1
lrwxrwxrwx 1 root root 31 Jun 24 12:19 xen-dbg.gz -> xen-dbg-3.3.1_18546_16-0.1.1.gz
lrwxrwxrwx 1 root root 31 Jun 24 12:19 xen-dbg-3.gz -> xen-dbg-3.3.1_18546_16-0.1.1.gz
lrwxrwxrwx 1 root root 31 Jun 24 12:19 xen-dbg-3.3.gz -> xen-dbg-3.3.1_18546_16-0.1.1.gz
lrwxrwxrwx 1 root root 27 Jun 24 12:19 xen-3.gz -> xen-3.3.1_18546_16-0.1.1.gz
lrwxrwxrwx 1 root root 27 Jun 24 12:19 xen-3.3.gz -> xen-3.3.1_18546_16-0.1.1.gz
lrwxrwxrwx 1 root root 27 Jun 24 12:19 xen.gz -> xen-3.3.1_18546_16-0.1.1.gz
lrwxrwxrwx 1 root root 33 Jun 24 12:19 xen-syms-dbg -> xen-syms-dbg-3.3.1_18546_16-0.1.1
-rw-r--r-- 1 root root 438K Jul 2 16:17 message
-rw-r--r-- 1 root root 1.5M Jul 3 10:35 vmlinuz-2.6.18.8-xen
-rw-r--r-- 1 root root 62K Jul 3 10:35 config-2.6.18.8-xen
-rw-r--r-- 1 root root 938K Jul 3 10:35 System.map-2.6.18.8-xen
drwxr-xr-x 2 root root 1.0K Jul 3 10:48 grub
drwxr-xr-x 2 root root 1.0K Jul 3 11:48 System.map
drwxr-xr-x 5 root root 3.0K Jul 3 11:48 .
drwxr-xr-x 23 root root 4.0K Jul 3 13:09 ..
----
Soweit ich es verstanden habe, brauche ich im boot Verzeichnis folgender Dateien, die im Grub bei den alten Xen Grub eingetragen standen:
xen.gz -> xen-3.3.1???.gz (ist nicht neu erstellt worden)
initrd-2.6.18.8-xen -> initrd-2.6.18.8-xen (ist auch nicht erstellt worden)
vmlinuz-2.6.18.8-xen
###Don't change this comment - YaST2 identifier: Original name: xen###
title Xen -- openSUSE 11.1 - 2.6.27.23-0.1
root (hd0,0)
kernel /xen.gz
module /vmlinuz-2.6.27.23-0.1-xen root=/dev/system/root resume=/dev/system/swap splash=silent showopts vga=0x31a
module /initrd-2.6.27.23-0.1-xen