Hi all,
I had a kernel panic yesterday when changing the channel in xawtv with usbvision.
It's a Debian with kernel 2.6.22-3-686, xawtv 3.95.dfsg.1, usbvision 0.9.9,
and a Hauppauge WinTV USB.
WinTV was recognized successfully by usbvision. scantv claimed "/dev/vbi0 open failed", "invalid argument /dev/vbi0". Using a default .xawtv, xawtv started up and showed a flickering screen due to no channel found, but on selecting another channel the kernel crashed instantly without message.
Any ideas?
BTW, there was a message of usbvision on start, reading "(Not working yet!)". Maybe I should have taken that more seriously?
However, thanks in advance!
Thorsten
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hello,
I think you get something like this:
usbvision_probe: Hauppauge WinTV USB (PAL/SECAM L) found
USBVision[0]: registered USBVision Video device /dev/video0 [v4l2]
USBVision[0]: registered USBVision VBI device /dev/vbi0 [v4l2] (Not Working Yet!)
usbcore: registered new interface driver usbvision
USBVision USB Video Device Driver for Linux : 0.9.9
xawtv tries to open /dev/vbi0 and complains
It is "normal", just information about vbi not yet implemented...
It would be wonderful if you could look at the output of the serial output of your PC to get the kernel oops message.
Cheers,
Thierry
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
-
2008-01-30
Hi Thierry,
Could you recommend a specific device for reading the serial port?
Cheers
Thorsten
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
-
2008-02-08
No result by now. The failure itself was reproduceable, but either the setup of the ports is faulty or the kernel simply freezes.
Maybe I should just try a newer version of the usbvision module?
Sorry
Thorsten
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Does your serial line outputs console messages?
This is the default behavior of the kernel; if you do not see anything at boot, your serial line is not activated.
You can try the last revision of usbvision that is included in the v4l-dvb project.
A failsaife method:
- install mercurial (hg command) in order to retreive the latest version of the v4l-dvb repository.
- unplug your multimedia device
- reboot in order to clean the loaded v4l kernel drivers (or do the appropriate rmmods if you want)
then:
hg clone http://linuxtv.org/hg/v4l-dvb
cd v4l-dvb
make
make install
This will update in /lib/modules/xxx the kernel drivers for multimedia devices.
Then plug-in de device and test...
Cheers
Thierry
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Feb 15 00:44:44 polesbook kernel: usb 2-1: new full speed USB device using ohci_
hcd and address 3
Feb 15 00:44:44 polesbook kernel: usb 2-1: configuration #2 chosen from 1 choice
Feb 15 00:44:44 polesbook kernel: Linux video capture interface: v2.00
Feb 15 00:44:44 polesbook kernel: usbvision_probe: Belkin USB VideoBus II found
Feb 15 00:44:44 polesbook kernel: cp1
Feb 15 00:44:44 polesbook kernel: cp3
Feb 15 00:44:44 polesbook kernel: cp4
Feb 15 00:44:44 polesbook kernel: cp5 e3395364
Feb 15 00:44:44 polesbook kernel: cp7
Feb 15 00:44:44 polesbook kernel: cp8
Feb 15 00:44:44 polesbook kernel: cp9
Feb 15 00:44:44 polesbook kernel: cp12
Feb 15 00:44:44 polesbook kernel: cp13
Feb 15 00:44:44 polesbook kernel: cp14
Feb 15 00:44:44 polesbook kernel: cp15
Feb 15 00:44:44 polesbook kernel: cp16
Feb 15 00:44:44 polesbook kernel: USBVision[0]: registered USBVision Video devic
e /dev/video0 [v4l2]
Feb 15 00:44:44 polesbook kernel: USBVision[0]: registered USBVision VBI device /dev/vbi0 [v4l2] (Not Working Yet!)
Feb 15 00:44:44 polesbook kernel: usbvision_probe: Belkin USB VideoBus II found
Feb 15 00:44:44 polesbook kernel: cp1
Feb 15 00:44:44 polesbook kernel: cp3
Feb 15 00:44:44 polesbook kernel: cp4
Feb 15 00:44:44 polesbook kernel: cp5 00000024
Feb 15 00:44:44 polesbook kernel: BUG: unable to handle kernel NULL pointer dere
ference at virtual address 00000027
[... and the rest of the log I've already copied]
It seems to find the first interface and go all the way up to the end; but fails miserably on the second interface (I don't know why it tries two interfaces, anyway, I only have one adaptor).
I am also having this problem with a Grandtec RF CMOS wireless camera system. I have two identical USB receivers/grabbers and they both give exactly the same results. Both units have been tested under Windows XP with no faults found.
I have downloaded, built and installed the latest v4l-dvb drivers as instructed above and am still getting the same result:
May 12 22:20:14 sauron kernel: [ 104.618615] usb 1-10: new full speed USB device using ohci_hcd and address 4
May 12 22:20:14 sauron kernel: [ 104.748000] usb 1-10: configuration #2 chosen from 1 choice
May 12 22:20:14 sauron NetworkManager: <debug> [1210587614.749214] nm_hal_device_added(): New device added (hal udi is '/org/freedesktop/Hal/devices/usb_device_573_2101_noserial').
May 12 22:20:14 sauron kernel: [ 104.848101] Linux video capture interface: v2.00
May 12 22:20:14 sauron kernel: [ 104.852936] usbvision_probe: Zoran Co. PMD (Nogatech) AV-grabber Manhattan found
May 12 22:20:14 sauron kernel: [ 104.852967] USBVision[0]: registered USBVision Video device /dev/video0 [v4l2]
May 12 22:20:14 sauron kernel: [ 104.852984] USBVision[0]: registered USBVision VBI device /dev/vbi0 [v4l2] (Not Working Yet!)
May 12 22:20:14 sauron udevd-event[6364]: run_program: '/sbin/modprobe' abnormal exit
May 12 22:20:14 sauron kernel: [ 104.853855] usbvision_probe: Zoran Co. PMD (Nogatech) AV-grabber Manhattan found
May 12 22:20:14 sauron kernel: [ 104.853874] BUG: unable to handle kernel NULL pointer dereference at virtual address 0000002b
May 12 22:20:14 sauron kernel: [ 104.853878] printing eip: f9536d8b *pde = 00000000
May 12 22:20:14 sauron kernel: [ 104.853883] Oops: 0000 [#1] SMP
May 12 22:20:14 sauron kernel: [ 104.853887] Modules linked in: usbvision videodev v4l1_compat compat_ioctl32 v4l2_common binfmt_misc af_packet ppdev rfcomm l2cap bluetooth vboxdrv ipv6 powernow_k8 cpufreq_conservative cpufreq_powersave cpufreq_ondemand cpufreq_stats freq_table cpufreq_userspace battery iptable_filter ip_tables x_tables ac sbp2 lp loop nvidia(P) agpgart snd_mpu401 snd_mpu401_uart snd_seq_dummy snd_seq_oss snd_seq_midi snd_intel8x0 snd_rawmidi snd_ac97_codec snd_seq_midi_event ac97_bus snd_pcm_oss snd_mixer_oss snd_seq psmouse snd_seq_device snd_pcm serio_raw snd_timer shpchp k8temp analog i2c_nforce2 button snd i2c_core pci_hotplug snd_page_alloc parport_pc parport evdev soundcore pcspkr gameport ext3 jbd mbcache usb_storage libusual sg sr_mod sd_mod cdrom usbhid hid ata_generic floppy ohci1394 ieee1394 sata_nv pata_amd forcedeth pata_acpi ehci_hcd ohci_hcd libata scsi_mod usbcore thermal processor fan fuse vesafb fbcon tileblit font bitblit softcursor
May 12 22:20:14 sauron kernel: [ 104.853955]
May 12 22:20:14 sauron kernel: [ 104.853958] Pid: 6365, comm: modprobe Tainted: P (2.6.24-17-generic #1)
May 12 22:20:14 sauron kernel: [ 104.853962] EIP: 0060:[<f9536d8b>] EFLAGS: 00010206 CPU: 1
May 12 22:20:14 sauron kernel: [ 104.853973] EIP is at usbvision_probe+0xeb/0x810 [usbvision]
May 12 22:20:14 sauron kernel: [ 104.853976] EAX: 00000028 EBX: 00000118 ECX: 00000092 EDX: 00000001
May 12 22:20:14 sauron kernel: [ 104.853980] ESI: f6861400 EDI: f953f560 EBP: f6861400 ESP: f55cbd98
May 12 22:20:14 sauron kernel: [ 104.853983] DS: 007b ES: 007b FS: 00d8 GS: 0033 SS: 0068
May 12 22:20:14 sauron kernel: [ 104.853986] Process modprobe (pid: 6365, ti=f55ca000 task=f675ab80 task.ti=f55ca000)
May 12 22:20:14 sauron kernel: [ 104.853989] Stack: f953aa26 f9538931 f953a11c f58ca1c0 c01d743d f55cbdd0 c031b0a8 f61f5200
May 12 22:20:14 sauron kernel: [ 104.853996] 00000028 f9540be8 01a35397 0000000a f61f5200 f9540be8 f61f5200 f953f560
May 12 22:20:14 sauron kernel: [ 104.854003] f6861400 f8a365d9 00000000 f61f521c f61f5294 00000000 f61f521c 00000000
May 12 22:20:14 sauron kernel: [ 104.854010] Call Trace:
May 12 22:20:14 sauron kernel: [ 104.854022] [sysfs_addrm_start+0x6d/0xb0] sysfs_addrm_start+0x6d/0xb0
May 12 22:20:14 sauron kernel: [ 104.854032] [snd_seq:mutex_lock+0x8/0x290] mutex_lock+0x8/0x20
May 12 22:20:14 sauron kernel: [ 104.854064] [<f8a365d9>] usb_probe_interface+0xb9/0x140 [usbcore]
May 12 22:20:14 sauron kernel: [ 104.854103] [driver_probe_device+0x88/0x190] driver_probe_device+0x88/0x190
May 12 22:20:14 sauron kernel: [ 104.854128] [__driver_attach+0x9e/0xa0] __driver_attach+0x9e/0xa0
May 12 22:20:14 sauron kernel: [ 104.854140] [scsi_mod:bus_for_each_dev+0x3b/0xe0] bus_for_each_dev+0x3b/0x60
May 12 22:20:14 sauron kernel: [ 104.854162] [usbcore:driver_attach+0x16/0x2b0] driver_attach+0x16/0x20
May 12 22:20:14 sauron kernel: [ 104.854166] [__driver_attach+0x0/0xa0] __driver_attach+0x0/0xa0
May 12 22:20:14 sauron kernel: [ 104.854172] [bus_add_driver+0x8a/0x1e0] bus_add_driver+0x8a/0x1e0
May 12 22:20:14 sauron kernel: [ 104.854196] [<f8a3611e>] usb_register_driver+0x8e/0x110 [usbcore]
May 12 22:20:14 sauron kernel: [ 104.854217] [__link_module+0x0/0x20] __link_module+0x0/0x20
May 12 22:20:14 sauron kernel: [ 104.854237] [<f8be3065>] usbvision_init+0x65/0x169 [usbvision]
May 12 22:20:14 sauron kernel: [ 104.854249] [usbcore:blocking_notifier_call_chain+0x17/0x20] blocking_notifier_call_chain+0x17/0x20
May 12 22:20:14 sauron kernel: [ 104.854260] [sys_init_module+0x126/0x19c0] sys_init_module+0x126/0x19c0
May 12 22:20:14 sauron kernel: [ 104.854370] [<c027ffe0>] device_remove_file+0x0/0x40
May 12 22:20:14 sauron kernel: [ 104.854410] [sysenter_past_esp+0x6b/0xa9] sysenter_past_esp+0x6b/0xa9
May 12 22:20:14 sauron kernel: [ 104.854457] =======================
May 12 22:20:14 sauron kernel: [ 104.854459] Code: 24 08 e8 39 64 bf c6 8b 93 0c 04 54 f9 85 d2 0f 88 e9 04 00 00 8b 86 9c 01 00 00 8b 44 90 50 8b 00 8b 40 0c 83 c0 28 89 44 24 20 <0f> b6 40 03 83 e0 03 83 e8 01 0f 85 5b 06 00 00 8b 44 24 20 80
May 12 22:20:15 sauron kernel: [ 104.854493] EIP: [<f9536d8b>] usbvision_probe+0xeb/0x810 [usbvision] SS:ESP 0068:f55cbd98
May 12 22:20:15 sauron kernel: [ 104.854508] ---[ end trace baa19a39af9f081c ]---
May 12 22:20:15 sauron NetworkManager: <debug> [1210587615.001165] nm_hal_device_added(): New device added (hal udi is '/org/freedesktop/Hal/devices/usb_device_573_2101_noserial_if0').
May 12 22:20:18 sauron NetworkManager: <debug> [1210587618.233441] nm_hal_device_added(): New device added (hal udi is '/org/freedesktop/Hal/devices/usb_device_573_2101_noserial_video4linux').
Please let me know if there is any more information you require.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Please give me your kernel version.
Can you try to add in linux/media/video/usbvision/usbvision-video.c in function usbvision_probe (around line 1910) after
PDEBUG(DBG_PROBE, "VID=%#04x, PID=%#04x, ifnum=%u",
dev->descriptor.idVendor,
dev->descriptor.idProduct, ifnum);
add the following:
if(ifnum==1)
return -ENODEV;
Thierry
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I have applied the patch as described, installed the modules and rebooted. The log is looking a lot better now and xawtv finds the capture device . I have attached a second video capture device at the same time and it attached to a new video device and worked fine too. I've hot-plugged both devices several times and everything seems stable.
andrew@sauron:~$ uname -r
2.6.24-17-generic
andrew@sauron:~$tail -f /var/log/syslog
...[snip]...
May 14 20:43:01 sauron kernel: [ 126.272496] usb 1-10: new full speed USB device using ohci_hcd and address 4
May 14 20:43:01 sauron kernel: [ 126.401202] usb 1-10: configuration #2 chosen from 1 choice
May 14 20:43:01 sauron NetworkManager: <debug> [1210754581.310112] nm_hal_device_added(): New device added (hal udi is '/org/freedesktop/Hal/devices/usb_device_573_2101_noserial').
May 14 20:43:01 sauron kernel: [ 126.475503] Linux video capture interface: v2.00
May 14 20:43:01 sauron kernel: [ 126.486157] usbvision_probe: Zoran Co. PMD (Nogatech) AV-grabber Manhattan found
May 14 20:43:01 sauron kernel: [ 126.486502] USBVision[0]: registered USBVision Video device /dev/video0 [v4l2]
May 14 20:43:01 sauron kernel: [ 126.486754] USBVision[0]: registered USBVision VBI device /dev/vbi0 [v4l2] (Not Working Yet!)
May 14 20:43:01 sauron kernel: [ 126.487790] usbcore: registered new interface driver usbvision
May 14 20:43:01 sauron kernel: [ 126.488006] USBVision USB Video Device Driver for Linux : 0.9.9
May 14 20:43:01 sauron NetworkManager: <debug> [1210754581.513028] nm_hal_device_added(): New device added (hal udi is '/org/freedesktop/Hal/devices/usb_device_573_2101_noserial_if1').
May 14 20:43:02 sauron kernel: [ 127.030147] saa7115' 5-0025: saa7113 found (1f7113d0e100000) @ 0x4a (usbvision #0)
May 14 20:43:04 sauron NetworkManager: <debug> [1210754584.741911] nm_hal_device_added(): New device added (hal udi is '/org/freedesktop/Hal/devices/usb_device_573_2101_noserial_video4linux').
May 14 20:43:04 sauron NetworkManager: <debug> [1210754584.789403] nm_hal_device_added(): New device added (hal udi is '/org/freedesktop/Hal/devices/usb_device_573_2101_noserial_if0').
May 14 20:43:37 sauron kernel: [ 146.237132] saa7115' 5-0025: saa7113 found (1f7113d0e100000) @ 0x4a (usbvision #0)
May 14 20:50:10 sauron kernel: [ 381.818177] usb 1-9: new full speed USB device using ohci_hcd and address 5
May 14 20:50:10 sauron kernel: [ 381.953979] usb 1-9: configuration #2 chosen from 1 choice
May 14 20:50:10 sauron NetworkManager: <debug> [1210755010.427883] nm_hal_device_added(): New device added (hal udi is '/org/freedesktop/Hal/devices/usb_device_573_2101_noserial_0').
May 14 20:50:10 sauron kernel: [ 381.960889] usbvision_probe: Zoran Co. PMD (Nogatech) AV-grabber Manhattan found
May 14 20:50:10 sauron kernel: [ 381.960918] USBVision[1]: registered USBVision Video device /dev/video1 [v4l2]
May 14 20:50:10 sauron kernel: [ 381.960942] USBVision[1]: registered USBVision VBI device /dev/vbi1 [v4l2] (Not Working Yet!)
May 14 20:50:11 sauron kernel: [ 382.525951] saa7115' 6-0025: saa7113 found (1f7113d0e100000) @ 0x4a (usbvision #1)
May 14 20:50:13 sauron kernel: [ 383.589225] /store/home/andrew/src/v4l-dvb/v4l/usbvision-core.c: usbvision_init_isoc: usb_submit_urb(0) failed: error -28
May 14 20:50:13 sauron NetworkManager: <debug> [1210755013.874001] nm_hal_device_added(): New device added (hal udi is '/org/freedesktop/Hal/devices/usb_device_573_2101_noserial_0_video4linux').
May 14 20:50:13 sauron NetworkManager: <debug> [1210755013.923681] nm_hal_device_added(): New device added (hal udi is '/org/freedesktop/Hal/devices/usb_device_573_2101_noserial_0_if0').
May 14 20:50:13 sauron NetworkManager: <debug> [1210755013.968141] nm_hal_device_added(): New device added (hal udi is '/org/freedesktop/Hal/devices/usb_device_573_2101_noserial_0_if1').
Cheers,
--
Andrew
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hi all,
I had a kernel panic yesterday when changing the channel in xawtv with usbvision.
It's a Debian with kernel 2.6.22-3-686, xawtv 3.95.dfsg.1, usbvision 0.9.9,
and a Hauppauge WinTV USB.
WinTV was recognized successfully by usbvision. scantv claimed "/dev/vbi0 open failed", "invalid argument /dev/vbi0". Using a default .xawtv, xawtv started up and showed a flickering screen due to no channel found, but on selecting another channel the kernel crashed instantly without message.
Any ideas?
BTW, there was a message of usbvision on start, reading "(Not working yet!)". Maybe I should have taken that more seriously?
However, thanks in advance!
Thorsten
Hello,
I think you get something like this:
usbvision_probe: Hauppauge WinTV USB (PAL/SECAM L) found
USBVision[0]: registered USBVision Video device /dev/video0 [v4l2]
USBVision[0]: registered USBVision VBI device /dev/vbi0 [v4l2] (Not Working Yet!)
usbcore: registered new interface driver usbvision
USBVision USB Video Device Driver for Linux : 0.9.9
xawtv tries to open /dev/vbi0 and complains
It is "normal", just information about vbi not yet implemented...
It would be wonderful if you could look at the output of the serial output of your PC to get the kernel oops message.
Cheers,
Thierry
Hi Thierry,
Could you recommend a specific device for reading the serial port?
Cheers
Thorsten
You must use a peer PC and connect RS232 ports with a serial cable
Look at http://www.faqs.org/docs/Linux-HOWTO/Remote-Serial-Console-HOWTO.html, 11.3. Cable from console port to terminal (or another PC) for cable wirings.
Use minicom on the peer PC to see the serial output.
Thierry
No result by now. The failure itself was reproduceable, but either the setup of the ports is faulty or the kernel simply freezes.
Maybe I should just try a newer version of the usbvision module?
Sorry
Thorsten
Does your serial line outputs console messages?
This is the default behavior of the kernel; if you do not see anything at boot, your serial line is not activated.
You can try the last revision of usbvision that is included in the v4l-dvb project.
A failsaife method:
- install mercurial (hg command) in order to retreive the latest version of the v4l-dvb repository.
- unplug your multimedia device
- reboot in order to clean the loaded v4l kernel drivers (or do the appropriate rmmods if you want)
then:
hg clone http://linuxtv.org/hg/v4l-dvb
cd v4l-dvb
make
make install
This will update in /lib/modules/xxx the kernel drivers for multimedia devices.
Then plug-in de device and test...
Cheers
Thierry
I tried the mercurial version without success, I've got a kernel oops too.
Feb 15 00:44:44 polesbook kernel: BUG: unable to handle kernel NULL pointer dereference at virtual address 00000027
Feb 15 00:44:44 polesbook kernel: printing eip:
Feb 15 00:44:44 polesbook kernel: efc95e04
Feb 15 00:44:44 polesbook kernel: *pde = 00000000
Feb 15 00:44:44 polesbook kernel: Oops: 0000 [#1]
Feb 15 00:44:44 polesbook kernel: SMP
Feb 15 00:44:44 polesbook kernel: Modules linked in: usbvision videodev v4l1_compat compat_ioctl32 v4l2_common snd_rtctimer fglrx(P) binfmt_misc ppdev parport_pc lp parport button ac battery cpufreq_powersave cpufreq_stats cpufreq_userspace cpufreq_ondemand cpufreq_conservative ipv6 nfs lockd nfs_acl sunrpc ext2 mbcache fuse p4_clockmod speedstep_lib freq_table kqemu loop mmc_block tifm_sd pcmcia firmware_class tsdev joydev sdhci snd_hda_intel tifm_7xx1 tifm_core rtc pcspkr ndiswrapper mmc_core snd_pcm_oss snd_pcm snd_mixer_oss snd_seq_dummy snd_seq_oss snd_seq_midi_event snd_seq snd_timer snd_seq_device snd yenta_socket soundcore rsrc_nonstatic pcmcia_core snd_page_alloc psmouse serio_raw i2c_piix4 i2c_core sky2 ati_agp agpgart shpchp pci_hotplug evdev reiserfs sha256 blowfish cbc blkcipher dm_crypt dm_mirror dm_snapshot dm_mod ide_cd cdrom ide_disk atiixp generic ide_core firewire_ohci firewire_core crc_itu_t ata_generic libata scsi_mod ehci_hcd ohci_hcd usbcore thermal processor fan
Feb 15 00:44:44 polesbook kernel: CPU: 0
Feb 15 00:44:44 polesbook kernel: EIP: 0060:[<efc95e04>] Tainted: P
Feb 15 00:44:44 polesbook kernel: EFLAGS: 00010292 (2.6.22-3-686 #1)
Feb 15 00:44:44 polesbook kernel: EIP is at usbvision_probe+0x159/0x803 [usbvisi
on]
Feb 15 00:44:44 polesbook kernel: eax: 00000010 ebx: 00000024 ecx: 00000046
edx: 00000024
Feb 15 00:44:44 polesbook kernel: esi: e451f400 edi: efc9fe7c ebp: 00000003
esp: e3025d9c
Feb 15 00:44:44 polesbook kernel: ds: 007b es: 007b fs: 00d8 gs: 0033 ss:
0068
Feb 15 00:44:44 polesbook kernel: Process modprobe (pid: 4209, ti=e3024000 task=
ebb61a50 task.ti=e3024000)
Feb 15 00:44:44 polesbook kernel: Stack: efc98a54 00000024 efc99263 c01a153d 000
00020 c03034a3 c03034aa e3dac400
Feb 15 00:44:44 polesbook kernel: efc9fe7c ee86c882 01c9fe7c 00000024 e3d
ac400 00000000 efc9fe7c efc9e6e0
Feb 15 00:44:44 polesbook kernel: ee86d6e1 e451f400 e3dac418 00000000 efc
9e710 e3dac4d0 c022cf5e 00000000
Feb 15 00:44:44 polesbook kernel: Call Trace:
Feb 15 00:44:44 polesbook kernel: [<c01a153d>] sysfs_make_dirent+0x29/0x35
Feb 15 00:44:44 polesbook kernel: [<ee86c882>] usb_match_one_id+0x1c/0x71 [usbc
ore]
Feb 15 00:44:44 polesbook kernel: [<ee86d6e1>] usb_probe_interface+0x81/0xb2 [usbcore]
Feb 15 00:44:44 polesbook kernel: [<c022cf5e>] driver_probe_device+0xe1/0x15f
Feb 15 00:44:44 polesbook kernel: [<c02a2c71>] klist_next+0x4b/0x6c
Feb 15 00:44:44 polesbook kernel: [<c022d06e>] __driver_attach+0x0/0x79
Feb 15 00:44:44 polesbook kernel: [<c022d0b4>] __driver_attach+0x46/0x79
Feb 15 00:44:44 polesbook kernel: [<c022c521>] bus_for_each_dev+0x37/0x59
Feb 15 00:44:44 polesbook udevd-event[4207]: run_program: '/sbin/modprobe' abnor
mal exit
Feb 15 00:44:44 polesbook kernel: [<c022cdc2>] driver_attach+0x16/0x18
Feb 15 00:44:44 polesbook kernel: [<c022d06e>] __driver_attach+0x0/0x79
Feb 15 00:44:44 polesbook kernel: [<c022c805>] bus_add_driver+0x6d/0x16d
Feb 15 00:44:44 polesbook kernel: [<ee86d22c>] usb_register_driver+0x6d/0xd4 [u
sbcore]
Feb 15 00:44:44 polesbook kernel: [<c011e226>] default_wake_function+0x0/0xc
Feb 15 00:44:44 polesbook kernel: [<eedd60e9>] usbvision_init+0xe9/0x12f [usbvi
sion]
Feb 15 00:44:44 polesbook kernel: [<c012db9b>] blocking_notifier_call_chain+0x1
7/0x1a
Feb 15 00:44:44 polesbook kernel: [<c0140730>] sys_init_module+0x161c/0x1755
Feb 15 00:44:44 polesbook kernel: [<c022ad49>] device_remove_file+0x0/0x25
Feb 15 00:44:44 polesbook kernel: [<c0103d0e>] sysenter_past_esp+0x6b/0xa1
Feb 15 00:44:44 polesbook kernel: =======================
Feb 15 00:44:44 polesbook kernel: Code: 18 c7 04 24 4c 8a c9 ef e8 d6 d8 48 d0 8
b 5b 0c 83 c3 24 89 5c 24 2c 89 5c 24 04 c7 04 24 54 8a c9 ef e8 bc d8 48 d0 8b
54 24 2c <0f> b6 42 03 83 e0 03 48 74 63 c7 04 24 5f 8a c9 ef e8 a2 d8 48
Feb 15 00:44:44 polesbook kernel: EIP: [<efc95e04>] usbvision_probe+0x159/0x803
[usbvision] SS:ESP 0068:e3025d9c
... I then added some trace points to the usbvision_probe routines:
diff -r f714d53d1a51 linux/drivers/media/video/usbvision/usbvision-video.c
--- a/linux/drivers/media/video/usbvision/usbvision-video.c Thu Feb 14 18:03:24 2008 -0200
+++ b/linux/drivers/media/video/usbvision/usbvision-video.c Fri Feb 15 11:41:05 2008 -0200
@@ -1918,48 +1918,71 @@ static int __devinit usbvision_probe(str
}
printk(KERN_INFO "%s: %s found\n", __FUNCTION__,
usbvision_device_data[model].ModelString);
-
+ printk(KERN_INFO "cp1\n");
if (usbvision_device_data[model].Interface >= 0) {
+ printk(KERN_INFO "cp2\n");
interface = &dev->actconfig->interface[usbvision_device_data[model].Interface]->altsetting[0];
} else {
+ printk(KERN_INFO "cp3\n");
+
interface = &dev->actconfig->interface[ifnum]->altsetting[0];
}
+ printk(KERN_INFO "cp4 %p\n", interface);
endpoint = &interface->endpoint[1].desc;
+ printk(KERN_INFO "cp5 %p\n", endpoint);
+
if ((endpoint->bmAttributes & USB_ENDPOINT_XFERTYPE_MASK) !=
USB_ENDPOINT_XFER_ISOC) {
+ printk(KERN_INFO "cp6\n");
+
err("%s: interface %d. has non-ISO endpoint!",
__FUNCTION__, ifnum);
err("%s: Endpoint attributes %d",
__FUNCTION__, endpoint->bmAttributes);
return -ENODEV;
}
+ printk(KERN_INFO "cp7\n");
+
if ((endpoint->bEndpointAddress & USB_ENDPOINT_DIR_MASK) ==
USB_DIR_OUT) {
err("%s: interface %d. has ISO OUT endpoint!",
__FUNCTION__, ifnum);
return -ENODEV;
}
+ printk(KERN_INFO "cp8\n");
if ((usbvision = usbvision_alloc(dev)) == NULL) {
err("%s: couldn't allocate USBVision struct", __FUNCTION__);
return -ENOMEM;
}
+ printk(KERN_INFO "cp9\n");
if (dev->descriptor.bNumConfigurations > 1) {
+ printk(KERN_INFO "cp10\n");
+
usbvision->bridgeType = BRIDGE_NT1004;
} else if (model == DAZZLE_DVC_90_REV_1_SECAM) {
+ printk(KERN_INFO "cp11\n");
+
usbvision->bridgeType = BRIDGE_NT1005;
} else {
+ printk(KERN_INFO "cp12\n");
+
usbvision->bridgeType = BRIDGE_NT1003;
}
PDEBUG(DBG_PROBE, "bridgeType %d", usbvision->bridgeType);
+ printk(KERN_INFO "cp13\n");
mutex_lock(&usbvision->lock);
+ printk(KERN_INFO "cp14\n");
/* compute alternate max packet sizes */
uif = dev->actconfig->interface[0];
+ printk(KERN_INFO "cp15\n");
usbvision->num_alt=uif->num_altsetting;
+ printk(KERN_INFO "cp16\n");
+
PDEBUG(DBG_PROBE, "Alternate settings: %i",usbvision->num_alt);
usbvision->alt_max_pkt_size = kmalloc(32*
usbvision->num_alt,GFP_KERNEL);
And here is what I got on syslog:
Feb 15 00:44:44 polesbook kernel: usb 2-1: new full speed USB device using ohci_
hcd and address 3
Feb 15 00:44:44 polesbook kernel: usb 2-1: configuration #2 chosen from 1 choice
Feb 15 00:44:44 polesbook kernel: Linux video capture interface: v2.00
Feb 15 00:44:44 polesbook kernel: usbvision_probe: Belkin USB VideoBus II found
Feb 15 00:44:44 polesbook kernel: cp1
Feb 15 00:44:44 polesbook kernel: cp3
Feb 15 00:44:44 polesbook kernel: cp4
Feb 15 00:44:44 polesbook kernel: cp5 e3395364
Feb 15 00:44:44 polesbook kernel: cp7
Feb 15 00:44:44 polesbook kernel: cp8
Feb 15 00:44:44 polesbook kernel: cp9
Feb 15 00:44:44 polesbook kernel: cp12
Feb 15 00:44:44 polesbook kernel: cp13
Feb 15 00:44:44 polesbook kernel: cp14
Feb 15 00:44:44 polesbook kernel: cp15
Feb 15 00:44:44 polesbook kernel: cp16
Feb 15 00:44:44 polesbook kernel: USBVision[0]: registered USBVision Video devic
e /dev/video0 [v4l2]
Feb 15 00:44:44 polesbook kernel: USBVision[0]: registered USBVision VBI device /dev/vbi0 [v4l2] (Not Working Yet!)
Feb 15 00:44:44 polesbook kernel: usbvision_probe: Belkin USB VideoBus II found
Feb 15 00:44:44 polesbook kernel: cp1
Feb 15 00:44:44 polesbook kernel: cp3
Feb 15 00:44:44 polesbook kernel: cp4
Feb 15 00:44:44 polesbook kernel: cp5 00000024
Feb 15 00:44:44 polesbook kernel: BUG: unable to handle kernel NULL pointer dere
ference at virtual address 00000027
[... and the rest of the log I've already copied]
It seems to find the first interface and go all the way up to the end; but fails miserably on the second interface (I don't know why it tries two interfaces, anyway, I only have one adaptor).
The code around trace point 5 reads:
if (usbvision_device_data[model].Interface >= 0) {
printk(KERN_INFO "cp2\n");
interface = &dev->actconfig->interface[usbvision_device_data[mo
} else {
printk(KERN_INFO "cp3\n");
interface = &dev->actconfig->interface[ifnum]->altsetting[0];
}
printk(KERN_INFO "cp4 %p\n", interface);
endpoint = &interface->endpoint[1].desc;
printk(KERN_INFO "cp5 %p\n", endpoint);
if ((endpoint->bmAttributes & USB_ENDPOINT_XFERTYPE_MASK) !=
USB_ENDPOINT_XFER_ISOC) {
printk(KERN_INFO "cp6\n");
err("%s: interface %d. has non-ISO endpoint!",
__FUNCTION__, ifnum);
err("%s: Endpoint attributes %d",
... it's the endpoint pointer dereference that fails.
I am also having this problem with a Grandtec RF CMOS wireless camera system. I have two identical USB receivers/grabbers and they both give exactly the same results. Both units have been tested under Windows XP with no faults found.
I have downloaded, built and installed the latest v4l-dvb drivers as instructed above and am still getting the same result:
May 12 22:20:14 sauron kernel: [ 104.618615] usb 1-10: new full speed USB device using ohci_hcd and address 4
May 12 22:20:14 sauron kernel: [ 104.748000] usb 1-10: configuration #2 chosen from 1 choice
May 12 22:20:14 sauron NetworkManager: <debug> [1210587614.749214] nm_hal_device_added(): New device added (hal udi is '/org/freedesktop/Hal/devices/usb_device_573_2101_noserial').
May 12 22:20:14 sauron kernel: [ 104.848101] Linux video capture interface: v2.00
May 12 22:20:14 sauron kernel: [ 104.852936] usbvision_probe: Zoran Co. PMD (Nogatech) AV-grabber Manhattan found
May 12 22:20:14 sauron kernel: [ 104.852967] USBVision[0]: registered USBVision Video device /dev/video0 [v4l2]
May 12 22:20:14 sauron kernel: [ 104.852984] USBVision[0]: registered USBVision VBI device /dev/vbi0 [v4l2] (Not Working Yet!)
May 12 22:20:14 sauron udevd-event[6364]: run_program: '/sbin/modprobe' abnormal exit
May 12 22:20:14 sauron kernel: [ 104.853855] usbvision_probe: Zoran Co. PMD (Nogatech) AV-grabber Manhattan found
May 12 22:20:14 sauron kernel: [ 104.853874] BUG: unable to handle kernel NULL pointer dereference at virtual address 0000002b
May 12 22:20:14 sauron kernel: [ 104.853878] printing eip: f9536d8b *pde = 00000000
May 12 22:20:14 sauron kernel: [ 104.853883] Oops: 0000 [#1] SMP
May 12 22:20:14 sauron kernel: [ 104.853887] Modules linked in: usbvision videodev v4l1_compat compat_ioctl32 v4l2_common binfmt_misc af_packet ppdev rfcomm l2cap bluetooth vboxdrv ipv6 powernow_k8 cpufreq_conservative cpufreq_powersave cpufreq_ondemand cpufreq_stats freq_table cpufreq_userspace battery iptable_filter ip_tables x_tables ac sbp2 lp loop nvidia(P) agpgart snd_mpu401 snd_mpu401_uart snd_seq_dummy snd_seq_oss snd_seq_midi snd_intel8x0 snd_rawmidi snd_ac97_codec snd_seq_midi_event ac97_bus snd_pcm_oss snd_mixer_oss snd_seq psmouse snd_seq_device snd_pcm serio_raw snd_timer shpchp k8temp analog i2c_nforce2 button snd i2c_core pci_hotplug snd_page_alloc parport_pc parport evdev soundcore pcspkr gameport ext3 jbd mbcache usb_storage libusual sg sr_mod sd_mod cdrom usbhid hid ata_generic floppy ohci1394 ieee1394 sata_nv pata_amd forcedeth pata_acpi ehci_hcd ohci_hcd libata scsi_mod usbcore thermal processor fan fuse vesafb fbcon tileblit font bitblit softcursor
May 12 22:20:14 sauron kernel: [ 104.853955]
May 12 22:20:14 sauron kernel: [ 104.853958] Pid: 6365, comm: modprobe Tainted: P (2.6.24-17-generic #1)
May 12 22:20:14 sauron kernel: [ 104.853962] EIP: 0060:[<f9536d8b>] EFLAGS: 00010206 CPU: 1
May 12 22:20:14 sauron kernel: [ 104.853973] EIP is at usbvision_probe+0xeb/0x810 [usbvision]
May 12 22:20:14 sauron kernel: [ 104.853976] EAX: 00000028 EBX: 00000118 ECX: 00000092 EDX: 00000001
May 12 22:20:14 sauron kernel: [ 104.853980] ESI: f6861400 EDI: f953f560 EBP: f6861400 ESP: f55cbd98
May 12 22:20:14 sauron kernel: [ 104.853983] DS: 007b ES: 007b FS: 00d8 GS: 0033 SS: 0068
May 12 22:20:14 sauron kernel: [ 104.853986] Process modprobe (pid: 6365, ti=f55ca000 task=f675ab80 task.ti=f55ca000)
May 12 22:20:14 sauron kernel: [ 104.853989] Stack: f953aa26 f9538931 f953a11c f58ca1c0 c01d743d f55cbdd0 c031b0a8 f61f5200
May 12 22:20:14 sauron kernel: [ 104.853996] 00000028 f9540be8 01a35397 0000000a f61f5200 f9540be8 f61f5200 f953f560
May 12 22:20:14 sauron kernel: [ 104.854003] f6861400 f8a365d9 00000000 f61f521c f61f5294 00000000 f61f521c 00000000
May 12 22:20:14 sauron kernel: [ 104.854010] Call Trace:
May 12 22:20:14 sauron kernel: [ 104.854022] [sysfs_addrm_start+0x6d/0xb0] sysfs_addrm_start+0x6d/0xb0
May 12 22:20:14 sauron kernel: [ 104.854032] [snd_seq:mutex_lock+0x8/0x290] mutex_lock+0x8/0x20
May 12 22:20:14 sauron kernel: [ 104.854064] [<f8a365d9>] usb_probe_interface+0xb9/0x140 [usbcore]
May 12 22:20:14 sauron kernel: [ 104.854103] [driver_probe_device+0x88/0x190] driver_probe_device+0x88/0x190
May 12 22:20:14 sauron kernel: [ 104.854128] [__driver_attach+0x9e/0xa0] __driver_attach+0x9e/0xa0
May 12 22:20:14 sauron kernel: [ 104.854140] [scsi_mod:bus_for_each_dev+0x3b/0xe0] bus_for_each_dev+0x3b/0x60
May 12 22:20:14 sauron kernel: [ 104.854162] [usbcore:driver_attach+0x16/0x2b0] driver_attach+0x16/0x20
May 12 22:20:14 sauron kernel: [ 104.854166] [__driver_attach+0x0/0xa0] __driver_attach+0x0/0xa0
May 12 22:20:14 sauron kernel: [ 104.854172] [bus_add_driver+0x8a/0x1e0] bus_add_driver+0x8a/0x1e0
May 12 22:20:14 sauron kernel: [ 104.854196] [<f8a3611e>] usb_register_driver+0x8e/0x110 [usbcore]
May 12 22:20:14 sauron kernel: [ 104.854217] [__link_module+0x0/0x20] __link_module+0x0/0x20
May 12 22:20:14 sauron kernel: [ 104.854237] [<f8be3065>] usbvision_init+0x65/0x169 [usbvision]
May 12 22:20:14 sauron kernel: [ 104.854249] [usbcore:blocking_notifier_call_chain+0x17/0x20] blocking_notifier_call_chain+0x17/0x20
May 12 22:20:14 sauron kernel: [ 104.854260] [sys_init_module+0x126/0x19c0] sys_init_module+0x126/0x19c0
May 12 22:20:14 sauron kernel: [ 104.854370] [<c027ffe0>] device_remove_file+0x0/0x40
May 12 22:20:14 sauron kernel: [ 104.854410] [sysenter_past_esp+0x6b/0xa9] sysenter_past_esp+0x6b/0xa9
May 12 22:20:14 sauron kernel: [ 104.854457] =======================
May 12 22:20:14 sauron kernel: [ 104.854459] Code: 24 08 e8 39 64 bf c6 8b 93 0c 04 54 f9 85 d2 0f 88 e9 04 00 00 8b 86 9c 01 00 00 8b 44 90 50 8b 00 8b 40 0c 83 c0 28 89 44 24 20 <0f> b6 40 03 83 e0 03 83 e8 01 0f 85 5b 06 00 00 8b 44 24 20 80
May 12 22:20:15 sauron kernel: [ 104.854493] EIP: [<f9536d8b>] usbvision_probe+0xeb/0x810 [usbvision] SS:ESP 0068:f55cbd98
May 12 22:20:15 sauron kernel: [ 104.854508] ---[ end trace baa19a39af9f081c ]---
May 12 22:20:15 sauron NetworkManager: <debug> [1210587615.001165] nm_hal_device_added(): New device added (hal udi is '/org/freedesktop/Hal/devices/usb_device_573_2101_noserial_if0').
May 12 22:20:18 sauron NetworkManager: <debug> [1210587618.233441] nm_hal_device_added(): New device added (hal udi is '/org/freedesktop/Hal/devices/usb_device_573_2101_noserial_video4linux').
Please let me know if there is any more information you require.
Please give me your kernel version.
Can you try to add in linux/media/video/usbvision/usbvision-video.c in function usbvision_probe (around line 1910) after
PDEBUG(DBG_PROBE, "VID=%#04x, PID=%#04x, ifnum=%u",
dev->descriptor.idVendor,
dev->descriptor.idProduct, ifnum);
add the following:
if(ifnum==1)
return -ENODEV;
Thierry
Thanks Thierre.
I have applied the patch as described, installed the modules and rebooted. The log is looking a lot better now and xawtv finds the capture device . I have attached a second video capture device at the same time and it attached to a new video device and worked fine too. I've hot-plugged both devices several times and everything seems stable.
andrew@sauron:~$ uname -r
2.6.24-17-generic
andrew@sauron:~$tail -f /var/log/syslog
...[snip]...
May 14 20:43:01 sauron kernel: [ 126.272496] usb 1-10: new full speed USB device using ohci_hcd and address 4
May 14 20:43:01 sauron kernel: [ 126.401202] usb 1-10: configuration #2 chosen from 1 choice
May 14 20:43:01 sauron NetworkManager: <debug> [1210754581.310112] nm_hal_device_added(): New device added (hal udi is '/org/freedesktop/Hal/devices/usb_device_573_2101_noserial').
May 14 20:43:01 sauron kernel: [ 126.475503] Linux video capture interface: v2.00
May 14 20:43:01 sauron kernel: [ 126.486157] usbvision_probe: Zoran Co. PMD (Nogatech) AV-grabber Manhattan found
May 14 20:43:01 sauron kernel: [ 126.486502] USBVision[0]: registered USBVision Video device /dev/video0 [v4l2]
May 14 20:43:01 sauron kernel: [ 126.486754] USBVision[0]: registered USBVision VBI device /dev/vbi0 [v4l2] (Not Working Yet!)
May 14 20:43:01 sauron kernel: [ 126.487790] usbcore: registered new interface driver usbvision
May 14 20:43:01 sauron kernel: [ 126.488006] USBVision USB Video Device Driver for Linux : 0.9.9
May 14 20:43:01 sauron NetworkManager: <debug> [1210754581.513028] nm_hal_device_added(): New device added (hal udi is '/org/freedesktop/Hal/devices/usb_device_573_2101_noserial_if1').
May 14 20:43:02 sauron kernel: [ 127.030147] saa7115' 5-0025: saa7113 found (1f7113d0e100000) @ 0x4a (usbvision #0)
May 14 20:43:04 sauron NetworkManager: <debug> [1210754584.741911] nm_hal_device_added(): New device added (hal udi is '/org/freedesktop/Hal/devices/usb_device_573_2101_noserial_video4linux').
May 14 20:43:04 sauron NetworkManager: <debug> [1210754584.789403] nm_hal_device_added(): New device added (hal udi is '/org/freedesktop/Hal/devices/usb_device_573_2101_noserial_if0').
May 14 20:43:37 sauron kernel: [ 146.237132] saa7115' 5-0025: saa7113 found (1f7113d0e100000) @ 0x4a (usbvision #0)
May 14 20:50:10 sauron kernel: [ 381.818177] usb 1-9: new full speed USB device using ohci_hcd and address 5
May 14 20:50:10 sauron kernel: [ 381.953979] usb 1-9: configuration #2 chosen from 1 choice
May 14 20:50:10 sauron NetworkManager: <debug> [1210755010.427883] nm_hal_device_added(): New device added (hal udi is '/org/freedesktop/Hal/devices/usb_device_573_2101_noserial_0').
May 14 20:50:10 sauron kernel: [ 381.960889] usbvision_probe: Zoran Co. PMD (Nogatech) AV-grabber Manhattan found
May 14 20:50:10 sauron kernel: [ 381.960918] USBVision[1]: registered USBVision Video device /dev/video1 [v4l2]
May 14 20:50:10 sauron kernel: [ 381.960942] USBVision[1]: registered USBVision VBI device /dev/vbi1 [v4l2] (Not Working Yet!)
May 14 20:50:11 sauron kernel: [ 382.525951] saa7115' 6-0025: saa7113 found (1f7113d0e100000) @ 0x4a (usbvision #1)
May 14 20:50:13 sauron kernel: [ 383.589225] /store/home/andrew/src/v4l-dvb/v4l/usbvision-core.c: usbvision_init_isoc: usb_submit_urb(0) failed: error -28
May 14 20:50:13 sauron NetworkManager: <debug> [1210755013.874001] nm_hal_device_added(): New device added (hal udi is '/org/freedesktop/Hal/devices/usb_device_573_2101_noserial_0_video4linux').
May 14 20:50:13 sauron NetworkManager: <debug> [1210755013.923681] nm_hal_device_added(): New device added (hal udi is '/org/freedesktop/Hal/devices/usb_device_573_2101_noserial_0_if0').
May 14 20:50:13 sauron NetworkManager: <debug> [1210755013.968141] nm_hal_device_added(): New device added (hal udi is '/org/freedesktop/Hal/devices/usb_device_573_2101_noserial_0_if1').
Cheers,
--
Andrew
Looks like the patch has not made it to v4l/dvb repo. I'll submit the patch so it can be included into the kernel version.
Do we have any other confirm reports that the little patch fixes the oops?
Dwaine