How To Compile A Kernel - The Mandriva Way missing sata module

Discussion in 'HOWTO-Related Questions' started by geza, May 22, 2007.

  1. geza

    geza New Member

    Hello,
    I have followed precisely the nice description provided by howtoforge.com on my Mandriva 2007.1,
    still when I wanted to make the initrd:
    mkinitrd /boot/initrd-2.6.21.1-custom.img 2.6.21.1-custom
    I got the message:
    "No module ata_piix found for kernel 2.6.21.1-custom, aborting."
    It seems that besides the ata_piix.ko another module ahci is missing
    I guess related to sata driving.
    Do you have any idea how to solve this ? Copying these modules from earlier versions does not help.
     
  2. falko

    falko Super Moderator ISPConfig Developer

    What's in /etc/modules?
     
  3. geza

    geza New Member

    It is empty ...
    Geza
     
  4. falko

    falko Super Moderator ISPConfig Developer

    What's the output of
    Code:
    ls -l /etc
    ? I think there must be a modules.d directory or something similar.
     
  5. geza

    geza New Member

    ls /etc/mod*
    /etc/modprobe.conf /etc/modprobe.preload /etc/modules

    /etc/modprobe.d:
    ipw3945d ldetect-lst.conf visor

    /etc/modprobe.preload.d:
    cpufreq floppy
     
  6. falko

    falko Super Moderator ISPConfig Developer

    Can you check the files in /etc/modprobe.d and /etc/modprobe.preload.d as well as /etc/modprobe.conf if ata_piix is mentioned there somewhere?
     
  7. geza

    geza New Member

    Hello,
    in /etc/modprobe.conf I found:

    install scsi_hostadapter /sbin/modprobe ata_piix; /sbin/modprobe ahci; /sbin/mod
    probe sbp2; /bin/true
     
  8. falko

    falko Super Moderator ISPConfig Developer

    Can you comment out that line and try again?
     
  9. geza

    geza New Member

    Commenting out that line the mkinitrd works indeed. However I could not boot with the new
    kernel. I got a kernel panic message. I shall have a closer look or redo the whole procedure.

    If I comment the the ata_piix line from the /etc/modprobe.conf do I still have proper sata disk handling ?
     
  10. falko

    falko Super Moderator ISPConfig Developer

    What were the error messages before the kernel panic?
     
  11. geza

    geza New Member

    First it can't boot in video mode:
    "unknown video mode" and makes it text mode
    ... then
    "mount: error 6 mounting ext2 flags noatime ..
    switching to new root
    ERROR opening /dev/console!!!
    switching to new root failed
    initrd finished
    Kernel panic "
     
  12. falko

    falko Super Moderator ISPConfig Developer

    It seems that your new kernel is missing some options. I don't know if this is related to the ata_piix module. I guess all you can do is compile a new kernel and play around with the options during make menuconfig (you did load the configuration file of the working kernel, didn't you?).
     
  13. geza

    geza New Member

    Yes, I did. OK maybe I shall try with an other kernel if I have time...
    Anyway I just wanted to have a kernel ( >= 2.6.18), which can handle
    syntekdriver. I also tried this with the 2.6.21-linus Mandriva official, but
    the make always crashes ...
     

Share This Page