From owner-freebsd-questions Wed Dec 6 14:56: 6 2000 From owner-freebsd-questions@FreeBSD.ORG Wed Dec 6 14:56:03 2000 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from spitfire.velocet.net (spitfire.velocet.net [209.167.225.66]) by hub.freebsd.org (Postfix) with ESMTP id 6A16937B400 for ; Wed, 6 Dec 2000 14:56:03 -0800 (PST) Received: from magus (anime.ca [204.138.55.45]) by spitfire.velocet.net (Postfix) with SMTP id D48DF19A0AB; Wed, 6 Dec 2000 17:55:58 -0500 (EST) Message-ID: <004a01c05fd7$b04fc8c0$0300a8c0@anime.ca> From: "William Wong" To: "Steve Tremblett" , References: <200012061334.IAA27231@sjt-u10.cisco.com> Subject: Re: PPPoE error messages & kernel modules Date: Wed, 6 Dec 2000 17:55:54 -0500 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 5.50.4522.1200 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4522.1200 Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG > I'm a FreeBSD rookie, so I'm not too experienced with kernel modules > etc., but this looks a little weird to me. When I start pppoe, I get > the following output dumped on the screen: > > (this is 4.2R by the way) > > 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! > Dec 6 07:28:21 sjt-bsd /kernel: module_register: module netgraph already exists! > Dec 6 07:28:21 sjt-bsd /kernel: linker_file_sysinit "netgraph.ko" failed to register! 17 > Dec 6 07:28:21 sjt-bsd /kernel: linker_file_sysinit "netgraph.ko" failed to register! 17 > PPP enabled > > It appears to me that modules are being loaded for options that are > already statically in my kernel. If anyone wants to see my kernel > config or ppp.conf just ask. > > This module issue seems to be a little overlooked in the handbook, so I > hope you folks don't mind a couple of questions. PPP works fine at > this point, so this excercise is purely for my interest. You know how > it is with these *NIXes - eradicating error messages like these is a > moral imperative! :) > > 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. You also need NETGRAPH_ETHER. > 2 - can someone verify for my interest that options in your kernel > config file are static options in your kernel and not modules? Mine are static. > 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 believe these modules are created either during 'make world' or during kernel builds. > > 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? Take a look at the MODULES_WITH_WORLD option in /etc/make.conf - Will > > once again, thanks to any and all respondents > > -- > Steve Tremblett > Cisco Systems > > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-questions" in the body of the message > To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message