Can't load mps as module with custom kernel

Desai, Kashyap Kashyap.Desai at lsi.com
Tue Mar 6 17:40:51 UTC 2012


I agree with the proposed fix.

Adding Ken to pick this for upstream commit.

` Kashyap

> -----Original Message-----
> From: Mykola Dzham [mailto:i at levsha.me]
> Sent: Tuesday, March 06, 2012 12:13 AM
> To: Desai, Kashyap
> Cc: freebsd-scsi at freebsd.org
> Subject: Can't load mps as module with custom kernel
> 
> Hi!
> My FreeBSD box running on custom kernel config, without device mps
> When i attempt to load mps as module:
> 
> # sudo kldload mps
> kldload: can't load mps: Exec format error
> 
> 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
> 
> # uname -a
> FreeBSD laptop.levsha.me 10.0-CURRENT FreeBSD 10.0-CURRENT #48 r232475M:
> Mon Mar  5 09:47:35 EET 2012
> root at laptop.levsha.me:/usr/obj/usr/src/sys/LEVSHA  amd64
> 
> Fix:
> 
> Index: sys/dev/mps/mps_pci.c
> ===================================================================
> --- sys/dev/mps/mps_pci.c	(revision 232475)
> +++ sys/dev/mps/mps_pci.c	(working copy)
> @@ -87,6 +87,7 @@
> 
>  static devclass_t	mps_devclass;
>  DRIVER_MODULE(mps, pci, mps_pci_driver, mps_devclass, 0, 0);
> +MODULE_DEPEND(mps, cam, 1, 1, 1);
> 
>  struct mps_ident {
>  	uint16_t	vendor;
> 
> --
> LEFT-(UANIC|RIPE)
> JID: levsha at jabber.net.ua
> PGP fingerprint: 1BCD 7C80 2E04 7282 C944  B0E0 7E67 619E 4E72 9280


More information about the freebsd-scsi mailing list