ogre5000 wrote: > Hi. > > Ok I hope I got everything right (I don't need to recompile my kernel, > correct?).. I did this: > > - Changed all your mentioned parameters > in */usr/src/linux-2.6.27.7-9-obj/i386/pae/.config* (to PARAMETER=y) and > added the nonexistent parameters (CONFIG_DEBUG_OBJECTS_FREE=y > and CONFIG_DEBUG_OBJECTS_TIMERS=y).
Unfortunately, you have to recompile your kernel to enable those features. Changing that file does nothing. > - Ripped the latest em28xx-new > from http://mcentral.de/hg/~mrec/em28xx-new (have no hg, so I've taken > the .tar.gz link from there). > - Unpacked, executed *./build.sh build;**./build.sh install* > - Unloaded all em28xx modules with rmmod, then did *insmod em28xx.ko > card=11* > > Now when I execute webcam app with "640x480" configured, it says: > > *reading config file: /root/.webcamrc* > *video4linux webcam v1.5 - (c) 1998-2002 Gerd Knorr* > *grabber config:* > * size 360x576 [16 bit YUV 4:2:2 (packed, YUYV)]* > * input (null), norm (null), jpeg quality 100* > * rotate=0, top=0, left=0, bottom=480, right=640* > *write config [local]:* > * local transfer /root/uploading.jpeg => /root/webcam.jpeg* > *Segmentation fault* > > And dmesg then says: > (Thats just the last interesting lines, for the full dmesg file, see > this link: http://www.file-upload.net/download-1388194/dmesg.txt.html) > > *em28xx v4l2 driver version 0.0.1 loaded* > *em28xx: new video device (eb1a:2800): interface 0, class 255* > *em28xx: device is attached to a USB 2.0 bus* > *em28xx #0: Alternate settings: 4* > *em28xx #0: Alternate setting 0, max size= 0* > *em28xx #0: Alternate setting 1, max size= 644* > *em28xx #0: Alternate setting 2, max size= 1288* > *em28xx #0: Alternate setting 3, max size= 2580* > *saa7115' 2-0025: saa7113 found (1f7113d0e100000) @ 0x4a (em28xx #0)* > *attach_inform: saa7113 detected.* > *em28xx #0: V4L2 device registered as /dev/video1* > *em28xx #0: Found Terratec Cinergy 200 USB* > *usbcore: registered new interface driver em28xx* > *webcam[3508]: segfault at b7d53108 ip 08051885 sp bfd8ff58 error 7 in > webcam[8048000+e000]* 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. > But when I execute webcam app with "576x360" configured (did this > because it's part of webcam output above, the "size"), it says something > longer and funny, without segfault in dmesg: > (For the full webcam output, see this > link: http://www.file-upload.net/download-1388232/webcam.txt.html, just > some memory map info). > > * > reading config file: /root/.webcamrc > video4linux webcam v1.5 - (c) 1998-2002 Gerd Knorr > grabber config: > size 360x576 [16 bit YUV 4:2:2 (packed, YUYV)] > input (null), norm (null), jpeg quality 100 > rotate=0, top=0, left=0, bottom=360, right=576 > write config [local]: > local transfer /root/uploading.jpeg => /root/webcam.jpeg > *** glibc detected *** webcam: double free or corruption (out): > 0xb7d0f008 *** > ======= Backtrace: ========= > /lib/libc.so.6[0xb7e27654] > /lib/libc.so.6(cfree+0x9c)[0xb7e28f3c] > webcam[0x804ef45] > webcam(main+0xc12)[0x804c612] > /lib/libc.so.6(__libc_start_main+0xe5)[0xb7dd1705] > webcam[0x804b421] > ======= Memory map: ======== > * > [...] This is also a problem of the user space "webcam". > Back to 640x480, when using card=12, I get in dmesg after executing > webcam app (it also shows the list of devices "Here is a list of valid > choices for the card = <n> insmod option" even tough I gave the device > option, it's maybe not recognized): > > [...] > * > em28xx #0: card = 76 -> Pollin USB-R1 > em28xx #0: card = 77 -> Equinux TubeStick Hybrid ATSC > em28xx #0: card = 78 -> Leadtek PalmTop DTV 200H > em28xx #0: card = 79 -> Compro VideoMate ForYou/Stereo > em28xx #0: card = 80 -> Terratec XS HTC > saa7115' 2-0025: saa7113 found (1f7113d0e100000) @ 0x4a (em28xx #0) > attach_inform: saa7113 detected. > em28xx #0: V4L2 device registered as /dev/video1 > em28xx #0: Found Leadtek Winfast USB II > usbcore: registered new interface driver em28xx > * > > And when using card=13, dmesg says after "webcam": > > *em28xx v4l2 driver version 0.0.1 loaded* > *em28xx: new video device (eb1a:2800): interface 0, class 255* > *em28xx: device is attached to a USB 2.0 bus* > *em28xx #0: Alternate settings: 4* > *em28xx #0: Alternate setting 0, max size= 0* > *em28xx #0: Alternate setting 1, max size= 644* > *em28xx #0: Alternate setting 2, max size= 1288* > *em28xx #0: Alternate setting 3, max size= 2580* > *saa7115' 2-0025: saa7113 found (1f7113d0e100000) @ 0x4a (em28xx #0)* > *attach_inform: saa7113 detected.* > *em28xx #0: V4L2 device registered as /dev/video1* > *em28xx #0: Found KWorld USB2800* > *usbcore: registered new interface driver em28xx* > *webcam[4065]: segfault at b7d13108 ip 08051885 sp bf94f318 error 7 in > webcam[8048000+e000]* > > Any more ideas? :-) > Thanks! > > > > > Am 18.01.2009 um 06:30 schrieb Németh Márton: >> >> In your previous mail you mentioned that you get "Segmentation fault" for >> card=11..13. >> >> Please enable the following kernel configuration parameters: >> CONFIG_DEBUG_OBJECTS=y >> CONFIG_DEBUG_OBJECTS_FREE=y >> CONFIG_DEBUG_OBJECTS_TIMERS=y >> CONFIG_PROVE_LOCKING=y >> CONFIG_DEBUG_SPINLOCK_SLEEP=y >> CONFIG_DEBUG_BUGVERBOSE=y >> CONFIG_DEBUG_INFO=y >> CONFIG_DEBUG_STACKOVERFLOW=y >> CONFIG_DEBUG_RODATA=y >> CONFIG_FRAME_POINTER=y >> >> After that, recompile the latest em28xx-new which is currently >> revision 291. >> (you can check this with "hg view" and you can update with "hg pull" + >> "hg update") >> >> Then try card=11..13 and check, please, what contains the "dmesg" in >> case of >> these cases. >> >> Regards, >> >> Márton Németh > _______________________________________________ Em28xx mailing list Em28xx@mcentral.de http://mcentral.de/mailman/listinfo/em28xx