Compiling own kernel

Hey guys,

I’m trying to compile my own kernel. However, I hit a snag when I try to make an initrd image.

sudo -s mkinitrd

Kernel image: /boot/vmlinuz-2.6.25.18-0.2-default
Initrd image: /boot/initrd-2.6.25.18-0.2-default
Root device: /dev/sda2 (mounted on / as xfs)
Resume device: /dev/sda3
Kernel Modules: processor thermal dock scsi_mod libata pata_atiixp ahci fan xfs edd sd_mod usbcore ohci-hcd uhci-hcd ehci-hcd ff-memless hid usbhid
Features: block usb resume.userspace resume.kernel
Bootsplash: openSUSE (1280x1024)
24549 blocks

Kernel image: /boot/vmlinuz-2.6.27.4-default
Initrd image: /boot/initrd-2.6.27.4-default
Could not find the filesystem module for root device /dev/sda2 (xfs)

Here’s the expanded format:

mkinitrd -f -k -v

Kernel image: /boot/vmlinuz-2.6.25.18-0.2-default
Initrd image: /boot/initrd-2.6.25.18-0.2-default
Root device: /dev/sda2 (mounted on / as xfs)
Resume device: /dev/sda3
[BLOCK] /dev/sda -> ahci
[BLOCK] /dev/sda -> sd_mod
[MODULES] 02-start.sh: processor thermal pata_atiixp ahci fan xfs edd
[MODULES] 11-block.sh: ahci sd_mod
[MODULES] 11-usb.sh: usbcore
[MODULES] 11-usb.sh: ohci_hcd
[MODULES] 11-usb.sh: uhci-hcd
[MODULES] 11-usb.sh: ehci_hcd
[MODULES] 11-usb.sh: usbhid
[MODULES] 84-mount.sh: xfs
Kernel Modules: processor thermal dock scsi_mod libata pata_atiixp ahci fan xfs edd sd_mod usbcore ohci-hcd uhci-hcd ehci-hcd ff-memless hid usbhid
[MOUNT] Root: /dev/sda2
Features: block usb resume.userspace resume.kernel
Bootsplash: openSUSE (1280x1024)
Shared libs: lib64/ld-2.8.so lib64/libacl.so.1.1.0 lib64/libattr.so.1.1.0 lib64/libc-2.8.so lib64/libdl-2.8.so lib64/libgcc_s.so.1 lib64/libgcrypt.so.11.4.3 lib64/libgpg-error.so.0.4.0 lib64/libhistory.so.5.2 lib64/libncurses.so.5.6 lib64/libpthread-2.8.so lib64/libreadline.so.5.2 lib64/librt-2.8.so lib64/libutil-2.8.so lib64/libvolume_id.so.0.82.0 lib64/libz.so.1.2.3 usr/lib64/libdirect-1.1.so.0.1.0 usr/lib64/libdirectfb-1.1.so.0.1.0 usr/lib64/libfusion-1.1.so.0.1.0 usr/lib64/libglib-2.0.so.0.1600.3 usr/lib64/liblzo2.so.2.0.0 usr/lib64/libpcre.so.0.0.1 usr/lib64/libsplashycnf.so.1.0.0 usr/lib64/libsplashy.so.1.0.0 lib64/libnss_dns-2.8.so lib64/libnss_dns.so.2 lib64/libnss_files-2.8.so lib64/libnss_files.so.2 lib64/libgcc_s.so.1
24549 blocks

Kernel image: /boot/vmlinuz-2.6.27.4-default
Initrd image: /boot/initrd-2.6.27.4-default
Could not find the filesystem module for root device /dev/sda2 (xfs)

The initrd works for OpenSUSE’s kernel, but my custom kernel doesn’t work. It’s just 2.6.27.4 with some tweaks. Also, it does have xfs compiled into the kernel as a module.

Please help,
xboxrulz

ok, now it’s complaining that it can’t be booted into sda2 or unknown boot (0,0) or something like that, help?