4
« am: April 07, 2011, 06:24:08 Nachmittag »
Der Treiber läuft soweit. Allerdings muss der mediasrv direkt aus dem Verzeichnis gestartet werden, sonst findet er seine Plugins nicht. Ich habe ein kleines RC Script geschrieben, welches den mediasrv direkt bei Systemstart lädt. Da ich keine Ahnung von sowas habe, ist da sicherlich noch Verbesserungspotential.
Ein offenes Problem ist allerdings noch die Erkennung des TV-Sticks unter MythTV. Die libmedia.so ist zwar dabei, aber ich weiß nicht wie ich sie verwenden soll. Ich vermute mal ich muss noch auf die liblma warten. Daher meine Frage: Reicht die libmedia bereits aus für MythTV? Bzw. wann erscheint die liblma?
[untix@proliant ~]$ sudo /usr/local/opt/bin/mediasrv -v
2011-04-07 16:02:44 [1248] Starting up Multimedia Framework (Apr 6 2011 11:33:57)
2011-04-07 16:02:44 [1248] API Version: 5.1
2011-04-07 16:02:44 [1248] Running on FreeBSD (8.2-RELEASE)
2011-04-07 16:02:44 [1249] Starting service processor (PID 1249)
2011-04-07 16:02:44 [1248] Detected: AuthenticAMD
2011-04-07 16:02:44 [1248] This CPU supports: MMX and SSE
2011-04-07 16:02:44 [1248] scanning devices
2011-04-07 16:02:44 [1248] scanning for plugins
2011-04-07 16:02:44 [1248] *WARNING* could not open driverpath
2011-04-07 16:02:44 [1248] scanning devices done
2011-04-07 16:02:44 [1248] attached devices:
2011-04-07 16:02:45 [1249] Autostarting scripts in /etc/sundtek/
2011-04-07 16:02:45 [1249] executed all available items
[untix@proliant /usr/local/opt/bin]$ sudo ./mediasrv -v
2011-04-07 16:06:52 [1254] Starting up Multimedia Framework (Apr 6 2011 11:33:57)
2011-04-07 16:06:52 [1254] API Version: 5.1
2011-04-07 16:06:52 [1255] Starting service processor (PID 1255)
2011-04-07 16:06:52 [1254] Running on FreeBSD (8.2-RELEASE)
2011-04-07 16:06:52 [1254] Detected: AuthenticAMD
2011-04-07 16:06:52 [1254] This CPU supports: MMX and SSE
2011-04-07 16:06:52 [1254] scanning devices
2011-04-07 16:06:52 [1254] scanning for plugins
2011-04-07 16:06:52 [1254] found lib: libdrv_vivi.so
2011-04-07 16:06:52 [1254] found lib: libdrv_net.so
2011-04-07 16:06:52 [1254] found lib: libdrv_em28xx.so
2011-04-07 16:06:52 [1254] scanning devices done
2011-04-07 16:06:52 [1254] attached devices:
2011-04-07 16:06:53 [1255] Autostarting scripts in /etc/sundtek/
2011-04-07 16:06:53 [1255] executed all available items
#!/bin/sh
# $FreeBSD: Sundtek MediaSrv
# PROVIDE: mediasrv
# REQUIRE: DAEMON
# BEFORE: LOGIN
# KEYWORD: shutdown
# mediasrv_enable (bool): Set to "NO" by default.
# Set it to "YES" to enable mediasrv.
# mediasrv_logfile (str): Custom logfile for mediasrv.
# (default /var/log/mediasrv.log)
# mediasrv_flags (str): Additional flags for mediasrv.
. /etc/rc.subr
name="mediasrv"
rcvar=`set_rcvar`
start_precmd="cd /usr/local/opt/bin"
command="/usr/local/opt/bin/${name}"
load_rc_config $name
: ${mediasrv_enable="NO"}
: ${mediasrv_logfile="/var/log/${name}.log"}
: ${mediasrv_flags=""}
command_args="-d -l ${mediasrv_logfile}"
run_rc_command "$1"