build adv7842 fails for unknown field.
LD drivers/media/firewire/built-in.o^M
LD drivers/media/i2c/soc_camera/built-in.o^M
CC drivers/media/i2c/adv7842.o^M
CC net/core/rtnetlink.o^M
/home/test/workspace/src/kernel/label/BF609-EZKIT-FLAT/linux/linux-kernel/drivers/media/i2c/adv7842.c:38:35: error: media/v4l2-chip-ident.h: No such file or directory^M
/home/test/workspace/src/kernel/label/BF609-EZKIT-FLAT/linux/linux-kernel/drivers/media/i2c/adv7842.c:648: warning: ‘struct v4l2_dbg_chip_ide’ declared inside parameter list^M
/home/test/workspace/src/kernel/label/BF609-EZKIT-FLAT/linux/linux-kernel/drivers/media/i2c/adv7842.c:648: warning: its scope is only this definition or declaration, which is probably not what you want^M
/home/test/workspace/src/kernel/label/BF609-EZKIT-FLAT/linux/linux-kernel/drivers/media/i2c/adv7842.c: In function ‘adv7842_g_chip_ident’:^Mhome/test/workspace/src/kernel/label/BF609-EZKIT-FLAT/linux/linux-kernel/drivers/media/i2c/adv7842.c:652: error: implicit declaration of function ‘v4l2_chip_ident_i2c_client’^M
/home/test/workspace/src/kernel/label/BF609-EZKIT-FLAT/linux/linux-kernel/drivers/media/i2c/adv7842.c:652: error: ‘V4L2_IDENT_ADV7842’ undeed (first use in this function)^M
/home/test/workspace/src/kernel/label/BF609-EZKIT-FLAT/linux/linux-kernel/drivers/media/i2c/adv7842.c:652: error: (Each undeclared identifier is reported only once^M
/home/test/workspace/src/kernel/label/BF609-EZKIT-FLAT/linux/linux-kernel/drivers/media/i2c/adv7842.c:652: error: for each function it appears in.)^M
/home/test/workspace/src/kernel/label/BF609-EZKIT-FLAT/linux/linux-kernel/drivers/media/i2c/adv7842.c: In function ‘adv7842_fill_optional_dv_mings_fields’:^M
/home/test/workspace/src/kernel/label/BF609-EZKIT-FLAT/linux/linux-kernel/drivers/media/i2c/adv7842.c:696: error: implicit declaration of function ‘v4l_match_dv_timings’^M
/home/test/workspace/src/kernel/label/BF609-EZKIT-FLAT/linux/linux-kernel/drivers/media/i2c/adv7842.c: At top level:^M
/home/test/workspace/src/kernel/label/BF609-EZKIT-FLAT/linux/linux-kernel/drivers/media/i2c/adv7842.c:1664: error: unknown field ‘g_chip_iden specified in initializer^M
/home/test/workspace/src/kernel/label/BF609-EZKIT-FLAT/linux/linux-kernel/drivers/media/i2c/adv7842.c:1664: warning: initialization from incompatible pointer type^M
make[5]: *** [drivers/media/i2c/adv7842.o] Error 1^M
make[4]: *** [drivers/media/i2c] Error 2^M
make[3]: *** [drivers/media] Error 2^M
make[2]: *** [drivers] Error 2^M
make[2]: *** Waiting for unfinished jobs....^M
CC net/core/utils.o^M
Remove chip ident since the core now handles this.
It passes now.
Booting kernel from Legacy Image at 02000000 ...
Image Name: bf609-0.0-3.13.0-ADI-2014R1-pre
Image Type: Blackfin Linux Kernel Image (gzip compressed)
Data Size: 7879506 Bytes = 7.5 MiB
Load Address: 00001000
Entry Point: 002fb95c
Verifying Checksum ... OK
Uncompressing Kernel Image ... OK
Starting Kernel at = 002fb95c
Linux version 3.13.0-ADI-2014R1-pre (test@linux88-bf609-flat) (gcc version 4.3.5 (ADI-master/git-a2bfd7b) ) #2 Wed Feb 26 00:15:09 CST 2014
register early platform devices
bootconsole [early_shadow0] enabled
ERROR: Not running on ADSP-BF609: unknown CPUID 0x0000 Rev 0.0
bootconsole [early_BFuart0] enabled
early printk enabled on early_BFuart0
Board Memory: 128MB
Kernel Managed Memory: 128MB
Memory map:
fixedcode = 0x00000400-0x00000490
text = 0x00001000-0x00201a50
rodata = 0x00201a74-0x002b52b4
bss = 0x002b6000-0x002ccf64
data = 0x002ccf80-0x002f8000
stack = 0x002f6000-0x002f8000
init = 0x002f8000-0x00902000
available = 0x00902000-0x06000000
DMA Zone = 0x06000000-0x08000000
Hardware Trace active and enabled
Blackfin support (C) 2004-2010 Analog Devices, Inc.
Compiled for ADSP-BF609 Rev 0.0
Blackfin Linux support by http://blackfin.uclinux.org/
Processor Speed: 500 MHz core clock, 250 MHz SCLk, 125 MHz SCLK0, 125 MHz SCLK1 and 250 MHz DCLK
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 : uncacheable in data cache
Built 1 zonelists in Zone order, mobility grouping off. Total pages: 24384
Kernel command line: root=/dev/mtdblock0 rw ip=10.100.4.50 earlyprintk=serial,uart0,57600 console=ttyBF0,57600 ip=10.100.4.50:10.100.4.174:192.168.0.1:255.255.255.0:"bf609-ezkit":eth0:off
PID hash table entries: 512 (order: -1, 2048 bytes)
Dentry cache hash table entries: 16384 (order: 4, 65536 bytes)
Inode-cache hash table entries: 8192 (order: 3, 32768 bytes)
Memory: 88168K/98304K available (2050K kernel code, 172K rwdata, 718K rodata, 6184K init, 91K bss, 10136K reserved, 32768K DMA)
NR_IRQS:291
Configuring Blackfin Priority Driven Interrupts
Console: colour dummy device 80x25
Calibrating delay loop... 995.32 BogoMIPS (lpj=1990656)
pid_max: default: 32768 minimum: 301
Mount-cache hash table entries: 512
devtmpfs: initialized
Blackfin Scratchpad data SRAM: 4 KB
Blackfin L1 Data A SRAM: 16 KB (9 KB free)
Blackfin L1 Data B SRAM: 16 KB (16 KB free)
Blackfin L1 Instruction SRAM: 64 KB (48 KB free)
Blackfin L2 SRAM: 256 KB (256 KB free)
pinctrl core: initialized pinctrl subsystem
NET: Registered protocol family 16
Blackfin DMA Controller
ezkit_init(): registering device resources
bio: create slab <bio-0> at 0
SCSI subsystem initialized
usbcore: registered new interface driver usbfs
usbcore: registered new interface driver hub
usbcore: registered new device driver usb
i2c-bfin-twi i2c-bfin-twi.0: Blackfin on-chip I2C TWI Contoller, regs_base@ffc01e00
i2c-bfin-twi i2c-bfin-twi.1: Blackfin on-chip I2C TWI Contoller, regs_base@ffc01f00
media: Linux media interface: v0.10
Linux video capture interface: v2.00
pps_core: LinuxPPS API ver. 1 registered
pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti giometti@linux.it
PTP clock support registered
NET: Registered protocol family 23
Switched to clocksource bfin_cs_cycles
NET: Registered protocol family 2
TCP established hash table entries: 1024 (order: 0, 4096 bytes)
TCP bind hash table entries: 1024 (order: 0, 4096 bytes)
TCP: Hash tables configured (established 1024 bind 1024)
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
msgmni has been set to 172
io scheduler noop registered (default)
bfin-uart: Blackfin serial driver
bfin-uart.0: ttyBF0 at MMIO 0xffc02000 (irq = 88, base_baud = 7812500) is a BFIN-UART
console [ttyBF0] enabled
console [ttyBF0] enabled
bootconsole [early_BFuart0] disabled
bootconsole [early_BFuart0] disabled
bootconsole [early_shadow0] disabled
physmap platform flash device: 01000000 at b0000000
physmap-flash.0: Found 1 x16 devices at 0x0 in 16-bit bank. Manufacturer ID 0x000089 Chip ID 0x008821
Intel/Sharp Extended Query Table at 0x010A
Intel/Sharp Extended Query Table at 0x010A
Intel/Sharp Extended Query Table at 0x010A
Intel/Sharp Extended Query Table at 0x010A
Intel/Sharp Extended Query Table at 0x010A
Using buffer write method
Using auto-unlock on power-up/resume
cfi_cmdset_0001: Erase suspend on write enabled
Creating 3 MTD partitions on "physmap-flash.0":
0x000000000000-0x000000080000 : "bootloader(nor)"
0x000000080000-0x000000480000 : "linux kernel(nor)"
0x000000480000-0x000001000000 : "file system(nor)"
m25p80 spi0.67: w25q32 (4096 Kbytes)
Creating 3 MTD partitions on "m25p80":
0x000000000000-0x000000080000 : "bootloader(spi)"
0x000000080000-0x000000200000 : "linux kernel(spi)"
0x000000200000-0x000000400000 : "file system(spi)"
CAN device driver interface
bfin_can bfin_can.0: bfin_can device registered(®_base=ffc00a00, rx_irq=47, tx_irq=48, err_irq=49, sclk=125000000)
stmmac - user ID: 0x10, Synopsys ID: 0x36
Ring mode enabled
DMA HW capability register supported
Enhanced/Alternate descriptors
Enabled extended descriptors
RX Checksum Offload Engine supported (type 2)
Wake-Up On Lan supported
Enable RX Mitigation via HW Watchdog Timer
libphy: stmmac: probed
eth0: PHY ID 20005c90 at 1 IRQ 0 (stmmac-0:01) active
usbcore: registered new interface driver usb-storage
input: bfin-rotary as /devices/platform/bfin-rotary/input/input0
i2c /dev entries driver
ppi probe success
bfin_capture bfin_capture.0: v4l2 device registered
bfin_capture bfin_capture.0: video device registered as: video0
adv7842 0-0020: error reading 20, ff
adv7842 0-0020: select_input: SDP todo
adv7842 0-0020: adv7842 found @ 0x40 (i2c-bfin-twi)
bfin_capture bfin_capture.0: v4l2 sub device registered
adv7842 0-0020: select_input: SDP todo
bfin_wdt: initialized: timeout=20 sec (nowayout=0)
usbcore: registered new interface driver usbhid
usbhid: USB HID core driver
TCP: cubic registered
NET: Registered protocol family 17
can: controller area network core (rev 20120528 abi 9)
NET: Registered protocol family 29
can: raw protocol (rev 20120528)
can: broadcast manager protocol (rev 20120528 t)
can: netlink gateway (rev 20130117) max_hops=1
eth0: device MAC address 02:80:ad:20:31:e8
dma_alloc_init: dma_page @ 0x0492d000 - 8192 pages at 0x06000000
IP-Config: Gateway not on directly connected network
Freeing unused kernel memory: 6184K (002f8000 - 00902000)</bio-0>
BusyBox v1.21.1 (2014-02-26 00:04:20 CST) hush - the humble shell
root:/>successful boot attempt ifconfig eth0libphy: stmmac-0:01 - Link is Up - 100/Full
10.100.4.50
root:/> Ethernet may has been activated already!
version
kernel: Linux release 3.13.0-ADI-2014R1-pre, build #2 Wed Feb 26 00:15:09 CST 2014
toolchain: /home/test/workspace/src/kernel/label/BF609-EZKIT-FLAT/output/host/usr/bin/bfin-linux-uclibc-gcc release gcc version 4.3.5 (ADI-master/git-a2bfd7b)
user-dist: release git-ce7c544, build #1 Wed Feb 26 00:11:02 CST 2014
root:/>
inux version: 3.13.0-ADI-2014R1-pre
GCC version: 4.3.5 (ADI-master/git-a2bfd7b)
user-dist version: git-ce7c544
[6n
root:/>
** STEP 3: Start testing
dmesg |grep video
Linux video capture interface: v2.00
bfin_capture bfin_capture.0: video device registered as: video0
root:/>
ase 1 ...PASS
Case 1 ...PASS
[6ndmesg |grep capture
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:/>
ase 2 ...PASS
Case 2 ...PASS
nv4l2_video_capture -h
v4l2_video_capture: option requires an argument -- h
Usage: v4l2_video_capture [-DIrFNfmiwh]
-D --device device to use (default /dev/video0)
-I --input select input (default 0)
-r --rate frame rate (default 0)
-F --file file name (default /1.yuv)
-N --number number of frames to capture (default 1)
-f --format pixel format (default uyvy)
-m --mode testing mode (default 0)
-i --ignore ignore error frames
-w --width image width (default 640)
-h --height image height (default 480)
root:/> v4l2_video_capture -I 4 -F /video_decoder_adv7842.yuv
enum inputs
input[0]: Composite
input[1]: S-Video
input[2]: Component
input[3]: VGA
input[4]: HDMI
adv7842 0-0020: select_input: HDMI todo
set input to 4: support dv_timings
random: nonblocking pool is initialized
dv_timings: progressive,width=1280,height=720
hfrontporch=110,hsync=40,hbackporch=220,vfrontporch=5,vsync=5,vbackporch=20
enum formats
format[0]: YCbCr 4:2:2 Interleaved UYVY
format[1]: YCbCr 4:2:2 Interleaved UYVY
negotiated formats: 1280x720
field order: progressive
size = 1843200
bytesperline = 2560
pixelformat: UYVY
frame rate setting is not supported
request 3 buffers
bufffer[0]: offset = 0, lengeth = 1843200
bufffer[1]: offset = 1843200, lengeth = 1843200
bufffer[2]: offset = 3686400, lengeth = 1843200
stream on success
open image file '/video_decoder_adv7842.yuv' success
1 frames captured, 0 error frames
root:/>
Case 3 ...PASS
Case 3 ...PASS
PASS: rcp video to host PC
VIDEO DECODER TEST (adv7842) ............[PASS]
close.