From owner-freebsd-questions@FreeBSD.ORG Sat Sep 3 10:10:41 2005 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 41FEC16A41F for ; Sat, 3 Sep 2005 10:10:41 +0000 (GMT) (envelope-from xfb52@dial.pipex.com) Received: from smtp-out6.blueyonder.co.uk (smtp-out6.blueyonder.co.uk [195.188.213.9]) by mx1.FreeBSD.org (Postfix) with ESMTP id 8C40243D46 for ; Sat, 3 Sep 2005 10:10:39 +0000 (GMT) (envelope-from xfb52@dial.pipex.com) Received: from [82.41.229.102] ([82.41.229.102]) by smtp-out6.blueyonder.co.uk with Microsoft SMTPSVC(5.0.2195.6713); Sat, 3 Sep 2005 11:11:26 +0100 Message-ID: <4319769E.5020606@dial.pipex.com> Date: Sat, 03 Sep 2005 11:10:38 +0100 From: Alex Zbyslaw User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-GB; rv:1.7.8) Gecko/20050530 X-Accept-Language: en, en-us, pl MIME-Version: 1.0 To: perikillo References: <51d7a51605090223402aefb017@mail.gmail.com> In-Reply-To: <51d7a51605090223402aefb017@mail.gmail.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-OriginalArrivalTime: 03 Sep 2005 10:11:26.0631 (UTC) FILETIME=[D846E370:01C5B06F] Cc: freebsd-questions@freebsd.org Subject: Re: Problems to setup one PCI SCSI Card? Freebsd 5.4-p6 X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 03 Sep 2005 10:10:41 -0000 perikillo wrote: > Hi people i need to install one SCSI PCI card, the chip is support >by freebsd 5.4 hardware using the driver ahc: > > Chip 26160N Adaptec > > I read the man pages for the driver ahc(4), and say this: > >SYNOPSIS > For one or more VL/EISA cards: > device eisa > device ahc > > For one or more PCI cards: > device pci > device ahc > > To allow PCI adapters to use memory mapped I/O if enabled: > options AHC_ALLOW_MEMIO > > To configure one or more controllers to assume the target role: > options AHC_TMODE_ENABLE > > For one or more SCSI busses: > device scbus > > But i dosent understand what options i need in my kernel config >file, i have by default > >device eisa >device pci > > Them i add > >device ahc >options AHC_ALLOW_MEMIO > > > And them "make" give me error code 1, i remove options >AHC_ALLOW_MEMIO and give me again errors, my motherboard dosent have >any internal SCSI stuff. > > It's irrelevant whether your motherboard has SCSI, you are adding a SCSI card so need SCSI options. My config has device scbus #base SCSI code #device ch #SCSI media changers device da #SCSI direct access devices (aka disks) device sa #SCSI tapes device cd #SCSI CD-ROMs device ses #SCSI Environmental Services (and SAF-TE) #device pt #SCSI processor #device targ #SCSI Target Mode Code #device targbh #SCSI Target Mode Blackhole Device device pass #CAM passthrough driver device ahc Go to /usr/src/syc and read ../../conf/NOTES and NOTES which make up pretty much every option you can put into a kernel. scbus is mandatory and you can pick and choose the others depending on what you are going to attach. (Don't ask me what a SCSI Environmental Service is though). You might also want device atapicam # emulate ATAPI devices as SCSI ditto via CAM which allows atapi CDs and DVDs to be seen by the SCSI CAM code. This is particularly useful if you intend to burn CDs with (I think) cdrecord and probably other things as well. I've never used AHC_ALLOW_MEMIO so have no idea of its benefits or drawbacks. --Alex