今更だけどR820Tというワンセグ受信USBドングルを入手して遊んでます。
Linux(Mint)にgprxというソフトを入れて動かした時エラーが出たのでその対策メモ。
- エラー内容
$ sudo gqrx linux; GNU C++ version 4.8.2; Boost_105400; UHD_003.005.005-0-unknown gr-osmosdr 0.1.1 (0.1.1) gnuradio 3.7.2.1 built-in source types: file osmosdr fcd rtl rtl_tcp uhd hackrf bladerf rfspace Using Volk machine: ssse3_32_orc gr-osmosdr 0.1.1 (0.1.1) gnuradio 3.7.2.1 built-in source types: file osmosdr fcd rtl rtl_tcp uhd hackrf bladerf rfspace Using device #0 Realtek RTL2838UHIDIR SN: 00000001 Kernel driver is active, or device is claimed by second instance of librtlsdr. In the first case, please either detach or blacklist the kernel module (dvb_usb_rtl28xxu), or enable automatic detaching at compile time. usb_claim_interface error -6 FATAL: Failed to open rtlsdr device. Trying to fill up 1 missing channel(s) with null source(s). This is being done to prevent the application from crashing due to gnuradio bug #528.
- 対策
このページにずばり書いてあります。
どうやら本来の目的であるワンセグ用のドライバが自動的にロードされて邪魔している模様
https://groups.google.com/forum/#!msg/ultra-cheap-sdr/6_sSON94Azo/sOkhU81YINIJ
とりあえず下記コマンドを打ってから動作確認(問題のドライバをアンロード )
sudo rmmod dvb_usb_rtl28xxu rtl2832
これでうまく動く様なら、以後二度とロードされないようにBlacklist指定
sudo vi /etc/modprobe.d/blacklist.conf
で、リストに以下を追加
blacklist dvb_usb_rtl28xxu blacklist rtl2832 blacklist rtl2830