tuokke@tuokke-desktop:~$ cd /home/tuokke/Desktop/qc-usb-messenger-1.5
tuokke@tuokke-desktop:~/Desktop/qc-usb-messenger-1.5$ ./quickcam.sh
-=- Logitech QuickCam USB camera driver installer -=-
Hello! I am the (hopefully) easy-to-use, fully automated
qc-usb driver installation script.
At the moment, this is experimental, and if it doesn't work,
don't hesitate to quit this with Ctrl+C and install the
driver manually.
The driver is provided in source code form, so it has to be
compiled. This should happen automatically, but it does mean
that there are some steps required before installation.
You also need to know "root" user password to test and
install the driver.
Basically you need only to keep hitting Enter whenever you
see this prompt: --->. Sometimes you're asked root password.
Pay special attention to lines beginning with [!].
It means that some trouble has been detected.
To most important location is the path to your kernel source
or headers. This can be guessed, but you can specify it by
giving it as an argument to this script like this:
./quickcam.sh LINUX_DIR=/usr/src/linux
If you haven't done it yet, now it would be a good moment to
take a look at file README.
Next I'm going to check if you have some important programs installed
and if they and the kernel are of suitable version.
Press Ctrl+C to quit, Enter to continue --->
./quickcam.sh
/usr/bin/whoami
/bin/su
/bin/ls
/bin/cat
/usr/bin/gcc
/usr/bin/gcc
/usr/bin/make
/bin/grep
/bin/egrep
/usr/bin/awk
/bin/sed
/usr/bin/tail
/usr/bin/head
/usr/bin/install
/usr/bin/ld
/bin/uname
/usr/bin/tr
/usr/bin/xawtv
/usr/bin/xdpyinfo
/bin/dmesg
/usr/bin/wc
/bin/readlink
gcc version: gcc version 4.0.3 (Ubuntu 4.0.3-1ubuntu5)
gcc version: gcc version 4.0.3 (Ubuntu 4.0.3-1ubuntu5)
Make version: GNU Make 3.81beta4
Linker version: GNU ld version 2.16.91 20060118 Debian GNU/Linux
Kernel compiler: gcc version 4.0.3 (Ubuntu 4.0.3-1ubuntu5)
Looking for more necessary programs...
Found program /sbin/depmod
Found program /sbin/insmod
Found program /sbin/rmmod
Found program /sbin/modprobe
Found program /bin/mount
Found program /usr/sbin/lsusb
depmod version: module-init-tools 3.2.2
insmod version: module-init-tools version 3.2.2
rmmod version: module-init-tools version 3.2.2
modprobe version: module-init-tools version 3.2.2
Checking whether we're root... tuokke
Checking for driver source code...
Checking for write permission...
Previous round done. Now checking if you have kernel source installed.
Press Ctrl+C to quit, Enter to continue --->
Kernel source directory: /lib/modules/2.6.15-23-386/build
Detected kernel version is 2.6.x.
Kernel version name: 2.6.15-23-386
Kernel source version code: 132623
Driver file name: quickcam.ko
Module install directory: /lib/modules/2.6.15-23-386
Driver source directory (PWD): /home/tuokke/Desktop/qc-usb-messenger-1.5
Kernel source directory (LINUX_DIR): /lib/modules/2.6.15-23-386/build
Module install directory (MODULE_DIR): /lib/modules/2.6.15-23-386
Utility install directory (PREFIX): /usr/local
User options (USER_OPT): -DHAVE_UTSRELEASE_H=0
Driver file name (use with insmod): quickcam.ko
Kernel version code: 132623
The QuickCam driver requires other drivers from kernel.
I'll now check if those seem to be loaded.
Press Ctrl+C to quit, Enter to continue --->
Modules loaded into the kernel:
ppp_deflate zlib_deflate bsd_comp ppp_async crc_ccitt rfcomm l2cap bluetooth ppd ev fglrx powernow_k8 cpufreq_userspace cpufreq_stats freq_table cpufreq_powersav e cpufreq_ondemand cpufreq_conservative video tc1100_wmi sony_acpi pcc_acpi hotk ey dev_acpi container button acpi_sbs battery i2c_acpi_ec ac quickcam ipv6 ppp_g eneric slhc dm_mod md_mod videodev lp tsdev snd_usb_audio snd_usb_lib snd_rawmid i usbhid snd_seq_device snd_hwdep snd_intel8x0 snd_ac97_codec snd_ac97_bus snd_p cm_oss snd_mixer_oss tulip snd_pcm snd_timer snd soundcore psmouse floppy snd_pa ge_alloc parport_pc parport pcspkr shpchp pci_hotplug serio_raw af_packet rtc am d64_agp agpgart i2c_nforce2 i2c_core evdev ext3 jbd ide_generic forcedeth ehci_h cd ohci_hcd usbcore ide_cd cdrom ide_disk generic amd74xx sata_nv libata scsi_mo d thermal processor fan capability commoncap vga16fb vgastate fbcon tileblit fon t bitblit softcursor
[!] The QuickCam driver is already loaded!
You should first remove the (old?) module by issuing
rmmod mod_quickcam || rmmod quickcam
as root, otherwise I will fail to install the new module.
I will now try to unload it for you automatically,
if you just give me the root password (Ctrl+D to cancel):
Password:
=== Entering root mode ===
Trying to unload QuickCam driver...
=== Leaving root mode ===
Next round: let's see if you have a supported QuickCam.
Please plug in your USB camera before continuing.
Press Ctrl+C to quit, Enter to continue --->
I can find the following probably compatible devices:
Bus 001 Device 003: ID 046d:08f6 Logitech, Inc.
Another round done. Let's now compile the driver, it takes a while.
This step will also clear old unnecessary files from the directory.
Press Ctrl+C to quit, Enter to continue --->
rm -f *.o qcset input_read show *~ .\#* .*.cmd *.mod.c *.ko
rm -rf .tmp_versions
cd testquickcam ; make clean
make[1]: Siirrytään hakemistoon "/home/tuokke/Desktop/qc-usb-messenger-1.5/testq uickcam"
rm -f testquickcam *~ pic.ppm pic.gif
make[1]: Poistutaan hakemistosta "/home/tuokke/Desktop/qc-usb-messenger-1.5/test quickcam"
make -C "/lib/modules/2.6.15-23-386/build" SUBDIRS="/home/tuokke/Desktop/qc-usb- messenger-1.5" modules V=1 USER_OPT="-DHAVE_UTSRELEASE_H=0"
make[1]: Siirrytään hakemistoon "/usr/src/linux-headers-2.6.15-23-386"
mkdir -p /home/tuokke/Desktop/qc-usb-messenger-1.5/.tmp_versions
make -f scripts/Makefile.build obj=/home/tuokke/Desktop/qc-usb-messenger-1.5
gcc -m32 -Wp,-MD,/home/tuokke/Desktop/qc-usb-messenger-1.5/.qc-driver.o.d -no stdinc -isystem /usr/lib/gcc/i486-linux-gnu/4.0.3/include -D__KERNEL__ -Iinclude -include include/linux/autoconf.h -Wall -Wundef -Wstrict-prototypes -Wno-trigr aphs -fno-strict-aliasing -fno-common -ffreestanding -O2 -fomit-frame-pointe r -pipe -msoft-float -mpreferred-stack-boundary=2 -fno-unit-at-a-time -march=i48 6 -Iinclude/asm-i386/mach-default -Wdeclaration-after-statement -Wno-pointer-sig n -DNOKERNEL -DHAVE_UTSRELEASE_H=0 -DMODULE -DKBUILD_BASENAME=qc_driver -DKBUIL D_MODNAME=quickcam -c -o /home/tuokke/Desktop/qc-usb-messenger-1.5/.tmp_qc-drive r.o /home/tuokke/Desktop/qc-usb-messenger-1.5/qc-driver.c
/home/tuokke/Desktop/qc-usb-messenger-1.5/qc-driver.c:94:2: warning: #warning "L ittle Endian system"
gcc -m32 -Wp,-MD,/home/tuokke/Desktop/qc-usb-messenger-1.5/.qc-vv6450.o.d -no stdinc -isystem /usr/lib/gcc/i486-linux-gnu/4.0.3/include -D__KERNEL__ -Iinclude -include include/linux/autoconf.h -Wall -Wundef -Wstrict-prototypes -Wno-trigr aphs -fno-strict-aliasing -fno-common -ffreestanding -O2 -fomit-frame-pointe r -pipe -msoft-float -mpreferred-stack-boundary=2 -fno-unit-at-a-time -march=i48 6 -Iinclude/asm-i386/mach-default -Wdeclaration-after-statement -Wno-pointer-sig n -DNOKERNEL -DHAVE_UTSRELEASE_H=0 -DMODULE -DKBUILD_BASENAME=qc_vv6450 -DKBUIL D_MODNAME=quickcam -c -o /home/tuokke/Desktop/qc-usb-messenger-1.5/.tmp_qc-vv645 0.o /home/tuokke/Desktop/qc-usb-messenger-1.5/qc-vv6450.c
gcc -m32 -Wp,-MD,/home/tuokke/Desktop/qc-usb-messenger-1.5/.qc-formats.o.d -n ostdinc -isystem /usr/lib/gcc/i486-linux-gnu/4.0.3/include -D__KERNEL__ -Iinclud e -include include/linux/autoconf.h -Wall -Wundef -Wstrict-prototypes -Wno-trig raphs -fno-strict-aliasing -fno-common -ffreestanding -O2 -fomit-frame-point er -pipe -msoft-float -mpreferred-stack-boundary=2 -fno-unit-at-a-time -march=i4 86 -Iinclude/asm-i386/mach-default -Wdeclaration-after-statement -Wno-pointer-si gn -DNOKERNEL -DHAVE_UTSRELEASE_H=0 -DMODULE -DKBUILD_BASENAME=qc_formats -DKBU ILD_MODNAME=quickcam -c -o /home/tuokke/Desktop/qc-usb-messenger-1.5/.tmp_qc-for mats.o /home/tuokke/Desktop/qc-usb-messenger-1.5/qc-formats.c
gcc -m32 -Wp,-MD,/home/tuokke/Desktop/qc-usb-messenger-1.5/.qc-memory.o.d -no stdinc -isystem /usr/lib/gcc/i486-linux-gnu/4.0.3/include -D__KERNEL__ -Iinclude -include include/linux/autoconf.h -Wall -Wundef -Wstrict-prototypes -Wno-trigr aphs -fno-strict-aliasing -fno-common -ffreestanding -O2 -fomit-frame-pointe r -pipe -msoft-float -mpreferred-stack-boundary=2 -fno-unit-at-a-time -march=i48 6 -Iinclude/asm-i386/mach-default -Wdeclaration-after-statement -Wno-pointer-sig n -DNOKERNEL -DHAVE_UTSRELEASE_H=0 -DMODULE -DKBUILD_BASENAME=qc_memory -DKBUIL D_MODNAME=quickcam -c -o /home/tuokke/Desktop/qc-usb-messenger-1.5/.tmp_qc-memor y.o /home/tuokke/Desktop/qc-usb-messenger-1.5/qc-memory.c
ld -m elf_i386 -m elf_i386 -r -o /home/tuokke/Desktop/qc-usb-messenger-1.5/qu ickcam.o /home/tuokke/Desktop/qc-usb-messenger-1.5/qc-driver.o /home/tuokke/Desk top/qc-usb-messenger-1.5/qc-vv6450.o /home/tuokke/Desktop/qc-usb-messenger-1.5/q c-formats.o /home/tuokke/Desktop/qc-usb-messenger-1.5/qc-memory.o
Building modules, stage 2.
make -rR -f /usr/src/linux-headers-2.6.15-23-386/scripts/Makefile.modpost
scripts/mod/modpost -m -a -i /usr/src/linux-headers-2.6.15-23-386/Module.symve rs /home/tuokke/Desktop/qc-usb-messenger-1.5/quickcam.o
gcc -m32 -Wp,-MD,/home/tuokke/Desktop/qc-usb-messenger-1.5/.quickcam.mod.o.d -nostdinc -isystem /usr/lib/gcc/i486-linux-gnu/4.0.3/include -D__KERNEL__ -Iincl ude -include include/linux/autoconf.h -Wall -Wundef -Wstrict-prototypes -Wno-tr igraphs -fno-strict-aliasing -fno-common -ffreestanding -O2 -fomit-frame-poi nter -pipe -msoft-float -mpreferred-stack-boundary=2 -fno-unit-at-a-time -march= i486 -Iinclude/asm-i386/mach-default -Wdeclaration-after-statement -Wno-pointer- sign -DKBUILD_BASENAME=quickcam -DKBUILD_MODNAME=quickcam -DMODULE -c -o /hom e/tuokke/Desktop/qc-usb-messenger-1.5/quickcam.mod.o /home/tuokke/Desktop/qc-usb -messenger-1.5/quickcam.mod.c
ld -m elf_i386 -m elf_i386 -r -o /home/tuokke/Desktop/qc-usb-messenger-1.5/qui ckcam.ko /home/tuokke/Desktop/qc-usb-messenger-1.5/quickcam.o /home/tuokke/Deskt op/qc-usb-messenger-1.5/quickcam.mod.o
make[1]: Poistutaan hakemistosta "/usr/src/linux-headers-2.6.15-23-386"
gcc -Wall -O2 -s qcset.c -o qcset -lm
qcset.c: In function ‘pnm_open’:
qcset.c:383: warning: pointer targets in passing argument 1 of ‘fopen’ differ in signedness
qcset.c: In function ‘main’:
qcset.c:640: warning: pointer targets in passing argument 1 of ‘pnm_open’ differ in signedness
gcc -Wall -O2 -s input_read.c -o input_read
-rw-r--r-- 1 tuokke tuokke 134058 2007-01-29 21:36 quickcam.ko
Now everything should be well and the driver compiled.
Let's then try actually loading the fresh driver and testing
if it works.
Press Ctrl+C to quit, Enter to continue --->
To load the driver, I need to know the root password.
Password:
=== Entering root mode ===
I will now try to enable the SysRq key.
If your computer crashes, you can try pressing:
Alt + SysRq + S: Emergency Sync (write everything on hard disk)
Alt + SysRq + U: Unmount all harddisks
Alt + SysRq + B: Reboot system immediately
Press Ctrl+C to quit, Enter to continue --->
Now I finally will try to load the module.
If you're unlucky, your computer might crash right now!!!!
Consider long if you really want to continue.
Press Ctrl+C to quit, Enter to continue --->
You decided to do it, here we go...
=== Leaving root mode ===
The driver detected the following supported cameras:
[4310795.453000] quickcam [42.342156]: ----------LOADING QUICKCAM MODULE-------- ----
[4310795.453000] quickcam [42.342337]: struct quickcam size: 4100
[4310795.454000] quickcam: QuickCam USB camera found (driver version QuickCam Me ssenger/Communicate USB 1.5 $Date: 2006/11/05 00:00:00 $)
[4310795.454000] quickcam: Kernel:2.6.15-23-386 bus:1 class:FF subclass:FF vendo r:046D product:08F6
[4310795.455000] quickcam [42.343603]: poisoning qc in qc_usb_init
[4310795.463000] quickcam [42.351559]: E00A contains 08F6
[4310795.463000] quickcam: Sensor VV6450 detected
[4310795.466000] quickcam [42.355440]: Quickcam snapshot button registered on us b-0000:00:02.0-1/input0
[4310795.467000] quickcam: Registered device: /dev/video0
[4310795.467000] usbcore: registered new driver quickcam
I will be using /dev/video0, if there are more cameras I'll not test them.
Press Ctrl+C to quit, Enter to continue --->
Testing if /dev/video0 is correct.
crw-rw---- 1 root video 81, 0 2007-01-29 21:36 /dev/video0
Right now driver is loaded and should be ready to run.
Let's test if user applications can see it, starting with qcset.
Press Ctrl+C to quit, Enter to continue --->
Name : Logitech QuickCam USB
If you like, you can quit now and start using the camera -
you have good chances that it works, if no problems were detected.
If you have X Window System running and xawtv installed,
I can now run it automatically for you.
You will then also have opportunity to install the driver permanently.
Press Ctrl+C to quit, Enter to continue --->
Pitkä teksti mutta tarkalleen noin... tossa viimisessä vaiheessa jos painaa entteriä niin xawtv avautuu ja ruutu pimenee totaalisesti, kamera pelaa kuitenkin kun tossa vaiheessa lopettaa asennuksen.