This HOWTO is for making a kernel that has Megaraid card kernel support. A ramdisk has to be made because the driver is a module. Apparently, if the driver is placed in the kernel (rather than module), you cannot use the raid utilities.

Assumptions:

Procedure:
     > cd /usr/src/linux-version-type
     > make mrproper
     > make menuconfig
     > make dep && make clean && make -j3 bzImage && make -j3 modules 
     > rm -rf /lib/modules/linux-version-type
     > make modules_install
     > cp System.map /boot/System.map-version-type
     > cp arch/i386/boot/bzImage /boot/vmlinuz-version-type
     > mkinitrd -f -v --preload=cdrom --with=megaraid \
                initrd-version-type.img version-type
     > cp initrd-version-type.img /boot/

     Now modify /etc/lilo.conf.  An example entry would be:

        image=/boot/vmlinuz-2.4.18custom
           label=linux-custom
           initrd=/boot/initrd-2.4.18custom.img
           read-only
           root=/dev/sda6
           append="hdc=ide-scsi mem=3900M" # mem=3900M is a work around for a 4GB system

     > lilo