From owner-freebsd-questions@FreeBSD.ORG Mon Jan 12 01:20:11 2004 Return-Path: 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 2DFC316A4CE for ; Mon, 12 Jan 2004 01:20:11 -0800 (PST) Received: from smtp.mailbox.co.uk (smtp.mailbox.net.uk [195.82.125.32]) by mx1.FreeBSD.org (Postfix) with ESMTP id 8E6CE43D48 for ; Mon, 12 Jan 2004 01:20:05 -0800 (PST) (envelope-from sysadmin@stjamessengirls.org.uk) Received: from [212.18.245.194] (helo=SJMOBILE11) by smtp.mailbox.co.uk with smtp (Exim 3.36 #1) id 1AfyEs-0001mX-00; Mon, 12 Jan 2004 09:20:03 +0000 Message-ID: <002c01c3d8ed$57300740$0b00000a@stjames.net> From: "Martyn Hill" To: "Paul Hoffman" References: Date: Mon, 12 Jan 2004 09:20:37 -0000 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 5.50.4927.1200 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4927.1200 cc: FreeBSD-questions Subject: Re: How do I add a third ATA controller to 4.8? X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 12 Jan 2004 09:20:11 -0000 Paul I notice that the kernel config file you present is using the "old" device ata lines - is the ATA controller a particularly old model? If not, then the LINT kernel config file shows an alternative, viz device ata # just one entry for all ata controllers, no need to reference IRQs etc... device atadisk # for your IDE disks device atapicd # for your CD-ROM like devices You should comment out the ata0/ata1 lines before adding the above (and additionally, remove any "device wd*" lines in that section.) Then rebuild your kernel. Hope that helps. Martyn Hill Network Administrator St James Independent School London ----- Original Message ----- From: "Paul Hoffman" To: Sent: Monday, January 12, 2004 5:13 AM Subject: How do I add a third ATA controller to 4.8? > Greetings again. I have a Dell 600SC that has three ATA controllers > on the motherboard, and I'm running 4.8 quite happily on it. The > GENERIC kernel has the following: > > device ata0 at isa? port IO_WD1 irq 14 > device ata1 at isa? port IO_WD2 irq 15 > > Since I didn't know the irq used by the third controller (it's not > listed in their documentation, of course!), I blithely tried adding: > > device ata2 at isa? port IO_WD3 > > However, when rebuilding this kernel, I get the following error: > > cc -c -O -pipe -Wall -Wredundant-decls -Wnested-externs > -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Winline > -Wcast-qual -fformat-extensions -ansi -nostdinc -I- -I. -I../.. > -I../../../include -I../../contrib/ipfilter -D_KERNEL -include > opt_global.h -mpreferred-stack-boundary=2 ioconf.c > ioconf.c:48: `IO_WD3' undeclared here (not in a function) > ioconf.c:48: initializer element is not constant > ioconf.c:48: (near initialization for `ata2_resources[1].u.longval') > *** Error code 1 > > So, what am I supposed to add to the kernel to add this third controller? > > --Paul Hoffman > _______________________________________________ > freebsd-questions@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to "freebsd-questions-unsubscribe@freebsd.org"