You are not logged in.
Pages: 1
I'm trying to make my USB webcam running on Slitaz. I installed v4l-dvb package with video4linux modules, but when I modprobe v4l1_compat I'm getting segfault:
[c]input: USB 2.0 Camera as /devices/pci0000:00/0000:00:09.2/usb1/1-2/1-2:1.0/input/input6
usbcore: registered new interface driver uvcvideo
USB Video Class driver (v0.1.0)
BUG: unable to handle kernel paging request at 8068560c
IP: [<df8ea006>] video_devdata+0x1/0x1a [videodev]
*pde = 00000000
Oops: 0000 [#1] SMP
last sysfs file: /sys/devices/pci0000:00/0000:00:09.2/usb1/1-2/1-2:1.0/input/input6/uevent
Modules linked in: uvcvideo videodev v4l1_compat i2c_core parport_pc parport button
Pid: 1098, comm: v4l_id Not tainted 2.6.37-slitaz #2 998h/hp t5000 series
EIP: 0060:[<df8ea006>] EFLAGS: 00010282 CPU: 0
EIP is at video_devdata+0x1/0x1a [videodev]
EAX: 80685600 EBX: 80685600 ECX: bffffd18 EDX: 80685600
ESI: de7a77c0 EDI: bffffd18 EBP: dd8abf24 ESP: dd8abf10
DS: 007b ES: 007b FS: 00d8 GS: 0033 SS: 0068
Process v4l_id (pid: 1098, ti=dd8aa000 task=de7da4c0 task.ti=dd8aa000)
Stack:
dd8abf24 df8ea0fb ffffffea de7a77c0 df8ea0ea dd8abf90 c108c045 dd8abf34
c103f498 dd8abfac c101d50e b7f5ef70 00000000 dd894934 dd894900 00000008
de7da4c0 b7f5ef70 00000004 00000020 de7a77c0 00000282 00000020 de7a77c0
Call Trace:
[<df8ea0fb>] ? v4l2_ioctl+0x11/0x2d [videodev]
[<df8ea0ea>] ? v4l2_ioctl+0x0/0x2d [videodev]
[<c108c045>] ? do_vfs_ioctl+0x4ad/0x4e8
[<c103f498>] ? up_read+0x8/0xa
[<c101d50e>] ? do_page_fault+0x30c/0x336
[<c1080a54>] ? do_sys_open+0xc4/0xce
[<c108c0ae>] ? sys_ioctl+0x2e/0x48
[<c137a079>] ? syscall_call+0x7/0xb
Code: <8b> 40 0c 89 e5 5d 8b 40 10 8b 40 3c 25 ff ff 0f 00 8b 04 85 a4 10
EIP: [<df8ea006>] video_devdata+0x1/0x1a [videodev] SS:ESP 0068:dd8abf10
CR2: 000000008068560c
---[ end trace 9b7b2ec414c3190c ]---
uname -a:
Linux lantea 2.6.37-slitaz #2 SMP Wed Mar 7 10:36:39 CET 2012 i586 GNU/Linux
lsmod:
Module Size Used by Tainted: G
uvcvideo 45028 0
videodev 31754 1 uvcvideo
v4l1_compat 10222 2 uvcvideo,videodev
i2c_core 12192 1 videodev
parport_pc 16061 0
parport 20983 1 parport_pc
button 3602 0
Packages:
List of all installed packages
============
bzlib 1.0.6 utilities
curl 7.23.1 network
depmod 3.12 base-system
expat 2.0.1 x-window
fontconfig 2.8.0 x-window
freetype 2.4.7 x-window
gcc-lib-base 4.5.2 development
git 1.7.9.1 development
glibc-base 2.13 base-system
jpeg 8b x-window
libcrypto 1.0.0g security
libcurl 7.23.1 network
libevent 2.0.13 system-tools
libgcrypt 1.5.0 security
libgpg-error 1.9 security
libidn 1.21 system-tools
libjpeg 8b x-window
libsqlite 3.7.9 office<br />
libssl 1.0.0g development<br />
libv4l 0.8.1 multimedia<br />
libxcb 1.7 x-window<br />
libxml2 2.7.8 system-tools<br />
libxslt 1.1.26 system-tools<br />
linux 2.6.37 base-system<br />
lzlib 4.57 base-system<br />
ncurses 5.9 base-system<br />
ncurses-common 5.9 base-system<br />
ncursesw 5.9 base-system<br />
openssl 1.0.0g security<br />
python 2.7.2 development<br />
python-lxml 2.3 development<br />
python-pil 1.1.6 development<br />
readline 6.2 system-tools<br />
sqlite 3.7.9 office<br />
tcl 8.5.10 development<br />
tk 8.5.10 development<br />
tmux 1.6 utilities<br />
v4l-dvb development_2.6.3 multimedia<br />
xorg-libX11 1.4.3 x-window<br />
xorg-libXau 1.0.6 x-window<br />
xorg-libXdmcp 1.1.0 x-window<br />
xorg-libXext 1.1.2 x-window<br />
xorg-libXft 2.2.0 x-window<br />
xorg-libXrender 0.9.6 x-window<br />
xorg-libXss 1.2.1 x-window<br />
zlib 1.2.6 base-system<br />
===============<br />
46 packages installed.<br />[/c]
Any ideas what's wrong?
libjpeg 8b x-window
Offline
Similar problem here, but I did the modprobe uvcvideo and after boot if I plug the webcam in USBport it shows me the segment fault as pbm told us.
Offline
actually webcam was working well in slitaz 3.
when i upgrade to slitaz 4, giving similar problems. almost a week, im looking solution around but couldnt. so i downgrade to slitaz 3 again
(usb cam works well)
Offline
@pipein
I used some chinese cameras like 0ac8:3420 (Venus USB 2.0 Camera) , 090c:037b (Feiya Technology Corp.) , and others. You can figured out these cheap cameras here: http://www.dealextreme.com/p/usb-pc-webcam-300k-pixel-with-6-led-13?item=4 and in others sites like eBay, FocalPrice and AliExpress.
They use many diferent modules like you said, but mainly: uvcvideo, pwc and linux-video
Before I compiled the kernel I've already tested everything that I found in internet: gibor's media-001, v4l-dev, another 5 tips/tricks, and no success. I'm using Slitaz 4.0 version with no big modifications, I just installed from repositories and configured Firefox, X11VNC, Skype and enabled the SSH via dropbear.
I'm using successfully: zbarcam (an app to read barcodes), fswebcam (simple webcam viewer), motion (security cam app, like a dvr) and skype.
- - -
!!! I AM NOT RESPONSIBLE FOR ANY INJURY OR DAMAGE TO YOUR OR TO ANY OTHER PERSON'S COMPUTER RELATED TO OR RESULTING FROM PARTICIPATING OR DOWNLOADING CONTENT OR MATERIALS FROM OR IN CONNECTION WITH THE FOLLING PROCEADURE OR ANY LINKS TO OTHER WEBSITES CONTAINED THEREIN. IT'S YOUR OWN RISK. AND I'LL NOT GIVE SUPPORT TO YOUR PROBLEMS
!!!
As I told before, I did exactly what they said here http://doc.slitaz.org/en:guides:kernel and http://forums.gentoo.org/viewtopic-t-826370-highlight-quickcam+4000.html , but for didactic purposes, I'll detail everything here (sorry moderators about my long text):
1) I installed Slitaz 4.0 (congrats, great distro!) into my dev PC (ASUS P5G41T-M LX2/BR Motherboard, Intel E3500 3GHz 750BGA CPU, Kingston 1GB DDR3 RAM, Old Seagate 80GB SATA HDD on sda, Samsung External DVD USB Drive). I was using a SSD/DOM with 1GB but it didn't support enought space to compile the kernel.
- put the CD Image into DVD Drive and run the slitaz, select the keyboard, and language.
- format the HD in ext3 with Gparted
- open the terminal with Sakura and install with tazinst [ http://hg.slitaz.org/slitaz-tools/raw-file/b57a0839c0d4/doc/tazinst.en.html ] typing (as you can see, do it as root--> # ):
# tazinst new tazconfig
# nano tazconfig
- find and replace the instalation target with your hdd partition, in my case, /dev/sda1
- select to install grub
- Ctrl+X and Yes to quit and save everything
# tazinst tazconfig
- wait to format (again), install everything...
2) Mount the hd, change grub and boot stuffs
# mkdir /mnt/target
# mount /dev/sda1 /mnt/target
# nano /mnt/target/boot/grub/menu.lst
- check if the target is right, in my case it was wrong (/dev/hda1)... changed to /dev/sda1
- change timeout to 0s (I hate to wait...)
# nano /mnt/target/etc/rcS.conf
- add dropbear to daemons (in the EOF)
# cd / && umount /mnt/target
# reboot
3) After reboot, install with TazPanel : Firefox, X11VNC, and whatever you want...
4) I proceadure from here with ssh, but you can use the Sakura as well, after configure IP (172.16.0.1), Gateway, DNS, etc.. I conected with my notebook(172.16.0.2):
# ssh tux@172.16.0.1
- password is tux
$ su
- password is root
And now as root under devpc I follow http://doc.slitaz.org/en:guides:kernel steps... so:
5) Building the compilation enviroment under devpc:
# tazpkg get-install slitaz-toolchain
# tazpkg get-install ncurses-dev
# tazpkg get-install perl
# tazpkg get-install linux-source
# /usr/bin/get-linux-source
# cd /usr/src/linux
# make oldconfig && make prepare
# make menuconfig
6) Now pay attention, I followed what this guy (MotivatedTea) said http://forums.gentoo.org/viewtopic-t-826370-highlight-quickcam+4000.html and figured out the place that modules and other webcam stuff was ([] is the shortcut letter for this option under menuconfig):
Device Drivers [D] > Multimedia Support [u] > Video Capture Adapters [V] > and select with SPACEBAR everything till change to <M> or [*]
select EXIT on the bottom of the screen, and return to main menu and select: Save an Alternate Configuration File , give a name to the file or leave the default name... this will be the name of conf file to make prg work to us 
7) Now, back to terminal screen, type the greatest commands ever seen:
# make
# make modules
# make modules_install
8) Copy the file created and change grub stuff
# cp arch/x86/boot/bzImage /boot
# nano /boot/grub/menu.lst
- include a line with the new kernel: kernel /boot/bzImage root=/dev/sda1
- save and exit
9) Reboot and select the new grub option 
That's all!!!
T0N1
Offline
Sorry my friend, I supposed to post this here: http://forum.slitaz.org/topic/webcam-usb/page/3?replies=37#post-11309
Offline
Pages: 1
[ Generated in 0.017 seconds, 7 queries executed - Memory usage: 1.56 MiB (Peak: 1.77 MiB) ]