Hi Németh. Thanks for sticking to my prob!

It always happens... The steps are a bit complicated... I installed Zoneminder (latest release on zoneminder.com), which needs quite a few additional packages to my standard distro (openSUSE 11.1) to work. I then added a new Monitor with the source "/dev/video1" and resolution 640*480 (also tried different ones). Then, make it "Active" and click on it, and it should display the video source. But it just displays a black screen and the log files (in /tmp/) report errors. What I mailed you is dmesg output.


Am 18.01.2009 um 22:20 schrieb Németh Márton:
Unfortunately, you have to recompile your kernel to enable those features.
Changing that file does nothing.

Am 18.01.2009 um 22:27 schrieb Németh Márton:

This is a problem of the kernel space em28xx-new. Does this always happen?
What are the steps to reproduce the problem?

To debug this problem it would be useful if you can set the CONFIG_* parameters I specified (run "make menuconfig" from the linux source directory (usually /usr/src/linux) and press the "/" key so you can search for the CONFIG_* parameters. Then the kernel configuration is saved to a file named ".config". There should be a description somewhere which describes how to build Linux kernel.



I finally managed to compile my kernel again with the parameters you gave me, took my quite a while. Now "uname -r" reports "2.6.27.7- debug2", means what I did worked. When activating "/dev/video1" in Zoneminder, I get of these errors in "dmesg":


BUG: unable to handle kernel NULL pointer dereference at 00000088
IP: [<e1a9d20c>] :em28xx:em28xx_v4l2_ioctl+0x9/0x5f
*pdpt = 0000000007563001 *pde = 0000000000000000
Oops: 0000 [#2] SMP
last sysfs file: /sys/devices/pci0000:00/0000:00:10.3/ usb4/4-2/4-2:1.0/bInterfaceClass Modules linked in: tda9887(N) em28xx(N) zl10353(N) tuner(N) tvp5150 (N) nls_utf8(N) binfmt_misc(N) ipv6(N) hisax(N) capidrv(N) isdn(N) slhc(N) capi(N) capifs(N) kernelcapi(N) fuse(N) loop(N) dm_mod(N) saa7115(N) snd_via82xx(N) gameport(N) snd_ac97_codec(N) ppdev(N) ac97_bus(N) snd_pcm(N) snd_timer(N) snd_page_alloc(N) snd_mpu401_uart (N) rtc_cmos(N) i2c_viapro(N) snd_rawmidi(N) rtc_core(N) snd_seq_device(N) via_rhine(N) via_ircc(N) rtc_lib(N) serio_raw(N) pcspkr(N) snd(N) sr_mod(N) mii(N) soundcore(N) irda(N) cdrom(N) sg(N) crc_ccitt(N) videobuf_vmalloc(N) cx24110(N) dvb_bt8xx(N) dvb_core(N) bt878(N) thermal(N) parport_pc(N) bttv(N) parport(N) floppy(N) videodev(N) v4l1_compat(N) ir_common(N) compat_ioctl32(N) i2c_algo_bit (N) v4l2_common(N) videobuf_dma_sg(N) videobuf_core(N) btcx_risc(N) via_agp(N) tveeprom(N) processor(N) shpchp(N) button(N) agpgart(N) i2c_core(N) pci_hotplug(N) sd_mod(N) crc_t10dif(N) ehci_hcd(N) uhci_hcd(N) usbcore(N) edd(N) fan(N) thermal_sys(N) hwmon(N) ext3(N) mbcache(N) jbd(N) ide_pci_generic(N) via82cxxx(N) ide_core(N) ata_generic(N) pata_via(N) libata(N) scsi_mod(N) dock(N) [last unloaded: em28xx]
Supported: No

Pid: 7372, comm: zmc Tainted: G      D   (2.6.27.7-debug2 #2)
EIP: 0060:[<e1a9d20c>] EFLAGS: 00010292 CPU: 0
EIP is at em28xx_v4l2_ioctl+0x9/0x5f [em28xx]
EAX: 00000000 EBX: 00000000 ECX: c0445624 EDX: d8560900
ESI: d8560900 EDI: e1a9d203 EBP: c7577d48 ESP: c7577d40
 DS: 007b ES: 007b FS: 00d8 GS: 0033 SS: 0068
Process zmc (pid: 7372, ti=c7576000 task=d78565e0 task.ti=c7576000)
Stack: d8560900 00000000 c7577dac e1104406 c7577d54 00980900 dd1c6000 00000000 df458800 dd1c6008 c0132082 00000000 00000006 00020000 00000000 00000001 d78565e0 00000000 d7843860 de004060 c7577d98 c014b5f4 c7577db0 00000202
Call Trace:
 [<e1104406>] get_v4l_control+0x20/0xa2 [v4l1_compat]
 [<e1105091>] v4l1_compat_get_picture+0x41/0x183 [v4l1_compat]
 [<e1105ac0>] v4l_compat_translate_ioctl+0x1be/0x266 [v4l1_compat]
 [<e1a9fa5d>] em28xx_video_do_ioctl+0x1e06/0x1e59 [em28xx]
 [<e10d9797>] video_usercopy+0x1ae/0x247 [videodev]
 [<e1a9d259>] em28xx_v4l2_ioctl+0x56/0x5f [em28xx]
 [<e1a9d271>] em28xx_v4l2_ioctl_fops+0xf/0x11 [em28xx]
 [<c01a9f4a>] vfs_ioctl+0x4e/0x67
 [<c01aa1ad>] do_vfs_ioctl+0x24a/0x25d
 [<c01aa200>] sys_ioctl+0x40/0x5c
 [<c0104bdb>] sysenter_do_call+0x12/0x3f
 [<ffffe430>] 0xffffe430
 =======================
Code: 8d 94 03 2c 06 00 00 89 51 50 ff 84 03 80 06 00 00 31 c0 eb 05 b8 ea ff ff ff 8d 65 f4 5b 5e 5f 5d c3 55 89 e5 56 89 d6 53 89 c3 <8b> 80 88 00 00 00 8b 00 8b 90 24 0a 00 00 f6 c2 02 74 12 50 68 EIP: [<e1a9d20c>] em28xx_v4l2_ioctl+0x9/0x5f [em28xx] SS:ESP 0068:c7577d40
---[ end trace 866b1e476144b190 ]---



Am 18.01.2009 um 22:20 schrieb Németh Márton:
It seems that the segmentation fault is in user space ("webcam" and not in the em28xx-new driver. You might try to run "strace webcam" or try a different
video application like xawtv.




I actually searched the internet for xawtv and found out, that "webcam" is part of xawtv (I have xawtv installed). So I guess there is no other way to test the webcam with xawtv?
strace webcam does give me the output I uploaded here:
http://www.file-upload.net/download-1398622/strace_webcam.txt.html
It doesn't say much to me ... :(

Thanks!
_______________________________________________
Em28xx mailing list
Em28xx@mcentral.de
http://mcentral.de/mailman/listinfo/em28xx

Reply via email to