From owner-freebsd-hackers@FreeBSD.ORG Fri Jun 27 07:37:41 2008 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 203D2106567B for ; Fri, 27 Jun 2008 07:37:41 +0000 (UTC) (envelope-from jdc@parodius.com) Received: from mx01.sc1.parodius.com (mx01.sc1.parodius.com [72.20.106.3]) by mx1.freebsd.org (Postfix) with ESMTP id 1A3A58FC17 for ; Fri, 27 Jun 2008 07:37:41 +0000 (UTC) (envelope-from jdc@parodius.com) Received: by mx01.sc1.parodius.com (Postfix, from userid 1000) id EA7941CC031; Fri, 27 Jun 2008 00:37:40 -0700 (PDT) Date: Fri, 27 Jun 2008 00:37:40 -0700 From: Jeremy Chadwick To: karim sk Message-ID: <20080627073740.GA29727@eos.sc1.parodius.com> References: <20080626230421.BD605429@resin17.mta.everyone.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable In-Reply-To: <20080626230421.BD605429@resin17.mta.everyone.net> User-Agent: Mutt/1.5.18 (2008-05-17) Cc: freebsd-hackers@freebsd.org Subject: Re: Modifying the loaded kernel image X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 27 Jun 2008 07:37:41 -0000 On Thu, Jun 26, 2008 at 11:04:21PM -0700, karim sk wrote: >
Hi,

I need to = modify one of the kernel hardware module ( which is part of kernel image) a= nd i have to load that module instead of the old one.
So what i am doing= now is
During boot up step into loader prompt and i am typing the foll= owing commands.
load kernel (Load the kernel )
load module ( To load = my customized module)
boot ( To start the normal boot).

Now i am = facing some problem here. Loading of my module is successful but my module = registration is not getting successful. i.e. OS is reporting that module_re= gister got failed as there exists already a module with that name. Now the = problem is i cant do unload of the old component as it is not a module.&nbs= p; Can any body tell me how to remove the component from the kernel image w= ith out recompiling the kernel.


Thanks in advance.
Karim.
=

 

I use Krify Mail - http://mail.krify.co= m  Get  yourmail at  Krify today!
Short answer: you can't. Also, HTML Email is incredibly annoying. And you know what's even *more* annoying? HTML Email that is sent with a text/plain MIME type, indicating it's not HTML. Fix your mail client, it's very rude. --=20 | Jeremy Chadwick jdc at parodius.com | | Parodius Networking http://www.parodius.com/ | | UNIX Systems Administrator Mountain View, CA, USA | | Making life hard for others since 1977. PGP: 4BD6C0CB |