summaryrefslogtreecommitdiff
path: root/v4l/scripts/insmod.sh
blob: bf22a69ce82df9d5669d773d76f91afb15fb938d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
#!/bin/sh
# insmod modules from current directory without having to install them first

sync

case "$1" in
    load)
	echo "Inserting V4L/DVB modules into kernel"
	modprobe i2c-core
	modprobe crc32
	modprobe firmware_class
	# make sure input stuff is there for IR remote controls
	modprobe evdev
	# video4linux
	insmod ./compat_ioctl32.ko
	insmod ./videodev.ko
	insmod ./v4l1-compat.ko
	insmod ./v4l2-common.ko
	insmod ./video-buf.ko
	insmod ./ir-common.ko
	insmod ./ir-kbd-i2c.ko
	insmod ./tuner.ko
	insmod ./tda9887.ko
	insmod ./tvaudio.ko
	insmod ./tveeprom.ko
	insmod ./tvmixer.ko
	insmod ./cs53l32a.ko
	insmod ./wm8775.ko
	insmod ./cx25840.ko
	insmod ./saa711x.ko
	insmod ./btcx-risc.ko
	insmod ./saa7127.ko
	insmod ./msp3400.ko
	insmod ./tvp5150.ko
	# DVB core
	insmod ./dvb-core.ko # dvb_net_debug=1
	# for hybrid cx88 and saa7134 cards
	insmod ./video-buf-dvb.ko
	# frontend drivers
	insmod ./dvb-pll.ko
	insmod ./ves1x93.ko
	insmod ./sp8870.ko
	insmod ./cx22700.ko
	insmod ./stv0299.ko
	insmod ./ves1820.ko
	insmod ./tda1004x.ko
	insmod ./tda10021.ko
	insmod ./dib3000-common.ko
	insmod ./dib3000mb.ko
	insmod ./dib3000mc.ko
	insmod ./l64781.ko
	insmod ./tda8083.ko
	insmod ./cx24110.ko
	insmod ./cx24123.ko
	insmod ./cx22702.ko
	insmod ./mt312.ko
	insmod ./mt352.ko
	insmod ./stv0297.ko
	insmod ./nxt200x.ko
	insmod ./lgdt330x.ko
	insmod ./nxt6000.ko
	insmod ./bcm3510.ko
	insmod ./s5h1420.ko
	insmod ./sp887x.ko
	insmod ./or51211.ko
	insmod ./or51132.ko
	insmod ./ttusbdecfe.ko
	# saa7146 based siemens/technotrend/hauppauge cards
	insmod ./saa7146.ko
	insmod ./saa7146_vv.ko
	insmod ./ttpci-eeprom.ko
	insmod ./dvb-ttpci.ko
	insmod ./budget-core.ko
	insmod ./budget.ko
	insmod ./budget-ci.ko
	insmod ./budget-av.ko
	# technotrend/hauppauge USB things
	insmod ./dvb-ttusb-budget.ko
	insmod ./ttusb_dec.ko

	# technisat skystar2
	insmod ./stv0297_cs2.ko
	insmod ./b2c2-flexcop.ko
	insmod ./b2c2-flexcop-usb.ko
	insmod ./b2c2-flexcop-pci.ko
	# terratec CinergyT2
	insmod ./cinergyT2.ko

	insmod ./dvb-usb.ko
	insmod ./dvb-usb-vp7045.ko
	insmod ./dvb-usb-dtt200u.ko

	insmod ./dvb-usb-dibusb-common.ko
	insmod ./dvb-usb-dibusb-mb.ko
	insmod ./dvb-usb-dibusb-mc.ko
	insmod ./dvb-usb-a800.ko
	insmod ./dvb-usb-nova-t-usb2.ko
	insmod ./dvb-usb-umt-010.ko
	insmod ./dvb-usb-digitv.ko
	insmod ./dvb-usb-cxusb.ko
	# bt8xx
	insmod ./bttv.ko
	insmod ./bt878.ko
	insmod ./dst.ko
	insmod ./dst_ca.ko
	insmod ./dvb-bt8xx.ko
	insmod ./saa6588.ko
	# conexant cx2388x
	insmod ./cx88xx.ko
	insmod ./cx8800.ko
	insmod ./cx8802.ko
	insmod ./cx88-vp3054-i2c.ko
	insmod ./cx88-dvb.ko
	insmod ./cx88-blackbird.ko
	insmod ./cx88-alsa.ko
	# phillips saa713x
	insmod ./saa7134.ko
	insmod ./saa7134-alsa.ko
#	insmod ./saa7134-oss.ko
	insmod ./saa7134-dvb.ko
	insmod ./saa7134-empress.ko

	insmod ./saa6752hs.ko
	insmod ./em28xx.ko
	echo
	;;
    debug)
	echo "Inserting V4L/DVB modules (debug) into kernel"
	modprobe i2c-core
	modprobe crc32
	modprobe firmware_class
	modprobe evdev
	insmod ./compat_ioctl32.ko
	insmod ./videodev.ko
	insmod ./v4l1-compat.ko
	insmod ./v4l2-common.ko
	insmod ./video-buf.ko
	insmod ./ir-common.ko
	insmod ./ir-kbd-i2c.ko
	insmod ./tuner.ko tuner_debug=1
	insmod ./tda9887.ko
	insmod ./tvaudio.ko
	insmod ./tveeprom.ko
	insmod ./tvmixer.ko
	insmod ./cs53l32a.ko
	insmod ./wm8775.ko
	insmod ./cx25840.ko
	insmod ./saa711x.ko
	insmod ./btcx-risc.ko
	insmod ./saa7127.ko
	insmod ./msp3400.ko
	insmod ./tvp5150.ko
	insmod ./dvb-core.ko cam_debug=1
	insmod ./video-buf-dvb.ko
	insmod ./dvb-pll.ko
	insmod ./ves1x93.ko
	insmod ./sp8870.ko
	insmod ./cx22700.ko
	insmod ./stv0299.ko
	insmod ./ves1820.ko
	insmod ./tda1004x.ko
	insmod ./tda10021.ko
	insmod ./dib3000-common.ko
	insmod ./dib3000mb.ko
	insmod ./dib3000mc.ko
	insmod ./l64781.ko
	insmod ./stv0297.ko
	insmod ./tda8083.ko
	insmod ./cx24110.ko
	insmod ./cx24123.ko
	insmod ./mt312.ko
	insmod ./mt352.ko
	insmod ./cx22702.ko
	insmod ./nxt200x.ko
	insmod ./lgdt330x.ko
	insmod ./nxt6000.ko
	insmod ./bcm3510.ko
	insmod ./s5h1420.ko
        insmod ./sp887x.ko
        insmod ./or51211.ko
        insmod ./or51132.ko
	insmod ./ttusbdecfe.ko
	insmod ./saa7146.ko
	insmod ./saa7146_vv.ko
	insmod ./ttpci-eeprom.ko
	insmod ./dvb-ttpci.ko debug=247
	insmod ./budget-core.ko
	insmod ./budget.ko
	insmod ./budget-ci.ko
	insmod ./budget-av.ko
	insmod ./dvb-ttusb-budget.ko
	insmod ./stv0297_cs2.ko
	insmod ./b2c2-flexcop.ko debug=0x01
	insmod ./b2c2-flexcop-usb.ko debug=0x01
	insmod ./b2c2-flexcop-pci.ko debug=0x01
	insmod ./ttusb_dec.ko
	insmod ./cinergyT2.ko

	insmod ./dvb-usb.ko debug=0x33
	insmod ./dvb-usb-vp7045.ko debug=0x03
	insmod ./dvb-usb-dtt200u.ko debug=0x03

	insmod ./dvb-usb-dibusb-common.ko debug=0x03
	insmod ./dvb-usb-dibusb-mb.ko
	insmod ./dvb-usb-dibusb-mc.ko
	insmod ./dvb-usb-a800.ko
	insmod ./dvb-usb-nova-t-usb2.ko
	insmod ./dvb-usb-umt-010.ko
	insmod ./dvb-usb-digitv.ko
	insmod ./dvb-usb-cxusb.ko

	insmod ./bttv.ko
	insmod ./bt878.ko
	insmod ./dst.ko
	insmod ./dst_ca.ko
	insmod ./dvb-bt8xx.ko
	insmod ./saa6588.ko

	insmod ./cx88xx.ko
	insmod ./cx8800.ko
	insmod ./cx8802.ko
	insmod ./cx88-vp3054-i2c.ko
	insmod ./cx88-dvb.ko
	insmod ./cx88-blackbird.ko
	insmod ./cx88-alsa.ko

	insmod ./saa7134.ko
	insmod ./saa7134-alsa.ko
	insmod ./saa7134-oss.ko
	insmod ./saa7134-dvb.ko
	insmod ./saa7134-empress.ko

	insmod ./saa6752hs.ko
	insmod ./em28xx.ko
	echo
	;;
    unload)
	echo "Removing V4L/DVB modules from kernel"
	rmmod b2c2-flexcop-usb b2c2-flexcop-pci b2c2-flexcop dvb-ttpci budget \
		budget-av budget-ci budget-core ttusb_dec dvb-ttusb-budget \
		ttpci-eeprom dvb-usb-nova-t-usb2.ko dvb-usb-a800.ko \
		dvb-usb-umt-010.ko dvb-usb-dibusb-mc.ko dvb-usb-dibusb-mb.ko\
		dvb-usb-dibusb-common.ko dvb-usb-vp7045.ko \
		dvb-usb-dtt200u.ko dvb-usb-digitv.ko dvb-usb-cxusb.ko \
		dvb-usb.ko
# video4linux cards
	rmmod cx88-alsa cx88-blackbird cx88-dvb cx88-vp3054-i2c cx8802 cx8800 \
		cx88xx saa7134-oss saa7134-alsa saa7134-empress saa7134-dvb \
		saa7134 dvb-bt8xx dst_ca dst bt878 bttv em28xx

# frontends
	rmmod dib3000mb dib3000mc dib3000_common nxt200x ves1x93 \
			sp8870 cx22700 stv0299 ves1820 cinergyT2 ttusbdecfe \
			tda1004x l64781 tda8083 cx24110 cx22702 stv0297 \
			tda10021 mt352 mt312 bcm3510 s5h1420 nxt6000 \
			stv0297_cs2 lgdt330x cx24123 sp887x or51211 or51132 \
			dvb-pll

# chips and helpers
	rmmod 	saa7127 msp3400 tvp5150 \
		saa6752hs saa6588 btcx-risc tveeprom tvaudio tda9887 tuner \
		ir-kbd-i2c ir-common cx25840 tvmixer cs53l32a wm8775 saa711x \
		saa7146_vv saa7146 video-buf-dvb video-buf \
		v4l2-common v4l1-compat dvb-core videodev compat_ioctl32

	echo
	;;
    reload)
	$0 unload && $0 load
	;;
    *)
	echo "Usage$0 {load|unload|debug|reload}"
	exit 1
esac

sync