千円台ワンセグチューナーのDS-DT305BKを刺してみたかったので
RTL2832UのドライバーはカーネルVer3.0.0用(他のVerでも一部使える)のがgithubに公開されていますが
(上記とも3.8.13ではコンパイル通らない)
実はカーネル3.6以降でRTL2832のドライバーがカーネル本体に入ってるそうです。
実際探してみるとmenuconfigの
Device Drivers -> Multimedia support->Media USB Adapters->Support for various USB DVB devices v2->Realtek RTL28xxU DVB USB supportにありました
ちなみにGeneral setup->Prompt for development and/or incomplete code/drivers(開発中/不完全なコード/ドライバーを表示)は有効にしないと上のRTL2832の項目は出て来ません(そこで一時間くらいハマりました)
Realtek RTL28xxU DVB USB supportを有効にして再構築して再起動したら無事認識しました
dmesg:
[28757.208113] hub 1-0:1.0: state 7 ports 8 chg 0000 evt 0002
[28757.208139] ehci-pci 0000:00:1d.7: GetStatus port:1 status 001803 0 ACK POWER sig=j CSC CONNECT
[28757.208156] hub 1-0:1.0: port 1, status 0501, change 0001, 480 Mb/s
[28757.312087] hub 1-0:1.0: debounce: port 1: total 100ms stable 100ms status 0x501
[28757.363301] ehci-pci 0000:00:1d.7: port 1 reset complete, port enabled
[28757.363314] ehci-pci 0000:00:1d.7: GetStatus port:1 status 001005 0 ACK POWER sig=se0 PE CONNECT
[28757.414086] usb 1-1: new high-speed USB device number 18 using ehci-pci
[28757.466301] ehci-pci 0000:00:1d.7: port 1 reset complete, port enabled
[28757.466314] ehci-pci 0000:00:1d.7: GetStatus port:1 status 001005 0 ACK POWER sig=se0 PE CONNECT
[28757.536829] usb 1-1: default language 0x0409
[28757.541827] usb 1-1: udev 18, busnum 1, minor = 17
[28757.541832] usb 1-1: New USB device found, idVendor=0bda, idProduct=2832
[28757.541835] usb 1-1: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[28757.541839] usb 1-1: Product: RTL2832U
[28757.541842] usb 1-1: Manufacturer: Generic
[28757.541845] usb 1-1: SerialNumber: 77771111153705700
[28757.541995] usb 1-1: usb_probe_device
[28757.542000] usb 1-1: configuration #1 chosen from 1 choice
[28757.545453] usb 1-1: adding 1-1:1.0 (config #1, interface 0)
[28757.547287] dvb_usb_rtl28xxu 1-1:1.0: usb_probe_interface
[28757.547305] dvb_usb_rtl28xxu 1-1:1.0: usb_probe_interface – got id
[28757.547368] usb 1-1: dvb_usb_v2: found a ‘Realtek RTL2832U reference design’ in warm state
[28757.585261] usb 1-1: dvb_usb_v2: will pass the complete MPEG2 transport stream to the software demuxer
[28757.585291] DVB: registering new adapter (Realtek RTL2832U reference design)
[28757.588472] usb 1-1: DVB: registering adapter 0 frontend 0 (Realtek RTL2832 (DVB-T))…
[28757.588614] fc0012: Fitipower FC0012 successfully attached.
[28757.595215] Registered IR keymap rc-empty
[28757.595306] input: Realtek RTL2832U reference design as /devices/pci0000:00/0000:00:1d.7/usb1/1-1/rc/rc3/input14
[28757.595371] rc3: Realtek RTL2832U reference design as /devices/pci0000:00/0000:00:1d.7/usb1/1-1/rc/rc3
[28757.595376] usb 1-1: dvb_usb_v2: schedule remote query interval to 400 msecs
[28757.606831] usb 1-1: dvb_usb_v2: ‘Realtek RTL2832U reference design’ successfully initialized and connected
/dev/dvb/adapter0/{demux0,dvr0,frontend0,net0}として出て来ました。
さてワンセグ見ようと思ってdvbstreamをインストールしてやってみましたが
“dvbstream -f <地デジの物理chの周波数(kHz)> 8192″とやれば標準出力にtsが出てくるはずですが・・・
$ dvbstream -f 515143 8192
dvbstream v0.7 – (C) Dave Chapman 2001-2004
Released under the GPL.
Latest version available from http://www.linuxstb.org/
Tuning to 515143 Hz
Using DVB card “Realtek RTL2832 (DVB-T)”, freq=515143
tuning DVB-T (in United Kingdom) to 515143000 Hz, Bandwidth: 8
Getting frontend status
Not able to lock to the signal on the given frequency
dvbstream will stop after -1 seconds (71582788 minutes)
Using 224.0.1.2:5004:2
version=2
Streaming 1 stream
となったまま何も起きないので^Cしました。
何でだ・・・・