Mauro Carvalho Chehab wrote: > On Fri, 06 Jun 2008 22:59:10 +0200 > hermann pitton <hermann-pitton@xxxxxxxx> wrote: > > >> Hi, >> >> Am Samstag, den 07.06.2008, 03:00 +0800 schrieb timf: >> >>> Hi, >>> I just downloaded the latest hg from linuxtv.org/hg/v4l-dvb, installed >>> it, rebooted. >>> This is the dmesg: >>> >>> [ 37.241810] Linux video capture interface: v2.00 >>> [ 37.425032] saa7130/34: v4l2 driver version 0.2.14 loaded >>> [ 37.425559] saa7133[0]: found at 0000:04:08.0, rev: 209, irq: 16, >>> latency: 32, mmio: 0xfdbff000 >>> [ 37.425566] saa7133[0]: subsystem: 17de:7250, board: KWorld DVB-T 210 >>> [card=114,autodetected] >>> [ 37.425574] saa7133[0]: board init: gpio is 100 >>> [ 37.576692] saa7133[0]: i2c eeprom 00: de 17 50 72 ff ff ff ff ff ff >>> ff ff ff ff ff ff >>> [ 37.576701] saa7133[0]: i2c eeprom 10: ff ff ff ff ff ff ff ff ff ff >>> ff ff ff ff ff ff >>> [ 37.576707] saa7133[0]: i2c eeprom 20: ff ff ff ff ff ff ff ff ff ff >>> ff ff ff ff ff ff >>> [ 37.576713] saa7133[0]: i2c eeprom 30: ff ff ff ff ff ff ff ff ff ff >>> ff ff ff ff ff ff >>> [ 37.576718] saa7133[0]: i2c eeprom 40: ff ff ff ff ff ff ff ff ff ff >>> ff ff ff ff ff ff >>> [ 37.576724] saa7133[0]: i2c eeprom 50: ff ff ff ff ff ff ff ff ff ff >>> ff ff ff ff ff ff >>> [ 37.576729] saa7133[0]: i2c eeprom 60: ff ff ff ff ff ff ff ff ff ff >>> ff ff ff ff ff ff >>> [ 37.576735] saa7133[0]: i2c eeprom 70: ff ff ff ff ff ff ff ff ff ff >>> ff ff ff ff ff ff >>> [ 37.576740] saa7133[0]: i2c eeprom 80: ff ff ff ff ff ff ff ff ff ff >>> ff ff ff ff ff ff >>> [ 37.576745] saa7133[0]: i2c eeprom 90: ff ff ff ff ff ff ff ff ff ff >>> ff ff ff ff ff ff >>> [ 37.576751] saa7133[0]: i2c eeprom a0: ff ff ff ff ff ff ff ff ff ff >>> ff ff ff ff ff ff >>> [ 37.576756] saa7133[0]: i2c eeprom b0: ff ff ff ff ff ff ff ff ff ff >>> ff ff ff ff ff ff >>> [ 37.576762] saa7133[0]: i2c eeprom c0: ff ff ff ff ff ff ff ff ff ff >>> ff ff ff ff ff ff >>> [ 37.576767] saa7133[0]: i2c eeprom d0: ff ff ff ff ff ff ff ff ff ff >>> ff ff ff ff ff ff >>> [ 37.576773] saa7133[0]: i2c eeprom e0: ff ff ff ff ff ff ff ff ff ff >>> ff ff ff ff ff ff >>> [ 37.576778] saa7133[0]: i2c eeprom f0: ff ff ff ff ff ff ff ff ff ff >>> ff ff ff ff ff ff >>> [ 37.644644] saa7133[0]: registered device video0 [v4l2] >>> [ 37.644664] saa7133[0]: registered device vbi0 >>> [ 37.644684] saa7133[0]: registered device radio0 >>> [ 37.877664] Unable to handle kernel NULL pointer dereference at >>> 00000000000000b0 RIP: >>> [ 37.877670] [<ffffffff88ad9909>] :dvb_core:dvb_frontend_detach+0x9/0x90 >>> [ 37.877687] PGD 6d09c067 PUD 6d3d2067 PMD 0 >>> [ 37.877690] Oops: 0000 [1] SMP >>> [ 37.877693] CPU 0 >>> [ 37.877695] Modules linked in: tda1004x saa7134_dvb videobuf_dvb >>> dvb_core snd_seq_oss snd_seq_midi tuner snd_rawmidi snd_seq_midi_event >>> saa7134 compat_ioctl32 snd_seq snd_timer snd_seq_device videodev >>> v4l1_compat v4l2_common videobuf_dma_sg videobuf_core ir_kbd_i2c >>> ir_common snd tveeprom nvidia(P) button k8temp parport_pc parport >>> soundcore i2c_nforce2 i2c_core evdev shpchp pci_hotplug pcspkr ext3 jbd >>> mbcache sg sd_mod ehci_hcd ohci_hcd pata_amd forcedeth usbcore sata_nv >>> pata_acpi ata_generic libata scsi_mod thermal processor fan fbcon >>> tileblit font bitblit softcursor fuse >>> [ 37.877729] Pid: 3220, comm: modprobe Tainted: P >>> 2.6.24-18-generic #1 >>> [ 37.877732] RIP: 0010:[<ffffffff88ad9909>] [<ffffffff88ad9909>] >>> :dvb_core:dvb_frontend_detach+0x9/0x90 >>> [ 37.877741] RSP: 0018:ffff81006d3fbd68 EFLAGS: 00010292 >>> [ 37.877743] RAX: 00000000ffffffea RBX: 00000000ffffffff RCX: >>> ffffffff88af99b0 >>> [ 37.877745] RDX: 00000000ffffffea RSI: ffffffff88af2135 RDI: >>> 0000000000000000 >>> [ 37.877747] RBP: 0000000000000000 R08: 0000000000000000 R09: >>> ffff81006fe35180 >>> [ 37.877749] R10: 0000000000000000 R11: 0000000000000001 R12: >>> ffffffff88af4b80 >>> [ 37.877751] R13: ffff81006b9c8170 R14: ffffffff88af4b80 R15: >>> ffffc200008bccc8 >>> [ 37.877754] FS: 00007f8528bcf6e0(0000) GS:ffffffff805b9000(0000) >>> knlGS:0000000000000000 >>> [ 37.877756] CS: 0010 DS: 0000 ES: 0000 CR0: 000000008005003b >>> [ 37.877758] CR2: 00000000000000b0 CR3: 000000006ce31000 CR4: >>> 00000000000006e0 >>> [ 37.877760] DR0: 0000000000000000 DR1: 0000000000000000 DR2: >>> 0000000000000000 >>> [ 37.877762] DR3: 0000000000000000 DR6: 00000000ffff0ff0 DR7: >>> 0000000000000400 >>> [ 37.877765] Process modprobe (pid: 3220, threadinfo ffff81006d3fa000, >>> task ffff81006d82f7a0) >>> [ 37.877767] Stack: ffff81006b9c8000 00000000ffffffff >>> ffff81006b9c8000 ffffffff88aef7a8 >>> [ 37.877771] 7fffffff000000d8 ffff81006b9c8000 0000000000000001 >>> ffff81006d82f7a0 >>> [ 37.877775] ffffffff80233e20 0000000000100100 0000000000200200 >>> 0000000000000001 >>> [ 37.877778] Call Trace: >>> [ 37.877786] [<ffffffff88aef7a8>] :saa7134_dvb:dvb_init+0x178/0x15a0 >>> [ 37.877793] [<ffffffff80233e20>] default_wake_function+0x0/0x10 >>> [ 37.877813] [<ffffffff88a84f8e>] :saa7134:mpeg_ops_attach+0x4e/0x60 >>> [ 37.877823] [<ffffffff88a857eb>] :saa7134:saa7134_ts_register+0x2b/0x80 >>> [ 37.877829] [<ffffffff80263c5e>] sys_init_module+0x18e/0x1a90 >>> [ 37.877842] [<ffffffff80247d30>] msleep+0x0/0x30 >>> [ 37.877849] [<ffffffff8020c37e>] system_call+0x7e/0x83 >>> [ 37.877856] >>> [ 37.877857] >>> [ 37.877857] Code: 48 8b 87 b0 00 00 00 48 85 c0 74 0e ff d0 48 8b bd >>> b0 00 00 >>> [ 37.877865] RIP [<ffffffff88ad9909>] >>> :dvb_core:dvb_frontend_detach+0x9/0x90 >>> [ 37.877873] RSP <ffff81006d3fbd68> >>> [ 37.877874] CR2: 00000000000000b0 >>> [ 37.877877] ---[ end trace bbead029e56cc160 ]--- >>> >>> Any suggestions? >>> Regards, >>> Timf >>> >>> >> Tim, on a first shot it looks like you are on an older kernel. >> >> There are issues with the backward compat of the build scripts. >> >> With "make" (all) not all dependencies are resolved, especially the >> tuner modules are not built. Should compile first of all and you seem >> not to have the tda827x. >> >> > > Ok, but you shouldn't be suffering an OOPS. Instead, the driver should just not > register dvb. > > Tim, > > Before upgrading the kernel or trying to fix tda827x, could you please try this > small patch? This should fix the OOPS. > > diff -r 843710c95bf7 linux/drivers/media/video/saa7134/saa7134-dvb.c > --- a/linux/drivers/media/video/saa7134/saa7134-dvb.c Fri Jun 06 17:16:38 2008 -0300 > +++ b/linux/drivers/media/video/saa7134/saa7134-dvb.c Fri Jun 06 18:35:32 2008 -0300 > @@ -1345,7 +1345,8 @@ > return ret; > > dettach_frontend: > - dvb_frontend_detach(dev->dvb.frontend); > + if (dev->dvb.frontend) > + dvb_frontend_detach(dev->dvb.frontend); > dev->dvb.frontend = NULL; > > return -1; > > > > Cheers, > Mauro > > Hi Mauro, dmesg after patch: [ 37.862340] Linux video capture interface: v2.00 [ 37.938301] saa7130/34: v4l2 driver version 0.2.14 loaded [ 37.938827] ACPI: PCI Interrupt Link [APC1] enabled at IRQ 16 [ 37.938831] ACPI: PCI Interrupt 0000:04:08.0[A] -> Link [APC1] -> GSI 16 (level, low) -> IRQ 16 [ 37.938839] saa7133[0]: found at 0000:04:08.0, rev: 209, irq: 16, latency: 32, mmio: 0xfdbff000 [ 37.938845] saa7133[0]: subsystem: 17de:7250, board: KWorld DVB-T 210 [card=114,autodetected] [ 37.938854] saa7133[0]: board init: gpio is 100 [ 38.089900] saa7133[0]: i2c eeprom 00: de 17 50 72 ff ff ff ff ff ff ff ff ff ff ff ff [ 38.089908] saa7133[0]: i2c eeprom 10: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 38.089914] saa7133[0]: i2c eeprom 20: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 38.089920] saa7133[0]: i2c eeprom 30: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 38.089925] saa7133[0]: i2c eeprom 40: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 38.089931] saa7133[0]: i2c eeprom 50: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 38.089936] saa7133[0]: i2c eeprom 60: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 38.089942] saa7133[0]: i2c eeprom 70: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 38.089947] saa7133[0]: i2c eeprom 80: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 38.089952] saa7133[0]: i2c eeprom 90: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 38.089958] saa7133[0]: i2c eeprom a0: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 38.089964] saa7133[0]: i2c eeprom b0: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 38.089969] saa7133[0]: i2c eeprom c0: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 38.089975] saa7133[0]: i2c eeprom d0: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 38.089980] saa7133[0]: i2c eeprom e0: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 38.089986] saa7133[0]: i2c eeprom f0: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 38.247756] tuner' 2-004b: chip found @ 0x96 (saa7133[0]) [ 38.337522] tda829x 2-004b: setting tuner address to 61 [ 38.417350] tda829x 2-004b: type set to tda8290+75a [ 42.242520] saa7133[0]: registered device video0 [v4l2] [ 42.242541] saa7133[0]: registered device vbi0 [ 42.242560] saa7133[0]: registered device radio0 [ 42.395073] DVB: registering new adapter (saa7133[0]) [ 42.395079] DVB: registering frontend 0 (Philips TDA10046H DVB-T)... [ 42.465907] tda1004x: setting up plls for 48MHz sampling clock [ 44.705463] tda1004x: timeout waiting for DSP ready [ 44.745400] tda1004x: found firmware revision 0 -- invalid [ 44.745405] tda1004x: trying to boot from eeprom [ 47.071604] tda1004x: timeout waiting for DSP ready [ 47.111538] tda1004x: found firmware revision 0 -- invalid [ 47.111543] tda1004x: waiting for firmware upload... [ 59.606667] tda1004x: found firmware revision 29 -- ok Much cleaner! Information, if useful: After sending you message, I put machine through several power cycles, just to try something: Sometimes just: (from syslog) Jun 7 03:09:31 ubuntu kernel: [ 39.243359] saa7133[0]/dvb: frontend initialization failed or: (from dmesg) [ 37.139664] tuner' 2-004b: chip found @ 0x96 (saa7133[0]) [ 37.231456] tda829x 2-004b: setting tuner address to 61 [ 37.347273] tda829x 2-004b: type set to tda8290+75a [ 41.172659] saa7133[0]: registered device video0 [v4l2] [ 41.172697] saa7133[0]: registered device vbi0 [ 41.172728] saa7133[0]: registered device radio0 [ 41.356937] DVB: registering new adapter (saa7133[0]) [ 41.356942] DVB: registering frontend 0 (Philips TDA10046H DVB-T)... [ 41.428786] tda1004x: setting up plls for 48MHz sampling clock [ 43.665239] tda1004x: timeout waiting for DSP ready [ 43.705198] tda1004x: found firmware revision 0 -- invalid [ 43.705203] tda1004x: trying to boot from eeprom [ 46.055658] tda1004x: timeout waiting for DSP ready [ 46.095598] tda1004x: found firmware revision 0 -- invalid [ 46.095601] tda1004x: waiting for firmware upload... [ 46.145936] tda1004x: Error during firmware upload [ 46.147947] tda1004x: found firmware revision ff -- invalid [ 46.147949] tda1004x: firmware upload failed [ 46.149054] saa7133[0]/dvb: could not access tda8290 I2C gate [ 46.149192] tda827x_probe_version: could not read from tuner at addr: 0xc2 All with same firmware (revision 29) So some error in init of frontend is occurring. Anyway, it's going now! Regards, Timf _______________________________________________ linux-dvb mailing list linux-dvb@xxxxxxxxxxx http://www.linuxtv.org/cgi-bin/mailman/listinfo/linux-dvb