Re: Is this a newbie question?

From: Steven Kurylo <sk_at_no.spam.please>
Date: Sun May 07 2006 - 23:50:33 CST

Install kernel-package and read the docs. README.modules is what
you'd want most.

Basically you download the debian kernel source, install your module
source, and run make-kpkg modules_image which will create a debian
package of the module in question.

On 5/5/06, Brock Campbell <lists@acceltech.ca> wrote:
> This is a bit too far down the food chain, I am well versed in loading
> and unloading modules.
>
> What I need is assistance with the creation of custom modules for a
> kernel from a chunk of module code. Right now I am putting the module
> file usbserial.c into the $kernel_source/drivers/usb/serial/ directory
> and running "make modules".
>
> this creates a module, but when I try to replace the module in the lib
> directory, it throws a bunch of errors like
> "usbserial: disagrees about version of symbol struct_module"
> I am looking for a step by step guide on how to properly create kernel
> modules to load into a kernel. In this case the stock modules are not
> the required version.
>
> The last resort will be to go to a custom kernel, but I like stock
> kernels that I don't have to compile (Gentoo hangover).
>
> Cheers
>
> On Fri, 2006-05-05 at 09:25 -0600, Alan Clements wrote:
> > have you tried using 'modprobe [module]' (without the extention)?
> > if this works properly then you can add it to the /etc/modules list. This will allow it to be autoloaded. You may have to use the full pathname in both instances.
> >
> > ----- Original Message -----
> > From: Brock Campbell <lists@acceltech.ca>
> > Date: Thursday, May 4, 2006 9:01 pm
> > Subject: Is this a newbie question?
> >
> > > I need to create a custom module for my stock dapper kernel. I've
> > > triedcompiling from source and doing the the make modules && make
> > > modules_install thing, but it just dumps the module into another
> > > librarydirectory and ignores it at load time.
> > >
> > > I know this should be a simple thing, but I'm stuck. can anybody
> > > give me
> > > a shove in the right direction?
> > >
> > > Thanks
> > >
> > >
> > > --
> > > "Well, there's SPAM, egg, sausage, and SPAM. That's not got MUCH
> > > SPAM in it."
> > >
> > > To unsubscribe, send a message with the word "unsubscribe" (without
> > > thequotes) in the body to linux-request@slg.org
> > > Archives are at http://list.slg.org/
> > >
> >
> > --
> > "Well, there's SPAM, egg, sausage, and SPAM. That's not got MUCH SPAM in it."
> >
> > To unsubscribe, send a message with the word "unsubscribe" (without the
> > quotes) in the body to linux-request@slg.org
> > Archives are at http://list.slg.org/
>
>
> --
> "Well, there's SPAM, egg, sausage, and SPAM. That's not got MUCH SPAM in it."
>
> To unsubscribe, send a message with the word "unsubscribe" (without the
> quotes) in the body to linux-request@slg.org
> Archives are at http://list.slg.org/
>
Received on Sun May 7 23:50:38 2006

This archive was generated by hypermail 2.1.8 : Fri Sep 08 2006 - 23:26:38 CST