Gentoo Archives: gentoo-user

From: Mark Knecht <markknecht@×××××.com>
To: gentoo-user@l.g.o
Subject: [gentoo-user] i2c problems? (ivtv from source not loading under 2.6.12-gentoo-r6)
Date: Sun, 14 Aug 2005 20:54:20
Message-Id: 5bdc1c8b0508141349411f1d8@mail.gmail.com
1 Hi,
2 I hope someone is around on this fine Sunday to help me out. I only
3 have today to do this update. Most everything seemed to be going OK
4 but then I had trouble with some Gentoo based i2c changes. Previously,
5 running 2.6.11-gentoo-r11 everything was fine. When I tried to update
6 to 2.6.12-gentoo-r6 ivtv-0.3.6x complains at boot time:
7
8 Linux video capture interface: v1.00
9 ivtv: ==================== START INIT IVTV ====================
10 ivtv: version 0.3.6 (x) loading
11 ivtv: Linux version: 2.6.11-gentoo-r9 preempt K7 4KSTACKS gcc-3.3
12 ivtv: In case of problems please include the debug info
13 ivtv: between the START INIT IVTV and END INIT IVTV lines when
14 ivtv: mailing the ivtv-devel mailinglist.
15 ivtv: Autodetected WinTV PVR 150 card
16 ivtv: Found an iTVC16 based chip
17 ACPI: PCI Interrupt Link [LNK1] enabled at IRQ 11
18 ACPI: PCI interrupt 0000:01:0a.0[A] -> GSI 11 (level, low) -> IRQ 11
19 ivtv: Unreasonably low latency timer, setting to 64 (was 32)
20 ivtv: XXX PCI device: 0x01e0 vendor: 0x10de
21 tveeprom: Hauppauge: model = 26032, rev = C199, serial# = 2978579
22 tveeprom: tuner = TCL 2002N 5H (idx = 99, type = 50)
23 tveeprom: tuner fmt = NTSC(M) (eeprom = 0x08, v4l2 = 0x00001000)
24 tveeprom: audio_processor = TDA9850 (type = 3)
25 ivtv: i2c attach [client=tveeprom[50],ok]
26 ivtv: Tuner Type 50, Tuner formats 0x00001000, Radio: yes, Model
27 0x008d1659, Revision 0x00000000
28 ivtv: NTSC tuner detected
29 ivtv: Radio detected
30 tuner: Ignoring new-style parameters in presence of obsolete ones
31 tuner: chip found at addr 0xc2 i2c-bus ivtv i2c driver #0
32 ivtv: i2c attach [client=(tuner unset),ok]
33 cx25840: starting probe for adapter ivtv i2c driver #0 (0x10005)
34 cx25840: detecting cx25840 client on address 0x88
35 cx25840: cx25841-23 found. Initializing...
36 cx25840: requesting /lib/modules/HcwMakoA.ROM
37 kjournald starting. Commit interval 5 seconds
38 i2c_adapter i2c-2: sendbytes: error - bailout.
39 cx25840: fast fw load failed
40 cx25840: firmware load failed
41 ivtv: i2c attach [client=cx25840[50],ok]
42 ivtv: i2c attach [client=wm8775[50],ok]
43 ivtv: Encoder revision: 0x02040024
44 ivtv: Encoder Firmware may be buggy, use version 0x02040011
45 ivtv: Configuring WinTV PVR 150 card with 5 streams
46 ivtv: Registered v4l2 device for encoder MPEG minor 0
47 ivtv: Create DMA encoder MPEG stream: 0 x 32768 buffers (0KB total)
48 ivtv: Registered v4l2 device for encoder YUV minor 32
49 ivtv: Create DMA encoder YUV stream: 0 x 10800 buffers (0KB total)
50 ivtv: Registered v4l2 device for encoder VBI minor 224
51 ivtv: Create DMA encoder VBI stream: 0 x 8736 buffers (0KB total)
52 ivtv: Registered v4l2 device for encoder PCM audio minor 24
53 ivtv: Create DMA encoder PCM audio stream: 0 x 4608 buffers (0KB total)
54 ivtv: Registered v4l2 device for encoder radio minor 64
55 ivtv: Create encoder radio stream
56 ivtv: Setting Tuner 50
57 tuner: type set to 50 (TCL 2002N) by ivtv i2c driver #0
58 cx25840: decoder set norm NTSC
59 ivtv: ivtv_enc_thread: pid = 7492, itv = 0xe0a33b60
60 ivtv: ivtv_enc_vbi_thread: pid = 7493, itv = 0xe0a33b60
61 cx25840: decoder set input (6)
62 cx25840: now setting Tuner input
63 cx25840: set audio input (0)
64 ivtv: Switching standard to NTSC.
65 cx25840: decoder set norm NTSC
66 ivtv: Initialized WinTV PVR 150, card #0
67 ivtv: ==================== END INIT IVTV ====================
68 cx25840: decoder set picture bright=128 contrast=63 saturation=64 hue=0
69 cx25840: decoder set picture bright=128 contrast=63 saturation=63 hue=0
70 cx25840: decoder set picture bright=127 contrast=63 saturation=63 hue=0
71 cx25840: decoder set picture bright=127 contrast=63 saturation=63 hue=0
72 cx25840: decoder disable output
73 cx25840: decoder enable output
74 cx25840: decoder set norm NTSC
75 cx25840: decoder set input (6)
76 cx25840: now setting Tuner input
77 cx25840: set audio input (0)
78 mark@gandalf ~ $
79
80 I may be wrong but this seems like an i2c problem. Not sure though.
81
82 Here I've turned on i2c debug messages here to see if anything looks
83 important. It seems that i2c goes along and then bails out:
84
85 cx25840: requesting /lib/modules/HcwMakoA.ROM
86 i2c_adapter i2c-0: master_send: writing 3 bytes.
87 i2c_adapter i2c-0: master_send: writing 3 bytes.
88 i2c_adapter i2c-0: master_send: writing 2 bytes.
89 i2c_adapter i2c-0: master_recv: reading 1 bytes.
90 i2c_adapter i2c-0: master_recv: return:1 (count:1, addr:0x44)
91 i2c_adapter i2c-0: master_send: writing 3 bytes.
92 i2c_adapter i2c-0: master_send: writing 2 bytes.
93 i2c_adapter i2c-0: master_recv: reading 1 bytes.
94 i2c_adapter i2c-0: master_recv: return:1 (count:1, addr:0x44)
95 i2c_adapter i2c-0: master_send: writing 3 bytes.
96 i2c_adapter i2c-0: master_send: writing 2 bytes.
97 i2c_adapter i2c-0: master_recv: reading 1 bytes.
98 i2c_adapter i2c-0: master_recv: return:1 (count:1, addr:0x44)
99 i2c_adapter i2c-0: master_send: writing 3 bytes.
100 i2c_adapter i2c-0: master_send: writing 2 bytes.
101 i2c_adapter i2c-0: master_recv: reading 1 bytes.
102 i2c_adapter i2c-0: master_recv: return:1 (count:1, addr:0x44)
103 i2c_adapter i2c-0: master_send: writing 3 bytes.
104 i2c_adapter i2c-0: master_send: writing 1024 bytes.
105 i2c_adapter i2c-0: master_send: writing 1024 bytes.
106 i2c_adapter i2c-0: master_send: writing 1024 bytes.
107 i2c_adapter i2c-0: master_send: writing 1024 bytes.
108 i2c_adapter i2c-0: master_send: writing 1024 bytes.
109 i2c_adapter i2c-0: master_send: writing 1024 bytes.
110 i2c_adapter i2c-0: master_send: writing 1024 bytes.
111 i2c_adapter i2c-0: master_send: writing 1024 bytes.
112 i2c_adapter i2c-0: master_send: writing 1024 bytes.
113 i2c_adapter i2c-0: master_send: writing 1024 bytes.
114 i2c_adapter i2c-0: master_send: writing 1024 bytes.
115 i2c_adapter i2c-0: master_send: writing 1024 bytes.
116 i2c_adapter i2c-0: master_send: writing 1024 bytes.
117 i2c_adapter i2c-0: sendbytes: error - bailout.
118 cx25840: fast fw load failed
119
120 Using 2.6.11-gentoo-r11 the tuner modules loads fine:
121
122 Linux video capture interface: v1.00
123 ivtv: ==================== START INIT IVTV ====================
124 ivtv: version 0.3.6 (x) loading
125 ivtv: Linux version: 2.6.11-gentoo-r9 preempt K7 4KSTACKS gcc-3.3
126 ivtv: In case of problems please include the debug info
127 ivtv: between the START INIT IVTV and END INIT IVTV lines when
128 ivtv: mailing the ivtv-devel mailinglist.
129 ivtv: Autodetected WinTV PVR 150 card
130 ivtv: Found an iTVC16 based chip
131 ACPI: PCI Interrupt Link [LNK1] enabled at IRQ 11
132 ACPI: PCI interrupt 0000:01:0a.0[A] -> GSI 11 (level, low) -> IRQ 11
133 ivtv: Unreasonably low latency timer, setting to 64 (was 32)
134 ivtv: XXX PCI device: 0x01e0 vendor: 0x10de
135 tveeprom: Hauppauge: model = 26032, rev = C199, serial# = 2978579
136 tveeprom: tuner = TCL 2002N 5H (idx = 99, type = 50)
137 tveeprom: tuner fmt = NTSC(M) (eeprom = 0x08, v4l2 = 0x00001000)
138 tveeprom: audio_processor = TDA9850 (type = 3)
139 ivtv: i2c attach [client=tveeprom[50],ok]
140 ivtv: Tuner Type 50, Tuner formats 0x00001000, Radio: yes, Model
141 0x008d1659, Revision 0x00000000
142 ivtv: NTSC tuner detected
143 ivtv: Radio detected
144 tuner: Ignoring new-style parameters in presence of obsolete ones
145 tuner: chip found at addr 0xc2 i2c-bus ivtv i2c driver #0
146 ivtv: i2c attach [client=(tuner unset),ok]
147 cx25840: starting probe for adapter ivtv i2c driver #0 (0x10005)
148 cx25840: detecting cx25840 client on address 0x88
149 cx25840: cx25841-23 found. Initializing...
150 cx25840: requesting /lib/modules/HcwMakoA.ROM
151 kjournald starting. Commit interval 5 seconds
152 i2c_adapter i2c-2: sendbytes: error - bailout.
153 cx25840: fast fw load failed
154 cx25840: firmware load failed
155 ivtv: i2c attach [client=cx25840[50],ok]
156 ivtv: i2c attach [client=wm8775[50],ok]
157 ivtv: Encoder revision: 0x02040024
158 ivtv: Encoder Firmware may be buggy, use version 0x02040011
159 ivtv: Configuring WinTV PVR 150 card with 5 streams
160 ivtv: Registered v4l2 device for encoder MPEG minor 0
161 ivtv: Create DMA encoder MPEG stream: 0 x 32768 buffers (0KB total)
162 ivtv: Registered v4l2 device for encoder YUV minor 32
163 ivtv: Create DMA encoder YUV stream: 0 x 10800 buffers (0KB total)
164 ivtv: Registered v4l2 device for encoder VBI minor 224
165 ivtv: Create DMA encoder VBI stream: 0 x 8736 buffers (0KB total)
166 ivtv: Registered v4l2 device for encoder PCM audio minor 24
167 ivtv: Create DMA encoder PCM audio stream: 0 x 4608 buffers (0KB total)
168 ivtv: Registered v4l2 device for encoder radio minor 64
169 ivtv: Create encoder radio stream
170 ivtv: Setting Tuner 50
171 tuner: type set to 50 (TCL 2002N) by ivtv i2c driver #0
172 cx25840: decoder set norm NTSC
173 ivtv: ivtv_enc_thread: pid = 7492, itv = 0xe0a33b60
174 ivtv: ivtv_enc_vbi_thread: pid = 7493, itv = 0xe0a33b60
175 cx25840: decoder set input (6)
176 cx25840: now setting Tuner input
177 cx25840: set audio input (0)
178 ivtv: Switching standard to NTSC.
179 cx25840: decoder set norm NTSC
180 ivtv: Initialized WinTV PVR 150, card #0
181 ivtv: ==================== END INIT IVTV ====================
182 cx25840: decoder set picture bright=128 contrast=63 saturation=64 hue=0
183 cx25840: decoder set picture bright=128 contrast=63 saturation=63 hue=0
184 cx25840: decoder set picture bright=127 contrast=63 saturation=63 hue=0
185 cx25840: decoder set picture bright=127 contrast=63 saturation=63 hue=0
186 cx25840: decoder disable output
187 cx25840: decoder enable output
188 cx25840: decoder set norm NTSC
189 cx25840: decoder set input (6)
190 cx25840: now setting Tuner input
191 cx25840: set audio input (0)
192 mark@gandalf ~ $
193
194 Thanks in advance for any ideas. The machine is an NForce2 Athlon
195 2500+ box. IT's run Gentoo fine for 2 years and has been a Myth
196 backend machine for about 4 months.
197
198 Cheers,
199 Mark
200
201 --
202 gentoo-user@g.o mailing list