yes, see the logs below and the attached board file. in evm-dm365 vpfe_capture0 interrupts numbers rise during the grabbing, instead in our board it doesn't happen.
VDINT0 is zero in both boards, but looking documentation seems it should contain the number of lines to be received in order to trigger an interrupt. [MK] 0 means the interrupt happens right at VD pulse. 1 means after one line. You might want to check the signals received from ADV to input of VPFE to see if adv is doing what it is configured to do. Good luck. -Murali DM365 EVM > set lan_env_169_1 'setenv ipaddr 10.39.10.132; setenv serverip 10.39.10.169; setenv netmask 255.255.248.0' DM365 EVM > set bootargs 'console=ttyS0,115200n8 rw ip=10.39.10.132:10.39.10.169:10.39.8.1:255.255.248.0:::off root=/dev/nfs nfsroot=10.39.10.169:/NFS/ARAGO_BASE_IMAGE/ me m=128M video=davincifb:vid0=1280x720x16,5400K:vid1=1280x720x16,5400K:osd0=720x576x16,2025K vpfe_capture.bufsize=1147200 vpfe_capture.debug=1 loglevel=9 davinci_enc_mngr.ch<http://davinci_enc_mngr.ch> 0_output=COMPOSITE davinci_enc_mngr.ch0_mode=pal dm365_isif.debug=1 ' DM365 EVM > run lan_env_169_1; tftp 0x82000000 uImage-bmx; bootm TFTP from server 10.39.10.169; our IP address is 10.39.10.132 Filename 'uImage-bmx'. Load address: 0x82000000 Loading: ################################################################# ################################################################# ################################################################# ################################################################# ################################################################# ################################################################# ################ done Bytes transferred = 2075312 (1faab0 hex) ## Booting kernel from Legacy Image at 82000000 ... Image Name: Linux-2.6.34-rc1 Image Type: ARM Linux Kernel Image (uncompressed) Data Size: 2075248 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.34-rc1 (sour...@angelo-desktop) (gcc version 4.3.3 (Sourcery G++ Lite 2009q1-203) ) #233 PREEMPT Tue Mar 30 17:14:49 CEST 2010 CPU: ARM926EJ-S [41069265] revision 5 (ARMv5TEJ), cr=00053177 CPU: VIVT data cache, VIVT instruction cache Machine: BTicino bmx DM365 board Memory policy: ECC disabled, Data cache writeback On node 0 totalpages: 32768 free_area_init_node: node 0, pgdat c041f02c, node_mem_map c044b000 DMA zone: 256 pages used for memmap DMA zone: 0 pages reserved DMA zone: 32512 pages, LIFO batch:7 DaVinci dm365_rev1.2 variant 0x8 Built 1 zonelists in Zone order, mobility grouping on. Total pages: 32512 Kernel command line: console=ttyS0,115200n8 rw ip=10.39.10.132:10.39.10.169:10.39.8.1:255.255.248.0:::off root=/dev/nfs nfsroot=10.39.10.169:/NFS/ARAGO_BASE_IMAGE/ mem=128 M video=davincifb:vid0=1280x720x16,5400K:vid1=1280x720x16,5400K:osd0=720x576x16,2025K vpfe_capture.bufsize=1147200 vpfe_capture.debug=1 loglevel=9 davinci_enc_mngr.ch0_out put=COMPOSITE davinci_enc_mngr.ch0_mode=pal dm365_isif.debug=1 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: 128MB = 128MB total Memory: 125556k/125556k available, 5516k reserved, 0K highmem Virtual kernel memory layout: vector : 0xffff0000 - 0xffff1000 ( 4 kB) fixmap : 0xfff00000 - 0xfffe0000 ( 896 kB) DMA : 0xff000000 - 0xffe00000 ( 14 MB) vmalloc : 0xc8800000 - 0xfea00000 ( 866 MB) lowmem : 0xc0000000 - 0xc8000000 ( 128 MB) modules : 0xbf000000 - 0xc0000000 ( 16 MB) .init : 0xc0008000 - 0xc002c000 ( 144 kB) .text : 0xc002c000 - 0xc03ee000 (3848 kB) .data : 0xc03ee000 - 0xc041f920 ( 199 kB) SLUB: Genslabs=11, HWalign=32, Order=0-3, MinObjects=0, CPUs=1, Nodes=1 Hierarchical RCU implementation. NR_IRQS:245 start_kernel(): bug: interrupts were enabled early 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 dm365_pinmuxmanage bmx_init ended: debug=1 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 vpss vpss: dm365_vpss vpss probed vpss vpss: dm365_vpss vpss probe success Advanced Linux Sound Architecture Driver Version 1.0.22.1. Switching to clocksource timer0_1 musb_hdrc: version 6.0, cppi-dma, host, debug=0 NET: Registered protocol family 2 IP route cache hash table entries: 1024 (order: 0, 4096 bytes) TCP established hash table entries: 4096 (order: 3, 32768 bytes) TCP bind hash table entries: 4096 (order: 2, 16384 bytes) TCP: Hash tables configured (established 4096 bind 4096) 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 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 245 alg: No test for stdrng (krng) io scheduler noop registered (default) DaVinci: Output on NTSC in COMPOSITE format, Enabled windows: Video0 Video1 OSD0 OSD1 Setting Video0 size 720x480, position (0,0) Setting Video1 size 720x480, position (0,0) Setting OSD0 size 720x480, position (0,0) Setting OSD1 size 720x480, position (0,0) Setting Up Clocks for DM420 OSD fb0: dm_osd0_fb frame buffer device fb1: dm_vid0_fb frame buffer device fb2: dm_osd1_fb frame buffer device fb3: dm_vid1_fb frame buffer device 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-0053: 32768 byte 24c256 EEPROM (writable) Read MAC addr from EEPROM: d2:1e:5d:77:88:da davinci_nand davinci_nand.0: nand_davinci_probe ecc_mode = 2 nand ECC HW bit = 1 NAND device: Manufacturer ID: 0x2c, Chip ID: 0xca (Micron NAND 256MiB 3,3V 16-bit) Bad block table found at page 131008, version 0x01 Bad block table found at page 130944, version 0x01 nand_bbt: ECC error while reading bad block table nand_read_bbt: Bad block at 0x000001820000 nand_read_bbt: Bad block at 0x0000051e0000 nand_read_bbt: Bad block at 0x000009c80000 nand_read_bbt: Bad block at 0x00000e180000 nand_read_bbt: Bad block at 0x00000eac0000 Creating 5 MTD partitions on "davinci_nand.0": 0x000000000000-0x000000080000 : "u-boot" 0x000000080000-0x0000000c0000 : "u-boot env" 0x0000000c0000-0x0000004c0000 : "kernel" 0x0000004c0000-0x0000084c0000 : "rootfs" 0x0000084c0000-0x000010000000 : "extra" davinci_nand davinci_nand.0: controller rev. 2.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 rtc-pcf8563 1-0051: chip found, driver version 0.4.3 rtc-pcf8563 1-0051: rtc core: registered rtc-pcf8563 as rtc0 i2c /dev entries driver Linux video capture interface: v2.00 vpfe_init vpfe-capture vpfe-capture: v4l2 device registered vpfe-capture vpfe-capture: trying to register vpfe device. vpfe-capture vpfe-capture: video_dev=c7f96c00 vpfe-capture vpfe-capture: video device registered adv7180: probing ADV7180 - 1 <= <= <= <= <= <= <= <= <= <= <= adv7180: probing ADV7180 adv7180 1-0020: chip found @ 0x40 (DaVinci I2C adapter) ========= FIXING REGISTERS ========= vpfe-capture vpfe-capture: v4l2 sub device adv7180 registered vpfe_register_ccdc_device: ISIF ------------------ isif_probe - 1157 ISIF is registered with vpfe. watchdog watchdog: heartbeat 60 sec usbcore: registered new interface driver usbhid usbhid: USB HID core driver ALSA device list: No soundcards found. TCP cubic registered NET: Registered protocol family 17 Clocks: disable unused vpss_dac Clocks: disable unused mmcsd0 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 usb Clocks: disable unused emac Clocks: disable unused voice_codec Clocks: disable unused asp0 Clocks: disable unused rto Clocks: disable unused mjcp emac-mii: probed rtc-pcf8563 1-0051: low voltage detected, date/time is not reliable. rtc-pcf8563 1-0051: setting system clock to 2010-03-30 17:09:15 UTC (1269968955) IP-Config: Complete: device=eth0, addr=10.39.10.132, mask=255.255.248.0, gw=10.39.8.1, host=10.39.10.132, domain=, nis-domain=(none), bootserver=10.39.10.169, rootserver=10.39.10.169, rootpath= Looking up port of RPC 100003/2 on 10.39.10.169 Looking up port of RPC 100005/1 on 10.39.10.169 VFS: Mounted root (nfs filesystem) on device 0:12. Freeing init memory: 144K INIT: version 2.86 booting Please wait: booting... Starting udev ^CRemounting root file system... Caching udev devnodes Populating dev cache root: mount: mounting rootfs on / failed: No such file or directory root: mount: mounting usbfs on /proc/bus/usb failed: No such file or directory NOT configuring network interfaces: / is an NFS mount INIT: Entering runlevel: 5 Starting telnet daemon. Starting syslogd/klogd: done NET: Registered protocol family 10 _____ _____ _ _ | _ |___ ___ ___ ___ | _ |___ ___ |_|___ ___| |_ | | _| .'| . | . | | __| _| . | | | -_| _| _| |__|__|_| |__,|_ |___| |__| |_| |___|_| |___|___|_| |___| |___| Arago Project http://arago-project.org dm365-evm ttyS0 Arago 2009.09 dm365-evm ttyS0 dm365-evm login: root r...@dm365-evm:~# r...@dm365-evm:~# r...@dm365-evm:~# r...@dm365-evm:~# r...@dm365-evm:~# r...@dm365-evm:~# cat /proc/interrupts CPU0 0: 0 AINTC vpfe_capture0 8: 0 AINTC davincifb 16: 0 AINTC edma 17: 0 AINTC edma_error 32: 3239 AINTC clockevent 33: 0 AINTC free-run counter 39: 69 AINTC i2c_davinci 40: 127 AINTC serial 42: 0 AINTC spi_davinci.0 52: 0 AINTC eth0 53: 3576 AINTC eth0 54: 4117 AINTC eth0 55: 0 AINTC eth0 Err: 0 r...@dm365-evm:~# r...@dm365-evm:~# cat /proc/interrupts eth0: no IPv6 routers present r...@dm365-evm:~# gst-launch v4l2src ! video/x-raw-yuv ! filesink location=video .raw Setting pipeline to PAUSED ... vpfe-capture vpfe-capture: vpfe_open vpfe_config_ccdc_image_format - fmt.fmt.pix.field = 4 vpfe_config_ccdc_image_format - frm_fmt = 1 isif_set_frame_format - if_type = 0 isif isif: starting isif_restore_defaults...dm365_enable_clock - clock_sel = 0 dm365_enable_clock - clock_sel = 6 dm365_enable_clock - clock_sel = 8 isif isif: End of isif_restore_defaults... vpfe-capture vpfe-capture: vpfe_querycap vpfe-capture vpfe-capture: vpfe_enum_input vpfe-capture vpfe-capture: vpfe_enum_input vpfe-capture vpfe-capture: input information not found for the subdev vpfe-capture vpfe-capture: vpfe_g_std vpfe-capture vpfe-capture: vpfe_g_input vpfe-capture vpfe-capture: vpfe_enum_fmt_vid_cap vpfe-capture vpfe-capture: vpfe_enum_fmt_vid_cap vpfe-capture vpfe-capture: vpfe_enum_fmt_vid_cap vpfe-capture vpfe-capture: vpfe_try_fmt_vid_cap vpfe-capture vpfe-capture: width = 1, height = 1, bpp = 2 vpfe-capture vpfe-capture: adjusted width = 16, height = 2, bpp = 2, bytesperline = 32, sizeimage = 64 vpfe-capture vpfe-capture: vpfe_try_fmt_vid_cap vpfe-capture vpfe-capture: width = 32768, height = 32768, bpp = 2 vpfe-capture vpfe-capture: adjusted width = 720, height = 480, bpp = 2, bytesperline = 1440, sizeimage = 691200 vpfe-capture vpfe-capture: vpfe_try_fmt_vid_cap vpfe-capture vpfe-capture: width = 1, height = 1, bpp = 2 vpfe-capture vpfe-capture: adjusted width = 16, height = 2, bpp = 2, bytesperline = 32, sizeimage = 64 vpfe-capture vpfe-capture: vpfe_try_fmt_vid_cap vpfe-capture vpfe-capture: width = 32768, height = 32768, bpp = 2 vpfe-capture vpfe-capture: adjusted width = 720, height = 480, bpp = 2, bytesperline = 1440, sizeimage = 691200 vpfe-capture vpfe-capture: vpfe_g_fmt_vid_cap vpfe-capture vpfe-capture: vpfe_s_fmt_vid_cap vpfe-capture vpfe-capture: width = 720, height = 480, bpp = 2 vpfe-capture vpfe-capture: adjusted width = 720, height = 480, bpp = 2, bytesperline = 1440, sizeimage = 691200 vpfe_config_ccdc_image_format - fmt.fmt.pix.field = 4 vpfe_config_ccdc_image_format - frm_fmt = 1 isif_set_frame_format - if_type = 0 vpfe-capture vpfe-capture: vpfe_g_std vpfe-capture vpfe-capture: vpfe_reqbufs vpfe-capture vpfe-capture: vpfe_buffer_setup vpfe-capture vpfe-capture: count=3, size=1147200 vpfe-capture vpfe-capture: vpfe_querybuf vpfe-capture vpfe-capture: vpfe_mmap vpfe-capture vpfe-capture: vpfe_querybuf vpfe-capture vpfe-capture: vpfe_mmap vpfe-capture vpfe-capture: vpfe_querybuf vpfe-capture vpfe-capture: vpfe_mmap vpfe-capture vpfe-capture: vpfe_qbuf vpfe-capture vpfe-capture: vpfe_buffer_prepare vpfe-capture vpfe-capture: vpfe_qbuf vpfe-capture vpfe-capture: vpfe_buffer_prepare vpfe-capture vpfe-capture: vpfe_qbuf vpfe-capture vpfe-capture: vpfe_buffer_prepare vpfe-capture vpfe-capture: vpfe_streamon videobuf_streamon - 697 vpfe-capture vpfe-capture: vpfe_buffer_queue vpfe-capture vpfe-capture: vpfe_buffer_queue vpfe-capture vpfe-capture: vpfe_buffer_queue videobuf_streamon - 716 vpfe-capture vpfe-capture: vpfe_calculate_offsets isif isif: Starting isif_config_ycbcr... isif isif: type = 0 isif isif: Starting isif_setwin... ppc = 2 isif isif: CCDC_FRMFMT_INTERLACED isif isif: Ending isif_setwin... horz_start = 0, horz_nr_pixels = 1439 vert_start = 1 vert_nr_lines = 239 vert_start = 1 isif isif: configure the memory line offset vpfe-capture vpfe-capture: vpfe_start_ccdc_capture ------------------ isif_enable_output_to_sdram - 211 Pipeline is live and does not need PREROLL ... Setting pipeline to PLAYING ... vpfe-capture vpfe-capture: vpfe_poll New clock: GstSystemClock videobuf_poll_stream - 1043 videobuf_poll_stream - 1063 videobuf_poll_stream - 1068 drivers/media/video/videobuf-core.c - 1070 buf->state=3 videobuf_poll_stream - 1076 -- www.opensurf.it<http://www.opensurf.it>
_______________________________________________ Davinci-linux-open-source mailing list [email protected] http://linux.davincidsp.com/mailman/listinfo/davinci-linux-open-source
