Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 11 Sep 2004 02:17:16 +0900 (JST)
From:      Norikatsu Shigemura <nork@FreeBSD.org>
To:        freebsd-current@FreeBSD.org
Subject:   PANIC: sym(4) didn't MODULE_DEPEND cam(4).
Message-ID:  <200409101717.i8AHHGWR044322@sakura.ninth-nine.com>

next in thread | raw e-mail | index | archive | help
	I found a problem.  sym(4) module didn't MODULE_DEPEND on
	cam(4).  So modulaized sym(4) will be panic on boot with
	following message.

- - - - - - - - - - - - - - - - - - - - - - - - - - -
(snip)
link_elf: symbol xpt_print_path undefined
KLD file sym.ko - could not finalize loading
kernel trap 12 with interrupts disabled
(snip)
- - - - - - - - - - - - - - - - - - - - - - - - - - -

	I made a patch to fix this problem.  In my environment, this
	looks good works.  Anyone, please commit following patch.

Index: sym_hipd.c
===================================================================
RCS file: /home/ncvs/src/sys/dev/sym/sym_hipd.c,v
retrieving revision 1.48
diff -u -r1.48 sym_hipd.c
--- sym_hipd.c	17 Mar 2004 17:50:45 -0000	1.48
+++ sym_hipd.c	10 Sep 2004 17:10:34 -0000
@@ -8501,6 +8501,7 @@
 static devclass_t sym_devclass;
 
 DRIVER_MODULE(sym, pci, sym_pci_driver, sym_devclass, 0, 0);
+MODULE_DEPEND(sym, cam, 1, 1, 1);
 
 
 static struct sym_pci_chip sym_pci_dev_table[] = {



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200409101717.i8AHHGWR044322>