Accidentally deleted all contents of /usr/port/sysutil using rm -rf

One more thing I always forget to add, you must have kernel sources available in /sys directory.

The kernel source is always available on installation CD.
 
Oh it's alright. Having read the manual ,I've managed to use the ndisgen utility to integrate the .sys&.inf into the kernel but ...

It failed at the last step, namely the "kernel module generation" and the following lines are present:

Generaing Makefile... done.
Building kernek module... /usr/share/misc/windrv_stub.c:57:20: windrv.h: No such file of directory.
mkdep: compile failed

So, what could be the solution to this? Shall I manually get those two files (windrv_stub.c & windrv.h) and place them in the directory /usr/share/misc/ or should I install something else all over?

Thanks!
 
I already answered to that question one post above.
You are missing kernel sources and that is clearly mentioned in FreeBSD Handbook.

The same case would apply for Linux; when using ndiswrapper on *ubuntu.
 
Everthing's (putting the CD#1) alright, and I managed to integrate the NDIS driver to the kernel. The PCI card now shows up as
ndis0: NDIS API version: 5.1
ndis0: Ethernet address: aa:aa:aa:bb:bb:bb

Now I'm trying to configure it further.

Thanks!
 
Back
Top