Documentation/driver-api/media/drivers/dvb-usb.rst GitHub 원문 ↗

Linux 6.18.37 · Driver API

Idea behind the dvb-usb-framework

deprecated dvb-usb framework의 callback 구조, 2004-2005 개발 이력, firmware·debug 절차와 USB1.1 대역폭 한계를 다루는 전문 번역입니다.

Source pathDocumentation/driver-api/media/drivers/dvb-usb.rst
Source versionLinux v6.18.37
TranslationDUJINLABS 전문 번역 + 해설

요약·해설과 원문, 전문 번역을 서로 분리했습니다. API 이름, symbol, source path는 원문 표기를 사용합니다.

1. 요약·해설

원문의 핵심 논리와 kernel programming 관점의 보충 설명입니다. 아래의 전문 번역과는 별도로 작성했습니다.

요약과 해설

dvb-usb.rst:1-357

초기 DVB USB driver의 중복을 줄이기 위해 만든 공통 framework의 설계와 성장 기록입니다. 현재는 deprecated이며 새 driver는 `dvb-usb-v2`를 사용해야 하지만, URB·DVB API·I2C·remote·firmware를 callback으로 연결한 배경과 오래된 장치의 제약을 이해하는 데 유용합니다.

문서 구성
원문 줄내용
1-49framework 목적과 callback 구조
50-222지원 장치와 2004-2005 history
223-281firmware, build, loading과 debug
282-314문제, USB1.1 대역폭과 comments
315-357acknowledgements

2. 영어 원문 전체

번역 기준이 된 Linux v6.18.37 원문입니다. 줄 번호는 이 버전의 파일 좌표입니다.

원문 전체 펼치기
1 .. SPDX-License-Identifier: GPL-2.0
2
3 Idea behind the dvb-usb-framework
4 =================================
5
6 .. note::
7
8 #) This documentation is outdated. Please check at the DVB wiki
9 at https://linuxtv.org/wiki for more updated info.
10
11 #) **deprecated:** Newer DVB USB drivers should use the dvb-usb-v2 framework.
12
13 In March 2005 I got the new Twinhan USB2.0 DVB-T device. They provided specs
14 and a firmware.
15
16 Quite keen I wanted to put the driver (with some quirks of course) into dibusb.
17 After reading some specs and doing some USB snooping, it realized, that the
18 dibusb-driver would be a complete mess afterwards. So I decided to do it in a
19 different way: With the help of a dvb-usb-framework.
20
21 The framework provides generic functions (mostly kernel API calls), such as:
22
23 - Transport Stream URB handling in conjunction with dvb-demux-feed-control
24 (bulk and isoc are supported)
25 - registering the device for the DVB-API
26 - registering an I2C-adapter if applicable
27 - remote-control/input-device handling
28 - firmware requesting and loading (currently just for the Cypress USB
29 controllers)
30 - other functions/methods which can be shared by several drivers (such as
31 functions for bulk-control-commands)
32 - TODO: a I2C-chunker. It creates device-specific chunks of register-accesses
33 depending on length of a register and the number of values that can be
34 multi-written and multi-read.
35
36 The source code of the particular DVB USB devices does just the communication
37 with the device via the bus. The connection between the DVB-API-functionality
38 is done via callbacks, assigned in a static device-description (struct
39 dvb_usb_device) each device-driver has to have.
40
41 For an example have a look in drivers/media/usb/dvb-usb/vp7045*.
42
43 Objective is to migrate all the usb-devices (dibusb, cinergyT2, maybe the
44 ttusb; flexcop-usb already benefits from the generic flexcop-device) to use
45 the dvb-usb-lib.
46
47 TODO: dynamic enabling and disabling of the pid-filter in regard to number of
48 feeds requested.
49
50 Supported devices
51 -----------------
52
53 See the LinuxTV DVB Wiki at https://linuxtv.org for a complete list of
54 cards/drivers/firmwares:
55 https://linuxtv.org/wiki/index.php/DVB_USB
56
57 0. History & News:
58
59 2005-06-30
60
61 - added support for WideView WT-220U (Thanks to Steve Chang)
62
63 2005-05-30
64
65 - added basic isochronous support to the dvb-usb-framework
66 - added support for Conexant Hybrid reference design and Nebula
67 DigiTV USB
68
69 2005-04-17
70
71 - all dibusb devices ported to make use of the dvb-usb-framework
72
73 2005-04-02
74
75 - re-enabled and improved remote control code.
76
77 2005-03-31
78
79 - ported the Yakumo/Hama/Typhoon DVB-T USB2.0 device to dvb-usb.
80
81 2005-03-30
82
83 - first commit of the dvb-usb-module based on the dibusb-source.
84 First device is a new driver for the
85 TwinhanDTV Alpha / MagicBox II USB2.0-only DVB-T device.
86 - (change from dvb-dibusb to dvb-usb)
87
88 2005-03-28
89
90 - added support for the AVerMedia AverTV DVB-T USB2.0 device
91 (Thanks to Glen Harris and Jiun-Kuei Jung, AVerMedia)
92
93 2005-03-14
94
95 - added support for the Typhoon/Yakumo/HAMA DVB-T mobile USB2.0
96
97 2005-02-11
98
99 - added support for the KWorld/ADSTech Instant DVB-T USB2.0.
100 Thanks a lot to Joachim von Caron
101
102 2005-02-02
103 - added support for the Hauppauge Win-TV Nova-T USB2
104
105 2005-01-31
106 - distorted streaming is gone for USB1.1 devices
107
108 2005-01-13
109
110 - moved the mirrored pid_filter_table back to dvb-dibusb
111 first almost working version for HanfTek UMT-010
112 found out, that Yakumo/HAMA/Typhoon are predecessors of the HanfTek UMT-010
113
114 2005-01-10
115
116 - refactoring completed, now everything is very delightful
117
118 - tuner quirks for some weird devices (Artec T1 AN2235 device has sometimes a
119 Panasonic Tuner assembled). Tunerprobing implemented.
120 Thanks a lot to Gunnar Wittich.
121
122 2004-12-29
123
124 - after several days of struggling around bug of no returning URBs fixed.
125
126 2004-12-26
127
128 - refactored the dibusb-driver, split into separate files
129 - i2c-probing enabled
130
131 2004-12-06
132
133 - possibility for demod i2c-address probing
134 - new usb IDs (Compro, Artec)
135
136 2004-11-23
137
138 - merged changes from DiB3000MC_ver2.1
139 - revised the debugging
140 - possibility to deliver the complete TS for USB2.0
141
142 2004-11-21
143
144 - first working version of the dib3000mc/p frontend driver.
145
146 2004-11-12
147
148 - added additional remote control keys. Thanks to Uwe Hanke.
149
150 2004-11-07
151
152 - added remote control support. Thanks to David Matthews.
153
154 2004-11-05
155
156 - added support for a new devices (Grandtec/Avermedia/Artec)
157 - merged my changes (for dib3000mb/dibusb) to the FE_REFACTORING, because it became HEAD
158 - moved transfer control (pid filter, fifo control) from usb driver to frontend, it seems
159 better settled there (added xfer_ops-struct)
160 - created a common files for frontends (mc/p/mb)
161
162 2004-09-28
163
164 - added support for a new device (Unknown, vendor ID is Hyper-Paltek)
165
166 2004-09-20
167
168 - added support for a new device (Compro DVB-U2000), thanks
169 to Amaury Demol for reporting
170 - changed usb TS transfer method (several urbs, stopping transfer
171 before setting a new pid)
172
173 2004-09-13
174
175 - added support for a new device (Artec T1 USB TVBOX), thanks
176 to Christian Motschke for reporting
177
178 2004-09-05
179
180 - released the dibusb device and dib3000mb-frontend driver
181 (old news for vp7041.c)
182
183 2004-07-15
184
185 - found out, by accident, that the device has a TUA6010XS for PLL
186
187 2004-07-12
188
189 - figured out, that the driver should also work with the
190 CTS Portable (Chinese Television System)
191
192 2004-07-08
193
194 - firmware-extraction-2.422-problem solved, driver is now working
195 properly with firmware extracted from 2.422
196 - #if for 2.6.4 (dvb), compile issue
197 - changed firmware handling, see vp7041.txt sec 1.1
198
199 2004-07-02
200
201 - some tuner modifications, v0.1, cleanups, first public
202
203 2004-06-28
204
205 - now using the dvb_dmx_swfilter_packets, everything runs fine now
206
207 2004-06-27
208
209 - able to watch and switching channels (pre-alpha)
210 - no section filtering yet
211
212 2004-06-06
213
214 - first TS received, but kernel oops :/
215
216 2004-05-14
217
218 - firmware loader is working
219
220 2004-05-11
221
222 - start writing the driver
223
224 How to use?
225 -----------
226
227 Firmware
228 ~~~~~~~~
229
230 Most of the USB drivers need to download a firmware to the device before start
231 working.
232
233 Have a look at the Wikipage for the DVB-USB-drivers to find out, which firmware
234 you need for your device:
235
236 https://linuxtv.org/wiki/index.php/DVB_USB
237
238 Compiling
239 ~~~~~~~~~
240
241 Since the driver is in the linux kernel, activating the driver in
242 your favorite config-environment should sufficient. I recommend
243 to compile the driver as module. Hotplug does the rest.
244
245 If you use dvb-kernel enter the build-2.6 directory run 'make' and 'insmod.sh
246 load' afterwards.
247
248 Loading the drivers
249 ~~~~~~~~~~~~~~~~~~~
250
251 Hotplug is able to load the driver, when it is needed (because you plugged
252 in the device).
253
254 If you want to enable debug output, you have to load the driver manually and
255 from within the dvb-kernel cvs repository.
256
257 first have a look, which debug level are available:
258
259 .. code-block:: none
260
261 # modinfo dvb-usb
262 # modinfo dvb-usb-vp7045
263
264 etc.
265
266 .. code-block:: none
267
268 modprobe dvb-usb debug=<level>
269 modprobe dvb-usb-vp7045 debug=<level>
270 etc.
271
272 should do the trick.
273
274 When the driver is loaded successfully, the firmware file was in
275 the right place and the device is connected, the "Power"-LED should be
276 turned on.
277
278 At this point you should be able to start a dvb-capable application. I'm use
279 (t|s)zap, mplayer and dvbscan to test the basics. VDR-xine provides the
280 long-term test scenario.
281
282 Known problems and bugs
283 -----------------------
284
285 - Don't remove the USB device while running an DVB application, your system
286 will go crazy or die most likely.
287
288 Adding support for devices
289 ~~~~~~~~~~~~~~~~~~~~~~~~~~
290
291 TODO
292
293 USB1.1 Bandwidth limitation
294 ~~~~~~~~~~~~~~~~~~~~~~~~~~~
295
296 A lot of the currently supported devices are USB1.1 and thus they have a
297 maximum bandwidth of about 5-6 MBit/s when connected to a USB2.0 hub.
298 This is not enough for receiving the complete transport stream of a
299 DVB-T channel (which is about 16 MBit/s). Normally this is not a
300 problem, if you only want to watch TV (this does not apply for HDTV),
301 but watching a channel while recording another channel on the same
302 frequency simply does not work very well. This applies to all USB1.1
303 DVB-T devices, not just the dvb-usb-devices)
304
305 The bug, where the TS is distorted by a heavy usage of the device is gone
306 definitely. All dvb-usb-devices I was using (Twinhan, Kworld, DiBcom) are
307 working like charm now with VDR. Sometimes I even was able to record a channel
308 and watch another one.
309
310 Comments
311 ~~~~~~~~
312
313 Patches, comments and suggestions are very very welcome.
314
315 3. Acknowledgements
316 -------------------
317
318 Amaury Demol (Amaury.Demol@parrot.com) and Francois Kanounnikoff from DiBcom for
319 providing specs, code and help, on which the dvb-dibusb, dib3000mb and
320 dib3000mc are based.
321
322 David Matthews for identifying a new device type (Artec T1 with AN2235)
323 and for extending dibusb with remote control event handling. Thank you.
324
325 Alex Woods for frequently answering question about usb and dvb
326 stuff, a big thank you.
327
328 Bernd Wagner for helping with huge bug reports and discussions.
329
330 Gunnar Wittich and Joachim von Caron for their trust for providing
331 root-shells on their machines to implement support for new devices.
332
333 Allan Third and Michael Hutchinson for their help to write the Nebula
334 digitv-driver.
335
336 Glen Harris for bringing up, that there is a new dibusb-device and Jiun-Kuei
337 Jung from AVerMedia who kindly provided a special firmware to get the device
338 up and running in Linux.
339
340 Jennifer Chen, Jeff and Jack from Twinhan for kindly supporting by
341 writing the vp7045-driver.
342
343 Steve Chang from WideView for providing information for new devices and
344 firmware files.
345
346 Michael Paxton for submitting remote control keymaps.
347
348 Some guys on the linux-dvb mailing list for encouraging me.
349
350 Peter Schildmann >peter.schildmann-nospam-at-web.de< for his
351 user-level firmware loader, which saves a lot of time
352 (when writing the vp7041 driver)
353
354 Ulf Hermenau for helping me out with traditional chinese.
355
356 André Smoktun and Christian Frömmel for supporting me with
357 hardware and listening to my problems very patiently.
358

3. 한국어 전문 번역

영어 원문의 문단 순서와 의미를 유지한 전체 번역입니다. 코드, 함수명, symbol과 URL은 원문 표기를 유지합니다.

dvb-usb framework의 목적과 구조

1-49

이 문서는 오래되어 최신 정보는 LinuxTV DVB Wiki를 확인해야 합니다. 기존 `dvb-usb` framework는 deprecated 상태이며 새 DVB USB driver는 `dvb-usb-v2`를 사용해야 합니다.

저자는 2005년 3월 Twinhan USB2.0 DVB-T 장치의 specification과 firmware를 받은 뒤 기존 `dibusb`에 특수 처리를 계속 넣으면 driver가 복잡해진다고 판단해 공통 `dvb-usb-framework`를 만들었습니다.

Framework 공통 기능
기능내용
Transport streamDVB demux feed 제어와 연동한 bulk/isoc URB 처리
DVB APIdevice를 DVB-API에 등록
I2C해당하는 경우 I2C adapter 등록
Remote controlinput device와 remote event 처리
FirmwareCypress USB controller용 firmware 요청과 적재
Shared methodsbulk control command 같은 driver 공통 함수
TODOregister 길이와 multi-read/write 수에 맞춘 I2C chunker

dvb-usb callback 구조
DVB applicationDVB APIdvb-usb frameworkstatic dvb_usb_device callbacksdevice driverUSB device

장치 driver는 bus 통신에 집중하고 framework가 DVB API와 연결합니다.

개별 device source는 bus를 통한 통신만 담당하고 DVB-API 기능과의 연결은 각 driver가 가진 static device description인 `struct dvb_usb_device`의 callback으로 이뤄집니다. 원문은 `drivers/media/usb/dvb-usb/vp7045*`를 예로 들며 dibusb, cinergyT2, 가능하면 ttusb를 공통 library로 이관하는 것이 목표였습니다.

요청 feed 수에 따라 PID filter를 동적으로 켜고 끄는 기능은 TODO로 남아 있습니다.

.. SPDX-License-Identifier: GPL-2.0

Idea behind the dvb-usb-framework
=================================

.. note::

   #) This documentation is outdated. Please check at the DVB wiki
      at https://linuxtv.org/wiki for more updated info.

   #) **deprecated:** Newer DVB USB drivers should use the dvb-usb-v2 framework.

In March 2005 I got the new Twinhan USB2.0 DVB-T device. They provided specs
and a firmware.

Quite keen I wanted to put the driver (with some quirks of course) into dibusb.
After reading some specs and doing some USB snooping, it realized, that the
dibusb-driver would be a complete mess afterwards. So I decided to do it in a
different way: With the help of a dvb-usb-framework.

The framework provides generic functions (mostly kernel API calls), such as:

- Transport Stream URB handling in conjunction with dvb-demux-feed-control
  (bulk and isoc are supported)
- registering the device for the DVB-API
- registering an I2C-adapter if applicable
- remote-control/input-device handling
- firmware requesting and loading (currently just for the Cypress USB
  controllers)
- other functions/methods which can be shared by several drivers (such as
  functions for bulk-control-commands)
- TODO: a I2C-chunker. It creates device-specific chunks of register-accesses
  depending on length of a register and the number of values that can be
  multi-written and multi-read.

The source code of the particular DVB USB devices does just the communication
with the device via the bus. The connection between the DVB-API-functionality
is done via callbacks, assigned in a static device-description (struct
dvb_usb_device) each device-driver has to have.

For an example have a look in drivers/media/usb/dvb-usb/vp7045*.

Objective is to migrate all the usb-devices (dibusb, cinergyT2, maybe the
ttusb; flexcop-usb already benefits from the generic flexcop-device) to use
the dvb-usb-lib.

TODO: dynamic enabling and disabling of the pid-filter in regard to number of
feeds requested.

2004년 말부터 2005년까지의 개발 기록

50-122

전체 지원 card, driver와 firmware 목록은 LinuxTV DVB Wiki의 DVB USB 페이지를 참조합니다. 다음 표는 원문의 2004년 12월부터 2005년 6월까지 history entry를 날짜순 의미로 보존한 것입니다.

dvb-usb framework 주요 이력
날짜변경
2005-06-30WideView WT-220U 지원 추가; Steve Chang 기여
2005-05-30기본 isochronous 지원, Conexant Hybrid reference와 Nebula DigiTV USB 지원
2005-04-17모든 dibusb 장치를 dvb-usb framework로 이관
2005-04-02remote-control code 재활성화와 개선
2005-03-31Yakumo/Hama/Typhoon DVB-T USB2.0 이관
2005-03-30dibusb 기반 dvb-usb module 첫 commit; TwinhanDTV Alpha/MagicBox II driver
2005-03-28AVerMedia AverTV DVB-T USB2.0 지원
2005-03-14Typhoon/Yakumo/HAMA DVB-T mobile USB2.0 지원
2005-02-11KWorld/ADSTech Instant DVB-T USB2.0 지원
2005-02-02Hauppauge Win-TV Nova-T USB2 지원
2005-01-31USB1.1 장치의 distorted streaming 문제 제거
2005-01-13mirrored PID filter table 복귀, HanfTek UMT-010 초기 동작과 전신 장치 확인
2005-01-10refactoring 완료, tuner quirk와 probing 구현
2004-12-29반환되지 않는 URB 문제 수정

2004-12-26에는 dibusb를 별도 파일로 분리하고 I2C probing을 켰습니다. 12월 6일에는 demod I2C address probing과 Compro/Artec USB ID를 추가했습니다.

Supported devices
-----------------

See the LinuxTV DVB Wiki at https://linuxtv.org for a complete list of
cards/drivers/firmwares:
https://linuxtv.org/wiki/index.php/DVB_USB

0. History & News:

  2005-06-30

  - added support for WideView WT-220U (Thanks to Steve Chang)

  2005-05-30

  - added basic isochronous support to the dvb-usb-framework
  - added support for Conexant Hybrid reference design and Nebula
               DigiTV USB

  2005-04-17

  - all dibusb devices ported to make use of the dvb-usb-framework

  2005-04-02

  - re-enabled and improved remote control code.

  2005-03-31

  - ported the Yakumo/Hama/Typhoon DVB-T USB2.0 device to dvb-usb.

  2005-03-30

  - first commit of the dvb-usb-module based on the dibusb-source.
    First device is a new driver for the
    TwinhanDTV Alpha / MagicBox II USB2.0-only DVB-T device.
  - (change from dvb-dibusb to dvb-usb)

  2005-03-28

  - added support for the AVerMedia AverTV DVB-T USB2.0 device
    (Thanks to Glen Harris and Jiun-Kuei Jung, AVerMedia)

  2005-03-14

  - added support for the Typhoon/Yakumo/HAMA DVB-T mobile USB2.0

  2005-02-11

  - added support for the KWorld/ADSTech Instant DVB-T USB2.0.
    Thanks a lot to Joachim von Caron

  2005-02-02
  - added support for the Hauppauge Win-TV Nova-T USB2

  2005-01-31
  - distorted streaming is gone for USB1.1 devices

  2005-01-13

  - moved the mirrored pid_filter_table back to dvb-dibusb
    first almost working version for HanfTek UMT-010
    found out, that Yakumo/HAMA/Typhoon are predecessors of the HanfTek UMT-010

  2005-01-10

  - refactoring completed, now everything is very delightful

  - tuner quirks for some weird devices (Artec T1 AN2235 device has sometimes a
    Panasonic Tuner assembled). Tunerprobing implemented.
    Thanks a lot to Gunnar Wittich.

  2004-12-29

2004년 초기 dibusb 개발 기록

123-222
초기 dibusb 이력
날짜변경
2004-11-23DiB3000MC 2.1 변경 병합, debug 정리, USB2.0 complete TS 가능
2004-11-21dib3000mc/p frontend 첫 동작
2004-11-12remote-control key 추가; Uwe Hanke 기여
2004-11-07remote-control 지원; David Matthews 기여
2004-11-05Grandtec/Avermedia/Artec 지원, FE_REFACTORING 병합, xfer_ops와 frontend 공통 파일
2004-09-28Hyper-Paltek vendor ID 장치 지원
2004-09-20Compro DVB-U2000 지원, 여러 URB 방식과 PID 변경 전 transfer 정지
2004-09-13Artec T1 USB TVBOX 지원
2004-09-05dibusb device와 dib3000mb frontend 공개
2004-07-15장치의 PLL이 TUA6010XS임을 확인
2004-07-12CTS Portable 호환 가능성 확인
2004-07-082.422 추출 firmware 문제 해결, 2.6.4 build와 firmware handling 변경
2004-07-02tuner 수정, v0.1, 정리와 첫 공개
2004-06-28dvb_dmx_swfilter_packets 사용
2004-06-27채널 시청·전환 가능한 pre-alpha, section filtering 없음
2004-06-06첫 TS 수신, kernel oops 발생
2004-05-14firmware loader 동작
2004-05-11driver 작성 시작

이 기록은 modern API 문서가 아니라 framework가 실제 장치 지원과 함께 성장한 과정을 보여 줍니다. URB 반환, PID filter, I2C probing, frontend 분리와 firmware 추출 문제가 단계적으로 해결됐습니다.


- after several days of struggling around bug of no returning URBs fixed.

2004-12-26

- refactored the dibusb-driver, split into separate files
- i2c-probing enabled

2004-12-06

- possibility for demod i2c-address probing
- new usb IDs (Compro, Artec)

2004-11-23

- merged changes from DiB3000MC_ver2.1
- revised the debugging
- possibility to deliver the complete TS for USB2.0

2004-11-21

- first working version of the dib3000mc/p frontend driver.

2004-11-12

- added additional remote control keys. Thanks to Uwe Hanke.

2004-11-07

- added remote control support. Thanks to David Matthews.

2004-11-05

- added support for a new devices (Grandtec/Avermedia/Artec)
- merged my changes (for dib3000mb/dibusb) to the FE_REFACTORING, because it became HEAD
- moved transfer control (pid filter, fifo control) from usb driver to frontend, it seems
  better settled there (added xfer_ops-struct)
- created a common files for frontends (mc/p/mb)

2004-09-28

- added support for a new device (Unknown, vendor ID is Hyper-Paltek)

2004-09-20

- added support for a new device (Compro DVB-U2000), thanks
  to Amaury Demol for reporting
- changed usb TS transfer method (several urbs, stopping transfer
  before setting a new pid)

2004-09-13

- added support for a new device (Artec T1 USB TVBOX), thanks
  to Christian Motschke for reporting

2004-09-05

- released the dibusb device and dib3000mb-frontend driver
  (old news for vp7041.c)

2004-07-15

- found out, by accident, that the device has a TUA6010XS for PLL

2004-07-12

- figured out, that the driver should also work with the
  CTS Portable (Chinese Television System)

2004-07-08

- firmware-extraction-2.422-problem solved, driver is now working
  properly with firmware extracted from 2.422
- #if for 2.6.4 (dvb), compile issue
- changed firmware handling, see vp7041.txt sec 1.1

2004-07-02

- some tuner modifications, v0.1, cleanups, first public

2004-06-28

- now using the dvb_dmx_swfilter_packets, everything runs fine now

2004-06-27

- able to watch and switching channels (pre-alpha)
- no section filtering yet

2004-06-06

- first TS received, but kernel oops :/

2004-05-14

- firmware loader is working

2004-05-11

- start writing the driver

Firmware 준비와 build

223-247

대부분의 USB driver는 장치가 동작하기 전에 firmware를 download해야 합니다. 장치별 firmware 이름과 위치는 LinuxTV DVB USB Wiki에서 확인합니다.

준비 절차
단계작업
1DVB USB Wiki에서 장치에 필요한 firmware 확인
2kernel configuration에서 해당 driver 활성화
3가능하면 module로 compile
4hotplug가 연결 시 module과 firmware를 처리
역사적 dvb-kernel`build-2.6`에서 `make`, 이후 `insmod.sh load`

문서의 `dvb-kernel` CVS build 절차는 역사적 환경을 설명합니다. 현재 kernel tree에서는 일반 kernel configuration과 module build 절차를 따라야 합니다.


How to use?
-----------

Firmware
~~~~~~~~

Most of the USB drivers need to download a firmware to the device before start
working.

Have a look at the Wikipage for the DVB-USB-drivers to find out, which firmware
you need for your device:

https://linuxtv.org/wiki/index.php/DVB_USB

Compiling
~~~~~~~~~

Since the driver is in the linux kernel, activating the driver in
your favorite config-environment should sufficient. I recommend
to compile the driver as module. Hotplug does the rest.

If you use dvb-kernel enter the build-2.6 directory run 'make' and 'insmod.sh
load' afterwards.

Driver 적재, debug와 동작 확인

248-281

장치를 연결하면 hotplug가 필요한 driver를 자동으로 적재할 수 있습니다. debug output이 필요하면 `modinfo`로 core와 device driver가 제공하는 debug level을 확인한 뒤 module parameter를 지정해 수동으로 적재합니다.

Driver 적재와 확인
modinfo dvb-usbmodinfo device modulemodprobe ... debug=<level>firmware 확인USB device 연결Power LED 켜짐DVB application test

원문의 명령과 성공 신호를 순서대로 정리했습니다.

예시는 `modprobe dvb-usb debug=<level>`과 `modprobe dvb-usb-vp7045 debug=<level>`입니다. driver, firmware와 연결이 모두 정상이라면 Power LED가 켜져야 합니다.

기본 시험에는 `(t|s)zap`, `mplayer`, `dvbscan`을 사용했고 장기 시험에는 VDR-xine을 사용했다고 기록되어 있습니다.

Loading the drivers
~~~~~~~~~~~~~~~~~~~

Hotplug is able to load the driver, when it is needed (because you plugged
in the device).

If you want to enable debug output, you have to load the driver manually and
from within the dvb-kernel cvs repository.

first have a look, which debug level are available:

.. code-block:: none

        # modinfo dvb-usb
        # modinfo dvb-usb-vp7045

        etc.

.. code-block:: none

        modprobe dvb-usb debug=<level>
        modprobe dvb-usb-vp7045 debug=<level>
        etc.

should do the trick.

When the driver is loaded successfully, the firmware file was in
the right place and the device is connected, the "Power"-LED should be
turned on.

At this point you should be able to start a dvb-capable application. I'm use
(t|s)zap, mplayer and dvbscan to test the basics. VDR-xine provides the
long-term test scenario.

알려진 문제와 USB1.1 대역폭

282-309

DVB application이 실행 중일 때 USB 장치를 제거하면 system이 불안정해지거나 중단될 수 있다는 경고가 있습니다. 새 장치 지원 절은 당시 TODO 상태입니다.

USB1.1과 DVB-T 대역폭 비교
항목대역폭/영향
USB1.1 장치가 USB2.0 hub에 연결될 때약 5-6 Mbit/s
DVB-T 전체 transport stream약 16 Mbit/s
일반 SD 채널 한 개대체로 가능
HDTV대역폭 부족 가능
같은 frequency의 한 채널 시청 + 다른 채널 녹화안정적으로 동작하기 어려움

이 한계는 dvb-usb만이 아니라 모든 USB1.1 DVB-T 장치에 적용됩니다. 반면 장치를 많이 사용할 때 TS가 왜곡되던 bug는 해결됐고, 저자가 사용한 Twinhan, Kworld와 DiBcom 장치는 VDR에서 안정적으로 동작했다고 기록합니다.

Known problems and bugs
-----------------------

- Don't remove the USB device while running an DVB application, your system
  will go crazy or die most likely.

Adding support for devices
~~~~~~~~~~~~~~~~~~~~~~~~~~

TODO

USB1.1 Bandwidth limitation
~~~~~~~~~~~~~~~~~~~~~~~~~~~

A lot of the currently supported devices are USB1.1 and thus they have a
maximum bandwidth of about 5-6 MBit/s when connected to a USB2.0 hub.
This is not enough for receiving the complete transport stream of a
DVB-T channel (which is about 16 MBit/s). Normally this is not a
problem, if you only want to watch TV (this does not apply for HDTV),
but watching a channel while recording another channel on the same
frequency simply does not work very well. This applies to all USB1.1
DVB-T devices, not just the dvb-usb-devices)

The bug, where the TS is distorted by a heavy usage of the device is gone
definitely. All dvb-usb-devices I was using (Twinhan, Kworld, DiBcom) are
working like charm now with VDR. Sometimes I even was able to record a channel
and watch another one.

Patch와 의견

310-314

저자는 patch, comment와 suggestion을 적극적으로 환영한다고 밝힙니다. 이 문서는 deprecated framework의 역사 자료이므로 새 개발은 현재 media subsystem의 contribution 절차와 `dvb-usb-v2` 구조를 기준으로 해야 합니다.

기여 방향
대상권장 기준
기존 dvb-usb 유지보수현행 source와 regression 범위 확인
새 DVB USB driverdvb-usb-v2 framework 사용
Patch 제출현재 Linux media subsystem 절차 준수

Comments
~~~~~~~~

Patches, comments and suggestions are very very welcome.

기여자와 감사

315-357

dvb-dibusb와 dvb-usb 개발에는 specification, firmware, hardware 접근, remote keymap, USB/DVB 조언과 장기간의 debug 지원이 함께 필요했습니다.

주요 기여
기여자내용
Amaury Demol, Francois Kanounnikoff / DiBcomdvb-dibusb, dib3000mb, dib3000mc의 specification, code와 지원
David MatthewsArtec T1 AN2235 식별과 remote-control event handling
Alex WoodsUSB와 DVB 관련 지속적인 답변
Bernd Wagner대규모 bug report와 논의
Gunnar Wittich, Joachim von Caron새 장치 지원을 위한 root shell 제공
Allan Third, Michael HutchinsonNebula digitv driver 작성
Glen Harris, Jiun-Kuei Jung / AVerMedia새 dibusb 장치 제보와 Linux용 특별 firmware
Jennifer Chen, Jeff, Jack / Twinhanvp7045 driver 지원
Steve Chang / WideView새 장치 정보와 firmware
Michael Paxtonremote-control keymap
linux-dvb mailing list개발 독려
Peter Schildmannvp7041 개발 시간을 줄인 user-level firmware loader
Ulf Hermenautraditional Chinese 지원
Andre Smoktun, Christian Frommelhardware 지원과 장기간의 문제 논의

이름과 driver·chip symbol은 원문의 기여 기록을 유지했습니다. 마지막 두 이름의 원문에는 비ASCII 문자가 포함되며 영어 원문 전체에서 정확한 철자를 확인할 수 있습니다.

3. Acknowledgements
-------------------

   Amaury Demol (Amaury.Demol@parrot.com) and Francois Kanounnikoff from DiBcom for
   providing specs, code and help, on which the dvb-dibusb, dib3000mb and
   dib3000mc are based.

   David Matthews for identifying a new device type (Artec T1 with AN2235)
   and for extending dibusb with remote control event handling. Thank you.

   Alex Woods for frequently answering question about usb and dvb
   stuff, a big thank you.

   Bernd Wagner for helping with huge bug reports and discussions.

   Gunnar Wittich and Joachim von Caron for their trust for providing
   root-shells on their machines to implement support for new devices.

   Allan Third and Michael Hutchinson for their help to write the Nebula
   digitv-driver.

   Glen Harris for bringing up, that there is a new dibusb-device and Jiun-Kuei
   Jung from AVerMedia who kindly provided a special firmware to get the device
   up and running in Linux.

   Jennifer Chen, Jeff and Jack from Twinhan for kindly supporting by
   writing the vp7045-driver.

   Steve Chang from WideView for providing information for new devices and
   firmware files.

   Michael Paxton for submitting remote control keymaps.

   Some guys on the linux-dvb mailing list for encouraging me.

   Peter Schildmann >peter.schildmann-nospam-at-web.de< for his
   user-level firmware loader, which saves a lot of time
   (when writing the vp7041 driver)

   Ulf Hermenau for helping me out with traditional chinese.

   André Smoktun and Christian Frömmel for supporting me with
   hardware and listening to my problems very patiently.