Re: trouble building 'ndis' device driver into stripped-down custom kernel.

2012-09-11 Thread Robert Bonomi

Adam Vande More  wrote:
>
> On Mon, Sep 10, 2012 at 2:23 PM, Robert Bonomi 
> 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.

This was also pointed out to me privately by another respondant.

Adding just  'device pccard'  did solve the problem.

I've filed a bug report on the code in question -- the _run-time_ check
for a PCMCIA/Cardbus/PC-card device should be bracketed with a COMPILE-TIME
check for pccard support in the kernel.  


___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"


Re: trouble building 'ndis' device driver into stripped-down custom kernel.

2012-09-10 Thread Adam Vande More
On Mon, Sep 10, 2012 at 2:23 PM, Robert Bonomi 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
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"


Re: trouble building 'ndis' device driver into stripped-down custom kernel.

2012-09-10 Thread Robert Bonomi

> Date: Mon, 10 Sep 2012 15:32:30 -0400
> Subject: Re: trouble building 'ndis' device driver into stripped-down custom 
> kernel.
> From: Gardner Bell 
>
> On 10 September 2012 15:23, Robert Bonomi  
> 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
>
> Is device wlan still part of your config ?

Yup. I'm just changing which wireless card I'm using.

Thanks for the thought.

> > 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?



___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"


trouble building 'ndis' device driver into stripped-down custom kernel.

2012-09-10 Thread Robert Bonomi

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?


___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"