的是黑屏,同志们进来指导下小弟 有图有详细信息..."/>
arm linux usb 摄像头 休眠,移植USB摄像头到ARM linux平台,显示的是黑屏,同志们进来指导下小弟 有图有详细信息...
板子是华恒270,内核2.6.10
usb摄像头信息
udi = '/org/freedesktop/Hal/devices/usb_device_ac8_301b_noserial'
info.linux.driver = 'usb' (string)
info.parent = '/org/freedesktop/Hal/devices/usb_device_1d6b_1_0000_00_1d_1' (string)
info.product = 'ZC0301 WebCam' (string)
info.subsystem = 'usb_device' (string)
info.udi = '/org/freedesktop/Hal/devices/usb_device_ac8_301b_noserial' (string)
info.vendor = 'Z-Star Microelectronics Corp.' (string)
linux.device_file = '/dev/bus/usb/003/004' (string)
linux.hotplug_type = 2 (0x2) (int)
linux.subsystem = 'usb' (string)
linux.sysfs_path = '/sys/devices/pci0000:00/0000:00:1d.1/usb3/3-1' (string)
usb_device.bus_number = 3 (0x3) (int)
usb_device.can_wake_up = true (bool)
usb_device.device_class = 255 (0xff) (int)
usb_device.device_protocol = 0 (0x0) (int)
usb_device.device_revision_bcd = 256 (0x100) (int)
usb_device.device_subclass = 0 (0x0) (int)
usb_device.is_self_powered = false (bool)
usb_device.linux.device_number = 4 (0x4) (int)
usb_device.linux.sysfs_path = '/sys/devices/pci0000:00/0000:00:1d.1/usb3/3-1' (string)
usb_device.num_configurations = 1 (0x1) (int)
usb_device.num_ports = 0 (0x0) (int)
usb_device.product = 'ZC0301 WebCam' (string)
usb_device.product_id = 12315 (0x301b) (int)
usb_device.speed = 12.0 (12) (double)
usb_device.vendor = 'Z-Star Microelectronics Corp.' (string)
usb_device.vendor_id = 2760 (0xac8) (int)
usb_device.version = 1.1 (1.1) (double)
驱动用的是(移植到arm上)
gspcav1-20071224.tar.gz
服务器用的是(arm平台)
servfox-R1_1_3
客户端用的是
spcaview-20071224
ARM启动信息
Uncompressing Linux.............................................................
Linux version 2.6.10 (root@ubuntu) (gcc version 3.3.2) #1181 Sat Oct 10 21:26:29
CPU: XScale-PXA270 [69054117] revision 7 (ARMv5TE)
CPU: D VIVT undefined 5 cache
CPU: I cache: 32768 bytes, associativity 32, 32 byte lines, 32 sets
CPU: D cache: 32768 bytes, associativity 32, 32 byte lines, 32 sets
Machine: Intel HCDDBBVA0 Development Platform (aka Mainstone)
Memory policy: ECC disabled, Data cache writeback
Run Mode clock: 403.00MHz (*31)
Turbo Mode clock: 403.00MHz (*1.0, active)
Memory clock: 100.75MHz (/4)
System bus clock: 201.50MHz
Built 1 zonelists
Kernel command line: root=/dev/ram initrd=0xa0800000,0x400000 mem=64M init=/lin0
PID hash table entries: 512 (order: 9, 8192 bytes)
Console: colour dummy device 80x30
Dentry cache hash table entries: 16384 (order: 4, 65536 bytes)
Inode-cache hash table entries: 8192 (order: 3, 32768 bytes)
Memory: 64MB = 64MB total
Memory: 57616KB available (2027K code, 942K data, 104K init)
Calibrating delay loop... 402.22 BogoMIPS (lpj=2011136)
Mount-cache hash table entries: 512 (order: 0, 4096 bytes)
CPU: Testing write buffer coherency: ok
checking if image is initramfs...it isn't (no cpio magic); looks like an initrd
Freeing initrd memory: 4096K
netlink_proto_init
NET: Registered protocol family 16
netlink_proto_init end
SCSI subsystem initialized
usbcore: registered new driver hub
NetWinder Floating Point Emulator V0.97 (double precision)
devfs: 2004-01-31 Richard Gooch (rgooch@atnf.csiro.au)
devfs: boot_options: 0x1
init spi buff success
Keyboard(PS/2): initiate successfully!
PXA270 RTC, (c) 2004 Simtec Electronics
/***** ENTER pxa270_rtc_probe *****/
Non-volatile memory driver v1.2
ttyS0 at MMIO 0x40100000 (irq = 22) is a FFUART
ttyS1 at MMIO 0x40200000 (irq = 21) is a BTUART
ttyS2 at MMIO 0x40700000 (irq = 20) is a STUART
io scheduler noop registered
RAMDISK driver initialized: 16 RAM disks of 8192K size 1024 blocksize
DM9000 ethernet driver V1.26 I/O: c4812300, VID: 90000a46
Linux video capture interface: v1.00
Uniform Multi-Platform E-IDE driver Revision: 7.00alpha2
ide: Assuming 50MHz system bus speed for PIO modes; override with idebus=xx
CPCI405IDE INTERFACE INIT
ioremap:c4814000
ide0: CPCI405 IDE interface
Setting port 3 power failed.
pxa27x-ohci pxa27x-ohci: new USB bus registered, assigned bus number 1
hub 1-0:1.0: USB hub found
hub 1-0:1.0: 2 ports detected
usbcore: registered new driver gspca
drivers/usb/media/gspcav1-20071224/gspca_core.c: gspca driver 01.00.20 registerd
mice: PS/2 mouse device common for all mice
uda1380 driver version 1.0.0, build time:Oct 10 2009,21:25:52
audio dma channel alloc success : out channel 17 ; in channel 18
I2C Test OK
NET: Registered protocol family 2
IP: routing cache hash table of 512 buckets, 4Kbytes
TCP: Hash tables configured (established 4096 bind 8192)
NET: Registered protocol family 17
now ....
RAMDISK: Compressed image found at block 0
usb 1-1: new full speed USB device using pxa27x-ohci and address 2
drivers/usb/media/gspcav1-20071224/gspca_core.c: USB GSPCA camera found.(ZC3XX)可以看出摄像头已经被识别了
VFS: Mounted root (ext2 filesystem) readonly.
Mounted devfs on /dev
Freeing init memory: 104K
execute_command = /linuxrc
mount /etc as ramfs
re-create the /etc/mtab entries
enable_irq(10) unbalanced from c012057c
syslogd: Couldn't get file descriptor for socket /dev/log: Address family not sl
Creating writable /tmp
BusyBox v1.01 (2006.10.31-09:16+0000) Built-in shell (ash)
Enter 'help' for a list of built-in commands.
启动servfox时的信息[服务器]
/tmp/view # ./servfox -g -d /dev/video0 -w 7070
servfox version: 1.1.3 date: 11:12:2005 (C) mxhaard@magic.fr
usb 1-1: servfox timed out on ep0in
usb 1-1: servfox timed out on ep0in
wrong spca5xx device
VIDIOCSWIN failed
: Invalid argument
Waiting .... for connection. CTrl_c to stop !!!!
启动spcaview时的信息[客户端]
yytt@ubuntu:~$ spcaview -p 10 -w 172.23.4.222:7070
Spcaview version: 1.1.8 date: 25:12:2007 (C) mxhaard@magic.fr
using Server 172.23.4.222 Port 7070
yytt@ubuntu:~$ spcaview -w 172.23.4.222:7070
Spcaview version: 1.1.8 date: 25:12:2007 (C) mxhaard@magic.fr
using Server 172.23.4.222 Port 7070
bright 32768 contrast 32768
结果显示的图片
(原文件名:Screenshot.png)
从启动信息可以看出摄像头已经被驱动,但是不能显示图片,而是黑屏,困扰好久了,兄弟伙帮小弟看看阿!
更多推荐
arm linux usb 摄像头 休眠,移植USB摄像头到ARM linux平台,显示的是黑屏,同志们进来指导下小弟 有图有详细信息...
发布评论