Anssi Hannula wrote:
Klaus Schmidinger wrote:(resent message, first mail didn't get through since I used wrong "from" address)Anssi Hannula wrote: ...Here's the rev2 patch. I made some slight modifications, and added some verbosive debug code (and removed the default debug=1 from Makefile).
Try first insmod kfir.ko debug=1
If it freezes when opening, try with debug=2 (may be *very* verbose)
With debug=2 maybe you should keep a console window open with 'cat /proc/kmsg' so you can see the latest messages before freeze if they don't make it into the syslog.
Now it doesn't freeze any more, but there's no data coming out of /dev/video0, either.
Could you post a log of working 2.4 session (insmod and cat) with the
debug=1?
modprobe videodev modprobe i2c-core modprobe i2c-algo-bit insmod saa7113.o insmod kfir.o vidinput=0 vidrate=3000000 debug=1 streamtype=4 Jan 15 11:16:12 video kernel: Linux video capture interface: v1.00 Jan 15 11:16:25 video kernel: i2c-algo-bit.o: i2c bit algorithm module version 2.7.0 (20021208) Jan 15 11:16:31 video kernel: i2c-core.o: I2C adapter 50000: I2C level transfers not supported Jan 15 11:16:31 video kernel: saa7113: init_module Jan 15 11:16:58 video kernel: kfir: Kfir board revision 5e Jan 15 11:16:58 video kernel: loaded microcode with length 32385 Jan 15 11:17:03 video kernel: kfir: Reset Altera Jan 15 11:17:03 video kernel: kfir: done Jan 15 11:17:03 video kernel: kfir: Reset Kfir and PLL ... done Jan 15 11:17:03 video kernel: kfir: ADSP loading successful Jan 15 11:17:03 video kernel: kfir: ADSP initialization...done Jan 15 11:17:03 video kernel: kfir: segment: 0 Done Jan 15 11:17:03 video kernel: kfir: segment: 1 Done Jan 15 11:17:03 video kernel: kfir: segment: 2 Done Jan 15 11:17:03 video kernel: kfir: segment: 3 Done Jan 15 11:17:03 video kernel: kfir: segment: 4 Done Jan 15 11:17:03 video kernel: kfir: segment: 5 Done Jan 15 11:17:07 video kernel: kfir: Download parameters...kfir: done Jan 15 11:17:07 video kernel: saa7113: version=11 Jan 15 11:17:07 video kernel: saa7113: attaching SAA7113 at 0x4a Jan 15 11:17:07 video kernel: kfir: saa7113 decoder attached Jan 15 11:17:07 video kernel: kfir: i2c attach [SAA7113] Jan 15 11:17:07 video kernel: saa7113: status=81 Jan 15 11:17:07 video kernel: saa7113: attached to adapter kfir #0 Jan 15 11:17:07 video kernel: kfir: Found i2c device at: 0x4a Jan 15 11:17:07 video kernel: kfir: decoder status=7 Jan 15 11:17:27 video kernel: kfir: start recording Jan 15 11:17:27 video kernel: kfir: Download parameters...kfir: done Jan 15 11:17:27 video kernel: eready=00200001 At this point I did cat /dev/video0 > x.x and waited a while, the I did Ctrl+C to stop it. After that it logged Jan 15 11:17:43 video kernel: eready=00200001 The file x.x was about 7MB in size and apparently contained valid TS data. Klaus