[mythtv-users] Xen and Mythbackend help

Gerald Brandt gbr at majentis.com
Wed Nov 19 00:21:46 UTC 2008


Hi, 

I have most everything working under Xen. I ended up installing mythbuntu-control-centre, which brought in the stuff I needed. I cat /dev/video0 > mpeg.mpg, and I get a nice clean video (with audio). 

I am having problems with the IR blaster that is part of the PVR-150. I just can't seem to talk to it. I remember having difficulties when I did this (without Xen) under Gentoo, but I've duplicated what I did there. I'm getting: 

root at mythbackend1:~# irsend send_once dish 1 
irsend: command failed: send_once dish 1 
irsend: transmission failed 
root at mythbackend1:~# 

And syslog has this: 

[ 1550.389749] lirc_dev (lirc_pvr150[0]): ioctl called (0x80046900) 
[ 1550.389752] lirc_dev (lirc_pvr150[0]): ioctl called (0x40046911) 
[ 1550.389754] lirc_dev (lirc_pvr150[0]): ioctl called (0x40046912) 
[ 1550.389756] lirc_dev (lirc_pvr150[0]): ioctl called (0x8004690f) 
[ 1550.389760] lirc_dev (lirc_pvr150[0]): poll called 
[ 1550.389761] lirc_pvr150: poll called 
[ 1550.389763] lirc_pvr150: poll result = 0 
[ 1550.396106] lirc_dev (lirc_pvr150[0]): poll called 
[ 1550.396108] lirc_pvr150: poll called 
[ 1550.396109] lirc_pvr150: poll result = 0 
[ 1550.396137] lirc_dev (lirc_pvr150[0]): write called 
[ 1550.396141] lirc_pvr150: failed to get data for code 0, key 525 -- check lircd.conf entries 
[ 1550.396367] lirc_dev (lirc_pvr150[0]): poll called 
[ 1550.396368] lirc_pvr150: poll called 
[ 1550.396369] lirc_pvr150: poll result = 0 
[ 1550.399030] lirc_dev (lirc_pvr150[0]): poll called 
[ 1550.399031] lirc_pvr150: poll called 
[ 1550.399032] lirc_pvr150: poll result = 0 
[ 1550.400855] lirc_dev (lirc_pvr150[0]): poll called 
[ 1550.400857] lirc_pvr150: poll called 
[ 1550.400858] lirc_pvr150: poll result = 0 
[ 1550.400918] lirc_dev (lirc_pvr150[0]): close called 

Has anyone seen this before? 

Thanks, 
Gerald 

----- "Gerald Brandt" <gbr at majentis.com> wrote: 
> 
> Hi, 
> 
> I'm having some issues passing through my pvr-150 card. The DomU sees it, but doesn't want to load the drivers. The Dom0 also sees it, and does load drivers. I'll see if I can blacklist the drivers in Dom0. I'm not 100% sure how to do that, but I'll figure it out. 
> 
> [ 9.442408] Linux video capture interface: v2.00 
[ 9.494556] ivtv: Start initialization, version 1.1.0 
[ 9.494607] ivtv0: Initializing card #0 
[ 9.494610] ivtv0: Autodetected Hauppauge card (cx23416 based) 
[ 9.496181] PCI: Enabling device 0000:00:00.0 (0000 -> 0002) 
[ 9.496352] ivtv0: Unreasonably low latency timer, setting to 64 (was 32) 
[ 9.557655] tveeprom 0-0050: Hauppauge model 26152, rev C599, serial# 8958490 
[ 9.557664] tveeprom 0-0050: tuner model is TCL 2002N 5H (idx 99, type 50) 
[ 9.557666] tveeprom 0-0050: TV standards NTSC(M) (eeprom 0x08) 
[ 9.557668] tveeprom 0-0050: audio processor is CX25843 (idx 37) 
[ 9.557670] tveeprom 0-0050: decoder processor is CX25843 (idx 30) 
[ 9.557672] tveeprom 0-0050: has no radio, has IR receiver, has IR transmitter 
[ 9.557677] ivtv0: Autodetected Hauppauge WinTV PVR-150 
[ 9.557679] ivtv0: Reopen i2c bus for IR-blaster support 
[ 9.663321] tuner 0-0061: chip found @ 0xc2 (ivtv i2c driver #0) 
[ 9.843649] cx25840 0-0044: cx25843-23 found @ 0x88 (ivtv i2c driver #0) 
[ 9.850778] wm8775 0-001b: chip found @ 0x36 (ivtv i2c driver #0) 
[ 9.859708] tuner-simple 0-0061: type set to 50 (TCL 2002N) 
[ 9.859713] tuner 0-0061: type set to TCL 2002N 
[ 9.859720] Fatal DMA error! Please use 'swiotlb=force' 
[ 9.859728] ------------[ cut here ]------------ 
[ 9.859730] kernel BUG at /build/buildd/linux-2.6.24/debian/build/custom-source-xen/arch/x86/kernel/pci-dma_32-xen.c:372! 
[ 9.859733] invalid opcode: 0000 [1] SMP 
[ 9.859736] CPU 0 
[ 9.859737] Modules linked in: wm8775 cx25840 tuner tea5767 tda8290 tuner_simple mt20xx tea5761 ivtv i2c_algo_bit cx2341x tveeprom i2c_core videodev v4l2_common v4l1_compat evdev ext3 jbd mbcache fuse 
[ 9.859754] Pid: 2874, comm: modprobe Not tainted 2.6.24-21-xen #1 
[ 9.859756] RIP: e030:[<ffffffff8021439e>] [<ffffffff8021439e>] dma_map_single+0x18e/0x210 
[ 9.859763] RSP: e02b:ffff88000f6b1bb8 EFLAGS: 00010292 
[ 9.859765] RAX: 000000000000003e RBX: ffff880001f3ab00 RCX: ffffffffff5f7000 
[ 9.859767] RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000000 
[ 9.859769] RBP: ffff88000f7a0000 R08: ffff880010622a00 R09: ffff880001b3d000 
[ 9.859771] R10: 000000000000003c R11: 0000000000000000 R12: 0000000000008100 
[ 9.859773] R13: ffff88000e60b870 R14: ffff88000f080228 R15: ffff88000f080000 
[ 9.859777] FS: 00007fe5787cb6e0(0000) GS:ffffffff805c7000(0000) knlGS:0000000000000000 
[ 9.859779] CS: e033 DS: 0000 ES: 0000 
[ 9.859781] DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 
[ 9.859783] DR3: 0000000000000000 DR6: 00000000ffff0ff0 DR7: 0000000000000400 
[ 9.859786] Process modprobe (pid: 2874, threadinfo ffff88000f6b0000, task ffff880010460800) 
[ 9.859788] Stack: ffff880010510800 ffff880010511bc0 ffff88000f0801a0 0000000000000000 
[ 9.859793] 0000000000000000 ffffffff88089a0a 00000000000080d0 0000000000000002 
[ 9.859797] ffff88000f080000 ffff88000f080000 0000000000000000 ffffffff880938e3 
[ 9.859800] Call Trace: 
[ 9.859809] [<ffffffff88089a0a>] :ivtv:ivtv_stream_alloc+0x18a/0x370 
[ 9.859816] [<ffffffff8808a6ad>] :ivtv:ivtv_streams_setup+0x23d/0x320 
[ 9.859822] [<ffffffff8807e734>] :ivtv:ivtv_probe+0xf34/0x14f0 
[ 9.859827] [<ffffffff8034aea6>] pci_device_probe+0x76/0xa0 
[ 9.859831] [<ffffffff803c8f0c>] driver_probe_device+0x9c/0x1b0 
[ 9.859833] [<ffffffff803c91d9>] __driver_attach+0xc9/0xd0 
[ 9.859836] [<ffffffff803c9110>] __driver_attach+0x0/0xd0 
[ 9.859840] [<ffffffff803c814d>] bus_for_each_dev+0x4d/0x80 
[ 9.859843] [<ffffffff803c855c>] bus_add_driver+0xac/0x220 
[ 9.859846] [<ffffffff8034b0d9>] __pci_register_driver+0x69/0xb0 
[ 9.859852] [<ffffffff8807cf0b>] :ivtv:module_start+0x5b/0xc0 
[ 9.859855] [<ffffffff8025a39e>] sys_init_module+0x18e/0x1a90 
[ 9.859858] [<ffffffff802a13a5>] cp_new_stat+0xe5/0x100 
[ 9.859863] [<ffffffff8023c3a0>] __request_region+0x0/0xc0 
[ 9.859866] [<ffffffff8020c698>] system_call+0x68/0x6d 
[ 9.859868] [<ffffffff8020c630>] system_call+0x0/0x6d 
[ 9.859870] 
[ 9.859871] 
[ 9.859872] Code: 0f 0b eb fe 48 ba 00 00 00 00 ff ff ff ff e9 74 ff ff ff 48 
[ 9.859889] RIP [<ffffffff8021439e>] dma_map_single+0x18e/0x210 
[ 9.859893] RSP <ffff88000f6b1bb8> 
[ 9.859896] ---[ end trace 7eefc72efc05df3b ]--- 

> gerald 
> 
> ----- "Riku Pelander" <riku.pelander at gmail.com> wrote: 
> > On Wed, Nov 12, 2008 at 6:30 AM, Gerald Brandt <gbr at majentis.com> wrote: 
> > > Hi, 
> > > 
> > > I've been trying to set up a Xen DomU for my mythbackend, but I'm having 
> > > issues with pci passthrough. I know some people here have done it. 
> > > 
> > > I'm using Ubuntu 8.04 64 bit as Dom0, and Mythbuntu 8.10 as the Domu. 
> > > 
> > > What configurations are you using as the OS for Dom0, and are you passing 
> > > through (using pciback.hide) a PVR150 card? 
> > > 
> > > Thanks, 
> > > Gerald 
> > > 
> > > 
> > > _______________________________________________ 
> > > mythtv-users mailing list 
> > > mythtv-users at mythtv.org 
> > > http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-users 
> > > 
> > > 
> > 
> > Hi, 
> > 
> > I have run mythbackend in virtualized Xen machine for several months 
> > now. You can check my guide in http://netti.nic.fi/~icewood/mythtv/. 
> > Look especially the section under backend. 
> > _______________________________________________ 
> > mythtv-users mailing list 
> > mythtv-users at mythtv.org 
> > http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-users 
> > 
> _______________________________________________ mythtv-users mailing list mythtv-users at mythtv.org http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-users 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mythtv.org/pipermail/mythtv-users/attachments/20081118/60369169/attachment.htm 


More information about the mythtv-users mailing list