From owner-freebsd-scsi@FreeBSD.ORG Tue Mar 6 17:40:51 2012 Return-Path: Delivered-To: freebsd-scsi@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 537BD106564A; Tue, 6 Mar 2012 17:40:51 +0000 (UTC) (envelope-from Kashyap.Desai@lsi.com) Received: from na3sys009aog121.obsmtp.com (na3sys009aog121.obsmtp.com [74.125.149.145]) by mx1.freebsd.org (Postfix) with ESMTP id B715F8FC08; Tue, 6 Mar 2012 17:40:50 +0000 (UTC) Received: from paledge01.lsi.com ([192.19.193.42]) (using TLSv1) by na3sys009aob121.postini.com ([74.125.148.12]) with SMTP ID DSNKT1ZMGxZlY9K23f3t7DRI+8hIxPed/1Yp@postini.com; Tue, 06 Mar 2012 09:40:50 PST Received: from PALCAS01.lsi.com (128.94.213.117) by PALEDGE01.lsi.com (192.19.193.42) with Microsoft SMTP Server (TLS) id 8.3.213.0; Tue, 6 Mar 2012 12:46:03 -0500 Received: from inbexch01.lsi.com (135.36.98.37) by PALCAS01.lsi.com (128.94.213.117) with Microsoft SMTP Server (TLS) id 8.3.213.0; Tue, 6 Mar 2012 12:40:43 -0500 Received: from inbmail01.lsi.com ([135.36.98.64]) by inbexch01.lsi.com ([135.36.98.37]) with mapi; Tue, 6 Mar 2012 23:10:39 +0530 From: "Desai, Kashyap" To: Mykola Dzham Date: Tue, 6 Mar 2012 23:10:37 +0530 Thread-Topic: Can't load mps as module with custom kernel Thread-Index: Acz6/95Ip9Rqs5BSRpWQBpTZMenJoQAwEqpg Message-ID: References: <20120305184313.GA3215@laptop.levsha.me> In-Reply-To: <20120305184313.GA3215@laptop.levsha.me> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: acceptlanguage: en-US Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Cc: "freebsd-scsi@freebsd.org" , "Kenneth D. Merry" , "McConnell, Stephen" Subject: RE: Can't load mps as module with custom kernel X-BeenThere: freebsd-scsi@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: SCSI subsystem List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 06 Mar 2012 17:40:51 -0000 I agree with the proposed fix. Adding Ken to pick this for upstream commit. ` Kashyap > -----Original Message----- > From: Mykola Dzham [mailto:i@levsha.me] > Sent: Tuesday, March 06, 2012 12:13 AM > To: Desai, Kashyap > Cc: freebsd-scsi@freebsd.org > Subject: Can't load mps as module with custom kernel >=20 > Hi! > My FreeBSD box running on custom kernel config, without device mps > When i attempt to load mps as module: >=20 > # sudo kldload mps > kldload: can't load mps: Exec format error >=20 > Mar 5 09:33:35 laptop kernel: link_elf_obj: symbol xpt_freeze_simq > undefined > Mar 5 09:33:35 laptop kernel: linker_load_file: Unsupported file type >=20 > # uname -a > FreeBSD laptop.levsha.me 10.0-CURRENT FreeBSD 10.0-CURRENT #48 r232475M: > Mon Mar 5 09:47:35 EET 2012 > root@laptop.levsha.me:/usr/obj/usr/src/sys/LEVSHA amd64 >=20 > Fix: >=20 > Index: sys/dev/mps/mps_pci.c > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D > --- sys/dev/mps/mps_pci.c (revision 232475) > +++ sys/dev/mps/mps_pci.c (working copy) > @@ -87,6 +87,7 @@ >=20 > static devclass_t mps_devclass; > DRIVER_MODULE(mps, pci, mps_pci_driver, mps_devclass, 0, 0); > +MODULE_DEPEND(mps, cam, 1, 1, 1); >=20 > struct mps_ident { > uint16_t vendor; >=20 > -- > LEFT-(UANIC|RIPE) > JID: levsha@jabber.net.ua > PGP fingerprint: 1BCD 7C80 2E04 7282 C944 B0E0 7E67 619E 4E72 9280