PHY Driver as module
John Baldwin
jhb at freebsd.org
Mon Aug 14 14:16:58 UTC 2006
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
More information about the freebsd-drivers
mailing list