Date: Fri, 10 Sep 2004 22:23:16 -0400 (EDT) From: vxp <vxp@digital-security.org> To: Chuck Tuffli <chuck_tuffli@agilent.com> Cc: freebsd-hackers@freebsd.org Subject: Re: help with a module, please.. Message-ID: <20040910222135.K2527@digital-security.org> In-Reply-To: <20040911035133.GA74157@cre85086tuf.rose.agilent.com> References: <20040910212926.V2370@digital-security.org> <20040911035133.GA74157@cre85086tuf.rose.agilent.com>
next in thread | previous in thread | raw e-mail | index | archive | help
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 <chuck_tuffli@agilent.com> > Agilent Technologies, Storage Area Networking >
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20040910222135.K2527>