From owner-freebsd-newbies@FreeBSD.ORG Wed May 5 17:05:45 2004 Return-Path: Delivered-To: freebsd-newbies@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 767CD16A4CF; Wed, 5 May 2004 17:05:45 -0700 (PDT) Received: from mail817.megamailservers.com (mail817.megamailservers.com [69.49.106.27]) by mx1.FreeBSD.org (Postfix) with ESMTP id E17BD43D45; Wed, 5 May 2004 17:05:44 -0700 (PDT) (envelope-from strick@covad.net) X-POP-User: strick.covad.net Received: from mist.nodomain (h-67-101-150-92.snfccasy.dynamic.covad.net [67.101.150.92])i4605ZRb028172 (version=TLSv1/SSLv3 cipher=EDH-RSA-DES-CBC3-SHA bits=168 verify=NO); Wed, 5 May 2004 20:05:43 -0400 Received: from mist.nodomain (localhost [127.0.0.1]) by mist.nodomain (8.12.9p2/8.12.9) with ESMTP id i440qnEG000960; Mon, 3 May 2004 17:52:49 -0700 (PDT) (envelope-from dan@mist.nodomain) Received: (from dan@localhost) by mist.nodomain (8.12.9p2/8.12.9/Submit) id i440qjm7000959; Mon, 3 May 2004 17:52:45 -0700 (PDT) (envelope-from dan) Date: Mon, 3 May 2004 17:52:45 -0700 (PDT) From: Dan Strick Message-Id: <200405040052.i440qjm7000959@mist.nodomain> To: kerith@gmx.net cc: freebsd-newbies@freebsd.org cc: freebsd-questions@freebsd.org Subject: Re: SATA X-BeenThere: freebsd-newbies@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Gathering place for new users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 06 May 2004 00:05:45 -0000 On Tue, 04 May 2004 01:25:37 +0200, Florian wrote: >> > On advice, I downloaded FreeBSD 4.10 RC2 (because 5.2.1 would not work) > but can't install it because the installer does not find my HDD which is a > 120gb Seagate drive on an on-board Silicon Image SiI 3112 SATARaid > Controller. > Is SATA support not yet implemented in RC2 but in the 4.9? Or is SATA only > supported in 5.x? > What can I do? >> FreeBSD supports some but not all ATA/SATA controllers. I believe release 5.2.1 has some support for the SiI 3112 chip but release 4.x does not. Your motherboard probably has a traditional parallel ATA interface. If so, you could do the installation on a regular ATA drive. (Which motherboard do you have?) Once you have installed FreeBSD 4.10 on the regular ATA drive, if you are feeling particularly adventuresome you could hack the FreeBSD 4.10 ATA driver to support the SiI 3112. It happens that PCI ATA controllers generally provide a similar programming interface. (See for exmaple the INCITS T13 unpublished draft "ATA/ATAPI Host Adapters Standard" or the Intel data sheets for ICHx cpu support chip sets.) All ATA adapters probably have their own individual quirks, but ATA adapters produced by the same manufacturer may tend to have the same quirks. SATA adapters are generally intended to work well enough with generic PCI ATA drivers as long as they mostly accept the controller configuration defaults. If you hack the FreeBSD 4.10 ATA driver to support the SiI 3112 as if it were an SiI 0680, you might get lucky. To do this, you must modify /sys/dev/ata/ata-pci.c to recognize the PCI device. In function ata_pci_match(), add the following case to the big switch statement: case 0x31121095: return "SiI 3112 SATA controller"; You might reasonably add it after the 0x31121095 case for the SiI 0680 controller. If you want the driver to attempt dma with this controller, you must add a case to function ata_dmainit() in /sys/dev/ata/ata-dma.c. Add this line: case 0x31121095: /* SiI 3112 SATA controller */ immediately before the line: case 0x06801095: /* SiI 0680 ATA133 controller */ You might also examine the release 5.2.1 ATA driver to see what it does specifically for the SiI 3112 SATA controller. I don't claim that these modifications to the ATA driver will work very well. I made them on my system (release 4.9) and it now sees the SiI 3112 SATA controller, but I have not yet dug up any spare SATA drives to test with the controller. Note that these modifications will not support the RAID features of your controller. Dan Strick strick@covad.net