From owner-freebsd-hardware@FreeBSD.ORG Sun Nov 6 03:51:33 2011 Return-Path: Delivered-To: freebsd-hardware@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id F1AC91065674 for ; Sun, 6 Nov 2011 03:51:33 +0000 (UTC) (envelope-from stephane.lapie@darkbsd.org) Received: from quasar.darkbsd.org (shinigami.darkbsd.org [82.227.96.182]) by mx1.freebsd.org (Postfix) with ESMTP id 910DC8FC0A for ; Sun, 6 Nov 2011 03:51:33 +0000 (UTC) Received: from quasar.darkbsd.org (localhost [127.0.0.1]) by quasar.darkbsd.org (Postfix) with ESMTP id 9F3B2738C; Sun, 6 Nov 2011 04:51:34 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=darkbsd.org; h=message-id :date:from:mime-version:to:cc:subject:references:in-reply-to :content-type; s=selector1; bh=KWo1I0vYUnSA1e19werTkn+v164=; b=r AVfUsgGwv3KZA9+gaFYCNQLRzA7qnh0zt2+1PMejPBoDmupJMljBAlzCfH1/YGuc DP9FZXy4JqRBZe9/wrGZzCqXWYOcRZyLSns02Kc0fE22mvcQF+99GARYsq3ZbbBo eOjySk6qY8foQEzdqw+LBi4tqZykRbWXz8RrCYDnZ0= DomainKey-Signature: a=rsa-sha1; c=nofws; d=darkbsd.org; h=message-id :date:from:mime-version:to:cc:subject:references:in-reply-to :content-type; q=dns; s=selector1; b=UyNph1tZLmv+McNcE0miVza5K1K 9MrK/YWE3oOilFVVEpVNUzodNsLV2pOhM+etQVCJ0b6uMJ8wdesFeZO9Vl+Vce1W 4HQo9NXcfoxIRngoI0ffMBg0QVglNYmdc6jmBkpsn3UZdqxVnuJeQg7hq6+EaPkd ZTOSbtPRrlE6aG7w= DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=darkbsd.org; h= content-type:content-type:in-reply-to:references:subject:subject :mime-version:user-agent:from:from:date:date:message-id:received :received; s=selector1; t=1320551489; bh=AXjMIjlbf3R/Hytg/H+7Lkk Y0aOyMqJc8TIsDUVmUK8=; b=JT52/ZaolfWKxZ2b4f3iYxP+jjhAsJXN3gPsPgC qtjKGRS87sU0sRojcTcUk6MmmMnjqRw/p2BQFC7IVlrSEFQko9HOzxXjnJpFIXPA GYBDR3Aqbi/96DdaqNVZBbCTyB6PJ2Ej0HkUb36+IYFShgpjGf+PdYLcKWl9O18L D7kU= Received: from quasar.darkbsd.org ([127.0.0.1]) by quasar.darkbsd.org (quasar.darkbsd.org [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id PaE+mM0kcZa8; Sun, 6 Nov 2011 04:51:29 +0100 (CET) Received: from [192.168.3.42] (archer.yomi.darkbsd.org [192.168.3.42]) (Authenticated sender: darksoul) by quasar.darkbsd.org (Postfix) with ESMTPSA id 374227384; Sun, 6 Nov 2011 04:51:26 +0100 (CET) Message-ID: <4EB60421.1010603@darkbsd.org> Date: Sun, 06 Nov 2011 12:50:57 +0900 From: Stephane LAPIE User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.23) Gecko/20110922 Thunderbird/3.1.15 MIME-Version: 1.0 To: linux freaker References: <4EB57E28.5090906@darkbsd.org> In-Reply-To: X-Enigmail-Version: 1.1.2 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="------------enig45E218B0E902806F532A8A77" Cc: freebsd-hardware@freebsd.org Subject: Re: Support for MegaRAID SAS on FreeBSD X-BeenThere: freebsd-hardware@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: General discussion of FreeBSD hardware List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 06 Nov 2011 03:51:34 -0000 This is an OpenPGP/MIME signed message (RFC 2440 and 3156) --------------enig45E218B0E902806F532A8A77 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Hi, The instructions I provided work for 9.x and 8.x (well, minus the mfi.c modification). To make things simple : - For installing 6.x, 7.x and 8.x, just grab the appropriate archive from LSI's site and use it as is. (don't modify the mfi.c !) - For installing 9.x, grab the 8.x driver, modify the one line in mfi.c, and use it. 1) To create the module for 9.0-RC1, yes, you could : - Create a VM, install FreeBSD 9.0-RC1 in it - Install the FreeBSD 9.0-RC1 source - Apply the instructions for installing the module (it should be loadable on a GENERIC kernel, then) - Put the module on a USB key, or something Installation itself should go something like this : - Launch the installer on physical hardware - Drop to a command prompt (if you have a liveFS), load your external media, load the module to get the hardware detected - Resume installation now that it can see your hardware - Before rebooting, manually copy the mfi.ko to your /boot/kernel/ (erasing the older one!), and adding mfi_load=3D"YES" to your /boot/loader.conf (these paths are relative to your brand new installatio= n) 2) Alternatively, you could engineer your own release : - Create a VM, install FreeBSD 9.0-RC1 in it - Install the FreeBSD 9.0-RC1 source - Apply the instructions for installing the module (it should be loadable on a GENERIC kernel, then) - Run a "make release" on the source (you would probably have a few errors with the mfip modules and mfi_linux, but nothing too hard to solve= ) And use the resulting ISO to install FreeBSD normally (since it would have the special mfi module by default). Cheers, On 11/06/2011 04:22 AM, linux freaker wrote: > Hi Stephane, >=20 > Thanks for your response. > Since I am unable to install FreeBSD 9.0 RC1 how shall I proceed? > As you said you need to build a custom kernel or module beforehand, do = you > mean I need to install FreeBSD 9.0 RC1(or earlier) on VM or other suppo= rted > hardware.Though I can install it on other hardware or VM, will it be us= eful > to build this kernel there? >=20 > The Instruction which you provided is nice but which FreeBSD version I = need > to run on? >=20 > Well, it would be appreciated if you can provide me with custom ISO Ima= ge, > if possible.. > If not, suggest me and I will follow the steps. >=20 > On Sat, Nov 5, 2011 at 11:49 PM, Stephane LAPIE > wrote: >=20 >> Hi, >> >> The SAS 9240 controller works fine with the mfi driver provided by LSI= , >> however there is no driver to my knowledge in the default FreeBSD tree= >> that handles this controller, which is kind of annoying. >> >> So you have to build a custom kernel or module beforehand for it. >> >> I have two servers using this driver right now (one running on >> 8.2-STABLE and one on 9.0-RC1. >> >> (Yes, I know this does not help at all for installation time unless yo= u >> have a full live filesystem, or engineer your own releases yourself...= :/) >> >> However, for FreeBSD 9.X, it requires a quick modification to the sour= ce >> for it to build (following enclosed instructions) : >> - Remove the default /usr/src/sys/dev/mfi (by renaming it, for instanc= e) >> - Put the driver source provided by LSI in its place >> - Modify mfi.c, the call to psignal() on line 1603 must be altered to >> kern_psignal() (only step required for FreeBSD 9.X) >> - After that modification : cd /usr/src/sys/dev/mfi; make >> - You can then kldload the resulting mfi.ko module. >> >> So, to sum up, the LSI driver works, yes. :) >> >> Cheers, >> >> On 11/06/2011 01:59 AM, linux freaker wrote: >>> I am facing issue while installing FreeBSD 9.1 RC1 on Dell PowerEdge >> Server >>> with MegaRAID SAS 9240 driver. >>> It is unable to detect the controller.Any idea how to troubleshoot? >>> I can see that it has mfi.1 driver loaded.(I am not sure if thats >> mfi/mps). >>> Do I need to rebuilt the kernel with this new driver.If yes, what ste= ps I >>> need to follow. >>> I can see that LSI does provide the new 3.98_FreeBSD_x86_and_x64_driv= ers >>> but uncertain if that would work. >>> _______________________________________________ >>> freebsd-hardware@freebsd.org mailing list >>> http://lists.freebsd.org/mailman/listinfo/freebsd-hardware >>> To unsubscribe, send any mail to " >> freebsd-hardware-unsubscribe@freebsd.org" >> >> -- >> Stephane LAPIE, EPITA SRS, Promo 2005 >> "Even when they have digital readouts, I can't understand them." >> --MegaTokyo >> >> > _______________________________________________ > freebsd-hardware@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-hardware > To unsubscribe, send any mail to "freebsd-hardware-unsubscribe@freebsd.= org" --=20 Stephane LAPIE, EPITA SRS, Promo 2005 "Even when they have digital readouts, I can't understand them." --MegaTokyo --------------enig45E218B0E902806F532A8A77 Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.11 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iEYEARECAAYFAk62BDUACgkQ24Ql8u6TF2NODACgsy5WcU047ctlcih2Xlkwc5T5 5/MAoKZo99BxuFuTf0KA5+OfGdRuV/69 =/7Z5 -----END PGP SIGNATURE----- --------------enig45E218B0E902806F532A8A77-- From owner-freebsd-hardware@FreeBSD.ORG Sun Nov 6 15:44:41 2011 Return-Path: Delivered-To: freebsd-hardware@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 279821065677 for ; Sun, 6 Nov 2011 15:44:41 +0000 (UTC) (envelope-from linuxfreaker@gmail.com) Received: from mail-vw0-f54.google.com (mail-vw0-f54.google.com [209.85.212.54]) by mx1.freebsd.org (Postfix) with ESMTP id CE2108FC14 for ; Sun, 6 Nov 2011 15:44:40 +0000 (UTC) Received: by vws11 with SMTP id 11so492602vws.13 for ; Sun, 06 Nov 2011 07:44:40 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=P+qZS9a3CplMZDDHj4ec8Lg/yQzRatgr00P8LDMGbu0=; b=twH7QFmyqD/pTubLfTgDcy1bGQB5VuQ5G0oxH/u7NO5tVF/rCGmBBviNq+D/C+/Agh gJwH6RUYIY+ofk3t6ULu2m/Uu+UhJk4s/XkSopt+nybX9UF8Wziz93pNNM6JRyMJYrNl CJpISK7joLiSPDVQri12zjUekde063yTiZLco= MIME-Version: 1.0 Received: by 10.52.36.131 with SMTP id q3mr13909552vdj.91.1320594280230; Sun, 06 Nov 2011 07:44:40 -0800 (PST) Received: by 10.52.187.201 with HTTP; Sun, 6 Nov 2011 07:44:40 -0800 (PST) In-Reply-To: References: <4EB57E28.5090906@darkbsd.org> <4EB60421.1010603@darkbsd.org> <4EB6A808.2060805@darkbsd.org> Date: Sun, 6 Nov 2011 21:14:40 +0530 Message-ID: From: linux freaker To: freebsd-hardware@freebsd.org Content-Type: text/plain; charset=ISO-8859-1 X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Subject: Fwd: Support for MegaRAID SAS on FreeBSD X-BeenThere: freebsd-hardware@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: General discussion of FreeBSD hardware List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 06 Nov 2011 15:44:41 -0000 ---------- Forwarded message ---------- From: linux freaker Date: Sun, Nov 6, 2011 at 9:06 PM Subject: Re: Support for MegaRAID SAS on FreeBSD To: Stephane LAPIE It dint work. I tried this: freebsd-new# cd /boot/kernel/ freebsd-new# kldload ./mfi.ko kldload: can't load ./mfi.ko: File exists freebsd-new# kldload mfi.ko kldload: can't load mfi.ko: File exists freebsd-new# On Sun, Nov 6, 2011 at 9:00 PM, Stephane LAPIE wrote: > Hmm, > > Did you copy the new mfi.ko module in /boot/kernel ? The kldload warning > clearly says it would load from /boot/kernel (so the old module!) and > not from where you just built it. > > You could try "kldload ./mfi.ko". > > Cheers, > > On 11/07/2011 12:18 AM, linux freaker wrote: > > As I ssh through putty and running these command on VM, I can see the > > following errors on console: > > > > interface mfi.1 already present in the KLD 'kernel'! > > linker_load_file:Unsupported file type > > module_register:module pci/mfi already exists! > > module pci/mfi failed to register: 17 > > > > > > On Sun, Nov 6, 2011 at 8:42 PM, linux freaker >wrote: > > > >> Hi Stephane, > >> > >> I did follow these steps: > >> > >> 1. Installed FreeBSD 9.1 RC1 VM. > >> 2.Installed the FreeBSD 9.0-RC1 source > >> 3.Removed the default /usr/src/sys/dev/mfi (by renaming it, for > instance) > >> 4.Put the driver source provided by LSI in its place > >> 5. Modify mfi.c, the call to psignal() on line 1603 must be altered to > >> > >>>> kern_psignal() (only step required for FreeBSD 9.X) > >> The line looks now as: > >> > >> kern_psignal(mfi_aen_entry->p, SIGIO); > >> > >> 6. After that modification : cd /usr/src/sys/dev/mfi; make > >> 7.When I tried to kldload it through: > >> > >> freebsd-new# kldload mfi.ko > >> kldload: mfi.ko will be loaded from /boot/kernel, not the current > directory > >> kldload: can't load mfi.ko: Exec format error > >> freebsd-new# cd /boot/kernel/ > >> freebsd-new# kldload mfi.ko > >> kldload: can't load mfi.ko: Exec format error > >> Any idea why its not letting me to load it. > >> > >> Also, Once done with the above step, I have now VM with mfi driver > loaded. > >> How shall I transport this VM to hardware? > >> Please suggest the further steps. > >> > >> On Sun, Nov 6, 2011 at 10:30 AM, linux freaker >wrote: > >> > >>> That sounds really clear. > >>> Thanks for your great help. > >>> I am going to try out this now. > >>> > >>> On Sun, Nov 6, 2011 at 9:20 AM, Stephane LAPIE < > >>> stephane.lapie@darkbsd.org> wrote: > >>> > >>>> Hi, > >>>> > >>>> The instructions I provided work for 9.x and 8.x (well, minus the > mfi.c > >>>> modification). To make things simple : > >>>> - For installing 6.x, 7.x and 8.x, just grab the appropriate archive > >>>> from LSI's site and use it as is. (don't modify the mfi.c !) > >>>> - For installing 9.x, grab the 8.x driver, modify the one line in > mfi.c, > >>>> and use it. > >>>> > >>>> 1) To create the module for 9.0-RC1, yes, you could : > >>>> - Create a VM, install FreeBSD 9.0-RC1 in it > >>>> - Install the FreeBSD 9.0-RC1 source > >>>> - Apply the instructions for installing the module (it should be > >>>> loadable on a GENERIC kernel, then) > >>>> - Put the module on a USB key, or something > >>>> > >>>> Installation itself should go something like this : > >>>> - Launch the installer on physical hardware > >>>> - Drop to a command prompt (if you have a liveFS), load your external > >>>> media, load the module to get the hardware detected > >>>> - Resume installation now that it can see your hardware > >>>> - Before rebooting, manually copy the mfi.ko to your /boot/kernel/ > >>>> (erasing the older one!), and adding mfi_load="YES" to your > >>>> /boot/loader.conf (these paths are relative to your brand new > >>>> installation) > >>>> > >>>> 2) Alternatively, you could engineer your own release : > >>>> - Create a VM, install FreeBSD 9.0-RC1 in it > >>>> - Install the FreeBSD 9.0-RC1 source > >>>> - Apply the instructions for installing the module (it should be > >>>> loadable on a GENERIC kernel, then) > >>>> - Run a "make release" on the source (you would probably have a few > >>>> errors with the mfip modules and mfi_linux, but nothing too hard to > >>>> solve) > >>>> > >>>> And use the resulting ISO to install FreeBSD normally (since it would > >>>> have the special mfi module by default). > >>>> > >>>> Cheers, > >>>> > >>>> On 11/06/2011 04:22 AM, linux freaker wrote: > >>>>> Hi Stephane, > >>>>> > >>>>> Thanks for your response. > >>>>> Since I am unable to install FreeBSD 9.0 RC1 how shall I proceed? > >>>>> As you said you need to build a custom kernel or module beforehand, > do > >>>> you > >>>>> mean I need to install FreeBSD 9.0 RC1(or earlier) on VM or other > >>>> supported > >>>>> hardware.Though I can install it on other hardware or VM, will it be > >>>> useful > >>>>> to build this kernel there? > >>>>> > >>>>> The Instruction which you provided is nice but which FreeBSD version > I > >>>> need > >>>>> to run on? > >>>>> > >>>>> Well, it would be appreciated if you can provide me with custom ISO > >>>> Image, > >>>>> if possible.. > >>>>> If not, suggest me and I will follow the steps. > >>>>> > >>>>> On Sat, Nov 5, 2011 at 11:49 PM, Stephane LAPIE > >>>>> wrote: > >>>>> > >>>>>> Hi, > >>>>>> > >>>>>> The SAS 9240 controller works fine with the mfi driver provided by > >>>> LSI, > >>>>>> however there is no driver to my knowledge in the default FreeBSD > tree > >>>>>> that handles this controller, which is kind of annoying. > >>>>>> > >>>>>> So you have to build a custom kernel or module beforehand for it. > >>>>>> > >>>>>> I have two servers using this driver right now (one running on > >>>>>> 8.2-STABLE and one on 9.0-RC1. > >>>>>> > >>>>>> (Yes, I know this does not help at all for installation time unless > >>>> you > >>>>>> have a full live filesystem, or engineer your own releases > >>>> yourself... :/) > >>>>>> > >>>>>> However, for FreeBSD 9.X, it requires a quick modification to the > >>>> source > >>>>>> for it to build (following enclosed instructions) : > >>>>>> - Remove the default /usr/src/sys/dev/mfi (by renaming it, for > >>>> instance) > >>>>>> - Put the driver source provided by LSI in its place > >>>>>> - Modify mfi.c, the call to psignal() on line 1603 must be altered > to > >>>>>> kern_psignal() (only step required for FreeBSD 9.X) > >>>>>> - After that modification : cd /usr/src/sys/dev/mfi; make > >>>>>> - You can then kldload the resulting mfi.ko module. > >>>>>> > >>>>>> So, to sum up, the LSI driver works, yes. :) > >>>>>> > >>>>>> Cheers, > >>>>>> > >>>>>> On 11/06/2011 01:59 AM, linux freaker wrote: > >>>>>>> I am facing issue while installing FreeBSD 9.1 RC1 on Dell > PowerEdge > >>>>>> Server > >>>>>>> with MegaRAID SAS 9240 driver. > >>>>>>> It is unable to detect the controller.Any idea how to troubleshoot? > >>>>>>> I can see that it has mfi.1 driver loaded.(I am not sure if thats > >>>>>> mfi/mps). > >>>>>>> Do I need to rebuilt the kernel with this new driver.If yes, what > >>>> steps I > >>>>>>> need to follow. > >>>>>>> I can see that LSI does provide the new > >>>> 3.98_FreeBSD_x86_and_x64_drivers > >>>>>>> but uncertain if that would work. > >>>>>>> _______________________________________________ > >>>>>>> freebsd-hardware@freebsd.org mailing list > >>>>>>> http://lists.freebsd.org/mailman/listinfo/freebsd-hardware > >>>>>>> To unsubscribe, send any mail to " > >>>>>> freebsd-hardware-unsubscribe@freebsd.org" > >>>>>> > >>>>>> -- > >>>>>> Stephane LAPIE, EPITA SRS, Promo 2005 > >>>>>> "Even when they have digital readouts, I can't understand them." > >>>>>> --MegaTokyo > >>>>>> > >>>>>> > >>>>> _______________________________________________ > >>>>> freebsd-hardware@freebsd.org mailing list > >>>>> http://lists.freebsd.org/mailman/listinfo/freebsd-hardware > >>>>> To unsubscribe, send any mail to " > >>>> freebsd-hardware-unsubscribe@freebsd.org" > >>>> > >>>> -- > >>>> Stephane LAPIE, EPITA SRS, Promo 2005 > >>>> "Even when they have digital readouts, I can't understand them." > >>>> --MegaTokyo > >>>> > >>>> > >>> > >> > > > > > -- > Stephane LAPIE, EPITA SRS, Promo 2005 > "Even when they have digital readouts, I can't understand them." > --MegaTokyo > > From owner-freebsd-hardware@FreeBSD.ORG Sun Nov 6 15:57:03 2011 Return-Path: Delivered-To: freebsd-hardware@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 89327106566B for ; Sun, 6 Nov 2011 15:57:03 +0000 (UTC) (envelope-from linuxfreaker@gmail.com) Received: from mail-vx0-f182.google.com (mail-vx0-f182.google.com [209.85.220.182]) by mx1.freebsd.org (Postfix) with ESMTP id 3C0DE8FC16 for ; Sun, 6 Nov 2011 15:57:02 +0000 (UTC) Received: by vcbfo14 with SMTP id fo14so3524627vcb.13 for ; Sun, 06 Nov 2011 07:57:02 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=oonm/f4VpmtSYfjzxzxZCbaN31wDYamjUOo499/qOjM=; b=JqkdgJX+TAEAsH5SbvZtx1ZObFuBsqy/jie5RjyWbIUbLfW6sL6I9z4dPE5OIrrXWf Brq+5zon8E/ZYsxpkTbPpOQGan/1wL8zz1ef3xsej4f25AEf3oDqfpu0FmWAdDfceofV 5itGlR1VQ7avL6UEm/dMM8VEvC2yNL6c0bMgY= MIME-Version: 1.0 Received: by 10.52.37.129 with SMTP id y1mr22932983vdj.23.1320595021630; Sun, 06 Nov 2011 07:57:01 -0800 (PST) Received: by 10.52.187.201 with HTTP; Sun, 6 Nov 2011 07:57:01 -0800 (PST) In-Reply-To: References: <4EB57E28.5090906@darkbsd.org> <4EB60421.1010603@darkbsd.org> <4EB6A808.2060805@darkbsd.org> Date: Sun, 6 Nov 2011 21:27:01 +0530 Message-ID: From: linux freaker To: freebsd-hardware@freebsd.org Content-Type: text/plain; charset=ISO-8859-1 X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Subject: Re: Support for MegaRAID SAS on FreeBSD X-BeenThere: freebsd-hardware@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: General discussion of FreeBSD hardware List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 06 Nov 2011 15:57:03 -0000 I have pasted the make results: freebsd-new# cd /usr/src/sys/dev/mfi freebsd-new# make Warning: Object directory not changed from original /usr/src/sys/dev/mfi @ -> /usr/src/sys machine -> /usr/src/sys/amd64/include x86 -> /usr/src/sys/x86/include awk -f @/tools/makeobjops.awk @/kern/device_if.m -h awk -f @/tools/makeobjops.awk @/kern/bus_if.m -h awk -f @/tools/makeobjops.awk @/dev/pci/pci_if.m -h :> opt_mfi.h :> opt_cam.h cc -O2 -pipe -fno-strict-aliasing -Werror -D_KERNEL -DKLD_MODULE -nostdinc -I. -I@ -I@/contrib/altq -finline-limit=8000 --param inline-unit-growth=100 --param large-function-growth=1000 -fno-common -fno-omit-frame-pointer -mno-sse -mcmodel=kernel -mno-red-zone -mno-mmx -msoft-float -fno-asynchronous-unwind-tables -ffreestanding -fstack-protector -std=iso9899:1999 -fstack-protector -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual -Wundef -Wno-pointer-sign -fformat-extensions -Wmissing-include-dirs -fdiagnostics-show-option -c mfi.c cc -O2 -pipe -fno-strict-aliasing -Werror -D_KERNEL -DKLD_MODULE -nostdinc -I. -I@ -I@/contrib/altq -finline-limit=8000 --param inline-unit-growth=100 --param large-function-growth=1000 -fno-common -fno-omit-frame-pointer -mno-sse -mcmodel=kernel -mno-red-zone -mno-mmx -msoft-float -fno-asynchronous-unwind-tables -ffreestanding -fstack-protector -std=iso9899:1999 -fstack-protector -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual -Wundef -Wno-pointer-sign -fformat-extensions -Wmissing-include-dirs -fdiagnostics-show-option -c mfi_pci.c cc -O2 -pipe -fno-strict-aliasing -Werror -D_KERNEL -DKLD_MODULE -nostdinc -I. -I@ -I@/contrib/altq -finline-limit=8000 --param inline-unit-growth=100 --param large-function-growth=1000 -fno-common -fno-omit-frame-pointer -mno-sse -mcmodel=kernel -mno-red-zone -mno-mmx -msoft-float -fno-asynchronous-unwind-tables -ffreestanding -fstack-protector -std=iso9899:1999 -fstack-protector -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual -Wundef -Wno-pointer-sign -fformat-extensions -Wmissing-include-dirs -fdiagnostics-show-option -c mfi_disk.c cc -O2 -pipe -fno-strict-aliasing -Werror -D_KERNEL -DKLD_MODULE -nostdinc -I. -I@ -I@/contrib/altq -finline-limit=8000 --param inline-unit-growth=100 --param large-function-growth=1000 -fno-common -fno-omit-frame-pointer -mno-sse -mcmodel=kernel -mno-red-zone -mno-mmx -msoft-float -fno-asynchronous-unwind-tables -ffreestanding -fstack-protector -std=iso9899:1999 -fstack-protector -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual -Wundef -Wno-pointer-sign -fformat-extensions -Wmissing-include-dirs -fdiagnostics-show-option -c mfi_syspd.c cc -O2 -pipe -fno-strict-aliasing -Werror -D_KERNEL -DKLD_MODULE -nostdinc -I. -I@ -I@/contrib/altq -finline-limit=8000 --param inline-unit-growth=100 --param large-function-growth=1000 -fno-common -fno-omit-frame-pointer -mno-sse -mcmodel=kernel -mno-red-zone -mno-mmx -msoft-float -fno-asynchronous-unwind-tables -ffreestanding -fstack-protector -std=iso9899:1999 -fstack-protector -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual -Wundef -Wno-pointer-sign -fformat-extensions -Wmissing-include-dirs -fdiagnostics-show-option -c mfi_cam.c cc -O2 -pipe -fno-strict-aliasing -Werror -D_KERNEL -DKLD_MODULE -nostdinc -I. -I@ -I@/contrib/altq -finline-limit=8000 --param inline-unit-growth=100 --param large-function-growth=1000 -fno-common -fno-omit-frame-pointer -mno-sse -mcmodel=kernel -mno-red-zone -mno-mmx -msoft-float -fno-asynchronous-unwind-tables -ffreestanding -fstack-protector -std=iso9899:1999 -fstack-protector -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual -Wundef -Wno-pointer-sign -fformat-extensions -Wmissing-include-dirs -fdiagnostics-show-option -c mfi_debug.c ld -d -warn-common -r -d -o mfi.ko mfi.o mfi_pci.o mfi_disk.o mfi_syspd.o mfi_cam.o mfi_debug.o :> export_syms awk -f /usr/src/sys/dev/mfi/../../conf/kmod_syms.awk mfi.ko export_syms | xargs -J% objcopy % mfi.ko objcopy --strip-debug mfi.ko freebsd-new# freebsd-new# On Sun, Nov 6, 2011 at 9:14 PM, linux freaker wrote: > > > ---------- Forwarded message ---------- > From: linux freaker > Date: Sun, Nov 6, 2011 at 9:06 PM > Subject: Re: Support for MegaRAID SAS on FreeBSD > To: Stephane LAPIE > > > It dint work. > I tried this: > > freebsd-new# cd /boot/kernel/ > freebsd-new# kldload ./mfi.ko > kldload: can't load ./mfi.ko: File exists > freebsd-new# kldload mfi.ko > kldload: can't load mfi.ko: File exists > freebsd-new# > > On Sun, Nov 6, 2011 at 9:00 PM, Stephane LAPIE < > stephane.lapie@darkbsd.org> wrote: > >> Hmm, >> >> Did you copy the new mfi.ko module in /boot/kernel ? The kldload warning >> clearly says it would load from /boot/kernel (so the old module!) and >> not from where you just built it. >> >> You could try "kldload ./mfi.ko". >> >> Cheers, >> >> On 11/07/2011 12:18 AM, linux freaker wrote: >> > As I ssh through putty and running these command on VM, I can see the >> > following errors on console: >> > >> > interface mfi.1 already present in the KLD 'kernel'! >> > linker_load_file:Unsupported file type >> > module_register:module pci/mfi already exists! >> > module pci/mfi failed to register: 17 >> > >> > >> > On Sun, Nov 6, 2011 at 8:42 PM, linux freaker > >wrote: >> > >> >> Hi Stephane, >> >> >> >> I did follow these steps: >> >> >> >> 1. Installed FreeBSD 9.1 RC1 VM. >> >> 2.Installed the FreeBSD 9.0-RC1 source >> >> 3.Removed the default /usr/src/sys/dev/mfi (by renaming it, for >> instance) >> >> 4.Put the driver source provided by LSI in its place >> >> 5. Modify mfi.c, the call to psignal() on line 1603 must be altered to >> >> >> >>>> kern_psignal() (only step required for FreeBSD 9.X) >> >> The line looks now as: >> >> >> >> kern_psignal(mfi_aen_entry->p, SIGIO); >> >> >> >> 6. After that modification : cd /usr/src/sys/dev/mfi; make >> >> 7.When I tried to kldload it through: >> >> >> >> freebsd-new# kldload mfi.ko >> >> kldload: mfi.ko will be loaded from /boot/kernel, not the current >> directory >> >> kldload: can't load mfi.ko: Exec format error >> >> freebsd-new# cd /boot/kernel/ >> >> freebsd-new# kldload mfi.ko >> >> kldload: can't load mfi.ko: Exec format error >> >> Any idea why its not letting me to load it. >> >> >> >> Also, Once done with the above step, I have now VM with mfi driver >> loaded. >> >> How shall I transport this VM to hardware? >> >> Please suggest the further steps. >> >> >> >> On Sun, Nov 6, 2011 at 10:30 AM, linux freaker > >wrote: >> >> >> >>> That sounds really clear. >> >>> Thanks for your great help. >> >>> I am going to try out this now. >> >>> >> >>> On Sun, Nov 6, 2011 at 9:20 AM, Stephane LAPIE < >> >>> stephane.lapie@darkbsd.org> wrote: >> >>> >> >>>> Hi, >> >>>> >> >>>> The instructions I provided work for 9.x and 8.x (well, minus the >> mfi.c >> >>>> modification). To make things simple : >> >>>> - For installing 6.x, 7.x and 8.x, just grab the appropriate archive >> >>>> from LSI's site and use it as is. (don't modify the mfi.c !) >> >>>> - For installing 9.x, grab the 8.x driver, modify the one line in >> mfi.c, >> >>>> and use it. >> >>>> >> >>>> 1) To create the module for 9.0-RC1, yes, you could : >> >>>> - Create a VM, install FreeBSD 9.0-RC1 in it >> >>>> - Install the FreeBSD 9.0-RC1 source >> >>>> - Apply the instructions for installing the module (it should be >> >>>> loadable on a GENERIC kernel, then) >> >>>> - Put the module on a USB key, or something >> >>>> >> >>>> Installation itself should go something like this : >> >>>> - Launch the installer on physical hardware >> >>>> - Drop to a command prompt (if you have a liveFS), load your external >> >>>> media, load the module to get the hardware detected >> >>>> - Resume installation now that it can see your hardware >> >>>> - Before rebooting, manually copy the mfi.ko to your /boot/kernel/ >> >>>> (erasing the older one!), and adding mfi_load="YES" to your >> >>>> /boot/loader.conf (these paths are relative to your brand new >> >>>> installation) >> >>>> >> >>>> 2) Alternatively, you could engineer your own release : >> >>>> - Create a VM, install FreeBSD 9.0-RC1 in it >> >>>> - Install the FreeBSD 9.0-RC1 source >> >>>> - Apply the instructions for installing the module (it should be >> >>>> loadable on a GENERIC kernel, then) >> >>>> - Run a "make release" on the source (you would probably have a few >> >>>> errors with the mfip modules and mfi_linux, but nothing too hard to >> >>>> solve) >> >>>> >> >>>> And use the resulting ISO to install FreeBSD normally (since it would >> >>>> have the special mfi module by default). >> >>>> >> >>>> Cheers, >> >>>> >> >>>> On 11/06/2011 04:22 AM, linux freaker wrote: >> >>>>> Hi Stephane, >> >>>>> >> >>>>> Thanks for your response. >> >>>>> Since I am unable to install FreeBSD 9.0 RC1 how shall I proceed? >> >>>>> As you said you need to build a custom kernel or module beforehand, >> do >> >>>> you >> >>>>> mean I need to install FreeBSD 9.0 RC1(or earlier) on VM or other >> >>>> supported >> >>>>> hardware.Though I can install it on other hardware or VM, will it be >> >>>> useful >> >>>>> to build this kernel there? >> >>>>> >> >>>>> The Instruction which you provided is nice but which FreeBSD >> version I >> >>>> need >> >>>>> to run on? >> >>>>> >> >>>>> Well, it would be appreciated if you can provide me with custom ISO >> >>>> Image, >> >>>>> if possible.. >> >>>>> If not, suggest me and I will follow the steps. >> >>>>> >> >>>>> On Sat, Nov 5, 2011 at 11:49 PM, Stephane LAPIE >> >>>>> wrote: >> >>>>> >> >>>>>> Hi, >> >>>>>> >> >>>>>> The SAS 9240 controller works fine with the mfi driver provided by >> >>>> LSI, >> >>>>>> however there is no driver to my knowledge in the default FreeBSD >> tree >> >>>>>> that handles this controller, which is kind of annoying. >> >>>>>> >> >>>>>> So you have to build a custom kernel or module beforehand for it. >> >>>>>> >> >>>>>> I have two servers using this driver right now (one running on >> >>>>>> 8.2-STABLE and one on 9.0-RC1. >> >>>>>> >> >>>>>> (Yes, I know this does not help at all for installation time unless >> >>>> you >> >>>>>> have a full live filesystem, or engineer your own releases >> >>>> yourself... :/) >> >>>>>> >> >>>>>> However, for FreeBSD 9.X, it requires a quick modification to the >> >>>> source >> >>>>>> for it to build (following enclosed instructions) : >> >>>>>> - Remove the default /usr/src/sys/dev/mfi (by renaming it, for >> >>>> instance) >> >>>>>> - Put the driver source provided by LSI in its place >> >>>>>> - Modify mfi.c, the call to psignal() on line 1603 must be altered >> to >> >>>>>> kern_psignal() (only step required for FreeBSD 9.X) >> >>>>>> - After that modification : cd /usr/src/sys/dev/mfi; make >> >>>>>> - You can then kldload the resulting mfi.ko module. >> >>>>>> >> >>>>>> So, to sum up, the LSI driver works, yes. :) >> >>>>>> >> >>>>>> Cheers, >> >>>>>> >> >>>>>> On 11/06/2011 01:59 AM, linux freaker wrote: >> >>>>>>> I am facing issue while installing FreeBSD 9.1 RC1 on Dell >> PowerEdge >> >>>>>> Server >> >>>>>>> with MegaRAID SAS 9240 driver. >> >>>>>>> It is unable to detect the controller.Any idea how to >> troubleshoot? >> >>>>>>> I can see that it has mfi.1 driver loaded.(I am not sure if thats >> >>>>>> mfi/mps). >> >>>>>>> Do I need to rebuilt the kernel with this new driver.If yes, what >> >>>> steps I >> >>>>>>> need to follow. >> >>>>>>> I can see that LSI does provide the new >> >>>> 3.98_FreeBSD_x86_and_x64_drivers >> >>>>>>> but uncertain if that would work. >> >>>>>>> _______________________________________________ >> >>>>>>> freebsd-hardware@freebsd.org mailing list >> >>>>>>> http://lists.freebsd.org/mailman/listinfo/freebsd-hardware >> >>>>>>> To unsubscribe, send any mail to " >> >>>>>> freebsd-hardware-unsubscribe@freebsd.org" >> >>>>>> >> >>>>>> -- >> >>>>>> Stephane LAPIE, EPITA SRS, Promo 2005 >> >>>>>> "Even when they have digital readouts, I can't understand them." >> >>>>>> --MegaTokyo >> >>>>>> >> >>>>>> >> >>>>> _______________________________________________ >> >>>>> freebsd-hardware@freebsd.org mailing list >> >>>>> http://lists.freebsd.org/mailman/listinfo/freebsd-hardware >> >>>>> To unsubscribe, send any mail to " >> >>>> freebsd-hardware-unsubscribe@freebsd.org" >> >>>> >> >>>> -- >> >>>> Stephane LAPIE, EPITA SRS, Promo 2005 >> >>>> "Even when they have digital readouts, I can't understand them." >> >>>> --MegaTokyo >> >>>> >> >>>> >> >>> >> >> >> > >> >> >> -- >> Stephane LAPIE, EPITA SRS, Promo 2005 >> "Even when they have digital readouts, I can't understand them." >> --MegaTokyo >> >> > > From owner-freebsd-hardware@FreeBSD.ORG Mon Nov 7 11:07:11 2011 Return-Path: Delivered-To: freebsd-hardware@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 86699106566B for ; Mon, 7 Nov 2011 11:07:11 +0000 (UTC) (envelope-from owner-bugmaster@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id 5B8DC8FC21 for ; Mon, 7 Nov 2011 11:07:11 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.4/8.14.4) with ESMTP id pA7B7BJv078686 for ; Mon, 7 Nov 2011 11:07:11 GMT (envelope-from owner-bugmaster@FreeBSD.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.4/8.14.4/Submit) id pA7B7AKY078683 for freebsd-hardware@FreeBSD.org; Mon, 7 Nov 2011 11:07:10 GMT (envelope-from owner-bugmaster@FreeBSD.org) Date: Mon, 7 Nov 2011 11:07:10 GMT Message-Id: <201111071107.pA7B7AKY078683@freefall.freebsd.org> X-Authentication-Warning: freefall.freebsd.org: gnats set sender to owner-bugmaster@FreeBSD.org using -f From: FreeBSD bugmaster To: freebsd-hardware@FreeBSD.org Cc: Subject: Current problem reports assigned to freebsd-hardware@FreeBSD.org X-BeenThere: freebsd-hardware@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: General discussion of FreeBSD hardware List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 07 Nov 2011 11:07:11 -0000 Note: to view an individual PR, use: http://www.freebsd.org/cgi/query-pr.cgi?pr=(number). The following is a listing of current problems submitted by FreeBSD users. These represent problem reports covering all versions including experimental development code and obsolete releases. S Tracker Resp. Description -------------------------------------------------------------------------------- o kern/156241 hardware [mfi] 'zfs send' does not prevents disks to suspend if 1 problem total. From owner-freebsd-hardware@FreeBSD.ORG Wed Nov 9 18:17:44 2011 Return-Path: Delivered-To: freebsd-hardware@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 17680106564A for ; Wed, 9 Nov 2011 18:17:44 +0000 (UTC) (envelope-from linuxfreaker@gmail.com) Received: from mail-vw0-f54.google.com (mail-vw0-f54.google.com [209.85.212.54]) by mx1.freebsd.org (Postfix) with ESMTP id AD7908FC1F for ; Wed, 9 Nov 2011 18:17:43 +0000 (UTC) Received: by vws11 with SMTP id 11so2436605vws.13 for ; Wed, 09 Nov 2011 10:17:42 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type; bh=exTjer3NzkLmJIcZcPMUEVWIGfE2L1gmt3MwnBlPPR8=; b=kgoVmmEKNLmD+df3E3aFpELPcMrOvpIV4oEoUQOX28vGzrPBVl7g+pYxYyQvlALn1G VuO481V9X7JtvyJt6Vl/WZknxteOoxlJY8WG5UPkNNjxOyVOJX1FsSPfrUFu2YipGbX4 p57UClCeniBkbX+kfoRQSzUCAbqhrs51Qqzu4= MIME-Version: 1.0 Received: by 10.52.96.98 with SMTP id dr2mr6467711vdb.6.1320862662565; Wed, 09 Nov 2011 10:17:42 -0800 (PST) Received: by 10.52.187.201 with HTTP; Wed, 9 Nov 2011 10:17:42 -0800 (PST) Date: Wed, 9 Nov 2011 23:47:42 +0530 Message-ID: From: linux freaker To: freebsd-hardware@freebsd.org Content-Type: text/plain; charset=ISO-8859-1 X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Subject: Building a custom patched FreeBSD ISO X-BeenThere: freebsd-hardware@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: General discussion of FreeBSD hardware List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 09 Nov 2011 18:17:44 -0000 Hi, I am in verse to build own custom, patched FreeBSD ISO following http://romana.now.ie/writing/customfreebsdiso.html Though my requirement is including latest mfi driver from LSI for MegaRAID SAS driver since the last 9.1rc1, 8.x and 7.4 includes generic kernel which already has mfi but doesnt support the H300 card. I am following this link which is old back 2004. Does it still hold good? Anyone who have experience working on this subject before, please share your experience. I can see this guide http://lists.freebsd.org/pipermail/f...ch/145216.html which followed the above link but is in detail. Until now, I am able to execute the following steps: I did a boot from bootable CDROM then network install setup filesystem : root 2G swap 1G var 2G usr 30G home dirs will be in /usr/home Select Kern-Developer, no Xwindows, no ports After reboot, *sysinstall* and install cvsup-without-gui-16.1h_2 from the FTP site. Also install a complete set of sources from the distribution media. 8) Upgrade ports directories *cd /root* c) *cp /usr/share/examples/cvsup/ports-supfile .* d) *vi ports-supfile* change mirror name cvsup10.us.FreeBSD.org (It took 4 hours) e) *rehash* f) *cvsup -g -L 2 /root/ports-supfile* I am following this guide http://lists.freebsd.org/pipermail/f...ch/145216.html step by step. Now the guide says: g) Create the index with the command *make index* or h) Fetch the index with the command *make fetchindex* * * I have no idea under which folder I need to run this command. Meanwhile, I skipped those steps and have been running *make buildworld*..and further .. Any idea if I need to follow the first or second link?