Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 10 Sep 2012 22:11:52 -0500
From:      Adam Vande More <amvandemore@gmail.com>
To:        Robert Bonomi <bonomi@mail.r-bonomi.com>
Cc:        freebsd-questions@freebsd.org
Subject:   Re: trouble building 'ndis' device driver into stripped-down custom kernel.
Message-ID:  <CA%2BtpaK3jTsjktbyb5nwpS8RoAXFYodTOn6n8SGP8vFZEqBafLQ@mail.gmail.com>
In-Reply-To: <201209101923.q8AJNxZJ081642@mail.r-bonomi.com>
References:  <201209101923.q8AJNxZJ081642@mail.r-bonomi.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On Mon, Sep 10, 2012 at 2:23 PM, Robert Bonomi <bonomi@mail.r-bonomi.com>wrote:

>
> Enviorment is FreeBSD 8.3,  i386
>
> I'm currently running a stipped-down custom kernal with all superfluous
> devices/options removed.
>
> I'm trying to add the 'ndis' device back in, but when I follow the
> directions
> on the ndis(4) manpage, and add:
>     options NDISAPI
>     device  ndis
> and try to re-compile the kernel (config, cd, make depend, make), linking
> fails, with:
>     if_ndis.o(.text+0x1104): In function 'ndis_detach':
>     : undefined reference to 'ndis_free_amem'
>     if_ndis.o(.text+0x1194): In function 'ndis_attach':
>     : undefined reference to 'ndis_alloc_amem'
>
> Obviously, the config file is missing 'something'  -- does anybody have
> any ideat _what_ that something is?
>
>
It seems you need

device pccard

and whatever that depends upon if anything.

Another solution is here:

http://lists.freebsd.org/pipermail/freebsd-current/2004-November/042586.html

although it seems only lines 1083/4 need to go in my version.

-- 
Adam Vande More



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CA%2BtpaK3jTsjktbyb5nwpS8RoAXFYodTOn6n8SGP8vFZEqBafLQ>