Find the answer to your Linux question:
Results 1 to 7 of 7
I'm having issues getting my SATA drives to work, I have enabled libata and ticked all the SATA controllers but I still can't pick up my drives. I'm building a ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    Jan 2009
    Posts
    3

    libata & SATA


    I'm having issues getting my SATA drives to work, I have enabled libata and ticked all the SATA controllers but I still can't pick up my drives.

    I'm building a Kernel (2.6.28.2) + Busybox initrd system and need to be able to see the disks, currently fdisk -l comes back blank.

    Does anyone know the minimal options to get libata working for both Parallel and Sata drives?

    EDIT: I should point out I want to use a static Kernel with no modules, don't know if that makes a difference.

  2. #2
    Just Joined! alex1983-0112's Avatar
    Join Date
    Apr 2008
    Location
    Russia
    Posts
    16
    Did you include SATA support when you build your Kernel?

  3. #3
    Linux Guru
    Join Date
    Nov 2007
    Posts
    1,746
    The SATA driver falls under SCSI code, so you would need the SCSI subsystem support as well.

    Code:
    lsmod | grep ata
    ata_generic            23812  0 
    libata                149320  2 ahci,ata_generic
    scsi_mod              152664  5 st,sr_mod,sg,sd_mod,libata

  4. #4
    Just Joined! alex1983-0112's Avatar
    Join Date
    Apr 2008
    Location
    Russia
    Posts
    16
    Quote Originally Posted by HROAdmin26 View Post
    The SATA driver falls under SCSI code, so you would need the SCSI subsystem support as well.
    Yes, you are right. But (2TopicStarter) don't forget to include drivers for you SATA controller.

  5. #5
    Just Joined!
    Join Date
    Jan 2009
    Posts
    3
    As I put in my first post I have put libata and all the available SATA controllers in to the kernel.

    I have enabled SCSI support and SCSI Disk support but only those two, if it would help I could post my .config but it's at home and despite the snow I'm not.

    What is ata_generic? do you know what kernel option that would fall under or is it done automatically?

    Since I've built a static kernel I don't think lsmod will work but I will build it in busybox and give it a try to see if it's all there.

    Thanks for taking a look.

  6. #6
    Linux Guru
    Join Date
    Nov 2007
    Posts
    1,746
    Dunno if it will help, but...

    Code:
    grep -i ata /boot/config-2.6.22.5-31-bigsmp 
    CONFIG_X86_MCE_NONFATAL=y
    CONFIG_RELOCATABLE=y
    CONFIG_ATALK=m
    # CONFIG_MTD_DATAFLASH is not set
    CONFIG_ATA_OVER_ETH=m
    # CONFIG_BLK_DEV_IDE_SATA is not set
    CONFIG_SCSI_EATA=m
    CONFIG_SCSI_EATA_TAGGED_QUEUE=y
    CONFIG_SCSI_EATA_LINKED_COMMANDS=y
    CONFIG_SCSI_EATA_MAX_TAGS=16
    CONFIG_ATA=m
    # CONFIG_ATA_NONSTANDARD is not set
    CONFIG_ATA_ACPI=y
    CONFIG_SATA_AHCI=m
    CONFIG_SATA_SVW=m
    CONFIG_ATA_PIIX=m
    CONFIG_SATA_MV=m
    CONFIG_SATA_NV=m
    CONFIG_SATA_QSTOR=m
    CONFIG_SATA_PROMISE=m
    CONFIG_SATA_SX4=m
    CONFIG_SATA_SIL=m
    CONFIG_SATA_SIL24=m
    CONFIG_SATA_SIS=m
    CONFIG_SATA_ULI=m
    CONFIG_SATA_VIA=m
    CONFIG_SATA_VITESSE=m
    CONFIG_SATA_INIC162X=m
    CONFIG_PATA_ALI=m
    CONFIG_PATA_AMD=m
    CONFIG_PATA_ARTOP=m
    CONFIG_PATA_ATIIXP=m
    CONFIG_PATA_CMD640_PCI=m
    CONFIG_PATA_CMD64X=m
    CONFIG_PATA_CS5520=m
    CONFIG_PATA_CS5530=m
    CONFIG_PATA_CS5535=m
    CONFIG_PATA_CYPRESS=m
    CONFIG_PATA_EFAR=m
    CONFIG_ATA_GENERIC=m
    CONFIG_PATA_HPT366=m
    CONFIG_PATA_HPT37X=m
    CONFIG_PATA_HPT3X2N=m
    CONFIG_PATA_HPT3X3=m
    CONFIG_PATA_ISAPNP=m
    CONFIG_PATA_IT821X=m
    CONFIG_PATA_IT8213=m
    CONFIG_PATA_JMICRON=m
    CONFIG_PATA_LEGACY=m
    CONFIG_PATA_TRIFLEX=m
    CONFIG_PATA_MARVELL=m
    CONFIG_PATA_MPIIX=m
    CONFIG_PATA_OLDPIIX=m
    CONFIG_PATA_NETCELL=m
    CONFIG_PATA_NS87410=m
    CONFIG_PATA_OPTI=m
    CONFIG_PATA_OPTIDMA=m
    CONFIG_PATA_PCMCIA=m
    CONFIG_PATA_PDC_OLD=m
    CONFIG_PATA_QDI=m
    CONFIG_PATA_RADISYS=m
    CONFIG_PATA_RZ1000=m
    CONFIG_PATA_SC1200=m
    CONFIG_PATA_SERVERWORKS=m
    CONFIG_PATA_PDC2027X=m
    CONFIG_PATA_SIL680=m
    CONFIG_PATA_SIS=m
    CONFIG_PATA_VIA=m
    CONFIG_PATA_WINBOND=m
    CONFIG_PATA_WINBOND_VLB=m
    CONFIG_USB_STORAGE_DATAFAB=y
    # CONFIG_INFINIBAND_IPOIB_DEBUG_DATA is not set
    CONFIG_ATARI_PARTITION=y
    # CONFIG_DEBUG_RODATA is not set
    Code:
    grep -i scsi /boot/config-2.6.22.5-31-bigsmp 
    CONFIG_CISS_SCSI_TAPE=y
    CONFIG_BLK_DEV_IDESCSI=m
    # SCSI device support
    CONFIG_SCSI=m
    CONFIG_SCSI_DMA=y
    CONFIG_SCSI_TGT=m
    CONFIG_SCSI_NETLINK=y
    CONFIG_SCSI_PROC_FS=y
    # SCSI support type (disk, tape, CD-ROM)
    # Some SCSI devices (e.g. CD jukebox) support multiple LUNs
    CONFIG_SCSI_MULTI_LUN=y
    CONFIG_SCSI_CONSTANTS=y
    CONFIG_SCSI_LOGGING=y
    # CONFIG_SCSI_SCAN_ASYNC is not set
    CONFIG_SCSI_WAIT_SCAN=m
    # SCSI Transports
    CONFIG_SCSI_SPI_ATTRS=m
    CONFIG_SCSI_FC_ATTRS=m
    CONFIG_SCSI_ISCSI_ATTRS=m
    CONFIG_SCSI_SAS_ATTRS=m
    CONFIG_SCSI_SAS_LIBSAS=m
    CONFIG_SCSI_SAS_LIBSAS_DEBUG=y
    # SCSI low-level drivers
    CONFIG_ISCSI_TCP=m
    CONFIG_SCSI_ISCSI_DEBUG=y
    CONFIG_SCSI_3W_9XXX=m
    CONFIG_SCSI_7000FASST=m
    CONFIG_SCSI_ACARD=m
    CONFIG_SCSI_AHA152X=m
    CONFIG_SCSI_AHA1542=m
    CONFIG_SCSI_AACRAID=m
    CONFIG_SCSI_AIC7XXX=m
    CONFIG_SCSI_AIC7XXX_OLD=m
    CONFIG_SCSI_AIC79XX=m
    CONFIG_SCSI_AIC94XX=m
    CONFIG_SCSI_DPT_I2O=m
    CONFIG_SCSI_ADVANSYS=m
    CONFIG_SCSI_IN2000=m
    CONFIG_SCSI_ARCMSR=m
    CONFIG_SCSI_HPTIOP=m
    CONFIG_SCSI_BUSLOGIC=m
    # CONFIG_SCSI_OMIT_FLASHPOINT is not set
    CONFIG_SCSI_DMX3191D=m
    CONFIG_SCSI_DTC3280=m
    CONFIG_SCSI_EATA=m
    CONFIG_SCSI_EATA_TAGGED_QUEUE=y
    CONFIG_SCSI_EATA_LINKED_COMMANDS=y
    CONFIG_SCSI_EATA_MAX_TAGS=16
    CONFIG_SCSI_FUTURE_DOMAIN=m
    CONFIG_SCSI_GDTH=m
    CONFIG_SCSI_GENERIC_NCR5380=m
    CONFIG_SCSI_GENERIC_NCR5380_MMIO=m
    CONFIG_SCSI_GENERIC_NCR53C400=y
    CONFIG_SCSI_IPS=m
    CONFIG_SCSI_INITIO=m
    CONFIG_SCSI_INIA100=m
    CONFIG_SCSI_PPA=m
    CONFIG_SCSI_IMM=m
    # CONFIG_SCSI_IZIP_EPP16 is not set
    # CONFIG_SCSI_IZIP_SLOW_CTR is not set
    CONFIG_SCSI_NCR53C406A=m
    CONFIG_SCSI_STEX=m
    CONFIG_SCSI_SYM53C8XX_2=m
    CONFIG_SCSI_SYM53C8XX_DMA_ADDRESSING_MODE=1
    CONFIG_SCSI_SYM53C8XX_DEFAULT_TAGS=16
    CONFIG_SCSI_SYM53C8XX_MAX_TAGS=64
    CONFIG_SCSI_SYM53C8XX_MMIO=y
    CONFIG_SCSI_IPR=m
    CONFIG_SCSI_IPR_TRACE=y
    CONFIG_SCSI_IPR_DUMP=y
    CONFIG_SCSI_PAS16=m
    CONFIG_SCSI_PSI240I=m
    CONFIG_SCSI_QLOGIC_FAS=m
    CONFIG_SCSI_QLOGIC_1280=m
    CONFIG_SCSI_QLA_FC=m
    CONFIG_SCSI_QLA_ISCSI=m
    CONFIG_SCSI_LPFC=m
    # CONFIG_SCSI_SEAGATE is not set
    CONFIG_SCSI_SYM53C416=m
    CONFIG_SCSI_DC395x=m
    CONFIG_SCSI_DC390T=m
    CONFIG_SCSI_T128=m
    CONFIG_SCSI_U14_34F=m
    CONFIG_SCSI_U14_34F_TAGGED_QUEUE=y
    CONFIG_SCSI_U14_34F_LINKED_COMMANDS=y
    CONFIG_SCSI_U14_34F_MAX_TAGS=8
    CONFIG_SCSI_ULTRASTOR=m
    CONFIG_SCSI_NSP32=m
    CONFIG_SCSI_DEBUG=m
    CONFIG_SCSI_SRP=m
    # PCMCIA SCSI adapter support
    CONFIG_PCMCIA_NINJA_SCSI=m
    # Old CD-ROM drivers (not SCSI, not IDE)
    CONFIG_CD_NO_IDESCSI=y
    CONFIG_I2O_SCSI=m
    # NOTE: USB_STORAGE enables SCSI, and 'SCSI disk support'

    ATA_GENERIC.C

  7. #7
    Just Joined!
    Join Date
    Jan 2009
    Posts
    3
    Thanks for the Kernel configs, it wasn't that though but cheers for the help anyway.

    I dug through the dmesg output (after I added dmesg to busybox) found some errors and googled them, turns out you need some processor functions enabled as well.

    I enabled quite a few and it worked, things like SMP and Multicore Scheduler, Hyperthreading and ACPI.

    Now I'm just disabling them one by one to see which ones I actually need, I've rebuilt the kernel about 30 times today.

    When I've pinpointed it I will post what I needed in the end along with the errors from dmesg, so anyone finding this by google won't have to rebuild their Kernel so many times.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •