[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Epson C82, USB and modules



Tue, 12 Aug 2003, Provost, Stephane wrote:

> Hi all,
>
> This might be a little off-topic, so please forgive me :)

Forgiven:>


> I am running 2.4.20, don't remember if it's potato or woody. Anyways, I'd
> like to know if it's possible to compile modules (say the USB printer
> module), get the module, put it in the right place, and do an insmod without
> having to restart the system. I thought modules where pieces of code that
> can loaded and unloaded at will. So that should mean that I can compile them
> on the side, and (hopefully) insmod them later.
>
> I tried to change my .config file and do a make modules, but the .o file
> didn't show up, so I don't know what to do.
>
> Oh, USB support is compiled, but I want the USB printer module to be able to
> use my brand new epson c82, and hook it up with samba to share it to the
> network.

Yes, its possible. I do assume that you have obtained the kernel source
and compiled your own kernel since you have edited your .config file.
Then you will have your kernel source in /usr/src/kernel-source-2.4.20 and
as I understand the README file you can do

 make menuconfig
 make dep
 make bzImage
 make modules
 make modules_install (remember to keep a backup)

Then you copy the kernel image
/usr/src/kernel-source-2.4.20/arch/i386/boot/bzImage to /boot and set up
your lilo.config properly and run lilo.

If you need more modules I believe you only need to do as follows

 make menyconfig
  add your modules eg. <M>
 make dep
 make modules
 make modules_install

and I'm sure you'll find your new modules in /lib/modules/2.4.20
somewhere.

If you have a precompiled kernel, I believe you have to obtain precompiled
modules aswell otherwise you'll get a error msg

 module compiled for kernel 2.2.20 while you have kernel 2.2.20-pcmcia

or something.

Hope this make sense!

Børge



Reply to: