Log in Register FAQ Memberlist Search pcHDTV Forum Index
pcHDTV Forum

pcHDTV Forum Index -> General pcHDTV topics -> Can't scan
Post new topic  This topic is locked: you cannot edit posts or make replies. View previous topic :: View next topic 
Can't scan
PostPosted: Fri Feb 27, 2004 1:12 pm Reply with quote
jimbolaya
 
Joined: 28 Jan 2004
Posts: 4




I've been working on getting my card running for a while now. I'm using Gentoo with 2.6.3 and 2.4.24.

I've gotten to the point where nothing freezes or crashes with kernel 2.6.3. However, since I can't seem to use v4l on 2.6.3, lirc doesn't work too well on 2.6.3 and I can't get anything to actually go using v4l2, I've decided to try to back up to kernel 2.4.24.

I managed to get everything to compile fine using kernel 2.4.24 and the VoodooTV 200 card works fine, but whenever I try to use the hdtv card, it just hangs when it attempts to open it. I finally tried doing an strace, and this is what I found:

Code:


lindvr tools # strace ./scan /dev/v4l/video32
execve("./scan", ["./scan", "/dev/v4l/video32"], [/* 34 vars */]) = 0
uname({sys="Linux", node="lindvr", ...}) = 0
brk(0)                                  = 0x8095c44
open("/etc/ld.so.preload", O_RDONLY)    = -1 ENOENT (No such file or directory)
open("/etc/ld.so.cache", O_RDONLY)      = 3
fstat64(3, {st_mode=S_IFREG|0644, st_size=38876, ...}) = 0
mmap2(NULL, 38876, PROT_READ, MAP_PRIVATE, 3, 0) = 0x40015000
close(3)                                = 0
open("/lib/libc.so.6", O_RDONLY)        = 3
read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0\220]\1"..., 512) = 512
fstat64(3, {st_mode=S_IFREG|0755, st_size=1301472, ...}) = 0
mmap2(NULL, 1238724, PROT_READ|PROT_EXEC, MAP_PRIVATE, 3, 0) = 0x4001f000
mmap2(0x40148000, 12288, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED, 3, 0x129) = 0x4
0148000
mmap2(0x4014b000, 9924, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1
, 0) = 0x4014b000
close(3)                                = 0
mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x4014e00
0
munmap(0x40015000, 38876)               = 0
open("/dev/urandom", O_RDONLY)          = 3
read(3, "\237v\363\3R\303\261\307\255C\353\361D\374\276\20\305b"..., 32) = 32
close(3)                                = 0
write(2, "main: argc 2 argv[1] /dev/v4l/vi"..., 38main: argc 2 argv[1] /dev/v4l/video
32
) = 38
open("/dev/v4l/video32", O_RDWR




And there it sits until I reboot.

I would love to move forward and use v4l2 instead, but I can't get my Voodoo TV card to work right and I get no indication of signal at all from dtvsignal whether I'm using ntsc or atsc.

James
View user's profile Send private message
Re: Can't scan
PostPosted: Fri Feb 27, 2004 6:11 pm Reply with quote
Ulmo
 
Joined: 06 Nov 2003
Posts: 95
Location: Aptos,CA,USA




No solutions; just comments:

jimbolaya wrote:
I've been working on getting my card running for a while now. I'm using Gentoo with 2.6.3 and 2.4.24.

I've gotten to the point where nothing freezes or crashes with kernel 2.6.3. However, since I can't seem to use v4l on 2.6.3, lirc doesn't work too well on 2.6.3 and I can't get anything to actually go using v4l2, I've decided to try to back up to kernel 2.4.24.


I noticed Gentoo's sys-kernel/gentoo-dev-sources-2.6.3-r1 had patches for lirc; I don't know what they are, though, nor have I tested that version.

Kernel 2.4.25 fixes some security bugs in 2.4.24; consider upgrading (I don't know the details, but I think it had to do with shell users). Once again, Gentoo has sys-kernel/vanilla-sources-2.4.25, but their vanilla is full of flavor, so I'm not sure there's an easy path to patch HDTV drivers into that.

V4L1 support in 2.6 seems a lot more broken than in 2.4 (since it's no longer supported as much). I doubt trying options to force V4L1 use in 2.6 programs helps much, but I might as well mention that possibility.

Quote:
I managed to get everything to compile fine using kernel 2.4.24 and the VoodooTV 200 card works fine, but whenever I try to use the hdtv card, it just hangs when it attempts to open it. I finally tried doing an strace, and this is what I found:

Code:


lindvr tools # strace ./scan /dev/v4l/video32
[...]
write(2, "main: argc 2 argv[1] /dev/v4l/vi"..., 38main: argc 2 argv[1] /dev/v4l/video
32
) = 38
open("/dev/v4l/video32", O_RDWR




And there it sits until I reboot.


This is useful: we know it's hanging on open. However, try to compile as module, load with "bttv_debug=4" or something option, and then give debug output of kernel (text mode screen ALT-F12 (try shift-alt-f12 from X?) or /var/log/messages or something; dmesg if your system is still running; since reboot usually causes loss of the end of files, you should probably do something like "sleep 5;strace programthatusesdtv args", then hit ALT-F12 (or shift-alt-f12) to watch it before it's done sleeping).

Quote:
I would love to move forward and use v4l2 instead, but I can't get my Voodoo TV card to work right and I get no indication of signal at all from dtvsignal whether I'm using ntsc or atsc.

James


I wonder if the many versions of dtvsignal I've created are messing you up. The two that should work right are my latest one and about any of the original ones unmodified by me, plus a lot in between (but why bother with any of my older development versions?) I keep breaking it, fixing it, breaking it, fixing it, etc.. I just made another version that is more likely to compile right in more setups. Also try non-signal oriented programs, like testinfo, mplayer, and others that don't rely on signal as much like dtvscan, etc.. BTW, I assume you have a program scan that is not MH's scan (which I've been using since I finally started using MH near the beginning of 1990's decade, but has been around for a lot longer).
View user's profile Send private message Send e-mail
Can't scan
  pcHDTV Forum Index -> General pcHDTV topics
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
All times are GMT - 7 Hours  
Page 1 of 1  

  
  
 Post new topic  This topic is locked: you cannot edit posts or make replies.  


Powered by phpBB © 2001-2003 phpBB Group
Theme created by Vjacheslav Trushkin