VectorLinux

Please login or register.

Login with username, password and session length
Advanced search  

News:

Visit our home page for VL info. For support and documentation, visit the Vector Linux Knowledge Center or search the Knowledge Center and this Forum using the search box above.

Author Topic: [SOLVED] How do I install a driver?  (Read 3072 times)

acous

  • Member
  • *
  • Posts: 78
[SOLVED] How do I install a driver?
« on: May 16, 2007, 07:32:19 am »

I am trying to install a driver called gspca1xx but it doesnt work  :(

what do I do wrong?

vector:/~/Desktop/gspcav1-20070508
la:$ ls
Conexant/  Makefile.kld  Sonix/         Transvision/  decoder/      gspca_core.c
Etoms/     Mars-Semi/    Sunplus/       Vimicro/      gspca.h       utils/
Makefile*  Pixart/       Sunplus-jpeg/  changelog     gspca_build*
vector:/~/Desktop/gspcav1-20070508
la:$ make
make -C /lib/modules/`uname -r`/build SUBDIRS=/home/la/Desktop/gspcav1-20070508 CC=cc modules
make: *** /lib/modules/2.6.18.5/build: No such file or directory.  Stop.
make: *** [default] Error 2
vector:/~/Desktop/gspcav1-20070508
la:$ make install
mkdir -p /lib/modules/`uname -r`/kernel/drivers/usb/media/
rm -f /lib/modules/`uname -r`/kernel/drivers/usb/media/spca5xx.ko
rm -f /lib/modules/`uname -r`/kernel/drivers/media/video/gspca.ko
install -c -m 0644 gspca.ko /lib/modules/`uname -r`/kernel/drivers/usb/media/
install: cannot stat `gspca.ko': No such file or directory
make: *** [install] Error 1
vector:/~/Desktop/gspcav1-20070508
la:$
« Last Edit: May 16, 2007, 09:18:39 am by JohnB316 »
Logged

easuter

  • Global Moderator
  • Vectorian
  • *****
  • Posts: 2160
Re: How do I install a driver?
« Reply #1 on: May 16, 2007, 07:36:25 am »

It looks like you didn't install the kernel source code package during the VL installation.
All you have to do is put the VL 5.8 Gold cd into your drive, mount it and then install the "kernel-src.tlz" package that is in /mnt/cdrom/veclinux/optional

Then try building that driver again.
Logged

acous

  • Member
  • *
  • Posts: 78
Re: How do I install a driver?
« Reply #2 on: May 16, 2007, 09:17:53 am »

thanks!!! I got it working!!!1 :)
Logged