Date: Mon, 14 Aug 2006 09:07:00 -0400 From: John Baldwin <jhb@freebsd.org> To: freebsd-drivers@freebsd.org Subject: Re: PHY Driver as module Message-ID: <200608140907.00748.jhb@freebsd.org> In-Reply-To: <20060814102931.15992.qmail@web8910.mail.in.yahoo.com> References: <20060814102931.15992.qmail@web8910.mail.in.yahoo.com>
next in thread | previous in thread | raw e-mail | index | archive | help
On Monday 14 August 2006 06:29, Alok Barsode wrote: > Hi, > I am a newbie to FreeBSD kernel development. > I am using FreeBSD 4.10. > I was trying to build a PHY driver as module > (/dev/mii/nsgphy.c) but i am unable to do so. > I modified the Makefile in /sys/modules/mii as follows > > # $FreeBSD: src/sys/modules/mii/Makefile,v 1.11.2.8 > 2003/10/29 17:06:48 wpaul Exp $ > > .PATH: ${.CURDIR}/../../dev/mii > KMOD = nsgphy > SRCS = mii.c mii_physubr.c miibus_if.h device_if.h > miibus_if.c > SRCS += bus_if.h pci_if.h nsgphy.c > > .include <bsd.kmod.mk> > > It generated a nsgphy.ko and a mii.ko > I am unable to load the nsgphy.ko , it says "No such > file or directory". > When i try to insert mii.ko it says file exists. > Am i missing something? Look in your dmesg for the real error messages. -- John Baldwin
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200608140907.00748.jhb>