I run Encoder demo in dvsdk demo on DM365 EVM, but I met the problem as beow:
tvp 7002 1-005c:querystd erorxxx, val=1, vail=2
Error: Failed to create capture device. Is video input connected.
./encode -v s.264 -y 3
Encode demo started.
davinci_resizer davinci_resizer.2: RSZ_G_CONFIG:0:1:124
davinci_previewer davinci_previewer.2: ipipe_set_preview_config
vpfe-capture vpfe-capture: IPIPE Chained
vpfe-capture vpfe-capture: Resizer present
EVM: switch to tvp7002 HD video input
vpfe-capture vpfe-capture: width = 1280, height = 720, bpp = 1
vpfe-capture vpfe-capture: adjusted width = 1280, height = 720, bpp = 1, bytesperline = 1280, sizeimage = 1382400
vpfe-capture vpfe-capture: width = 1280, height = 720, bpp = 1
vpfe-capture vpfe-capture: adjusted width = 1280, height = 720, bpp = 1, bytesperline = 1280, sizeimage = 1382400
tvp7002 1-005c: querystd, erorxxx, val = 1, val1 = 2
Error: Failed to create capture device. Is video input connected.
uboot setting :
kernel boot log :
Bytes transferred = 2148024 (20c6b8 hex)
DM365 EVM :>bootm
## Booting kernel from Legacy Image at 80700000 ...
Image Name: Linux-2.6.32.17-davinci1
Image Type: ARM Linux Kernel Image (uncompressed)
Data Size: 2147960 Bytes = 2 MB
Load Address: 80008000
Entry Point: 80008000
Verifying Checksum ... OK
Loading Kernel Image ... OK
OK
Starting kernel ...
Uncompressing Linux............................................................................................................................................ done, booting the kernel.
Linux version 2.6.32.17-davinci1 (root@ubuntu) (gcc version 4.3.3 (Sourcery G++ Lite 2009q1-203) ) #1 PREEMPT Fri Oct 21 13:52:23 CST 2011
CPU: ARM926EJ-S [41069265] revision 5 (ARMv5TEJ), cr=00053177
CPU: VIVT data cache, VIVT instruction cache
Machine: DaVinci DM36x EVM
Memory policy: ECC disabled, Data cache writeback
DaVinci dm36x_rev1.2 variant 0x8
Built 1 zonelists in Zone order, mobility grouping off. Total pages: 13716
Kernel command line: mem=54M console=ttyS0,115200n8 ip=192.168.1.188:192.168.1.100:192.168.1.1:255.255.255.0 root=/dev/nfs nfsroot=192.168.1.100:/home/jacky/workshop/DM365/DM365_NFS,video=davincifb:vid0=OFF:osd0=720x576x16,4050k dm365_imp.oper_mode=0 davinci_capture.device_type=4
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: 54MB = 54MB total
Memory: 50076KB available (4024K code, 393K data, 144K init, 0K highmem)
SLUB: Genslabs=11, HWalign=32, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
Hierarchical RCU implementation.
NR_IRQS:245
Console: colour dummy device 80x30
Calibrating delay loop... 147.86 BogoMIPS (lpj=739328)
Mount-cache hash table entries: 512
CPU: Testing write buffer coherency: ok
DaVinci: 8 gpio irqs
NET: Registered protocol family 16
davinci_serial_init:97: failed to get UART2 clock
EVM: HD imager video input
bio: create slab <bio-0> at 0
DM365 IPIPE initialized in Continuous mode
SCSI subsystem initialized
usbcore: registered new interface driver usbfs
usbcore: registered new interface driver hub
usbcore: registered new device driver usb
pca9543a_probe
vpss vpss: dm365_vpss vpss probed
vpss vpss: dm365_vpss vpss probe success
dm365_afew_hw_init
ch0 default output "COMPOSITE", mode "NTSC"
VPBE Encoder Initialized
cfg80211: Using static regulatory domain info
cfg80211: Regulatory domain: US
(start_freq - end_freq @ bandwidth), (max_antenna_gain, max_eirp)
(2402000 KHz - 2472000 KHz @ 40000 KHz), (600 mBi, 2700 mBm)
(5170000 KHz - 5190000 KHz @ 40000 KHz), (600 mBi, 2300 mBm)
(5190000 KHz - 5210000 KHz @ 40000 KHz), (600 mBi, 2300 mBm)
(5210000 KHz - 5230000 KHz @ 40000 KHz), (600 mBi, 2300 mBm)
(5230000 KHz - 5330000 KHz @ 40000 KHz), (600 mBi, 2300 mBm)
(5735000 KHz - 5835000 KHz @ 40000 KHz), (600 mBi, 3000 mBm)
cfg80211: Calling CRDA for country: US
LogicPD encoder initialized
Switching to clocksource timer0_1
musb_hdrc: version 6.0, cppi-dma, host, debug=0
musb_hdrc: USB Host mode controller at fec64000 using DMA, IRQ 12
musb_hdrc musb_hdrc: MUSB HDRC host driver
musb_hdrc musb_hdrc: new USB bus registered, assigned bus number 1
usb usb1: configuration #1 chosen from 1 choice
hub 1-0:1.0: USB hub found
hub 1-0:1.0: 1 port detected
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
NET: Registered protocol family 1
RPC: Registered udp transport module.
RPC: Registered tcp transport module.
RPC: Registered tcp NFSv4.1 backchannel transport module.
JFFS2 version 2.2. (NAND) 漏 2001-2006 Red Hat, Inc.
msgmni has been set to 97
alg: No test for stdrng (krng)
io scheduler noop registered
io scheduler anticipatory registered (default)
Console: switching to colour frame buffer device 90x30
davincifb davincifb.0: dm_osd0_fb: 720x480x16@0,0 with framebuffer size 675KB
davincifb davincifb.0: dm_vid0_fb: 0x0x16@0,0 with framebuffer size 1020KB
davincifb davincifb.0: dm_osd1_fb: 720x480x4@0,0 with framebuffer size 675KB
davincifb davincifb.0: dm_vid1_fb: 0x0x16@0,0 with framebuffer size 1020KB
DM365 IPIPEIF probed
imp serializer initialized
davinci_previewer initialized
davinci_resizer initialized
Serial: 8250/16550 driver, 2 ports, IRQ sharing disabled
serial8250.0: ttyS0 at MMIO 0x1c20000 (irq = 40) is a 16550A
console [ttyS0] enabled
brd: module loaded
at24 1-0050: 32768 byte 24c256 EEPROM (writable)
Read MAC addr from EEPROM: 00:0e:99:02:cc:bb
NAND device: Manufacturer ID: 0x2c, Chip ID: 0xd3 (Micron NAND 1GiB 3,3V 8-bit)
2 NAND chips detected
Bad block table not found for chip 0
Bad block table not found for chip 1
Bad block table not found for chip 0
Bad block table not found for chip 1
Scanning device for bad blocks
Bad eraseblock 27 at 0x000000360000
Bad eraseblock 28 at 0x000000380000
Bad eraseblock 32 at 0x000000400000
Bad eraseblock 33 at 0x000000420000
Bad eraseblock 34 at 0x000000440000
Bad eraseblock 35 at 0x000000460000
Bad eraseblock 36 at 0x000000480000
Bad eraseblock 37 at 0x0000004a0000
Bad eraseblock 38 at 0x0000004c0000
Bad eraseblock 39 at 0x0000004e0000
Bad eraseblock 40 at 0x000000500000
Bad eraseblock 41 at 0x000000520000
Bad eraseblock 42 at 0x000000540000
Bad eraseblock 43 at 0x000000560000
Bad eraseblock 44 at 0x000000580000
Bad eraseblock 45 at 0x0000005a0000
Bad eraseblock 46 at 0x0000005c0000
Bad eraseblock 47 at 0x0000005e0000
Bad eraseblock 48 at 0x000000600000
Bad eraseblock 65 at 0x000000820000
Bad eraseblock 77 at 0x0000009a0000
Bad eraseblock 84 at 0x000000a80000
Bad eraseblock 85 at 0x000000aa0000
Bad eraseblock 86 at 0x000000ac0000
Bad eraseblock 88 at 0x000000b00000
Bad eraseblock 89 at 0x000000b20000
Bad eraseblock 149 at 0x0000012a0000
Bad eraseblock 158 at 0x0000013c0000
Bad eraseblock 159 at 0x0000013e0000
Bad eraseblock 161 at 0x000001420000
Bad eraseblock 162 at 0x000001440000
Bad eraseblock 163 at 0x000001460000
Bad eraseblock 164 at 0x000001480000
Bad eraseblock 841 at 0x000006920000
Bad eraseblock 842 at 0x000006940000
Bad eraseblock 843 at 0x000006960000
Bad eraseblock 844 at 0x000006980000
Bad eraseblock 862 at 0x000006bc0000
Bad eraseblock 868 at 0x000006c80000
Bad eraseblock 869 at 0x000006ca0000
Bad eraseblock 870 at 0x000006cc0000
Bad eraseblock 871 at 0x000006ce0000
Bad eraseblock 880 at 0x000006e00000
Bad eraseblock 897 at 0x000007020000
Bad eraseblock 901 at 0x0000070a0000
Bad eraseblock 918 at 0x0000072c0000
Bad eraseblock 934 at 0x0000074c0000
Bad eraseblock 1017 at 0x000007f20000
Bad eraseblock 1055 at 0x0000083e0000
Bad eraseblock 1105 at 0x000008a20000
Bad eraseblock 1158 at 0x0000090c0000
Bad eraseblock 1171 at 0x000009260000
Bad eraseblock 1287 at 0x00000a0e0000
Bad eraseblock 1378 at 0x00000ac40000
Bad eraseblock 1477 at 0x00000b8a0000
Bad eraseblock 1484 at 0x00000b980000
Bad eraseblock 1485 at 0x00000b9a0000
Bad eraseblock 1486 at 0x00000b9c0000
Bad eraseblock 1487 at 0x00000b9e0000
Bad eraseblock 1488 at 0x00000ba00000
Bad eraseblock 1531 at 0x00000bf60000
Bad eraseblock 1536 at 0x00000c000000
Bad eraseblock 1538 at 0x00000c040000
Bad eraseblock 1539 at 0x00000c060000
Bad eraseblock 1540 at 0x00000c080000
Bad eraseblock 1547 at 0x00000c160000
Bad eraseblock 1551 at 0x00000c1e0000
Bad eraseblock 1556 at 0x00000c280000
Bad eraseblock 1558 at 0x00000c2c0000
Bad eraseblock 1587 at 0x00000c660000
Bad eraseblock 1588 at 0x00000c680000
Bad eraseblock 1589 at 0x00000c6a0000
Bad eraseblock 1590 at 0x00000c6c0000
Bad eraseblock 1594 at 0x00000c740000
Bad eraseblock 1641 at 0x00000cd20000
Bad eraseblock 1718 at 0x00000d6c0000
Bad eraseblock 1757 at 0x00000dba0000
Bad eraseblock 1795 at 0x00000e060000
Bad eraseblock 1830 at 0x00000e4c0000
Bad eraseblock 1832 at 0x00000e500000
Bad eraseblock 1904 at 0x00000ee00000
Bad eraseblock 2416 at 0x000012e00000
Bad eraseblock 5476 at 0x00002ac80000
Bad eraseblock 6189 at 0x0000305a0000
Scanning device for bad blocks
Bad eraseblock 8573 at 0x000042fa0000
Bad eraseblock 8903 at 0x0000458e0000
Bad eraseblock 9116 at 0x000047380000
Bad eraseblock 9840 at 0x00004ce00000
Bad eraseblock 9914 at 0x00004d740000
Bad eraseblock 10135 at 0x00004f2e0000
Bad eraseblock 10508 at 0x000052180000
Bad eraseblock 10519 at 0x0000522e0000
Bad eraseblock 11202 at 0x000057840000
Bad eraseblock 12127 at 0x00005ebe0000
Bad eraseblock 13380 at 0x000068880000
Bad eraseblock 15774 at 0x00007b3c0000
Bad eraseblock 15887 at 0x00007c1e0000
Creating 5 MTD partitions on "davinci_nand.0":
0x000000000000-0x000000f00000 : "bootloader"
0x000000f00000-0x000001000000 : "params"
0x000001000000-0x000001400000 : "kernel"
0x000001400000-0x000021400000 : "filesystem1"
0x000021400000-0x000080000000 : "filesystem2"
davinci_nand davinci_nand.0: controller rev. 2.3
spi_davinci spi_davinci.0: DaVinci SPI driver in EDMA mode
Using RX channel = 17 , TX channel = 16 and event queue = 3
at25 spi0.0: 8 KByte at25640 eeprom, pagesize 32
spi_davinci spi_davinci.0: Controller at 0xfec66000
console [netcon0] enabled
netconsole: network logging started
Initializing USB Mass Storage driver...
usbcore: registered new interface driver usb-storage
USB Mass Storage support registered.
usbcore: registered new interface driver usbtest
mice: PS/2 mouse device common for all mice
tsc2004: probe of 1-0049 failed with error -121
input: DM365 EVM Controls as /devices/platform/i2c_davinci.1/i2c-1/1-0025/input/input0
i2c /dev entries driver
Linux video capture interface: v2.00
ths7303 1-002c: chip found @ 0x58 (DaVinci I2C adapter)
vpfe_init
vpfe-capture: vpss clock vpss_master enabled
vpfe-capture vpfe-capture: v4l2 device registered
vpfe-capture vpfe-capture: video device registered
EVM: switch to tvp5146 SD video input
tvp514x 1-005d: tvp514x 1-005d decoder driver registered !!
vpfe-capture vpfe-capture: v4l2 sub device tvp5146 registered
EVM: switch to tvp7002 HD video input
tvp7002 1-005c: tvp7002 1-005c decoder driver registered !!
vpfe-capture vpfe-capture: v4l2 sub device tvp7002 registered
EVM: switch to tvp7002 HD video input
ths7353 1-002e: chip found @ 0x5c (DaVinci I2C adapter)
ths7353 1-002e: No platform data!!
vpfe-capture vpfe-capture: v4l2 sub device ths7353 registered
vpfe_register_ccdc_device: DM365 ISIF
DM365 ISIF is registered with vpfe.
af major#: 252, minor# 0
AF Driver initialized
aew major#: 251, minor# 0
AEW Driver initialized
Trying to register davinci display video device.
layer=c20e5400,layer->video_dev=c20e5570
Trying to register davinci display video device.
layer=c20e5800,layer->video_dev=c20e5970
davinci_init:DaVinci V4L2 Display Driver V1.0 loaded
watchdog watchdog: heartbeat 60 sec
davinci_mmc davinci_mmc.0: Using DMA, 4-bit mode
usbcore: registered new interface driver usbhid
usbhid: v2.6:USB HID core driver
Advanced Linux Sound Architecture Driver Version 1.0.21.
No device for DAI tlv320aic3x
No device for DAI davinci-i2s
asoc: tlv320aic3x <-> davinci-i2s mapping ok
ALSA device list:
#0: DaVinci EVM (tlv320aic3x)
TCP cubic registered
NET: Registered protocol family 17
lib80211: common routines for IEEE802.11 drivers
Clocks: disable unused mmcsd1
Clocks: disable unused spi1
Clocks: disable unused spi2
Clocks: disable unused spi3
Clocks: disable unused spi4
Clocks: disable unused pwm0
Clocks: disable unused pwm1
Clocks: disable unused pwm2
Clocks: disable unused pwm3
Clocks: disable unused timer1
Clocks: disable unused timer3
Clocks: disable unused emac
Clocks: disable unused voice_codec
Clocks: disable unused rto
Clocks: disable unused mjcp
emac-mii: probed
eth0: attached PHY driver [Generic PHY] (mii_bus:phy_addr=1:01, id=221613)
IP-Config: Complete:
device=eth0, addr=192.168.1.188, mask=255.255.255.0, gw=192.168.1.1,
host=192.168.1.188, domain=, nis-domain=(none),
bootserver=192.168.1.100, rootserver=192.168.1.100, rootpath=
Root-NFS: unknown option: video=davincifb:vid0=OFF:osd0=720x576x16
Looking up port of RPC 100003/2 on 192.168.1.100
PHY: 1:01 - Link is Up - 100/Full
Looking up port of RPC 100005/1 on 192.168.1.100
VFS: Mounted root (nfs filesystem) on device 0:14.
Freeing init memory: 144K
Warning: unable to open an initial console.
udev: starting version 141
udevd-event[1060]: error changing netif name eth0 to eth1: Device or resource busy
NET: Registered protocol family 10
CMEMK module: built on Oct 21 2011 at 13:53:42
Reference Linux version 2.6.32
File /home/jacky/workshop/DM365/linuxutils_2_26_01_02/packages/ti/sdo/linuxutils/cmem/src/module/cmemk.c
allocated heap buffer 0xc7000000 of size 0x4400000
heap fallback enabled - will try heap if pool buffer is not available
CMEM Range Overlaps Kernel Physical - allowing overlap
CMEM phys_start (0x1000) overlaps kernel (0x80000000 -> 0x83600000)
cmemk initialized
IRQK module: built on Oct 21 2011 at 13:53:44
Reference Linux version 2.6.32
File /home/jacky/workshop/DM365/linuxutils_2_26_01_02/packages/ti/sdo/linuxutils/irq/src/module/irqk.c
irqk initialized
EDMAK module: built on Oct 21 2011 at 13:53:45
Reference Linux version 2.6.32
File /home/jacky/workshop/DM365/linuxutils_2_26_01_02/packages/ti/sdo/linuxutils/edma/src/module/edmak.c
_____ _____ _ _
| _ |___ ___ ___ ___ | _ |___ ___ |_|___ ___| |_
| | _| .'| . | . | | __| _| . | | | -_| _| _|
|__|__|_| |__,|_ |___| |__| |_| |___|_| |___|___|_|
|___| |___|
Arago Project http://arago-project.org dm365-evm ttyS0
Arago 2011.02 dm365-evm ttyS0