rtl2832u w/ webcamd (was: New driver opportunity - rtl2832u)

Juergen Lock nox at jelal.kn-bremen.de
Thu May 31 17:29:54 UTC 2012

In article <14772.1335354423 at herveybayaustralia.com.au> you write:
>I happen to have a usb dvb card which uses a rtl2832u chipset (MyGica T803
>- manufacturer says so happily says that they support linux - yeah right!).
>The drivers are a bit all over the place, and apparently they wont add them
>to the v4l tree due to a lack of key criteria. I have a version of these
>that supposedly work for linux 2.6 and were adapted from the manufacturers
>drivers (no longer available), and I'd like to test them using webcamd and
>I'm not entirely sure how.
>I tried following this post:
>[1] but I wasn't entirely sure how that would work with this particular
>driver. Can anyone offer some pointers?
>The drivers I picked up here: http://jms.id.au/wiki/EzcapDvbAdapter. [2]
>I only have a short time to do this as I may have to take the device back
>if I can't get it to work, so I need to work quickly in the next few days.
>My intention is to get a working device that can be available outside of
>tree for those who might need it, and maybe someone might be able to use it
>to get a native driver working or improve it for webcamd use.


 I now have such a tuner too (LogiLink VG0002A) and finally tested it
with the more up to date driver from:


 I found out even that driver doesn't work with media_tree 3.5 which
the current webcamd port uses so I checked out the old port
from hps' repo, and here is how I got it to work:

# Testing webcamd with rtl2832u driver from:
# https://github.com/ambrosa/DVB-Realtek-RTL2832U-2.2.2-10tuner-mod_kernel-3.0.0
# (tested here with a LogiLink DVB-T USB Receiver VG0002A)

# checkout the old webcamd port:
svn --username anonsvn --password anonsvn \
	checkout -r2201 svn://svn.turbocat.net/i4b/trunk/ports
cd ports/multimedia/webcamd

# grab my webcamd patch:
fetch http://people.freebsd.org/~nox/tmp/webcamd-

# clone the driver repo:
git clone https://github.com/ambrosa/DVB-Realtek-RTL2832U-2.2.2-10tuner-mod_kernel-3.0.0.git

# prepare the webcamd tree:
make patch

# symlink the driver into the tree:
# ("ln: ./Makefile: File exists" is expected)
(cd work/webcamd- && ln -s ../../../../../../../DVB-Realtek-RTL2832U-2.2.2-10tuner-mod_kernel-3.0.0/RTL2832-2.2.2_kernel-3.0.0 . && ln -s RTL2832-2.2.2_kernel-3.0.0/* . )

# apply my patch:
patch -C <webcamd- && patch <webcamd-
# 0 means patch applied successfully:
echo $?

# probably better set DEBUG knob here:
make config

# build webcamd:

# plugin tuner, find usb address for -d X.Y below (ugenX.Y):

# show rtl2832u driver's `module parameters':
# (set with webcamd -m below, for example "-m rtl2832u.rtl2832u_rc_mode=2"
#  to test a nec remote - tho mine had a wrong keymap)
work/webcamd- -s |grep -C2 rtl2832u

# start webcamd:
# (should create /dev/dvb/adapterX nodes demux0, dvr0, and frontend0,
#  if it does you can test w_scan, mplayer, vdr, or whatever in
#  another shell.  I currently don't have good dvb-t reception so I don't
#  know if the driver maybe needs "-m dvb-usb-init.force_pid_filter_usage=1")
work/webcamd- -d X.Y

# to test the remote in another shell do like:
# (ir-keytable belongs to multimedia/v4l-utils)
ir-keytable -d /dev/input/event0 -t

 Enjoy, :)

More information about the freebsd-multimedia mailing list