ts-7000
[Top] [All Lists]

[ts-7000] Re: TS-7800 ioctl issues while using v4l and webcams

To:
Subject: [ts-7000] Re: TS-7800 ioctl issues while using v4l and webcams
From: "tigordito" <>
Date: Sat, 29 Mar 2008 13:14:10 -0000
Hello Andrew,

Here is a simple strace of setpwc, a software to get the webcam info.

It's working fine on the dev machine and TS7300 but not on the TS7800.
I don't see anything wrong on the TS7300 trace except the ioctl 
errors.


>From the TS7800:

:root# strace setpwc -p
execve("/usr/bin/setpwc", ["setpwc", "-p"], [/* 13 vars */]) = 0
uname({sys="Linux", node="ts7800", ...}) = 0
brk(0)                                  = 0x14000
access("/etc/ld.so.nohwcap", F_OK)      = -1 ENOENT (No such file or 
directory)
mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -
1, 0) = 0x40015000
access("/etc/ld.so.preload", R_OK)      = -1 ENOENT (No such file or 
directory)
open("/etc/ld.so.cache", O_RDONLY)      = 3
fstat64(3, {st_mode=S_IFREG|0644, st_size=14176, ...}) = 0
mmap2(NULL, 14176, PROT_READ, MAP_PRIVATE, 3, 0) = 0x40016000
close(3)                                = 0
access("/etc/ld.so.nohwcap", F_OK)      = -1 ENOENT (No such file or 
directory)
open("/lib/libc.so.6", O_RDONLY)        = 3
read(3, "\177ELF\1\1\1a\0\0\0\0\0\0\0\0\3\0(\0\1\0\0\0HO\1\0004"..., 
512) = 512
fstat64(3, {st_mode=S_IFREG|0755, st_size=1091040, ...}) = 0
mmap2(NULL, 1128068, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 
3, 0) = 0x4001e000
mprotect(0x40125000, 50820, PROT_NONE)  = 0
mmap2(0x4012c000, 12288, PROT_READ|PROT_WRITE, 
MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x106) = 0x4012c000
mmap2(0x4012f000, 9860, PROT_READ|PROT_WRITE, 
MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x4012f000
close(3)                                = 0
mprotect(0x4012c000, 8192, PROT_READ)   = 0
mprotect(0x4001c000, 4096, PROT_READ)   = 0
munmap(0x40016000, 14176)               = 0
write(2, "setpwc v1.1, (C) 2003-2005 by fo"..., 53setpwc v1.1, (C) 
2003-2005 by 
) = 53
open("/dev/video0", O_RDWR)             = 3
ioctl(3, EXT2_IOC_GETVERSION or VIDIOCGCAP, 0xbefd2d04) = 0
fstat64(1, {st_mode=S_IFCHR|0600, st_rdev=makedev(4, 64), ...}) = 0
ioctl(1, SNDCTL_TMR_TIMEBASE or TCGETS, {B115200 opost isig icanon 
echo ...}) = 0
mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -
1, 0) = 0x40016000
write(1, "Current device: Logitech QuickCa"..., 39Current device: 
Logitech QuickCam Zoom
) = 39
ioctl(3, 0x802476c7, 0xbefd2d40)        = 0
write(1, "VIDIOCPWCPROBE returns: Logitech"..., 53VIDIOCPWCPROBE 
returns: Logitech QuickCam Zoom - 740
) = 53
ioctl(3, 0x802076c6, 0xbefd2d64)        = -1 EINVAL (Invalid argument)
write(2, "Error while doing ioctl VIDIOCPW"..., 59Error while doing 
ioctl VIDIOCPWCGSERIAL: Invalid argument
) = 59
write(1, "Serial number: \202\1\n", 18Serial number:
) = 18
ioctl(3, SONYPI_IOCSBLUE or VIDIOCGWIN, 0xbefd2d84) = 0
write(1, "Resolution (x, y): 176, 144\n", 28Resolution (x, y): 176, 
144
) = 28
write(1, "Offset: 0, 0\n", 13Offset: 0, 0
)          = 13
write(1, "Framerate: 10\n", 14Framerate: 10
)         = 14
ioctl(3, VIDIOCGPICT, 0xbefd2dc8)       = -1 EINVAL (Invalid argument)
write(2, "Error while doing ioctl VIDIOCGP"..., 54Error while doing 
ioctl VIDIOCGPICT: Invalid argument
) = 54
write(1, "Brightness: 11812\n", 18Brightness: 11812
)     = 18
write(1, "Hue: 48893\n", 11Hue: 48893
)            = 11
write(1, "Colour: 12624\n", 14Colour: 12624
)         = 14
write(1, "Contrast: 1\n", 12Contrast: 1
)           = 12
write(1, "Whiteness: 2\n", 13Whiteness: 2
)          = 13
write(1, "Palette: Unknown! (39720)\n", 26Palette: Unknown! (39720)
) = 26
ioctl(3, MEYEIOC_SYNC, 0xbefd2dec)      = 0
write(1, "Compression preference: 1\n", 26Compression preference: 1
) = 26
ioctl(3, 0x800476c8, 0xbefd2dec)        = 0
write(1, "Automatic gain control: -2502\n", 30Automatic gain 
control: -2502
) = 30
ioctl(3, 0x801476ca, 0xbefd2da4)        = 0
write(1, "Whitebalance mode: auto\n", 24Whitebalance mode: auto
) = 24
ioctl(3, 0x800876cd, 0xbefd2de4)        = -1 EPIPE (Broken pipe)
write(1, "Blinking of LED is not supported"..., 52Blinking of LED is 
not supported by the combination
) = 52
write(1, "of your webcam and the driver.\n", 31of your webcam and the 
driver.
) = 31
ioctl(3, 0x800476ce, 0xbefd2dec)        = 0
write(1, "Sharpness: -1\n", 14Sharpness: -1
)         = 14
ioctl(3, 0x800476cf, 0xbefd2dec)        = 0
write(1, "Backlight compensation mode: on\n", 32Backlight 
compensation mode: on
) = 32
ioctl(3, 0x800476d0, 0xbefd2dec)        = 0
write(1, "Anti-flicker mode: on\n", 22Anti-flicker mode: on
) = 22
ioctl(3, 0x800476d1, 0xbefd2dec)        = 0
write(1, "Noise reduction mode: 2 \n", 25Noise reduction mode: 2
) = 25
ioctl(3, 0x801076d3, 0xbefd2db8)        = -1 ENXIO (No such device or 
address)
write(1, "Pan/tilt range is not supported "..., 51Pan/tilt range is 
not supported by the combination
) = 51
write(1, "of your webcam and the driver.\n", 31of your webcam and the 
driver.
) = 31
ioctl(3, 0x800c76d4, 0xbefd2dd8)        = -1 ENXIO (No such device or 
address)
write(1, "Get pan/tilt position is not sup"..., 58Get pan/tilt 
position is not supported by the combination
) = 58
write(1, "of your webcam and the driver.\n", 31of your webcam and the 
driver.
) = 31
close(3)                                = 0
munmap(0x40016000, 4096)                = 0
io_submit(0, 0, 0x8 <unfinished ... exit status 0>
Process 978 detached




>From a working 2.6:

robotdev:/home/interdit# strace setpwc -p
execve("/usr/bin/setpwc", ["setpwc", "-p"], [/* 28 vars */]) = 0
uname({sys="Linux", node="robotdev", ...}) = 0
brk(0)                                  = 0x804d000
access("/etc/ld.so.nohwcap", F_OK)      = -1 ENOENT (No such file or 
directory)
mmap2(NULL, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -
1, 0) = 0xb7f6c000
access("/etc/ld.so.preload", R_OK)      = -1 ENOENT (No such file or 
directory)
open("/etc/ld.so.cache", O_RDONLY)      = 3
fstat64(3, {st_mode=S_IFREG|0644, st_size=49616, ...}) = 0
mmap2(NULL, 49616, PROT_READ, MAP_PRIVATE, 3, 0) = 0xb7f5f000
close(3)                                = 0
access("/etc/ld.so.nohwcap", F_OK)      = -1 ENOENT (No such file or 
directory)
open("/lib/tls/i686/cmov/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\240O\1"..., 
512) = 512
fstat64(3, {st_mode=S_IFREG|0644, st_size=1241392, ...}) = 0
mmap2(NULL, 1247388, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 
3, 0) = 0xb7e2e000
mmap2(0xb7f55000, 28672, PROT_READ|PROT_WRITE, 
MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x127) = 0xb7f55000
mmap2(0xb7f5c000, 10396, PROT_READ|PROT_WRITE, 
MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0xb7f5c000
close(3)                                = 0
mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -
1, 0) = 0xb7e2d000
mprotect(0xb7f55000, 20480, PROT_READ)  = 0
set_thread_area({entry_number:-1 -> 6, base_addr:0xb7e2d8e0, 
limit:1048575, seg_32bit:1, contents:0, read_exec_only:0, 
limit_in_pages:1, seg_not_present:0, useable:1}) = 0
munmap(0xb7f5f000, 49616)               = 0
write(2, "setpwc v1.1, (C) 2003-2005 by fo"..., 53setpwc v1.1, (C) 
2003-2005 by 
) = 53
open("/dev/video0", O_RDWR)             = 3
ioctl(3, EXT2_IOC_GETVERSION or VIDIOCGCAP, 0xbfc68630) = 0
fstat64(1, {st_mode=S_IFCHR|0620, st_rdev=makedev(136, 1), ...}) = 0
mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -
1, 0) = 0xb7f6b000
write(1, "Current device: Logitech QuickCa"..., 39Current device: 
Logitech QuickCam Zoom
) = 39
ioctl(3, 0x802476c7, 0xbfc6866c)        = 0
write(1, "VIDIOCPWCPROBE returns: Logitech"..., 53VIDIOCPWCPROBE 
returns: Logitech QuickCam Zoom - 740
) = 53
ioctl(3, 0x801e76c6, 0xbfc686b2)        = 0
write(1, "Serial number: \n", 16Serial number:
)       = 16
ioctl(3, SONYPI_IOCSBLUE or VIDIOCGWIN, 0xbfc68690) = 0
write(1, "Resolution (x, y): 320, 240\n", 28Resolution (x, y): 320, 
240
) = 28
write(1, "Offset: 0, 0\n", 13Offset: 0, 0
)          = 13
write(1, "Framerate: 10\n", 14Framerate: 10
)         = 14
ioctl(3, VIDIOCGPICT, 0xbfc686f6)       = 0
write(1, "Brightness: 32256\n", 18Brightness: 32256
)     = 18
write(1, "Hue: 65535\n", 11Hue: 65535
)            = 11
write(1, "Colour: 32768\n", 14Colour: 32768
)         = 14
write(1, "Contrast: 32768\n", 16Contrast: 32768
)       = 16
write(1, "Whiteness: 49152\n", 17Whiteness: 49152
)      = 17
write(1, "Palette: YUV 4:2:0 Planar\n", 26Palette: YUV 4:2:0 Planar
) = 26
ioctl(3, MEYEIOC_SYNC, 0xbfc68718)      = 0
write(1, "Compression preference: 1\n", 26Compression preference: 1
) = 26
ioctl(3, 0x800476c8, 0xbfc68718)        = 0
write(1, "Automatic gain control: -3320\n", 30Automatic gain 
control: -3320
) = 30
ioctl(3, 0x801476ca, 0xbfc686d0)        = 0
write(1, "Whitebalance mode: auto\n", 24Whitebalance mode: auto
) = 24
ioctl(3, 0x800876cd, 0xbfc68710)        = -1 EPIPE (Broken pipe)
write(1, "Blinking of LED is not supported"..., 52Blinking of LED is 
not supported by the combination
) = 52
write(1, "of your webcam and the driver.\n", 31of your webcam and the 
driver.
) = 31
ioctl(3, 0x800476ce, 0xbfc68718)        = 0
write(1, "Sharpness: -1\n", 14Sharpness: -1
)         = 14
ioctl(3, 0x800476cf, 0xbfc68718)        = 0
write(1, "Backlight compensation mode: on\n", 32Backlight 
compensation mode: on
) = 32
ioctl(3, 0x800476d0, 0xbfc68718)        = 0
write(1, "Anti-flicker mode: on\n", 22Anti-flicker mode: on
) = 22
ioctl(3, 0x800476d1, 0xbfc68718)        = 0
write(1, "Noise reduction mode: 2 \n", 25Noise reduction mode: 2
) = 25
ioctl(3, 0x801076d3, 0xbfc686e4)        = -1 ENXIO (No such device or 
address)
write(1, "Pan/tilt range is not supported "..., 51Pan/tilt range is 
not supported by the combination
) = 51
write(1, "of your webcam and the driver.\n", 31of your webcam and the 
driver.
) = 31
ioctl(3, 0x800c76d4, 0xbfc68704)        = -1 ENXIO (No such device or 
address)
write(1, "Get pan/tilt position is not sup"..., 58Get pan/tilt 
position is not supported by the combination
) = 58
write(1, "of your webcam and the driver.\n", 31of your webcam and the 
driver.
) = 31
close(3)                                = 0
munmap(0xb7f6b000, 4096)                = 0
exit_group(0)                           = ?
Process 6189 detached


Thanks,
Francois


------------------------------------

Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/ts-7000/

<*> Your email settings:
    Individual Email | Traditional

<*> To change settings online go to:
    http://groups.yahoo.com/group/ts-7000/join
    (Yahoo! ID required)

<*> To change settings via email:
     
    

<*> To unsubscribe from this group, send an email to:
    

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/

<Prev in Thread] Current Thread [Next in Thread>
Admin

Disclaimer: Neither Andrew Taylor nor the University of NSW School of Computer and Engineering take any responsibility for the contents of this archive. It is purely a compilation of material sent by many people to the birding-aus mailing list. It has not been checked for accuracy nor its content verified in any way. If you wish to get material removed from the archive or have other queries about the archive e-mail Andrew Taylor at this address: andrewt@cse.unsw.EDU.AU