MythTV and PVR500 (was: Possible FreeBSD port?)

Greg 'groggy' Lehey grog at FreeBSD.org
Thu Dec 21 17:10:03 PST 2006


On Wednesday, 20 December 2006 at 22:40:19 +0100, usleepless at gmail.com wrote:
> Greg, List,
>
> On 12/20/06, Greg 'groggy' Lehey <grog at freebsd.org> wrote:
>> On Wednesday, 20 December 2006 at  0:09:18 +0100, usleepless at gmail.com
>>>> Why didn't you make a port of it?
>>>
>>> i still might. but it is based off 18-fixes, ported to postgresql, and
>>> heavily modified to remove all busy-wait-loops.
>>
>> OK, this looks like a side branch.
>>
>>> i made a port of the pvr500 driver which i based of the pvr250 port
>>> in the process.
>>
>> I'm also in the process of committing the pvr250 port to the kernel
>> tree.  I'd be interested in seeing your driver.
>
> the driver is in multimedia/pvrxxx.

Ah, OK, I didn't realize that it was the one in the tree.

> currently i am running a newer version which differs in 2 points: it
> tries to support pvr250/350 as well ( untested) and it uses
> kernel-taskqueues and a fast interrupt.
>
> i have send in http://www.freebsd.org/cgi/query-pr.cgi?pr=kern/104882,
> which is the iicbb-kernel patch which pvr250 and pvrxxx needs. it
> would be of great help if this patch was included in the kernel for
> the adoption of both drivers. you are a committer if i am not
> mistaken. right?

OK, I'll take a look at it.

>> I've ported 0.20, of course.
>>
>>> ( i have no need to go to .19 or .20 )
>>
>> Because it's such a pain to upgrade? :-)  That's what I've heard from
>> many people.
>
> that's my impression too ( never did it ). most of these problems seem
> to arise from the db-schema though. which is easy to understand when
> one analyzes the mythtv-schema.

My (very limited) experience has been that the configuration is such a
pain that people wouldn't want to do it more than once.

>> One of the things I want for this port is for it to Just
>> Work.  And given the code base, that's a tall order.
>
> it is indeed.
>
> what i am curious about is: am i the only one who has a mythfrontend
> and backend running on freebsd? or are there other people who have
> done the same? if so, what versions and what did they do to make it
> work?

I have a DVB tuner, so I can't use the tuner part of MythTV on FreeBSD
(yet).  Hopefully that will change.

> regarding my ipc-patches: i am wondering if this 0.20-port will
> actually work on freebsd. let me exlain:
>
> ...
>
> i stumbled upon all the busy-wait-loops:
>
> "
>  while(!condition)
>        usleep(50);
> "
>
> this is probably the reason why i needed linux-threads. but there is a
> catch: linux-usleep guarantees a context-switch, while freebsd doesn't
> ( didn't ? ).

Interesting.  I'll keep an eye out for that.

Greg
--
See complete headers for address and phone numbers.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 187 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-multimedia/attachments/20061222/8fd57d57/attachment.pgp


More information about the freebsd-multimedia mailing list