Trouble with quickcam express and inserting the module
Bob Nielsen
nielsen at oz.net
Tue Feb 22 12:13:27 UTC 2005
On Tue, Feb 22, 2005 at 06:43:50PM +1100, Adam Membrey wrote:
> Adam Membrey wrote:
>
> >Bob Nielsen wrote:
> >
> >>On Tue, Feb 22, 2005 at 05:41:21PM +1100, Adam Membrey wrote:
> >>
> >>
> >>>I've downloading the qc-usb-0.6.2 and I've compiled the module with
> >>>make all.
> >>>
> >>>I've then tried to sudo insmod quickcam.o and it says invalid module
> >>>format.
> >>>
> >>>Looking at dmesg it says "no module found in object"
> >>>
> >>>Anyone have any suggestions or work arounds?
> >>>
> >>
> >>
> >>The syntax would be 'insmod quickcam' or 'modprobe quickcam' (without
> >>the .o or .ko).
> >>
> >>
> >>
> >>
> >Well I'm managed to successfully do an insmod of the quickcam.ko and
> >it detects the hardware ....is there anything I need to do after this
> >? specifically loading it at boot
> >
> hmmm did an insmod...which loaded the module...added it to my modules
> list and it didnt load..did a modprobe on quickcam and it said module
> not found..yet I go to the compile directory, insprobe it again and it
> loads >:\
>
> Anyone able to help? I realise this is getting annoying but I'm very new
> to linux as you can tell
The easiest way would be to create a script in /etc/init.d which does
what you successfully did manually and link to it from /etc/rc2.d (use
update-rc.d to do this).
The ideal way is to compile and install it such that it gets put under
/lib/modules/<kernel-version>, such that it will either be loaded
automatically or from an entry in /etc/modules. This can be somewhat
tricky, but doing so will get up well up the Linux learning curve. :^)
IMHO, the safest way is to install kernel-package with synaptic (or
create a .deb which you can install with dpkg. This is also the "Debian
way" to create a custom kernel.
Be sure to read /usr/local/kernel-package/README.modules as well as the
man page for make-kpkg. You will need either the linux-source or
linux-headers package which matches the kernel you are using. You will
need to have the '--revision=' option to make-kpkg match the kernel
version.
It will definitely be a learning experience. Good luck.
Bob
More information about the ubuntu-users
mailing list