[mythtv-users] Avermedia 761 howto? im almost there... but not!

Eyal Lebedinsky eyal at eyal.emu.id.au
Mon Nov 15 13:37:31 UTC 2004


Thomas Barker wrote:
> ok its an avermedia 761c i load dvb_core, bttv, bt878,
> dvb)bt8xx,sp887x (in that order)
> 
> under 2.6.8.1 it all loads fine and the firmware is loaded and
> initialised, however the signal strength i get back is nill, and it
> can only be used once before sp887x needs removing and adding again! I
> assumed this was a bug issue so i used a newer kernel.
> 
> Main Problem:
> i have 2.6.10-rc1 and on loading sp887x i get
> 
> -------------------------------------------------------------------------------------
> sp887x: waiting for firmware upload...
> sp887x: no firmware upload (timeout or file not found?)
> xxx detach
> -------------------------------------------------------------------------------------
> 
> firmware is in /usr/lib/hotplug/firmware and is named as
> dvb-fe-sp887x.fw  & sc_main.mc, i checked the source and the first is
> required.
> 
> Any ideas why it will not load it? I really wanna get this card
> working, but am having no luck!

Works for me, 2.6.10-rc1.

My etc/rc.boot/local includes:

# video stuff
modprobe dvb_bt8xx
modprobe v4l1-compat
# Avermedia DVB-T (761)
modprobe sp887x
# Avermedia DVB-T 771
modprobe mt352

And /var/log/messages shows:

Nov  9 21:01:54 eyal kernel: DVB: registering new adapter (bttv1).
Nov  9 21:01:54 eyal kernel: DVB: registering new adapter (bttv2).
Nov  9 21:01:54 eyal kernel: xxx attach
Nov  9 21:01:54 eyal kernel: sp887x: waiting for firmware upload...
Nov  9 21:01:54 eyal kernel: sp887x_initial_setup: firmware upload... done.
Nov  9 21:01:54 eyal kernel: DVB: registering frontend 1 (Microtune MT7202DTF)..
.
Nov  9 21:01:54 eyal kernel: mt352_read_register: readreg error (ret == -121)
Nov  9 21:01:54 eyal kernel: dvbfe_mt352: Setup for AverMedia DVB-T 771
Nov  9 21:01:54 eyal kernel: xxx attach
Nov  9 21:01:54 eyal kernel: DVB: registering frontend 0 (AverMedia DVB-T 771)..
.
Nov  9 21:01:54 eyal kernel: mt352_read_register: readreg error (ret == -121)
Nov  9 21:01:54 eyal kernel: mt352_read_register: readreg error (ret == -38)
Nov  9 21:01:54 eyal kernel: mt352_read_register: readreg error (ret == -38)


Now that I think of it, I did apply some extra patches that were on the list
late Oct.
	2.6.10-rc1-01-dvb-av7110-debug.patch
	2.6.10-rc1-02-dvb-misc.patch
	2.6.10-rc1-03-dvb-add-cinergy-t2.patch
	2.6.10-rc1-04-dvb-dibusb-update.patch
	2.6.10-rc1-05-dvb-frontend-update.patch

And a tiny one later:

diff -puN drivers/media/video/video-buf.c~bttv-fix3 drivers/media/video/video-buf.c
--- linux/drivers/media/video/video-buf.c~bttv-fix3     2004-11-07 00:10:04.632421064 +0100
+++ linux-petero/drivers/media/video/video-buf.c        2004-11-07 00:10:04.635420608 +0100
@@ -1063,7 +1063,7 @@ videobuf_vm_close(struct vm_area_struct
                                 continue;
                         map->q->bufs[i]->map   = NULL;
                         map->q->bufs[i]->baddr = 0;
-                       map->q->ops->buf_release(vma->vm_file,map->q->bufs[i]);
+                       map->q->ops->buf_release(vma->vm_file->private_data,map->q->bufs[i]);
                 }
                 kfree(map);
         }

I am now building vanilla -rc2 which has many v4l fixes.

Good luck.

-- 
Eyal Lebedinsky (eyal at eyal.emu.id.au) <http://samba.org/eyal/>


More information about the mythtv-users mailing list