From owner-freebsd-stable@FreeBSD.ORG Wed Oct 11 05:11:57 2006 Return-Path: X-Original-To: freebsd-stable@freebsd.org Delivered-To: freebsd-stable@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 1012B16A412 for ; Wed, 11 Oct 2006 05:11:57 +0000 (UTC) (envelope-from ambrisko@ambrisko.com) Received: from mail.ambrisko.com (mail.ambrisko.com [64.174.51.43]) by mx1.FreeBSD.org (Postfix) with ESMTP id 6C6C543D6E for ; Wed, 11 Oct 2006 05:11:47 +0000 (GMT) (envelope-from ambrisko@ambrisko.com) Received: from server2.ambrisko.com (HELO www.ambrisko.com) ([192.168.1.2]) by mail.ambrisko.com with ESMTP; 10 Oct 2006 22:08:47 -0700 Received: from ambrisko.com (localhost [127.0.0.1]) by www.ambrisko.com (8.13.1/8.12.11) with ESMTP id k9B5BkLe037709; Tue, 10 Oct 2006 22:11:46 -0700 (PDT) (envelope-from ambrisko@ambrisko.com) Received: (from ambrisko@localhost) by ambrisko.com (8.13.1/8.13.1/Submit) id k9B5Bk6D037708; Tue, 10 Oct 2006 22:11:46 -0700 (PDT) (envelope-from ambrisko) From: Doug Ambrisko Message-Id: <200610110511.k9B5Bk6D037708@ambrisko.com> In-Reply-To: <1160511981.9587.8.camel@lanshark.dmv.com> To: Sven Willenberger Date: Tue, 10 Oct 2006 22:11:46 -0700 (PDT) X-Mailer: ELM [version 2.4ME+ PL94b (25)] MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset=US-ASCII Cc: freebsd-stable@freebsd.org Subject: Re: Megacli fails to find SAS adapter X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 11 Oct 2006 05:11:57 -0000 Sven Willenberger writes: | FreeBSD 6.2-PRERELEASE #3: Tue Oct 10 13:58:29 EDT 2006 | LSi 8480e SAS Raid card | | mount: | linprocfs on /compat/linux/proc (linprocfs, local) | linsysfs on /compat/linux/sys (linsysfs, local) | /dev/mfid0s1d on /usr/local/pgsql (ufs, local, noatime) | | dmesg: | mfi0: 2025 - PCI 0x041000 0x04411 0x041000 0x041002: Firmware initialization started (PCI ID 0411/1000/1002/1000) | mfi0: 2026 - Type 18: Firmware version 1.00.00-0074 | mfi0: 2027 - Battery temperature is normal | mfi0: 2028 - Battery Present | mfi0: 2029 - PD 39(e1/s255) event: Enclosure (SES) discovered on PD 27(e1/s255) | mfi0: 2030 - PD 56(e2/s255) event: Enclosure (SES) discovered on PD 38(e2/s255) | mfi0: 2031 - PD 39(e1/s255) event: Inserted: PD 27(e1/s255) | mfi0: 2032 - Type 29: Inserted: PD 27(e1/s255) Info: enclPd=27, scsiType=d, portMap=10, sasAddr=50015b2180001839,0000000000000000 | mfi0: 2033 - PD 56(e2/s255) event: Inserted: PD 38(e2/s255) | | pkg_info: | linux_base-fc-4_9 | | I have downloaded the Megacli and, using rpm2cpio extracted | MegaCli-1.01.09-0.i386.rpm into my home directory. | | ~/usr/sbin/MegaCli | brandelf -t Linux usr/sbin/MegaCli | | cd usr/sbin | | # ./MegaCli -EncInfo -aALL | | ERROR:Could not detect controller. | # ./MegaCli -CfgDsply -aALL | | ERROR:Could not detect controller. | | Do I actually need to set up the links in /compat/linux/sys for the SAS | raid card? or should this rpm be installed into the /compat/linux | directory? I need to upgrade the firmware on this card as for some | reason the webbios will not let me configure a Raid10 array and the only | way I can see to upgrade the fw is to use the megacli utility. Make sure you have the Linux ioctl module loaded before linsysfs so it can register the hooks. kldstat/kernel config will help. One sanity check is to do: dhcp194:ambrisko 11] cat /compat/linux/sys/class/scsi_host/host*/proc_name megaraid_sas (null) dhcp194:ambrisko 12] If you don't see megaraid_sas then it isn't going to work and is missing the linux mfi module. Also you need to set: sysctl compat.linux.osrelease=2.6.12 or things won't work well. This will probably break your fc-4_9 Linux install until the updates to Linux emulation is merged (maybe it has but I don't think so). Since it is a static binary we don't have linux base installed. Doug A.