From owner-freebsd-hackers@FreeBSD.ORG Sat Sep 11 03:58:40 2004 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 0907916A4CE for ; Sat, 11 Sep 2004 03:58:40 +0000 (GMT) Received: from digital-security.org (digital-security.org [216.254.116.252]) by mx1.FreeBSD.org (Postfix) with ESMTP id 9972543D31 for ; Sat, 11 Sep 2004 03:58:39 +0000 (GMT) (envelope-from vxp@digital-security.org) Received: from digital-security.org ([216.254.116.252] helo=ownage.digital-security.org ident=vxp) by digital-security.org with esmtp (Exim 4.41 (FreeBSD)) id 1C5xXp-0000fa-BW; Fri, 10 Sep 2004 22:23:18 -0400 Date: Fri, 10 Sep 2004 22:23:16 -0400 (EDT) From: vxp To: Chuck Tuffli In-Reply-To: <20040911035133.GA74157@cre85086tuf.rose.agilent.com> Message-ID: <20040910222135.K2527@digital-security.org> References: <20040910212926.V2370@digital-security.org> <20040911035133.GA74157@cre85086tuf.rose.agilent.com> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Spam-Score: -3.7 (---) X-Spam-Report: Spam detection software, running on the system "ownage.digital-security.org", hasmessageblock similar future email. If you have any questions, see the administrator of that system for details. Content preview: digital-security# pwd /usr/home/vxp/mycode/reboot 21:31 icmp.ko digital-security# kldload ./icmp.ko kldload: can't load ./icmp.ko: No such file or directory digital-security# [...] Content analysis details: (-3.7 points, 3.0 required) pts rule name description --------------------------------------------------1% [score: 0.0000] 1.2 AWL AWL: Auto-whitelist adjustment cc: freebsd-hackers@freebsd.org Subject: Re: help with a module, please.. X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 11 Sep 2004 03:58:40 -0000 digital-security# pwd /usr/home/vxp/mycode/reboot digital-security# ls -l icmp.ko -rwxr-xr-x 1 vxp vxp 7548 Sep 10 21:31 icmp.ko digital-security# kldload ./icmp.ko kldload: can't load ./icmp.ko: No such file or directory digital-security# On Fri, 10 Sep 2004, Chuck Tuffli wrote: > On Fri, Sep 10, 2004 at 09:34:19PM -0400, vxp wrote: > ... > > among other things, the compilation produces an icmp.ko (name of my mod) > > but when i try to do kldload ./icmp.ko it tells me: > > digital-security# kldload icmp.kld > > there are 2 things wrong here > 1) if you don't specify a path, the loader will look in /modules. so > you need to prefix './' to the module name > > 2) the example below shows that you're trying to load the kld > > what should work better is: > > # kldload ./icmp.ko > > and then when you are finished > > # kldunload icmp > > > kldload: can't load icmp.kld: No such file or directory > > digital-security# ls -l icmp.* > > -rw-r--r-- 1 vxp vxp 12702 Sep 10 21:28 icmp.c > > -rw-r--r-- 1 vxp vxp 5276 Sep 10 21:31 icmp.kld > > -rwxr-xr-x 1 vxp vxp 7548 Sep 10 21:31 icmp.ko > > -rw-r--r-- 1 vxp vxp 5148 Sep 10 21:31 icmp.o > > digital-security# > > -- > Chuck Tuffli > Agilent Technologies, Storage Area Networking >