This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

can't get data from isif on dm368

Other Parts Discussed in Thread: TVP7002

 

Hi all:

 

Recently I am work on working on DM368 development board,But I meet some problem when I run the Appro IPNC program on it.

The capture thread will stop at the funtion DRV_isifGetOutBuf().

any guys who know why I can't get data from isif?

 

 

Thanks and Regards

--Gordon

 

  • Hi,

     

    This can happen ue to some memory allocation failure. so can you send the detailed log to check this issue?

    Are you using 128MB DDR or something else?

     

    Regards,

     

    Raghu

     

     

     

  • Hi Raghu


     the detailed log as follow:

    root@dm368-evm:/opt/ipnc# ./av_capture_load.sh 

    cmemk unregistered

    irqk unregistered

    request_irq(3)

    CSL: Module install successful, device major num = 248 

    CSL: Module version 0.10.00, built on Nov 14 2011 15:15:12 

    DMA: Module install successful, device major num = 247 

    DRV: Module install successful

    DRV: Module built on Nov 14 2011 15:15:14 

    DRV: EDMACC.QUEPRI  = 00000777

    DRV: SYSTEM.MSTPRI0 = 00550011

    DRV: SYSTEM.MSTPRI1 = 00000444

    DRV: ISP.BCR        = 00000002

    CMEMK module: built on Oct 20 2011 at 17:12:57

      Reference Linux version 2.6.32

      File /home/gaohang/dvsdk/linuxutils_2_26_01_02/packages/ti/sdo/linuxutils/cmem/src/module/cmemk.c

    allocated heap buffer 0xc5000000 of size 0x3000000

    CMEM Range Overlaps Kernel Physical - allowing overlap

    CMEM phys_start (0x1000) overlaps kernel (0x80000000 -> 0x83c00000)

    cmemk initialized

    EDMAK module: built on Oct 20 2011 at 17:12:59

      Reference Linux version 2.6.32

      File /home/gaohang/dvsdk/linuxutils_2_26_01_02/packages/ti/sdo/linuxutils/edma/src/module/edmak.c

    IRQK module: built on Oct 20 2011 at 17:12:59

      Reference Linux version 2.6.32

      File /home/gaohang/dvsdk/linuxutils_2_26_01_02/packages/ti/sdo/linuxutils/irq/src/module/irqk.c

    irqk initialized

    root@dm368-evm:/opt/ipnc# ./system_server&

    root@dm368-evm:/opt/ipnc# queue id:0

    FileMngThread created

    FileMsgDrv: Debug

    Semaphore Addr: 0x2e098

    queue id:32769

    FileMsgDrv: Debug

    Qid: 32769

    FileMsgDrv: Debug

    Share Memory id : 32769

    FileMsgDrv: Debug

    Share Memory Address:0x40984000

    AlramThread created

    Share memory init success

    Gio: Error

    read device error !! gio = 79

    queue id:65538

    queue id:65538

    queue id:32769

     

     DEMOCFG Value: 0

     

    nVideocodecmode = 0

    nVideocodecres = 0

    ./av_server.out AEWB FD OSD 720P H264 4000000 CVBR MENUOFF &

    Check_device_version : read device error !!

     

     AVSERVER UI: Initializing.

     

    DRV_SyncRst: module = 47, domain = 0, state = 0

     

    DRV_SyncRst: module = 47, domain = 0, state = 3

     ERROR  (drv_vpss.c|DRV_SyncRst|39): [MY-DEBUG] : map 0x1c41000 -> 0x40021000 : ERROR `Success`

     ERROR  (drv_vpss.c|DRV_SyncRst|40): pMem_map Fail!! 

     

     CLK Hz,

     ARM   Hz =  297000000

     DDR   Hz =  243000000

     VPSS  Hz =  243000000

     IMCOP Hz =  243000000

     

     DRV LDC: GetConfig 0004 0x0

     AVSERVER UI: Starting in mode 1MY_TVP7002: @my_tvp7002_dev_open ( 252,  0)

     

     AVSERVER MAINMY_TVP7002: @my_tvp7002_dev_ioctl start

    : Recevied CMD =MY_TVP7002: @my_tvp7002_dev_ioctl: MY_TVP7002_CMD_SETSTD

     0x0400, state =MY_TVP7002: MY_TVP7002_CMD_SETSTD, rc=0, std=0

     0x0000

     AVSERVMY_TVP7002: setstdER MAIN: AVSERVE

    MY_TVP7002: Haha 720P_60

    R_tskConnectInittvp7002 1-005c: YUI: Start of tvp7002_setstd (720P-60)...

    () ...

     AVSERVER MAIN: Create captureTsk ...

     tvp7002 1-005c: YUI: End of tvp7002 set standard...

    CAPTURE: RecevieMY_TVP7002: @my_tvp7002_dev_ioctl: MY_TVP7002_CMD_SETSTD ok

    d CMD = 0x0300

    MY_TVP7002: @my_tvp7002_dev_ioctl end

     CAPTURE: Create...............................

     CAPTURE: Opening capture on imager TVP7002 SIMULATE.

     CAPTURE: Opening imager TVP7002 SIMULATE.

     [MY_DEBUG]: sensorMode is 720P

     CAPTURE: Opening ISIF.

    ddrOutDataOffsetH = 2560  ddrOutDataHeight = 732 !!!!!!!!!!!!!!!!!!!!!!!!!

     isifobj.numbuf = 3 

     CAPTURE: Opening H3A.

     CAPTURE: Opening IPIPE.

     CAPTURE: Create...DONE..........................

     

     Default Icon TI Logo

     

     Default Icon TI Logo

     AVSERVER MAIN: Create encodeTsk ...

     ENCODE: Recevied CMD = 0x0300

     ENCODE: Create...

    encode width = 1280  height = 720 offseth=1280 offsetv = 736 

    Rate Control Type: IVIDEO_STORAGE ALG: VidEnc: DynamicParams: bitrate = 4000000 bps, Key-frame-interval = 30

     ALG: VidEnc: mbMvOutEnable =1 

     ALG: VidEnc: encStatus.bufInfo.mdavinci_v4l2 davinci_v4l2.1: Before finishing with S_FMT:

    layer.pix_fmt.bytesperline = 640,

     layer.pix_fmt.width = 640, 

     layer.pix_fmt.height = 480, 

     layer.pix_fmt.sizeimage =460800

    inNumOutBufs is davinci_v4l2 davinci_v4l2.1: pixfmt->width = 640,

     layer->layer_info.config.line_length= 640

    2

     ALG: VidEnc: encStatus.bufInfo.minOutBufSize[0] is 1382400

     ALG: VidEnc: encStatus.bufInfo.minOutBufSize[1] is 28800

     ALG: VidEnc: XDM_GETBUFINFO: min in bufs:2 buf(0):921600 buf(1):460800

     ALG: VidEnc: pObj->MV algName =h264enc 

     ALG: VidEnc: pObj->MV_Size =28800 

     ALG: VidEnc: Default is Disable MV data output 

     AVSERVER MAIN: Create streamTsk ...

     STREAM: Ext 0: 0x0

     STREAM: Ext 1: 0x0

    queue id:98307

     AVSERVER MAIN: Create fdTsk ...

     AVSERVER MAIN: Create displayTsk ...

     AVSERVER MAIN: Create motionTsk ...

    queue id:65538

     AVSERVER MAIN: Create swosdTsk ...

     AVSERVER MAIN: Allocing Buffers ...

     AVSERVER MAIN: Allocating buffers ...

    captureOutOffsetH=1280 captureOutOffsetV = 736!!!!!!!!!!!!!!!!!!!1

     AVSERVER MAIN: Stream 0: Allocating LDC buffers: 0 of size 1413248 bytes

     AVSERVER MAIN: Stream 0: Allocating VNF buffers: 0 of size 1413248 bytes

     AVSERVER MAIN: Stream 0: Allocating Encode IN buffers: 3 of size 1413248 bytes

     AVSERVER MAIN: Stream 0: Assigning Resize IN buffers: 0 of size 1413248 bytes

     AVSERVER MAIN: Stream 0: Getting Capture OUT buffers

    captureOutOffsetH=320 captureOutOffsetV = 192!!!!!!!!!!!!!!!!!!!1

     AVSERVER MAIN: Stream 1: Allocating LDC buffers: 0 of size 92288 bytes

     AVSERVER MAIN: Stream 1: Allocating VNF buffers: 0 of size 92288 bytes

     AVSERVER MAIN: Stream 1: Allocating Encode IN buffers: 3 of size 92288 bytes

     AVSERVER MAIN: Stream 1: Assigning Resize IN buffers: 0 of size 92288 bytes

     AVSERVER MAIN: Stream 1: Getting Capture OUT buffers

     AVSERVER MAIN: Allocating FD buffers: 3 of size 123008 bytes

     AVSERVER MAIN: Assigning Display buffers: 3 of size 123008 bytes

     AVSERVER MAIN: Stream 0: Allocating Encrypt buffers: 0 of size 461824 bytes

     AVSERVER MAIN: Stream 0: Allocating Stream buffers: 3 of size 461824 bytes

     AVSERVER MAIN: Allocating buffers ...DONE

     AVSERVER MAIN: Start captureTsk ...

     CAPTURE: Create...DONE ask..........................

     CAPTURE: Recevied CMD = 0x0302.....................

     CAPTURE: Start........................................

     CAPTURE: Starting IPIPE.

     CAPTURE: Starting ISIF.

     CAPTURE: Starting imager.

     CAPTURE: Starting H3A.

     CAPTURE: Start...DONE...................................

     [MY-DEBUG] : hang on      //stop at DRV_isifGetOutBuf

     AVSERVER MAIN: Start DONE

    ApproDrvInit: 7

    queue id:98307

    debug: StartStream 486!

    debug: StartStream 494!

    debug: StartStream 498!

    debug: StartStream 519!

     

    FeatureMask: NONE.

    debug: StartStream 536!

    Gio: Error

    write device error !! gio = 63

    Gio: Error

    write device error !! gio = 64

    Gio: Error

    write device error !! gio = 81

    ApproDrvInit: 10

    queue id:98307

    ApproDrvInit: 8

    queue id:98307

    Initializing...

    ApproDrvInit: 9

    queue id:98307

    Initializing...

    ApproDrvInit: 6

    queue id:98307

    Initializing...

    ApproDrvInit: 2

    queue id:98307

    Initializing...

    Initializing...

    ...done initializing

    ...done initializing

    ...done initializing

    ...done initializing

    ...done initializing

    Play this stream using the URL:

            rtsp://0.0.0.0:8554/mpeg4

    Play this stream using the URL:

            rtsp://0.0.0.0:8555/mjpeg

    Play this stream using the URL:

            rtsp://0.0.0.0/mpeg4

    Play this stream using the URL:

            rtsp://0.0.0.0:8557/h264

    Play this stream using the URL:

            rtsp://0.0.0.0:8556/h264

    Audio disabled!

    Audio disabled!

    Audio disabled!

    Audio disabled!

    Audio disabled!

    numid=2,iface=MIXER,name='Line DAC Playback Volume'

      ; type=INTEGER,access=rw---R--,values=2,min=0,max=118,step=0

      : values=32,32

      | dBscale-min=-59.00dB,step=0.50dB,mute=1

    cp: cannot stat '/usr/share/zoneinfo/Etc/GMT-8': No such file or directory

    SystemInit success

    Schedule manager init success

    debug: SysMsgThread 1974!

     

    Thanks and Regards,

    -Gordon

  • Hi,

     

    From the log it looks like you are using very old version of the software, can you migrate to latest software version 2.6 available for IPNC RDK

     

    Also, from the log drv_vpss.c|DRV_SyncRst has failed, can you look at it on why there is error there?

     

    Regards,

     

    Raghu

     

  • Hi Raghu,

    Thanks a lot!  

    I will try to update it.


    Regards,

     Gordon

  • Hi Raghu,

    I have migrated to latest software version 2.6,but it still can't work.

    Log as follow:

    # ./av_capture_load.sh 

    cmemk unregistered

    irqk unregistered

    CSL: Module install successful, device major num = 253 

    CSL: Module version 0.10.00, built on Nov 22 2011 21:43:05 

    I2C: Module install successful, device major num = 252 

    DMA: Module install successful, device major num = 251 

    DRV: Module install successful

    DRV: Module built on Nov 22 2011 21:43:07 

    DRV: EDMACC.QUEPRI  = 00000777

    DRV: SYSTEM.MSTPRI0 = 00440022

    DRV: SYSTEM.MSTPRI1 = 00000244

    DRV: ISP.BCR        = 00000002

    DRV: SYSTEM.MISC    = 00000399

    CMEMK module: built on Nov 21 2011 at 15:28:21

      Reference Linux version 2.6.18

      File /home/gaohang/dvsdk_2_10_01_18/linuxutils_2_24_03/packages/ti/sdo/linuxutils/cmem/src/module/cmemk.c

    allocated heap buffer 0xc4000000 of size 0x3000000

    CMEM Range Overlaps Kernel Physical - allowing overlap

    CMEM phys_start (0x1000) overlaps kernel (0x80000000 -> 0x83000000)

    cmemk initialized

    EDMAK module: built on Nov 21 2011 at 15:28:23

      Reference Linux version 2.6.18

      File /home/gaohang/dvsdk_2_10_01_18/linuxutils_2_24_03/packages/ti/sdo/linuxutils/edma/src/module/edmak.c

    IRQK module: built on Nov 21 2011 at 15:28:24

      Reference Linux version 2.6.18

      File /home/gaohang/dvsdk_2_10_01_18/linuxutils_2_24_03/packages/ti/sdo/linuxutils/irq/src/module/irqk.c

    irqk initialized

    # ./system_server&

    # Creat queue id:0

    queue id:0

    FileMngThread created

    Creat queue id:32769

    queue id:32769

    AlramThread created

    Share memory init success

    IPNC_DM368_2.6.0 (root@gaohang-desktop) (gcc version 4.2.0 (Mon 

    Creat queue id:65538

    queue id:65538

    queue id:32769

    queue id:65538

    Creat queue id:98307

    queue id:98307


    CPU is DM368

    ./av_server.out DM368 NTSC APPRO2A AEWB 720P H264 5000000 VBR AUTO MENUOFF &

    Check_device_version : DEVICE VER = 1 !!


    AVSERVER UI: Initializing.

     AVSERVER API: Creating TSKs.

    ApproDrvInit: 7

    Creat queue id:131076

    queue id:131076

     

     CLK Hz,

     ARM   Hz =  432000000

     DDR   Hz =  340000000

     VPSS  Hz =  340000000

     IMCOP Hz =  340000000

     

     DRV LDC: GetConfig 0004 0x0

     [OSA_FILE ] Reading file [/mnt/nand/IMG_Paramset.bin] ... ERROR 

    IMAGE TUNE: Paramset File is not available..... Setting DEFAULT parameter

     AVSERVER API: Creating TSKs...DONE


    CONFIGURING AVSERVER FOR DM368 .....

    queue id:65538

     AVSERVER API: Sending START.

     AVSERVER MAIN: Recevied CMD = 0x0400, state = 0x0000

     AVSERVER MAIN: AVSERVER_tskConnectInit() ...

     AVSERVER MAIN: Create captureTsk ...

     CAPTURE: Recevied CMD = 0x0300

     CAPTURE: Create...

     CAPTURE: Opening capture on imager TVP7002 SIMULATE.

    cur pinmux4 val: 55755555

    after set pinmux4 val: 15715551

    Set standard ok!

    End of tvp7002_init.

     CAPTURE: Create...DONE

     AVSERVER MAIN: Create encodeTsk ...

     ENCODE: Recevied CMD = 0x0300

     ENCODE: Create...

     AVSERVER MAIN: Create streamTsk ...

     STREAM: Recevied CMD = 0x0300

     STREAM: Create...

     STREAM: Ext 0: 0x0

     STREAM: Ext 1: 0x0

    queue id:131076

     STREAM: Create...DONE

     AVSERVER MAIN: Create fdTsk ...

     AVSERVER MAIN: Create displayTsk ...

     AVSERVER MAIN: Create aewbTsk ...

     AVSERVER MAIN: Create audioPlayTsk ...

     AVSERVER MAIN: Create motionTsk ...

     AVSERVER MAIN: Create swosdTsk ...

     AVSERVER MAIN: Allocing Buffers ...

     AVSERVER MAIN: Allocating buffers ...

     AVSERVER MAIN: Stream 0: Allocating LDC buffers: 0 of size 1413248 bytes

     AVSERVER MAIN: Stream 0: Allocating VNF buffers: 0 of size 1413248 bytes

     AVSERVER MAIN: Stream 0: Allocating Encode IN buffers: 3 of size 1413248 bytes

     AVSERVER MAIN: Stream 0: Assigning Resize IN buffers: 0 of size 1413248 bytes

     AVSERVER MAIN: Stream 0: Getting Capture OUT buffers

     AVSERVER MAIN: Stream 0: Capture OUT buffers 0

     AVSERVER MAIN: Stream 0: Capture OUT buffers 1

     AVSERVER MAIN: Stream 0: Capture OUT buffers 2

     AVSERVER MAIN: Stream 1: Allocating LDC buffers: 0 of size 92288 bytes

     AVSERVER MAIN: Stream 1: Allocating VNF buffers: 0 of size 92288 bytes

     AVSERVER MAIN: Stream 1: Allocating Encode IN buffers: 3 of size 92288 bytes

     AVSERVER MAIN: Stream 1: Assigning Resize IN buffers: 0 of size 92288 bytes

     AVSERVER MAIN: Stream 1: Getting Capture OUT buffers

     AVSERVER MAIN: Stream 1: Capture OUT buffers 0

     AVSERVER MAIN: Stream 1: Capture OUT buffers 1

     AVSERVER MAIN: Stream 1: Capture OUT buffers 2

     AVSERVER MAIN: Allocating FD buffers: 3 of size 123008 bytes

     AVSERVER MAIN: Assigning Display buffers: 3 of size 123008 bytes

     AVSERVER MAIN: Stream 0: Allocating Encrypt buffers: 0 of size 461824 bytes

     AVSERVER MAIN: Stream 0: Allocating Stream buffers: 3 of size 461824 bytes

     AVSERVER MAIN: Allocating MotionDetect buffers: 3 of size 28800 bytes

     AVSERVER MAIN: Allocating buffers ...DONE

     AVSERVER MAIN: Start aewbTsk ...

     AVSERVER MAIN: Start captureTsk ...

     CAPTURE: Start...

     CAPTURE: Start...DONE

    [DEBUG] : ~~~854~~~VIDEO_captureTskMain~~~

    [DEBUG] : ~~~235~~~DRV_isifGetOutBuf~~~                 ///////////////////////// hang up here

     AVSERVER MAIN: Start audioPlayTsk ...

     AVSERVER MAIN: Start DONE

     AVSERVER API: Sending START...DONE

    ApproDrvExit: 7

    Error: WaitStreamReady Fail.

    SystemInit success

    Schedule manager init success 

     

    Can you give me some suggestion.

     

    Thanks and Regards 

    --Gordon