[#6849] Can not open /dev/video0 when test ADV7183 in BF561-EZKIT
Submitted By: Vivi Li
Open Date
2011-10-26 05:52:55 Close Date
2012-03-07 21:33:15
Priority:
Medium High Assignee:
Scott Jiang
Status:
Closed Fixed In Release:
N/A
Found In Release:
2011R1 Release:
Category:
N/A Board:
N/A
Processor:
BF561 Silicon Revision:
Is this bug repeatable?:
Yes Resolution:
Fixed
Uboot version or rev.:
Toolchain version or rev.:
gcc4.3-2011R1-RC2
App binary format:
N/A
Summary: Can not open /dev/video0 when test ADV7183 in BF561-EZKIT
Details:
Can not open /dev/video0 when test ADV7183 in BF561-EZKIT in latest trunk.
VS6624 on bf537-stamp can work.
Last passed version:
--
kernel: Linux release 3.0.0-ADI-2011R1-pre-svn10085, build #30 Wed Sep 21 23:02:42 CST 2011, git version 49ec922aac2a5a450210d08ba8481d20030e933c
toolchain: bfin-linux-uclibc-gcc release gcc version 4.3.5 (ADI-2011R1-RC1)
user-dist: release svn-10410, build #331 Wed Sep 21 23:00:13 CST 2011
--
First failed version:
--
kernel: Linux release 3.0.0-ADI-2011R1-pre-svn10088, build #36 Fri Sep 23 02:45:02 CST 2011, git version 6371ea21f2cd76e1086877448afeb07b1d005d98
toolchain: bfin-linux-uclibc-gcc release gcc version 4.3.5 (ADI-2011R1-RC1)
user-dist: release svn-10412, build #400 Fri Sep 23 02:42:33 CST 2011
--
Bellow is the error info:
--
Linux version 3.0.0-ADI-2011R1-pre-svn10098 (test@linux66-561-jtag-capture) (gcc version 4.3.5 (ADI-2011R1-RC2) ) #18 Tue Oct 251
register early platform devices
bootconsole [early_shadow0] enabled
bootconsole [early_BFuart0] enabled
early printk enabled on early_BFuart0
Board Memory: 64MB
Kernel Managed Memory: 64MB
Memory map:
fixedcode = 0x00000400-0x00000490
text = 0x00001000-0x0012cd70
rodata = 0x0012cd70-0x0018cb64
bss = 0x0018d000-0x0019cff4
data = 0x0019d000-0x001ae000
stack = 0x001ac000-0x001ae000
init = 0x001ae000-0x00adb000
available = 0x00adb000-0x03c00000
DMA Zone = 0x03c00000-0x04000000
Hardware Trace active and enabled
Boot Mode: 0
Reset caused by Software reset
Blackfin support (C) 2004-2010 Analog Devices, Inc.
Compiled for ADSP-BF561 Rev 0.5
Blackfin Linux support by http://blackfin.uclinux.org/
Processor Speed: 600 MHz core clock and 100 MHz System Clock
NOMPU: setting up cplb tables
Instruction Cache Enabled for CPU0
External memory: cacheable in instruction cache
L2 SRAM : uncacheable in instruction cache
Data Cache Enabled for CPU0
External memory: cacheable (write-back) in data cache
L2 SRAM : cacheable (write-through) in data cache
Built 1 zonelists in Zone order, mobility grouping off. Total pages: 15240
Kernel command line: root=/dev/mtdblock0 rw clkin_hz=30000000 earlyprintk=serial,uart0,57600 console=ttyBF0,57600 ip=10.100.4.50f
PID hash table entries: 256 (order: -2, 1024 bytes)
Dentry cache hash table entries: 8192 (order: 3, 32768 bytes)
Inode-cache hash table entries: 4096 (order: 2, 16384 bytes)
Memory available: 49716k/65536k RAM, (9396k init code, 1199k kernel code, 517k data, 4096k dma, 612k reserved)
NR_IRQS:153
Configuring Blackfin Priority Driven Interrupts
console [ttyBF0] enabled, bootconsole disabled
console [ttyBF0] enabled, bootconsole disabled
Calibrating delay loop... 1191.93 BogoMIPS (lpj=2383872)
pid_max: default: 32768 minimum: 301
Mount-cache hash table entries: 512
Blackfin Scratchpad data SRAM: 4 KB
Blackfin L1 Data A SRAM: 16 KB (16 KB free)
Blackfin L1 Data B SRAM: 16 KB (16 KB free)
Blackfin L1 Instruction SRAM: 16 KB (15 KB free)
Blackfin L2 SRAM: 128 KB (128 KB free)
NET: Registered protocol family 16
Blackfin DMA Controller
ezkit_init(): registering device resources
bio: create slab <bio-0> at 0
bfin-spi bfin-spi.0: Blackfin on-chip SPI Controller Driver, Version 1.0, regs@ffc00500, dma channel@16
i2c-gpio i2c-gpio.0: using pins 1 (SDA) and 0 (SCL)
Switching to clocksource bfin_cs_cycles
NET: Registered protocol family 2
IP route cache hash table entries: 1024 (order: 0, 4096 bytes)
TCP established hash table entries: 2048 (order: 2, 16384 bytes)
TCP bind hash table entries: 2048 (order: 1, 8192 bytes)
TCP: Hash tables configured (established 2048 bind 2048)
TCP reno registered
UDP hash table entries: 256 (order: 0, 4096 bytes)
UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
NET: Registered protocol family 1
debug-mmrs: setting up Blackfin MMR debugfs
msgmni has been set to 97
io scheduler noop registered (default)
bfin-uart: Blackfin serial driver
bfin-uart.0: ttyBF0 at MMIO 0xffc00400 (irq = 35) is a BFIN-UART
brd: module loaded
physmap platform flash device: 00800000 at 20000000
physmap-flash.0: Found 1 x16 devices at 0x0 in 16-bit bank. Manufacturer ID 0x000020 Chip ID 0x0022ed
Amd/Fujitsu Extended Query Table at 0x0040
Amd/Fujitsu Extended Query version 1.3.
physmap-flash.0: Swapping erase regions for top-boot CFI table.
number of CFI chips: 1
Using physmap partition information
Creating 5 MTD partitions on "physmap-flash.0":
0x000000000000-0x000000040000 : "bootloader(nor)"
0x000000040000-0x000000200000 : "linux kernel(nor)"
0x000000200000-0x0000007f0000 : "file system(nor)"
0x0000007f0000-0x0000007fe000 : "config(nor)"
0x0000007fe000-0x000000800000 : "u-boot env(nor)"
smc91x.c: v1.1, sep 22 2004 by Nicolas Pitre <nico@fluxnic.net>
eth0: SMC91C11xFD (rev 1) at 2c010300 IRQ 82 [nowait]
eth0: Ethernet addr: 00:e0:22:fe:b1:3c
Linux video capture interface: v2.00
ppi probe success
bfin_capture bfin_capture.0: v4l2 device registered
bfin_capture bfin_capture.0: video device registered as: video0
adv7183 0-0020: chip found @ 0x40 (i2c-gpio0)
bfin_capture bfin_capture.0: v4l2 sub device registered
TCP cubic registered
NET: Registered protocol family 17
smc91x smc91x.0: eth0: link down
smc91x smc91x.0: eth0: link up, 100Mbps, full-duplex, lpa 0x41E1
IP-Config: Gateway not on directly connected network.
dma_alloc_init: dma_page @ 0x02523000 - 1024 pages at 0x03c00000
Freeing unused kernel memory: 9396k freed
_____________________________________
a8888b. / Welcome to the uClinux distribution \
d888888b. / _ _ \
8P"YP"Y88 / | | |_| __ __ (TM) |
8|o||o|88 _____/ | | _ ____ _ _ \ \/ / |
8' .88 \ | | | | _ \| | | | \ / |
8`._.' Y8. \ | |__ | | | | | |_| | / \ |
d/ `8b. \ \____||_|_| |_|\____|/_/\_\ |
dP . Y8b. \ For embedded processors including |
d8:' " `::88b \ the Analog Devices Blackfin /
d8" 'Y88b \___________________________________/
:8P ' :888
8a. : _a88P For further information, check out:
._/"Yaa_: .| 88P| - http://blackfin.uclinux.org/
\ YP" `| 8P `. - http://docs.blackfin.uclinux.org/
/ \.___.d| .' - http://www.uclinux.org/
`--..__)8888P`._.' jgs/a:f - http://www.analog.com/blackfin
Have a lot of fun...
BusyBox v1.18.4 (2011-10-25 07:39:50 CST) hush - the humble shell
root:/> dmesg |grep video
Linux video capture interface: v2.00
bfin_capture bfin_capture.0: video device registered as: video0
root:/> dmesg |grep capture
Linux version 3.0.0-ADI-2011R1-pre-svn10098 (test@linux66-561-jtag-capture) (gcc version 4.3.5 (ADI-2011R1-RC2) ) #12 Sun Oct 231
Linux video capture interface: v2.00
bfin_capture bfin_capture.0: v4l2 device registered
bfin_capture bfin_capture.0: video device registered as: video0
bfin_capture bfin_capture.0: v4l2 sub device registered
root:/>
root:/> ffmpeg -f video4linux2 -s ntsc -pix_fmt uyvy422 -r 5 -i /dev/video0 -f m
jpeg udp://10.100.4.174:1234
FFmpeg version SVN-r10450, Copyright (c) 2000-2009 Fabrice Bellard, et ab.
f built nn O_t 2c 20a1 0p:39t16 uithrgcce4.3 5
b coffigiratnon:_--pcefia=/upr -tsouuce-rathe/ho.e/t0st/:ork crusse/uhecboutd/uceinuv-di t/lfb/fmmpet/bu ld/i./fsmpe -svn-20o44 s
clinux-dist/staging/usr/include --extra-ldflags=' -mcpu=bf561-0.5' --enable-static --enable-shared --enable-gpl --enable-postpro-
libavutil 50. 3. 0 / 50. 3. 0
libavcodec 52.37. 0 / 52.37. 0
libavformat 52.39. 2 / 52.39. 2
libavdevice 52. 2. 0 / 52. 2. 0
libswscale 0. 7. 1 / 0. 7. 1
libpostproc 51. 2. 0 / 51. 2. 0
[video4linux2 @ 0x206c010]Cannot open video device /dev/video0 : Invalid argument
/dev/video0: I/O error occurred
Usually that means that input file is truncated and/or corrupted.
root:/>
--
Follow-ups
--- Scott Jiang 2011-10-28 03:00:05
fixed
--- Vivi Li 2011-10-31 23:40:50
OK in 2011R1 branch. Need to verify in trunk.
--- Vivi Li 2012-03-07 22:15:06
OK in trunk.
Close this bug.
Files
Changes
Commits
Dependencies
Duplicates
Associations
Tags
File Name File Type File Size Posted By
config.camera_adv7183 application/octet-stream 34709 Vivi Li