Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 06 Dec 2000 22:52:24 
From:      "Aaron Hill" <hillaa@hotmail.com>
To:        sjt@cisco.com, freebsd-questions@freebsd.org
Subject:   Re: PPPoE error messages & kernel modules
Message-ID:  <F48r8gPAAIwplWdtaGz00006725@hotmail.com>

next in thread | raw e-mail | index | archive | help
>sjt-bsd# ppp -background pppoe
>Working in background mode
>Using interface: tun0
>module_register: module netgraph already exists!
>linker_file_sysinit "netgraph.ko" failed to register! 17
>Dec  6 07:28:21 sjt-bsd /kernel: module_register: module netgraph already 
>exists!

Fix that problem by adding the following line in your kernel configuration 
file...

options         NETGRAPH_ETHER

... recompiling the kernel and rebooting. As I understand it that error 
shouldn't happen because the netgraph modules can be loaded neatly when they 
are needed but it obviously does.

>1 - can anyone explain what is happening here?  NETGRAPH,
>NETGRAPH_PPPOE, NETGRAPH_SOCKET, and the pseudo devices ether, tun, ppp
>(with option '1') are in my kernel, and my ethernet card is working
>fine.

Seems to me like the module either incorrectly detects itself as being 
already loaded or it detects shared components (with other netgraph) as 
being already loaded. I'm only speculating, I don't know for sure what it 
is.

>2 - can someone verify for my interest that options in your kernel
>config file are static options in your kernel and not modules?

The config file builds static components into your kernel. It seems there's 
a lot of core OS components that are automatically build as modules if you 
don't specify them as kernel options.

>3 - can someone explain how one builds a module as opposed to a static
>option?  In Linux it is straightforward, but there seems to be some
>stuff happening automagically here.

I don't know about this one.

>4 - I had a previous installation of 4.1.1 that didn't appear to make a
>ton of modules when the kernel was built, but this install of 4.2
>does.  Am I just not remembering correctly, or has something changed?

Doesn't appear to me that much has changed except for the usual inclusion of 
more features in the newer version. My latest 4.1.1-RELEASE server has 112 
modules, my 4.2-RELEASE server has 116. The machines have similiar configs 
except for different ethernet NICs and the 4.1.1-RELEASE has netgraph.


Hope that helps, good luck with it.

Aaron Hill




_____________________________________________________________________________________
Get more from the Web.  FREE MSN Explorer download : http://explorer.msn.com



To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message




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