Subject: Re: MiroTV Card - bktr0
To: Andrew Gillham <gillhaa@ghost.whirlpool.com>
From: Berndt Josef Wulf <wulf@dingo.ping.net.au>
List: port-i386
Date: 10/17/1999 10:11:00
Andrew Gillham wrote
>
> Bernd Ernesti writes:
> > On Sat Oct 16 19:29:16 1999, Berndt Josef Wulf wrote:
> > >
> > > G'day all,
> > >
> > > I've this MiroPCTV card stuck in my machine and thought that it
> > > was time to become adventures and re-activate this gadget.
> > [..]
> > > hotdog# fxtv
> > > mmap of driver buffer failed: Invalid argument
> >
> > Your kernel driver is too old. Get a newer one from:
> >
> > ftp://telepresence.dmem.strath.ac.uk/pub/bt848/driver/1.74/
> >
> > And no, before you ask. This version won't make it into the
> > official netbsd tree. It is not bus_space save so it won't
> > run on the alpha or on non i386 pci systems.
> > We first need to fix that, but we should work on the version v2.x
> > which needs more work to get it run on NetBSD.
>
> This driver doesn't include some required files like these:
> dev/pci/meteorvar.h
> dev/pci/bt848var.h
> dev/pci/bt848reg.h
FYI:
I didn't have them either and use ioctl_bt848.h instead. Not that this
may be correct and with the fear to be shotdown by someone on the list
here is what I do:
brooktree848.c:630
#include <machine/bus.h>
#ifdef __NetBSD__
#include <dev/pci/meteorvar.h>
#include <dev/pci/bt848var.h> /* extensions to meteorvar.h */
#include <dev/pci/bt848reg.h>
#else
#include <machine/ioctl_meteor.h>
#include <machine/ioctl_bt848.h> /* extensions to
ioctl_meteor.h */
#include <dev/pci/brktree_reg.h>
#endif
Just rename make the #if statement fail by renaming __NetBSD__ to
something else, e.g. 0, and you should be able to continue the
compile. I can sent you ioctl_meteor.h if this is missing in your
collection too. I've copied ioctl_meteor.h and ioctl_bt848.h into
/sys/arch/i386/include and /usr/include/machine. Later on you will
need the header files in /usr/include/machine for the build of fxtv or
any other application wanting to talk to your card.
I've just manged to connect the antenna into the card....
Now I can watch my favourite programs whilst hacking away... ;)
Hope this helps and let me know if you get stuck...
cheerio Berndt
--
Name : Berndt Josef Wulf | +++ With BSD on Packet Radio +++
E-Mail : wulf@ping.net.au | tfkiss, tnt, dpbox, wampes
ICQ : 18196098 | VK5ABN, Nairne, South Australia
URL : http://www.ping.net.au/~wulf | MBOX : vk5abn@vk5abn.#lmr.#sa.au.oc
Sysinfo : DEC AXPpci33+, NetBSD-1.4 | BBS : vk5abn.#lmr.#sa.aus.oc