From owner-freebsd-questions Thu Jul 15 7:57:52 1999 Delivered-To: freebsd-questions@freebsd.org Received: from berk.mail.netforce.net (berk.mail.netforce.net [195.58.64.236]) by hub.freebsd.org (Postfix) with ESMTP id E87A015566 for ; Thu, 15 Jul 1999 07:57:47 -0700 (PDT) (envelope-from jholtom@netforce.net) Received: from janus.i.netforce.net (e0.gateway-1.route.netforce.net [195.58.64.67]) by berk.mail.netforce.net (8.8.8/8.8.7) with ESMTP id QAA11237 for ; Thu, 15 Jul 1999 16:17:08 +0100 Date: Thu, 15 Jul 1999 16:06:01 +0100 (BST) From: James Holtom Reply-To: James Holtom To: freebsd-questions@FreeBSD.ORG Subject: Compaq RAID Problems Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Hi, I am trying to get a 3.2 boot floppy which supports a Compaq RAID controller -- so that I can install (3.2) onto the Compaq Proliant I have just been given, and am trying to prove I can use usefully, before it gets taken away from me ;-) I am tring to use the code by Mark Dawson (http://www.doc.ic.ac.uk/~md/ida/) Unfortunately Mark's web-page only carries a boot image for 2.2.7 which doesn't detect the network-card, and I am also doubtful as to how easily it would be able to install 3.2, and create a working bootable kernel either... I am therefore resigned to a spot of DIY. So, since the code for the controller is now in CVS, I csvupped a few days ago (tracking 3.2-Stable) , and have since rebuilt `world' successfully. I am now trying to create a custom kernel, with support for the RAID controller, using Mark's code (/usr/src/sys/i386/isa/ida.c). I have simply taken the GENERIC kernel, and added the gubbins to provide RAID support, as dictated in the LINT file, and done the usual: ie config COMPAQ, make depend, and then try to build it. I cannot get the darn thing to compile. When I get to the `make` stage, I get an explosion from cc: > Quoted > cc -c -O -Wreturn-type -Wcomment -Wredundant-decls -Wimplicit -Wnested-externs -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Winline -Wuninitialized -Wformat -Wunused -fformat-extensions -ansi -nostdinc -I- -I. -I../.. -I../../../include -DKERNEL -DVM_STACK -include opt_global.h -elf ../../i386/isa/ida.c ../../i386/isa/ida.c: In function `ida_attach_drives': ../../i386/isa/ida.c:844: too few arguments to function `devstat_add_entry' ../../i386/isa/ida.c: In function `idaintr': ../../i386/isa/ida.c:1437: warning: unsigned int format, physaddr_t arg (arg 3) *** Error code 1 Stop. < Quoted < And if you look at the code (ida.c), there are indeed too few arguments for devstat_add_entry, its called with one-fewer than the prototype requires. So, obviously, does anyone have this working...? I am reluctant to just `bodge' a value in, and haven't really got the time to learn all the gory-details of FreeBSDs internals in order to fix it myself... Can anyone help? Or should I be talking to Mark directly, rather than cluttering up this list? Cheers James To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message