From owner-freebsd-current@FreeBSD.ORG Fri Aug 27 03:10:27 2004 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id AFA4716A4CE; Fri, 27 Aug 2004 03:10:27 +0000 (GMT) Received: from smtp1.adl2.internode.on.net (smtp1.adl2.internode.on.net [203.16.214.181]) by mx1.FreeBSD.org (Postfix) with ESMTP id F213343D54; Fri, 27 Aug 2004 03:10:26 +0000 (GMT) (envelope-from doconnor@gsoft.com.au) Received: from midget.dons.net.au ([150.101.45.33])i7R3AM4Y045238; Fri, 27 Aug 2004 12:40:24 +0930 (CST) Received: from inchoate.gsoft.com.au (root@localhost.dons.net.au [127.0.0.1]) by midget.dons.net.au (8.12.9/8.12.10) with ESMTP id i7R3AEn7014410; Fri, 27 Aug 2004 12:40:18 +0930 (CST) (envelope-from doconnor@gsoft.com.au) From: "Daniel O'Connor" To: freebsd-current@freebsd.org Date: Fri, 27 Aug 2004 12:40:12 +0930 User-Agent: KMail/1.6.2 References: <20040826093742.GA703@galgenberg.net> In-Reply-To: <20040826093742.GA703@galgenberg.net> MIME-Version: 1.0 Content-Disposition: inline Content-Type: Text/Plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Message-Id: <200408271240.12843.doconnor@gsoft.com.au> X-Spam-Score: 0 () X-Scanned-By: MIMEDefang 2.26 (www . roaringpenguin . com / mimedefang) cc: current@freebsd.org Subject: Re: ndiscvt: Unresolved symbols / kldload if_ndis panic X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 27 Aug 2004 03:10:27 -0000 =2D----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On Thu, 26 Aug 2004 19:07, Ulrich Spoerlein wrote: > I'm trying to get Projet Evil working on this Dell Inspiron 8600 Laptop > with an Intel Pro Wireless NIC. I tried the XP driver shipped with it > and the latest offered from Dell, but none works (more below). I have this exact laptop :) > I'm running RELENG_5, dmesg and drivers can be obtained from > http://www.galgenberg.net/~q/freebsd/ Try the instructions I posted here http://www.gsoft.com.au/~doconnor/I8600/ > I'm trying the following (old and new driver produce the same) > igor# ndiscvt -O -i /root/ipw_old/W70N51.INF -s /root/ipw_old/W70N51.SYS = =2Do > ndis_driver_data.h objcopy -I binary -O elf32-i386-freebsd -B i386 > /tmp/ndiscvt.K3zhkM ndis_driver_data.o objcopy --redefine-sym Hmm, the sole difference appears to be the -O. [inchoate 12:37] /usr/src/sys/modules/if_ndis >make clean ndirm -f /usr/src/sys/modules/if_ndis/export_syms if_ndis.ko if_ndis.kld if= _ndis.o if_ndis_pci.o if_ndis_pccard.o @ machine symb.tmp tmp.o opt_bdg.h b= us_if.h device_if.h card_if.h pci_if.h pccarddevs.h [inchoate 12:37] /usr/src/sys/modules/if_ndis >ndiscvt -O -i w70n51.inf -s = w70n51.sys -o ndis_driver_data.h objcopy -I binary -O elf32-i386-freebsd -B i386 /tmp/ndiscvt.W8zNTe ndis_dr= iver_data.o objcopy --redefine-sym _binary__tmp_ndiscvt_W8zNTe_start=3Dw70n51_sys_drv_d= ata_start --strip-symbol _binary__tmp_ndiscvt_W8zNTe_size --redefine-sym _b= inary__tmp_ndiscvt_W8zNTe_end=3Dw70n51_sys_drv_data_end ndis_driver_data.o = ndis_driver_data.o [inchoate 12:37] /usr/src/sys/modules/if_ndis >make Warning: Object directory not changed from original /usr/src/sys/modules/if= _ndis @ -> /usr/src/sys machine -> /usr/src/sys/i386/include touch opt_bdg.h 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 awk -f @/tools/makeobjops.awk @/dev/pccard/card_if.m -h awk -f @/tools/pccarddevs2h.awk @/dev/pccard/pccarddevs cc -O -pipe -D_KERNEL -DKLD_MODULE -nostdinc -I- -I. -I@ -I@/contrib/alt= q -I@/../include -I/usr/include -finline-limit=3D8000 -fno-common -mno-ali= gn-long-strings -mpreferred-stack-boundary=3D2 -ffreestanding -Wall -Wredun= dant-decls -Wnested-externs -Wstrict-prototypes -Wmissing-prototypes -Wpoi= nter-arith -Winline -Wcast-qual -fformat-extensions -std=3Dc99 -c /usr/src= /sys/modules/if_ndis/../../dev/if_ndis/if_ndis.c cc -O -pipe -D_KERNEL -DKLD_MODULE -nostdinc -I- -I. -I@ -I@/contrib/alt= q -I@/../include -I/usr/include -finline-limit=3D8000 -fno-common -mno-ali= gn-long-strings -mpreferred-stack-boundary=3D2 -ffreestanding -Wall -Wredun= dant-decls -Wnested-externs -Wstrict-prototypes -Wmissing-prototypes -Wpoi= nter-arith -Winline -Wcast-qual -fformat-extensions -std=3Dc99 -c /usr/src= /sys/modules/if_ndis/../../dev/if_ndis/if_ndis_pci.c cc -O -pipe -D_KERNEL -DKLD_MODULE -nostdinc -I- -I. -I@ -I@/contrib/alt= q -I@/../include -I/usr/include -finline-limit=3D8000 -fno-common -mno-ali= gn-long-strings -mpreferred-stack-boundary=3D2 -ffreestanding -Wall -Wredun= dant-decls -Wnested-externs -Wstrict-prototypes -Wmissing-prototypes -Wpoi= nter-arith -Winline -Wcast-qual -fformat-extensions -std=3Dc99 -c /usr/src= /sys/modules/if_ndis/../../dev/if_ndis/if_ndis_pccard.c ld -d -warn-common -r -d -o if_ndis.kld if_ndis.o if_ndis_pci.o if_ndis_pc= card.o touch /usr/src/sys/modules/if_ndis/export_syms awk -f /usr/src/sys/modules/if_ndis/../../conf/kmod_syms.awk if_ndis.kld /= usr/src/sys/modules/if_ndis/export_syms | xargs -J% objcopy % if_ndis.kld ld -Bshareable -d -warn-common -o if_ndis.ko if_ndis.kld objcopy --strip-debug if_ndis.ko [inchoate 12:37] /usr/src/sys/modules/if_ndis >sudo kldunload if_ndis SSH passphrase: [inchoate 12:37] /usr/src/sys/modules/if_ndis >sync [inchoate 12:37] /usr/src/sys/modules/if_ndis >sudo kldload ./if_ndis.ko kldload: can't load ./if_ndis.ko: No such file or directory [inchoate 12:37] /usr/src/sys/modules/if_ndis >dmesg | tail Warning: pid 1052 used static ldt allocation. See the i386_set_ldt man page for more info Warning: pid 1051 used static ldt allocation. See the i386_set_ldt man page for more info Warning: pid 1057 used static ldt allocation. See the i386_set_ldt man page for more info Warning: pid 1060 used static ldt allocation. See the i386_set_ldt man page for more info ndis0: detached link_elf: symbol w70n51_sys_drv_data_start undefined Ahh, well there you go :) It works with no -O here. > Afer running 'kldload if_ndis' I get the kernel message: > link_elf: symbol W70N51_SYS_drv_data_start undefined > > and kldload just sits there for about 60s. top showed that kldload is in > state 'ndisth'. I then tried 'ps auxl' and got a panic. Strange, I get an immediate return saying "No such file or directory" becau= se of the missing symbol. No panic on ps or sysctl either. I am running 5.2-CURRENT as of the 14th of August. =2D --=20 Daniel O'Connor software and network engineer for Genesis Software - http://www.gsoft.com.au "The nice thing about standards is that there are so many of them to choose from." -- Andrew Tanenbaum GPG Fingerprint - 5596 B766 97C0 0E94 4347 295E E593 DC20 7B3F CE8C =2D----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.4 (FreeBSD) iD8DBQFBLqYU5ZPcIHs/zowRArU5AJ4ptD9xcAmJBrGmtSkFCcFVVp+z4QCfe6mV i+U6om4zZYl7Ww7uFZFoXN4=3D =3D82Oi =2D----END PGP SIGNATURE-----