From owner-freebsd-current@FreeBSD.ORG Thu Aug 31 03:42:39 2006 Return-Path: X-Original-To: freebsd-current@freebsd.org Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 0348F16A4F3 for ; Thu, 31 Aug 2006 03:42:39 +0000 (UTC) (envelope-from pyunyh@gmail.com) Received: from py-out-1112.google.com (py-out-1112.google.com [64.233.166.180]) by mx1.FreeBSD.org (Postfix) with ESMTP id 2A3AF43D4C for ; Thu, 31 Aug 2006 03:42:38 +0000 (GMT) (envelope-from pyunyh@gmail.com) Received: by py-out-1112.google.com with SMTP id f25so487694pyf for ; Wed, 30 Aug 2006 20:42:35 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:date:from:to:cc:subject:message-id:reply-to:references:mime-version:content-type:content-disposition:in-reply-to:user-agent; b=Q4I5ryGRAYnBWjBCWihAq7K4ioLkGWcMT6LAY91lvVCzS5AU58Mt5RPPHubLgx0SBPJvTJ9TgEZEYa8Y80F83zuuY2xFEP8s8illYD4CWPpa9tbY7aEweqHhk5xrhO8gRpshCzvRve+BvLwN96uSpxRicaoxbyKRc9JPueBgdUA= Received: by 10.35.9.2 with SMTP id m2mr785388pyi; Wed, 30 Aug 2006 20:42:35 -0700 (PDT) Received: from michelle.cdnetworks.co.kr ( [211.53.35.84]) by mx.gmail.com with ESMTP id 6sm836242nzn.2006.08.30.20.42.34; Wed, 30 Aug 2006 20:42:35 -0700 (PDT) Received: from michelle.cdnetworks.co.kr (localhost.cdnetworks.co.kr [127.0.0.1]) by michelle.cdnetworks.co.kr (8.13.5/8.13.5) with ESMTP id k7V3iEGK053071 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Thu, 31 Aug 2006 12:44:14 +0900 (KST) (envelope-from pyunyh@gmail.com) Received: (from yongari@localhost) by michelle.cdnetworks.co.kr (8.13.5/8.13.5/Submit) id k7V3iD7P053070; Thu, 31 Aug 2006 12:44:13 +0900 (KST) (envelope-from pyunyh@gmail.com) Date: Thu, 31 Aug 2006 12:44:13 +0900 From: Pyun YongHyeon To: David Christensen Message-ID: <20060831034413.GC52038@cdnetworks.co.kr> References: <09BFF2FA5EAB4A45B6655E151BBDD90301E2F278@NT-IRVA-0750.brcm.ad.broadcom.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <09BFF2FA5EAB4A45B6655E151BBDD90301E2F278@NT-IRVA-0750.brcm.ad.broadcom.com> User-Agent: Mutt/1.4.2.1i Cc: freebsd-current@freebsd.org Subject: Re: Simplified Steps for Building a Loadable module on -CURRENT X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: pyunyh@gmail.com List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 31 Aug 2006 03:42:39 -0000 On Wed, Aug 30, 2006 at 03:12:59PM -0700, David Christensen wrote: > I've been able to successfully build drivers in the past as > loadable modules but I'm getting some kernel panics with -CURRENT > when installing a module using kldload now where things used to I wonder you encountered the same panic I have been seeing on CURRENT. I get "Fatal trap 30" message when I load em(4) module with kldload. > work before. Assume I'm a complete FreeBSD noob for a moment > (which really isn't that far from the truth) and I want to build > a driver as a loadable module for testing. After moving to > the appropriate directory in the source tree (/usr/src/sys/dev/XXX), > what steps do I need to follow to build the driver as a module? > > Assume for the moment that I have already commented the driver out > of my kernel configuration file > (/usr/src/sys//conf/GENERIC) > and rebuilt and installed that kernel. > > Dave > -- Regards, Pyun YongHyeon