Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 31 May 2012 19:28:14 +0200 (CEST)
From:      Juergen Lock <nox@jelal.kn-bremen.de>
To:        freebsd-multimedia@herveybayaustralia.com.au
Cc:        freebsd-multimedia@freebsd.org
Subject:   rtl2832u w/ webcamd 3.2.0.2 (was: New driver opportunity - rtl2832u)
Message-ID:  <201205311728.q4VHSEdQ096183@triton8.kn-bremen.de>
In-Reply-To: <14772.1335354423@herveybayaustralia.com.au>

next in thread | previous in thread | raw e-mail | index | archive | help
In article <14772.1335354423@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:
>http://freebsd.1045724.n5.nabble.com/webcamd-Adding-Linux-devices-td5580136.html,
>[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.
>[...]

Hi!

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

	https://github.com/ambrosa/DVB-Realtek-RTL2832U-2.2.2-10tuner-mod_kernel-3.0.0

 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 3.2.0.2 port
from hps' repo, and here is how I got it to work:

------------snip-------
# Testing webcamd 3.2.0.2 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 3.2.0.2 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-3.2.0.2-rtl.patch

# 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-3.2.0.2/media_tree/drivers/media/dvb/dvb-usb && 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-3.2.0.2-rtl.patch && patch <webcamd-3.2.0.2-rtl.patch
# 0 means patch applied successfully:
echo $?

# probably better set DEBUG knob here:
make config

# build webcamd:
make

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

# 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-3.2.0.2/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-3.2.0.2/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
----------snip------

 Enjoy, :)
	Juergen



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201205311728.q4VHSEdQ096183>