Hello everyone,

when I excute "./capture_prev_rsz_onthe_fly_bayer_mew" on the target , why does it export the folowning Error 

 

 

input_std_paramsCMEMK Error: ALLOC: invalid pool (0) passed.                    

: name = V4L2_STD_MT9T001_VGA_30FPS                                             

input_std_params: output size = 640 * 480                                       

calling cmem utilities for allocating frame buffers                             

CMEM Error: allocPool: ioctl CMEM_IOCALLOC failed from pool 0: -1               

Failed to allocate cmem pool                                                    

Unable to Allocate user buffers 

 

why ?

 

My boot messege is  :

 

U-Boot 2010.12-rc2 (Aug 29 2011 - 17:30:18)                                     

 

Cores: ARM 297 MHz                                                              

DDR:   243 MHz                                                                  

I2C:   ready                                                                    

DRAM:  128 MiB                                                                  

NAND:  256 MiB                                                                  

MMC:   davinci: 0, davinci: 1                                                   

Net:   Ethernet PHY: GENERIC @ 0x00                                             

DaVinci-EMAC                                                                    

Hit any key to stop autoboot:  0                                                

 

Loading from nand0, offset 0x400000                                             

   Image Name:   "RR Linux Kernel"                                              

   Created:      2011-10-09   2:04:55 UTC                                       

   Image Type:   ARM Linux Kernel Image (uncompressed)                          

   Data Size:    4013504 Bytes = 3.8 MiB                                        

   Load Address: 80008000                                                       

   Entry Point:  80008000                                                       

Automatic boot of image at addr 0x82000000 ...                                  

## Booting kernel from Legacy Image at 82000000 ...                             

   Image Name:   "RR Linux Kernel"                                              

   Created:      2011-10-09   2:04:55 UTC                                       

   Image Type:   ARM Linux Kernel Image (uncompressed)                          

   Data Size:    4013504 Bytes = 3.8 MiB                                        

   Load Address: 80008000                                                       

   Entry Point:  80008000                                                       

   Verifying Checksum ... OK                                                    

   Loading Kernel Image ... OK                                                  

OK                                                                              

 

Starting kernel ...                                                             

 

Linux version 2.6.32-17-ridgerun (root@davicwxc-desktop) (gcc version 4.3.3 (So1

CPU: ARM926EJ-S [41069265] revision 5 (ARMv5TEJ), cr=00053177                   

CPU: VIVT data cache, VIVT instruction cache                                    

Machine: DM365 Leopard                                                          

Memory policy: ECC disabled, Data cache writeback                               

DaVinci dm36x_rev1.2 variant 0x8                                                

Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 25146      

Kernel command line: davinci_enc_mngr.ch0_output=COMPOSITE davinci_enc_mngr.ch0)

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: 99MB = 99MB total                                                       

Memory: 96184KB available (3592K code, 285K data, 140K 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                               

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                                       

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                                                        

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: 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                                                             

NET: Registered protocol family 1                                               

RPC: Registered udp transport module.                                           

RPC: Registered tcp transport module.                                           

RPC: Registered tcp NFSv4.1 backchannel transport module.                       

msgmni has been set to 188                                                      

alg: No test for stdrng (krng)                                                  

io scheduler noop registered                                                    

io scheduler anticipatory registered (default)                                  

davincifb davincifb.0: dm_osd0_fb: 720x480x16@0,0 with framebuffer size 1350KB  

davincifb davincifb.0: dm_vid0_fb: 0x0x16@0,0 with framebuffer size 1020KB      

davincifb davincifb.0: dm_osd1_fb: 0x0x8@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                                                              

loop: module loaded                                                             

NAND device: Manufacturer ID: 0x2c, Chip ID: 0xda (Micron NAND 256MiB 3,3V 8-bi)

Scanning device for bad blocks                                                  

3 cmdlinepart partitions found on MTD device davinci_nand.0                     

Creating 3 MTD partitions on "davinci_nand.0":                                  

0x000000000000-0x000000400000 : "UBOOT"                                         

0x000000400000-0x000000840000 : "KERNEL"                                        

0x000000840000-0x00000d040000 : "FS"                                            

davinci_nand davinci_nand.0: controller rev. 2.3                                

Initializing USB Mass Storage driver...                                         

usbcore: registered new interface driver usb-storage                            

USB Mass Storage support registered.                                            

usbcore: registered new interface driver usbtest                                

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                              

mt9p031 1-0048: Detected a MT9P031 chip ID 1801                                 

mt9p031 1-0048: mt9p031 1-0048 decoder driver registered !!                     

vpfe-capture vpfe-capture: v4l2 sub device mt9p031 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=c5061000,layer->video_dev=c5061164                                        

Trying to register davinci display video device.                                

layer=c5061400,layer->video_dev=c5061564                                        

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                                                

TCP cubic registered                                                            

NET: Registered protocol family 17                                              

Clocks: disable unused mmcsd1                                                   

Clocks: disable unused spi0                                                     

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 asp0                                                     

Clocks: disable unused rto                                                      

Clocks: disable unused mjcp                                                     

davinci_emac_probe: using random MAC addr: 1e:a3:8e:a1:38:a0                    

emac-mii: probed                                                                

Sending DHCP requests ., OK                                                     

IP-Config: Got DHCP answer from 0.0.0.0, my address is 192.168.1.132            

IP-Config: Complete:                                                            

     device=eth0, addr=192.168.1.132, mask=255.255.255.0, gw=192.168.1.1,       

     host=192.168.1.132, domain=, nis-domain=(none),                            

     bootserver=0.0.0.0, rootserver=192.168.1.109, rootpath=, mtu=576           

Looking up port of RPC 100003/2 on 192.168.1.109                                

Looking up port of RPC 100005/1 on 192.168.1.109                                

VFS: Mounted root (nfs filesystem) on device 0:13.                              

Freeing init memory: 140K                                                       

init started: BusyBox v1.18.2 (2011-08-29 15:41:56 CST)                         

starting pid 967, tty '': '/etc/rcS'                                            

Starting System                                                                 

done.                                                                           

Welcome to                                                                      

__________ .__     .___               __________                                

\______   \|__|  __| _/  ____    ____ \______   \ __ __   ____                  

 |       _/|  | / __ |  / ___\ _/ __ \ |       _/|  |  \ /    \                 

 |    |   \|  |/ /_/ | / /_/  >\  ___/ |    |   \|  |  /|   |  \                

 |____|_  /|__|\____ | \___  /  \___  >|____|_  /|____/ |___|  /                

        \/          \//_____/       \/        \/             \/                 

 

    Embedded Linux Solutions                                                    

 

 

        EVALUATION VERSION FOR NON COMMERCIAL USE ONLY!                         

"Educational institutions, students, and hobbyists use is encouraged"           

 

For further information see:                                                    

http://www.ridgerun.com                                                         

Build host: davicwxc-desktop                                                    

Built by: root                                                                  

Build date: Sun, 09 Oct 2011 10:04:54 +0800                                     

Build tag: leopard                                                              

Configuring network interfaces                                                  

Starting D-Bus message bus system                                               

Starting Ipipe daemon                                                           

Loading coprocessors modules...                                                 

  Loading cmem from 0x86500000 to 0x87400000                                    

CMEMK module: built on Aug 29 2011 at 17:19:42                                  

  Reference Linux version 2.6.32                                                

  File /usr/local/dvsdk/linuxutils_2_26_01_02/packages/ti/sdo/linuxutils/cmem/sc

allocated heap buffer 0xca000000 of size 0xf00000                               

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 -> 0x86300000)             

cmemk initialized                                                               

EDMAK module: built on Aug 29 2011 at 17:19:59                                  

  Reference Linux version 2.6.32                                                

  File /usr/local/dvsdk/linuxutils_2_26_01_02/packages/ti/sdo/linuxutils/edma/sc

IRQK module: built on Aug 29 2011 at 17:19:55                                   

  Reference Linux version 2.6.32                                                

  File /usr/local/dvsdk/linuxutils_2_26_01_02/packages/ti/sdo/linuxutils/irq/src

irqk initialized                                                                

Starting Dropbear SSH server: dropbear.  

 

I also think there is some wrong with the above bold place ,but I am not sure.

Why does CMEM phys_start (0x1000) overlap kernel (0x80000000 -> 0x86300000) ? Does it lead to the above Error?

Somebody can hep me ? 

Thanks for your suggest  in advance !

Looking forward to your reply !