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.

dvr_rdk LCD display

Other Parts Discussed in Thread: TVP5158, TVP7002

Hi all

I have Mistral dm8148 EVM  and want to port DVR_RDK 3.0 to evaluate. I have some questin as below.

Q1: Mistral dm8148 EVM board has 1G bytes DDR3 in two bank. But TI dm814x EVM board has 512M bytes.

      how to modify the memory configuration to fit my board.

Q2: I don't have TI dm814x EVM SCH, where I can get it? I will thanks for who can share the SCH design document.

Q3: When I run the decode-display example , I can't see the video on the LCD pannel.

       I hasn't  HDMI device, How to config LCD for display video.  

 I use below function to config LCD , But  I can't see the video on the LCD.

configure_lcd()

{
echo "Configuring fb0 to LCD"

echo 1:dvo2 > /sys/devices/platform/vpss/graphics0/nodes

echo 0 > /sys/devices/platform/vpss/display1/enabled
echo 33500,800/164/89/10,480/10/23/10,1 > /sys/devices/platform/vpss/display1/timings
echo triplediscrete,rgb888 > /sys/devices/platform/vpss/display1/output
echo 1 > /sys/devices/platform/vpss/display1/enabled
fbset -xres 800 -yres 480 -vxres 800 -vyres 480
}

  • Hi Steven,

     

    Do you see LCD displaying background color like black? Can you check your timing and pclk is correct?

     

    Rgds,

    Brijesh

  • The decode display demo on 814x will display on onchip HDMI and CVBS (SD) . DVO2 is not used so you will not see anything on LCD (assume it is connected to DVO2).

  • Hi Badri

    Thanks for your reply.

    I understand your mean.

    I have another question, our image data come from FPGA board and connected to dm8148 VIP1 PortA .

    I use McFW , how to add our custom decoder(FPGA)  to McFW?

     

  • Simplest way to bringup is to set VcapParams.configureExternalDecoder = FALSE and configure your FPGA from your application. Then you only have to set correct captureLink params for capture to happen

  • Hi Badri

    Thanks for your reply.

    I will try follow your guide and tell you the result later.

  • Hi Badri

    Thanks for your reply.

    I use CAPTURE+DISPLAY usecase to test our FPGA decoder, the input image format is yuv4:2:2, 16bits, discreate sync and connected to VIP1.

    Now, I can get the image and display to LCD, But the image is not correct, the left side image region is not normal.

    2. I use  GT_0trace to output message, but I can't found the message in the console terminal, How active

    this function for debug VPSS.

  • The image sample in here

  • For the print pls use Vps_printf to get the debug prints on console.

  • Hi,

     

    What is the input and output resolution? Are you using any other modules in the VIP? Can you first dump the frame from the capture and check if it is correct? If it is not correct, FPGA is not providing correct data. Also which discrete sync input mode you are using? ie vsync/hsync or vsync/actvid. In the case of vsync/hsync mode, it will capture h blanking data as well. Have you cropped blanking data from the input frame?

     

    Regards,

    Brijesh Jadav

     

  • Hi Brijesh

    Thanks for you reply.

    What is the input and output resolution?

    1. Our image device output resolution is 1600 x 1200, ycrcr4:2:2, 16bits, hsync and vsync

    Are you using any other modules in the VIP?

    1. Only one module(FPGA) connected to VIP1, VIP0 is not use.

    Can you first dump the frame from the capture and check if it is correct? If it is not correct, FPGA is not providing correct data.

    1. Is your mean dump the caputure yuv data? But I don't know how do it
    2. I am sure FPGA output data is correct, I can use V4L2(ezsdk_5_05_01_04_dm814x) to test FPGA decoder successfully.
    3. I press "i" , print message as below

    =============
    Run-Time Menu
    =============

    1: Capture Settings
    2: Encode Settings
    3: Decode Settings
    4: Display Settings
    5: Audio Capture / Playback Settings

    6: Audio Capture <TVP5158> & Encode <AAC-LC> demo
    7: Audio encode demo <AAC-LC File In/Out>
    8: Audio decode demo <AAC-LC File In/Out>

    c: Change 8CH modes (8CH usecase ONLY!!!!)
    d: Change 16CH modes (16CH usecase ONLY!!!!)

    i: Print detailed system information
    s: Core Status: Active/In-active

    e: Stop Demo

    Enter Choice: i


    [m3vpss ]
    [m3vpss ] *** Capture Driver Advanced Statistics ***
    [m3vpss ]
    [m3vpss ] VIP Parser Reset Count : 0
    [m3vpss ]
    [m3vpss ] | Total Even Odd Total Even Odd Min / Max Min / Max Dropped Fid Repeat Frame Error Y/C
    [m3vpss ] CH | Fields Fields Fields FPS FPS FPS Width Height Fields Count (Desc Error Y/C)
    [m3vpss ] ------------------------------------------------------------------------------------------------------------
    [m3vpss ] 200 | 9803 9803 0 15 15 0 1920 / 1920 1200 / 1200 1 0 0/0 (0/0)
    [m3vpss ]
    [m3vpss ] VIP Capture Port 2 | DescMissMatch1 = 0, DescMissMatch2 = 0 , DescMissMatch3 = 0
    [m3vpss ]
    [m3vpss ] *** Capture List Manager Advanced Statistics ***
    [m3vpss ]
    [m3vpss ] List Post Count : 81382
    [m3vpss ] List Stall Count : 0
    [m3vpss ] List Post Time (ms) : Max = 0, Min = 0, Avg = 0, Total = 0
    [m3vpss ] INTC Timeout Count : (0, 0) (Min timeout value = 986, 993)
    [m3vpss ] Descriptor miss found count : 0
    [m3vpss ]
    [m3vpss ]
    [m3vpss ] VIP and VPDMA registers,
    [m3vpss ] VIP0 : FIQ_STATUS : 0x4810551c = 0x00000000
    [m3vpss ] VIP1 : FIQ_STATUS : 0x48105a1c = 0x00004400
    [m3vpss ] VPDMA: LIST_BUSY : 0x4810d00c = 0x00120000
    [m3vpss ]
    [m3vpss ]
    [m3vpss ] 973018: CAPTURE: Fields = 9802 (fps = 15, CPU Load = 0)
    [m3vpss ] 973018: CAPTURE: Num Resets = 0 (Avg 0 ms per reset)
    [m3vpss ] 973018: SYSTEM : FREE SPACE : System Heap = 183208 B, Mbx = 10238 msgs)
    [m3vpss ] 973018: SYSTEM : FREE SPACE : SR0 Heap = 1304320 B (1 MB)
    [m3vpss ] 973018: SYSTEM : FREE SPACE : Frame Buffer = 442282880 B (421 MB)
    [m3vpss ] 973019: SYSTEM : FREE SPACE : Bitstream Buffer = 88080256 B (83 MB)
    [m3vpss ]
    [m3vpss ] *** [NSF0] NSF Statistics ***
    [m3vpss ]
    [m3vpss ] Elasped Time : 651 secs
    [m3vpss ] Total Fields Processed : 9802
    [m3vpss ] Total Fields FPS : 100 FPS
    [m3vpss ]
    [m3vpss ]
    [m3vpss ] CH | In Recv In Reject In Process Out User Out Out
    [m3vpss ] Num | FPS FPS FPS FPS Skip FPS Skip FPS
    [m3vpss ] ------------------------------------------------
    [m3vpss ] 0 | 15 0 15 15 0 0
    [m3vpss ]
    [m3vpss ] 973020: SYSTEM : FREE SPACE : Tiler 8-bit = 134217728 B (128 MB) - TILER ON
    [m3vpss ] 973020: SYSTEM : FREE SPACE : Tiler 16-bit = 134217728 B (128 MB) - TILER ON
    [m3vpss ]
    [m3vpss ] *** [SWMS0] Mosaic Statistics ***
    [m3vpss ]
    [m3vpss ] Elasped Time: 652 secs
    [m3vpss ]
    [m3vpss ] Output Request FPS : 33 fps (21758 frames)
    [m3vpss ] Output Actual FPS : 33 fps (21758 frames)
    [m3vpss ] Output Drop FPS : 0 fps (0 frames)
    [m3vpss ] Output Reject FPS : 0 fps (0 frames)
    [m3vpss ] Scaling Internal : 29 ms
    [m3vpss ] Scaling Internal min : 30 ms
    [m3vpss ] Scaling Internal max : 30 ms
    [m3vpss ]
    [m3vpss ] Win | Window Repeat Drop Recv Que FID Invlid Acc Event Invalid Que Reject Reject Latency
    [m3vpss ] Num | FPS FPS FPS FPS FPS FPS Count (Max/Min) CH Frames Frames Frames Min / Max
    [m3vpss ] ------------------------------------------------------------------------------------------------------
    [m3vpss ] 0 | 33 18 0 0 15 0 0 ( 0/255) 0 0 0 11 / 89
    [m3vpss ]
    [m3vpss ]
    [m3vpss ] *** [SWMS0] Mosaic Parameters ***
    [m3vpss ]
    [m3vpss ] Output FPS: 30
    [m3vpss ]
    [m3vpss ] Win | Ch | Input | Input | Input | Input | Output | Output | Output | Output | Low Cost | SWMS | Data | Blank |
    [m3vpss ] Num | Num | Start X, Y | Width x Height | Pitch Y / C | Memory Type | Start X, Y | Width x Height | Pitch Y / C | Memory Type | ON / OFF | Inst | Format| Frame |
    [m3vpss ] ----------------------------------------------------------------------------------------------------------------------------------------------------------------------
    [m3vpss ] 0 | 0 | 0, 0 | 1600 x 1200 | 1600 / 1600 | NON-TILED | 0, 0 | 800 x 600 | 3840 / 0 | NON-TILED | OFF | 0 | 420SP | OFF |
    [m3vpss ]
    [m3vpss ]
    [m3vpss ] 974690: DISPLAY: HDDAC(BP0) : 60 fps, Latency (Min / Max) = ( 1 / 24 ), Callback Interval (Min / Max) = ( 16 / 17 ) !!!
    [m3vpss ] 974691: DISPLAY: UNDERFLOW COUNT: HDMI(BP0) 39622, HDDAC(BP0) 0, DVO2(BP1) 39623, SDDAC(SEC1) 80146
    [m3vpss ] 974691: SYSTEM : FREE SPACE : System Heap = 183208 B, Mbx = 10239 msgs)
    [m3vpss ] 974691: SYSTEM : FREE SPACE : SR0 Heap = 1304320 B (1 MB)
    [m3vpss ] 974691: SYSTEM : FREE SPACE : Frame Buffer = 442282880 B (421 MB)
    [m3vpss ] 974691: SYSTEM : FREE SPACE : Bitstream Buffer = 88080256 B (83 MB)
    [m3vpss ] 974692: SYSTEM : FREE SPACE : Tiler 8-bit = 134217728 B (128 MB) - TILER ON
    [m3vpss ] 974692: SYSTEM : FREE SPACE : Tiler 16-bit = 134217728 B (128 MB) - TILER ON
    [m3vpss ]
    [m3vpss ] 979692: LOAD: CPU: 4.9% HWI: 1.0%, SWI:0.9%
    [m3vpss ]
    [m3vpss ] 979693: LOAD: TSK: CAPTURE : 0.4%
    [m3vpss ] 979693: LOAD: TSK: NSF0 : 0.2%
    [m3vpss ] 979693: LOAD: TSK: DISPLAY0 : 0.4%
    [m3vpss ] 979693: LOAD: TSK: SWMS0 : 0.6%
    [m3vpss ] 979693: LOAD: TSK: MISC : 1.4%
    [m3vpss ]
    [m3video]
    [m3video] 980111: LOAD: CPU: 0.7% HWI: 0.3%, SWI:0.2%
    [m3video]
    [m3video] 980111: LOAD: TSK: MISC : 0.2%
    [m3video]
    [c6xdsp ]
    [c6xdsp ] 537862: LOAD: CPU: 0.2% HWI: 0.0%, SWI:0.0%
    [c6xdsp ]
    [c6xdsp ] 537862: LOAD: TSK: MISC : 0.2%
    [c6xdsp ]

    =============
    Run-Time Menu
    =============

    1: Capture Settings
    2: Encode Settings
    3: Decode Settings
    4: Display Settings
    5: Audio Capture / Playback Settings

    6: Audio Capture <TVP5158> & Encode <AAC-LC> demo
    7: Audio encode demo <AAC-LC File In/Out>
    8: Audio decode demo <AAC-LC File In/Out>

    c: Change 8CH modes (8CH usecase ONLY!!!!)
    d: Change 16CH modes (16CH usecase ONLY!!!!)

    i: Print detailed system information
    s: Core Status: Active/In-active

    e: Stop Demo

    Enter Choice:

    Also which discrete sync input mode you are using?
    1. Hsync and Vsync
    2. at captureLink_drv.c -> CaptureLink_drvCreateInst, I modified as below

    (1).pVipCreateArgs->videoCaptureMode = VPS_CAPT_VIDEO_CAPTURE_MODE_SINGLE_CH_NON_MUX_DISCRETE_SYNC_HSYNC_VSYNC;
    pVipCreateArgs->videoIfMode = VPS_CAPT_VIDEO_IF_MODE_16BIT;

    (2).pVipCreateArgs->videoCaptureMode = VPS_CAPT_VIDEO_CAPTURE_MODE_SINGLE_CH_NON_MUX_DISCRETE_SYNC_HSYNC_VBLK;
    pVipCreateArgs->videoIfMode = VPS_CAPT_VIDEO_IF_MODE_16BIT;

    Both the above changed and tested, the result is same, the left side image are invalid.
    Other videoCaptureMode value will can't get the frames information.


    In the case of vsync/hsync mode, it will capture h blanking data as well. Have you cropped blanking data from the input frame?
    1. I don't understand your mean, please tell me the detail.
    2. How to cropped blanking data from the input frame?


    My captueLink config parameter as below

    capturePrm.numVipInst = 1; // Only one decoder form FPGA
    for( vipInstId=0; vipInstId<capturePrm.numVipInst; vipInstId++ )
    {
    pCaptureInstPrm = &capturePrm.vipInst[vipInstId];
    pCaptureInstPrm->vipInstId = SYSTEM_CAPTURE_INST_VIP1_PORTA;
    pCaptureInstPrm->videoDecoderId = SYSTEM_DEVICE_VID_DEC_TVP7002_DRV; // I don't use TVP5158, so set the other value
    pCaptureInstPrm->inDataFormat = SYSTEM_DF_YUV422P;
    pCaptureInstPrm->standard = SYSTEM_STD_UXGA_60; // 1600 x 1200
    pCaptureInstPrm->numOutput = 1;

    pCaptureOutPrm = &pCaptureInstPrm->outParams[0];
    pCaptureOutPrm->dataFormat = SYSTEM_DF_YUV422I_YUYV;
    pCaptureOutPrm->scEnable = FALSE;
    pCaptureOutPrm->scOutWidth = 0;
    pCaptureOutPrm->scOutHeight = 0;
    pCaptureOutPrm->outQueId = 0;
    }

    My usecase flowchart

    Capture (YUV422I) 1CH (1600x1200) 15fps
                                   |
                                   |
                  NSF (YUV420SP)
                                  |
                                  |
                                  |
                       SW Mosaic
                     (SC5 YUV422I)
                                 |
                                 |  
                                 |
                  LCD (800x600)

  • Hi Brijesh

    I doubt VIP capture timing config is not correct,  then  I modified hFrontPorch and hBackPorch value in struct FVID2_ModeInfo , 

    However I can't got the good result.

    I look forward to see TI expert reply

  • Hi Steven,

     

    in hsync style of capture, VIP captures complete line including horizontal blanking portion of the image, You will have to crop this blanking portion either using VIP trimmer or trimmer of the scalar. If you see capture statistics says that input frame size is 1920x1200, but you are trying to capture frames of size 1600x1200. So it is capturing 320 pixels extra, which has to be trimmer off.

    You can configure VIP trimmer using ioctl IOCTL_VPS_CAPT_SET_VIP_CROP_CFG. I think this ioctl is not supported in capture link, you will have to add it in the capture link.

     

    Regards,

    Brijesh Jadav

  • Hi Brijesh

    I am glad to tell you, my issue has been solved under you guide.

    Thank you very much!

  • Hi Brijesh

    I have some quetion about below usecase flowchart.


                                              Capture (YUV422I)
                                                        |
                                                        |
                                              NSF (YUV420SP)
                                                        |
                                                        |

                                          IPC Frames Out  (VPSS M3) ------------------<<<processLink>>>-----------

                                                       |                                                                                                              |

                                           IPC Frames IN   (A8)                                                                           FramesInDSP

                                                      |                                                                                                               |

                                          IPC Frames OUT  (A8)                                                                           ALG LINK (Our ALG)

                                                     |

                                           IPC Frames IN (VPSS M3)
                                                       |
                                                       |
                                               SW Mosaic
                                                (SC5 422)
                                                      |
                                                      |
                                           On-Chip HDMI

    My question as below.

    Q1. I want to snapshot a yuv frame, and then load VIDEO M3 encode to a jpeg file, how to do this work?

    Q2. Currently, I don't want to encode video, only want to snapshot jpeg file and display video, can you give me a work usecase?



  • Hi,

     

    I did not get exactly the question. From where do you want to get the snapshot? Do you want to capture frame which is getting displayed?

     

    Regards,

    Brijesh Jadav

     

  • Hi Brijesh

    Sorry, I don't say clearly.

    I want to do three works

    1. Capture video and display on the LCD.

    2. Snapshot a jpeg file and save local.

    3.Can link to our ALG for image analysis. 

    Now, I can display capture video on the LCD, but I don't know how to snapshot a jpeg file.

    Can you giev a work usecase flowchart?


  • For JPEG snapshot you data flow should be

     

    Capture -->NSF --> Dup --> IpcOutM3 --> IpcInM3 --> encLink --> ipcBitsOutRTOS --> ipcBitsInHLOS

                                           --> ipcFramesOut --> ipcFramesInHLOS --> SwmS --> Display

     

    Create a MJPEG channel in encLink and set the targetFPS to zero so that by default it will not encode.

    When you require snapshot invoke the ENC_LINK_CMD_SET_CODEC_SNAPSHOT cmd and you will receive the encoded MJPEG frame from Venc_getBitstreamBuffer call.

    Also can you explain why do you send the frame to A8 in your current data flow ?

     

     

     

     

  • Hi Badri

    Sorry for late.

    1. I send the frame to A8 for convenient test capture video.  in that data flow , I can capture yuv frame and yuv video file successfully.

        I found a function Enclink_jpegEncodeFrame in encLink_jpeg.c ,  my begining thinking is when I got the yuv frame,  and then 

       invoke Enclink_jpegEncodeFrame encode to jpeg frame. But I don't know whether can work.

    2. I have a question about your data flow. 

    Capture -->NSF --> Dup --> IpcOutM3 --> IpcInM3 --> encLink --> ipcBitsOutRTOS --> ipcBitsInHLOS

                                           --> ipcFramesOut --> ipcFramesInHLOS --> SwmS --> Display

    Q1: How to connect directly from ipcBitsInHLOS to ipcFramesOut?  may be require decLink . 

           if can connect , would you give me some code?

    3.  currently,  my usecase as below

       

    The left chain is woork, can see the image on the device, but the right chain can't receive the frame information.

    I press "i" print the detailed system information as below.

    =============
    Run-Time Menu
    =============

    1: Capture Settings
    2: Encode Settings
    3: Decode Settings
    4: Display Settings
    5: Audio Capture / Playback Settings

    6: Audio Capture <TVP5158> & Encode <AAC-LC> demo
    7: Audio encode demo <AAC-LC File In/Out>
    8: Audio decode demo <AAC-LC File In/Out>

    c: Change 8CH modes (8CH usecase ONLY!!!!)
    d: Change 16CH modes (16CH usecase ONLY!!!!)

    i: Print detailed system information
    s: Core Status: Active/In-active

    e: Stop Demo

    Enter Choice: i


    [m3vpss ]
    [m3vpss ] *** Capture Driver Advanced Statistics ***
    [m3vpss ]
    [m3vpss ] *** [NSF0] NSF Statistics ***
    [m3vpss ]
    [m3vpss ] Elasped Time : 33 secs
    [m3vpss ] Total Fields Processed : 6
    [m3vpss ] Total Fields FPS : 100 FPS
    [m3vpss ]
    [m3vpss ]
    [m3vpss ] CH | In Recv In Reject In Process Out User Out Out
    [m3vpss ] Num | FPS FPS FPS FPS Skip FPS Skip FPS
    [m3vpss ] ------------------------------------------------
    [m3vpss ] 0 | 15 15 0 0 0 15
    [m3vpss ]
    [m3vpss ]
    [m3vpss ] VIP Parser Reset Count : 0
    [m3vpss ]
    [m3vpss ] | Total Even Odd Total Even Odd Min / Max Min / Max Dropped Fid Repeat Frame Error Y/C
    [m3vpss ] CH | Fields Fields Fields FPS FPS FPS Width Height Fields Count (Desc Error Y/C)
    [m3vpss ] ------------------------------------------------------------------------------------------------------------
    [m3vpss ] 200 | 505 505 0 15 15 0 1600 / 1600 1200 / 1200 2 0 0/0 (0/0)
    [m3vpss ]
    [m3vpss ] VIP Capture Port 2 | DescMissMatch1 = 0, DescMissMatch2 = 0 , DescMissMatch3 = 0
    [m3vpss ]
    [m3vpss ] *** Capture List Manager Advanced Statistics ***
    [m3vpss ]
    [m3vpss ] List Post Count : 4197
    [m3vpss ] List Stall Count : 0
    [m3vpss ] List Post Time (ms) : Max = 0, Min = 0, Avg = 0, Total = 0
    [m3vpss ] INTC Timeout Count : (0, 0) (Min timeout value = 993, 995)
    [m3vpss ] Descriptor miss found count : 0
    [m3vpss ]
    [m3vpss ]
    [m3vpss ] VIP and VPDMA registers,
    [m3vpss ] VIP0 : FIQ_STATUS : 0x4810551c = 0x00000000
    [m3vpss ] VIP1 : FIQ_STATUS : 0x48105a1c = 0x00004400
    [m3vpss ] VPDMA: LIST_BUSY : 0x4810d00c = 0x00020000
    [m3vpss ]
    [m3vpss ]
    [m3vpss ] 66331: CAPTURE: Fields = 503 (fps = 14, CPU Load = 0)
    [m3vpss ] 66331: CAPTURE: Num Resets = 0 (Avg 0 ms per reset)
    [m3vpss ] 66331: SYSTEM : FREE SPACE : System Heap = 182872 B, Mbx = 10239 msgs)
    [m3vpss ] 66332: SYSTEM : FREE SPACE : SR0 Heap = 4450048 B (4 MB)
    [m3vpss ] 66332: SYSTEM : FREE SPACE : Frame Buffer = 111981440 B (106 MB)
    [m3vpss ] 66332: SYSTEM : FREE SPACE : Bitstream Buffer = 88080256 B (83 MB)
    [m3vpss ] 66332: SYSTEM : FREE SPACE : Tiler Buffer = 55 B (0 MB) - TILER OFF
    [m3vpss ]
    [m3vpss ] *** [SWMS0] Mosaic Statistics ***
    [m3vpss ]
    [m3vpss ] Elasped Time: 35 secs
    [m3vpss ]
    [m3vpss ] Output Request FPS : 33 fps (1176 frames)
    [m3vpss ] Output Actual FPS : 33 fps (1176 frames)
    [m3vpss ] Output Drop FPS : 0 fps (0 frames)
    [m3vpss ] Output Reject FPS : 0 fps (0 frames)
    [m3vpss ] Scaling Internal : 29 ms
    [m3vpss ] Scaling Internal min : 30 ms
    [m3vpss ] Scaling Internal max : 30 ms
    [m3vpss ]
    [m3vpss ] Win | Window Repeat Drop Recv Que FID Invlid Acc Event Invalid Que Reject Reject Latency
    [m3vpss ] Num | FPS FPS FPS FPS FPS FPS Count (Max/Min) CH Frames Frames Frames Min / Max
    [m3vpss ] ------------------------------------------------------------------------------------------------------
    [m3vpss ] 0 | 33 18 0 0 14 0 1 ( 8/ 8) 0 0 0 12 / 128
    [m3vpss ]
    [m3vpss ]
    [m3vpss ] *** [SWMS0] Mosaic Parameters ***
    [m3vpss ]
    [m3vpss ] Output FPS: 30
    [m3vpss ]
    [m3vpss ] Win | Ch | Input | Input | Input | Input | Output | Output | Output | Output | Low Cost | SWMS | Data | Blank |
    [m3vpss ] Num | Num | Start X, Y | Width x Height | Pitch Y / C | Memory Type | Start X, Y | Width x Height | Pitch Y / C | Memory Type | ON / OFF | Inst | Format| Frame |
    [m3vpss ] ----------------------------------------------------------------------------------------------------------------------------------------------------------------------
    [m3vpss ] 0 | 0 | 0, 0 | 1600 x 1200 | 3200 / 3200 | NON-TILED | 0, 0 | 800 x 600 | 3840 / 0 | NON-TILED | OFF | 0 | 422I | OFF |
    [m3vpss ]
    [m3vpss ]
    [m3vpss ] 68000: DISPLAY: HDDAC(BP0) : 60 fps, Latency (Min / Max) = ( 1 / 24 ), Callback Interval (Min / Max) = ( 16 / 17 ) !!!
    [m3vpss ] 68000: DISPLAY: UNDERFLOW COUNT: HDMI(BP0) 2146, HDDAC(BP0) 0, DVO2(BP1) 2146, SDDAC(SEC1) 4330
    [m3vpss ] 68000: SYSTEM : FREE SPACE : System Heap = 182872 B, Mbx = 10239 msgs)
    [m3vpss ] 68000: SYSTEM : FREE SPACE : SR0 Heap = 4450048 B (4 MB)
    [m3vpss ] 68001: SYSTEM : FREE SPACE : Frame Buffer = 111981440 B (106 MB)
    [m3vpss ] 68001: SYSTEM : FREE SPACE : Bitstream Buffer = 88080256 B (83 MB)
    [m3vpss ] 68001: SYSTEM : FREE SPACE : Tiler Buffer = 55 B (0 MB) - TILER OFF
    [m3vpss ]
    [m3vpss ] *** IpcFramesOutRTOS Statistics ***
    [m3vpss ]
    [m3vpss ] Elasped Time : 35 secs
    [m3vpss ] Total Fields Processed : 0
    [m3vpss ] Total Fields FPS : 0 FPS
    [m3vpss ]
    [m3vpss ]
    [m3vpss ] CH | In Recv In Process In Skip
    [m3vpss ] Num | FPS FPS FPS
    [m3vpss ] --------------------------------
    [m3vpss ]
    [c6xdsp ]
    [c6xdsp ] *** SCD Statistics ***
    [c6xdsp ]
    [c6xdsp ] Elasped Time : 53 secs
    [c6xdsp ] Total Fields Processed : 0
    [c6xdsp ] Total Fields FPS : 0 FPS
    [c6xdsp ]
    [c6xdsp ]
    [c6xdsp ] CH | In Recv In Process User Skip Process Skip In Process Time
    [c6xdsp ] Num | FPS FPS FPS FPS per frame (msec)
    [c6xdsp ] ----------------------------------------------------------------
    [c6xdsp ]
    [m3video] 71336: HDVICP-ID:0
    [m3video] All percentage figures are based off totalElapsedTime
    [m3video] totalAcquire2wait :0 %
    [m3video] totalWait2Isr :0 %
    [m3video] totalIsr2Done :0 %
    [m3video] totalWait2Done :0 %
    [m3video] totalDone2Release :0 %
    [m3video] totalAcquire2Release :0 %
    [m3video] totalAcq2acqDelay :0 %
    [m3video] totalElapsedTime in msec : 0
    [m3video] numAccessCnt: 0
    [m3video] IVA-FPS : 0
    [m3video] Average time spent per frame in microsec: 0
    [m3video] 71337: HDVICP-ID:1
    [m3video] All percentage figures are based off totalElapsedTime
    [m3video] totalAcquire2wait :0 %
    [m3video] totalWait2Isr :0 %
    [m3video] totalIsr2Done :0 %
    [m3video] totalWait2Done :0 %
    [m3video] totalDone2Release :0 %
    [m3video] totalAcquire2Release :0 %
    [m3video] totalAcq2acqDelay :0 %
    [m3video] totalElapsedTime in msec : 0
    [m3video] numAccessCnt: 0
    [m3video] IVA-FPS : 0
    [m3video] Average time spent per frame in microsec: 0
    [m3video] 71338: HDVICP-ID:2
    [m3video] All percentage figures are based off totalElapsedTime
    [m3video] totalAcquire2wait :0 %
    [m3video] totalWait2Isr :0 %
    [m3video] totalIsr2Done :0 %
    [m3video] totalWait2Done :0 %
    [m3video] totalDone2Release :0 %
    [m3video] totalAcquire2Release :0 %
    [m3video] totalAcq2acqDelay :0 %
    [m3video] totalElapsedTime in msec : 0
    [m3video] numAccessCnt: 0
    [m3video] IVA-FPS : 0
    [m3video] Average time spent per frame in microsec: 0
    [m3video]
    [m3video] *** ENCODE Statistics ***
    [m3video]
    [m3video] Elasped Time : 71 secs
    [m3video]
    [m3video]
    [m3video] CH | In Recv In Skip In User Out Latency
    [m3video] Num | FPS FPS Skip FPS FPS Min / Max
    [m3video] --------------------------------------------
    [m3video]
    [m3video] Multi Channel Encode Average Submit Batch Size
    [m3video] Max Submit Batch Size : 24
    [m3video] IVAHD_0 Average Batch Size : 0
    [m3video] IVAHD_0 Max achieved Batch Size : 0
    [m3video]
    [m3video] Multi Channel Encode Batch break Stats
    [m3video] Total Number of Batches created: 0
    [m3video] All numbers are based off total number of Batches created
    [m3video] Batch breaks due to batch sizeexceeding limit: 0 %
    [m3video] Batch breaks due to ReqObj Que being empty: 0 %
    [m3video] Batch breaks due to changed resolution class: 0 %
    [m3video] Batch breaks due to interlace and progressivecontent mix: 0 %
    [m3video] Batch breaks due to channel repeat: 0 %
    [m3video] Batch breaks due to different codec: 0 %
    [m3vpss ]
    [m3vpss ] 73008: LOAD: CPU: 6.6% HWI: 1.0%, SWI:1.4%
    [m3vpss ]
    [m3vpss ] 73008: LOAD: TSK: IPC_FRAMES_IN0 : 0.4%
    [m3vpss ] 73008: LOAD: TSK: IPC_FRAMES_OUT1 : 0.6%
    [m3vpss ] 73008: LOAD: TSK: CAPTURE : 0.4%
    [m3vpss ] 73009: LOAD: TSK: DISPLAY0 : 0.4%
    [m3vpss ] 73009: LOAD: TSK: SWMS0 : 0.7%
    [m3vpss ] 73009: LOAD: TSK: MISC : 1.7%
    [m3vpss ]
    [m3video]
    [m3video] 73426: LOAD: CPU: 2.0% HWI: 0.3%, SWI:0.6%
    [m3video]
    [m3video] 73427: LOAD: TSK: IPC_IN_M30 : 0.2%
    [m3video] 73427: LOAD: TSK: ENC0 : 0.5%
    [m3video] 73427: LOAD: TSK: MISC : 0.4%
    [m3video]
    [c6xdsp ]
    [c6xdsp ] 56982: LOAD: CPU: 0.2% HWI: 0.0%, SWI:0.0%
    [c6xdsp ]
    [c6xdsp ] 56982: LOAD: TSK: MISC : 0.2%
    [c6xdsp ]


    *** Encode Bitstream Received Statistics ***

    Elased time = 49.8 secs

    CH | Bitrate (Kbps) | FPS | Key-frame FPS | Width (max/min) | Height (max/min) | Latency (max/min)
    --------------------------------------------------------------------------------------------------

    =============
    Run-Time Menu
    =============

    1: Capture Settings
    2: Encode Settings
    3: Decode Settings
    4: Display Settings
    5: Audio Capture / Playback Settings

    6: Audio Capture <TVP5158> & Encode <AAC-LC> demo
    7: Audio encode demo <AAC-LC File In/Out>
    8: Audio decode demo <AAC-LC File In/Out>

    c: Change 8CH modes (8CH usecase ONLY!!!!)
    d: Change 16CH modes (16CH usecase ONLY!!!!)

    i: Print detailed system information
    s: Core Status: Active/In-active

    e: Stop Demo

    ------------------------------------------------------------------------------------------

    I look forfard  to see your reply

  • Hi Badri

    I have another question for snapshot jpeg frame.

    Send this command ENC_LINK_CMD_SET_CODEC_SNAPSHOT will invoke below function

    Int32 EncLink_codecForceDumpFrame(EncLink_Obj * pObj,
    EncLink_ChannelInfo * params)
    {
    Int32 status = ENC_LINK_S_SUCCESS;
    EncLink_ChObj *pChObj;
    UInt key;

    key = Hwi_disable();
    pChObj = &pObj->chObj[params->chId];
    pChObj->forceDumpFrame = TRUE;
    Hwi_restore(key);

    return (status);
    }

    This function only set pChObj->forceDumpFrame = TRUE, this variable can see use in function EncLink_codecQueueFramesToChQue

    static Int32 EncLink_codecQueueFramesToChQue(EncLink_Obj * pObj)
    {
    UInt32 frameId, freeFrameNum;
    FVID2_Frame *pFrame;
    System_LinkInQueParams *pInQueParams;
    FVID2_FrameList frameList;
    EncLink_ChObj *pChObj;
    Int32 status;
    UInt32 curTime;
    Bool skipFrame;

    pInQueParams = &pObj->createArgs.inQueParams;

    System_getLinksFullFrames(pInQueParams->prevLinkId,
    pInQueParams->prevLinkQueId, &frameList);

    if (frameList.numFrames)
    {
    pObj->inFrameGetCount += frameList.numFrames;

    freeFrameNum = 0;
    curTime = Utils_getCurTimeInMsec();

    for (frameId = 0; frameId < frameList.numFrames; frameId++)
    {
    pFrame = frameList.frames[frameId];

    pChObj = &pObj->chObj[pFrame->channelNum];

    pChObj->inFrameRecvCount++;

    if (( FALSE == pChObj->algObj.algCreateParams.singleBuf) ||
    (pObj->inQueInfo.chInfo[pFrame->channelNum].scanFormat ==
    FVID2_SF_PROGRESSIVE))
    {
    pChObj->nextFid = pFrame->fid;
    }

    skipFrame = FALSE;
    if(pChObj->forceDumpFrame == FALSE)
    {
    skipFrame = EncLink_doSkipFrame(pChObj, pFrame->channelNum);

    if (pChObj->forceAvoidSkipFrame == TRUE)
    skipFrame = FALSE;
    }
    else
    {
    pChObj->forceDumpFrame = FALSE;
    }

    pChObj->curFrameNum++;

    /* frame skipped due to user setting */
    if(skipFrame || pChObj->disableChn)
    pChObj->inFrameUserSkipCount++;

    /* frame skipped due to framework */
    if(pChObj->nextFid != pFrame->fid && pFrame->fid != FVID2_FID_FRAME)
    pChObj->inFrameRejectCount++;

    if (((pChObj->nextFid == pFrame->fid) ||
    (pFrame->fid == FVID2_FID_FRAME)) &&
    (pChObj->disableChn != TRUE) && (skipFrame == FALSE))
    {
    // frame is of the expected FID use it, else drop it
    pChObj->totalInFrameCnt++;
    if (pChObj->totalInFrameCnt > ENC_LINK_STATS_START_THRESHOLD)
    {
    pChObj->totalFrameIntervalTime +=
    (curTime - pChObj->prevFrmRecvTime);

    /* reserved field in FVID2_Frame used as place holder
    for current time of submission to encode

    timeStamp has original capture stamp so that should not be modified
    */
    pFrame->reserved = (Ptr)curTime;
    }
    else
    {
    pChObj->totalFrameIntervalTime = 0;
    pChObj->totalProcessTime = 0;

    EncLink_resetStatistics(pObj);
    }
    pChObj->prevFrmRecvTime = curTime;

    status = Utils_quePut(&pChObj->inQue, pFrame, BIOS_NO_WAIT);
    UTILS_assert(status == FVID2_SOK);
    pChObj->inFrameQueCount++;
    pChObj->nextFid ^= 1; // toggle to next
    // required FID
    }
    else
    {
    pChObj->inFrameSkipCount++;

    // frame is not of expected FID, so release frame
    frameList.frames[freeFrameNum] = pFrame;
    freeFrameNum++;
    if (pChObj->nextFid == pFrame->fid)
    {
    pChObj->nextFid ^= 1; // toggle to next
    }
    }
    }

    if (freeFrameNum)
    {
    frameList.numFrames = freeFrameNum;
    System_putLinksEmptyFrames(pInQueParams->prevLinkId,
    pInQueParams->prevLinkQueId, &frameList);
    pObj->inFramePutCount += freeFrameNum;
    }
    }

    return FVID2_SOK;
    }

    From this function ,  I can't found any message about snapshot jpeg frame, would you tell me

    the snapshot jpeg frame principle or flowchart?

    Thanks & Regards.

  • xu steven said:

    I found a function Enclink_jpegEncodeFrame in encLink_jpeg.c ,  my begining thinking is when I got the yuv frame,  and then 

       invoke Enclink_jpegEncodeFrame encode to jpeg frame. But I don't know whether can work

     
    - The function is implemented on Video M3. You cannot invoke this function from application running on A8. It will not work.
     
    xu steven said:
     
     How to connect directly from ipcBitsInHLOS to ipcFramesOut?  may be require decLink
     
    In the data flow I mentioned dupLink has two outputs .One going to IpcOutM3 and another output going to ipcFramesOut. It is not ipcBitsIn connected to ipcFramesOut.
     
    xu steven said:
     
    currently,  my usecase as below The left chain is woork, can see the image on the device, but the right chain can't receive the frame information.
     
     
    Pls share the usecase file and log of Vsys_printBufferStatistics. Make sure you are doing System_linkStart for all links that you are creating.Looks like the link after NSF is not freeing back the buffers. This can be problem with link connection between nsfLink and nextLink.
     
    xu steven said:
     
    the snapshot jpeg frame principle or flowchart?
     
    MJPEG encoder in generally configured for low fps like 1 fps . This means if input is 30 fps, it will drop 29 frames and encode only 1 frame .When the SNAPSHOT CMD is sent, it will encode the next frame received disregarding the fps .The snapshot image can be got by the application by doing Venc_getBitsteamBuffer and checking if the received frame corresponds to MJPEG channel
  • HI Badri 

    The right chain is work, the reason is like you memtion.

    Now, I have no any question.

    Thanks & Regards


  • Hi Badri

    Does dvrrdk3.0 support GUI? for example QT.

    Our project will display four channels video in a GUI interface.

  • The UDworks DVR application support QT based GUI. The mcfw command line demo don't have QT integrated.

  • Hi Badri

    Thanks for your reply.

    I don't have UDworks DVR documents. Our dm8148 EVM board is form Mistral.

    I can port QT4.6.2 to Linux system.

    If I don't run "./load.sh",  I am able to the run QT example and can see the GUI interface.

    But after run "./load.sh", The QT example will run failed. 

    The failed information look like the frame buffer config is not correct.

    Would you tell me how to do this work? give me some suggestion or guide.

  • Hi Steven,

     

    After running load.sh, you have to make sure that your grpx pipelines are connected to the correct VENC. please sysfs entries to check where it is connected and connect then the way you want. Please also go through use guide to get more info on sysfs entries.

     

    Regards,

    Brijehs Jadav

  • Hi Brijesh

    Thanks for your reply.

    Your memtion is very helpful for me, I will check the sysfs entries and then tell you result later.

    Regards.

  • Hi Badri

    I have a quetion and need your help.

    Our LCD is RGB24, so I require RGB data to fill the frame buffer to display.

    But I look at all the Link in DVRRDK , not found output RGB24 data format.

    How to get the RGB24 data from the Link componet? If no other way to do this 

    work, I have to do YUV420 to RGB24 data format in A8, But this is not good 

    method.

    I get some TMS320DM8148SCYEA0 sample form local TI guy , which version

    SDK support TMS320DM8148SCYEA0?

    Regards.

  • Hi Steven,

     

    There are Color space conversion modules in the display pipelines, so you don't realy need to have RGB24 data, you could display YUV422 frame data over your RGB24 LCD.. Why do you think that YUV420 to RGB conversion isn't good?

     

    Regards,

    Brijesh Jadav

  • Hi Brijesh,

    I want to use QT GUI  to display our image. so can't use DisplayLink to display image.

    My thinking is after get YUV420 frame data ,do YUV420 to RGB24 conversion in A8,

    then use QT QImage to display, so I think this is not good method. But I have no other

    way to do this work.

    Would you give some suggestion or guide?

    Regards,

     

  • Hi Steven,

     

    I am not sure how QT works, but there might be some module in qt to convert YUV420 to RGB. You could use it for the display.

    Typically, these applications works on Fbdev, which supports RGB display. but could you check if it supports multiple pipelines like Fbdev for graphics and V4L2 for the Video display? If it supports, it will be easier for you.

     

    Regards,

    Brijesh Jadav

  • Hi Brijesh

    I have a issue need your help, mention as below.

    I am able to capture video and display on the LCD, but the color isn't corrent, the red color

    is look like blue

    I capture the video frame and save file to A8 host and open the file to display, I found the 

    picture is normal, the color is correct. so i am sure the problems on the display setting.

    My display device is LCD and pipeline to DVO2 ,  config as below.

    configure_lcd()
    {
    echo "Configuring fb0 to LCD"
    echo 0 > /sys/devices/platform/vpss/graphics0/enabled
    echo 0 > /sys/devices/platform/vpss/display1/enabled
    echo 33500,800/164/89/10,600/10/23/10,1 > /sys/devices/platform/vpss/display1/timings
    echo triplediscrete,rgb888 > /sys/devices/platform/vpss/display1/output
    echo 1 > /sys/devices/platform/vpss/display1/enabled
    echo 1:dvo2 > /sys/devices/platform/vpss/graphics0/nodes
    echo 1 > /sys/devices/platform/vpss/graphics0/enabled
    fbset -xres 800 -yres 600 -vxres 800 -vyres 600
    fbset -depth 32 -rgba 8/16,8/8,8/0,0/0
    }

    My display parameter setting is below

    vdisParams.deviceParams[VDIS_DEV_HDMI].resolution = VSYS_STD_SVGA_60;
    vdisParams.deviceParams[VDIS_DEV_HDMI].outputInfo.dataFormat = SYSTEM_DF_RGB24_888;
    vdisParams.deviceParams[VDIS_DEV_DVO2].resolution = VSYS_STD_SVGA_60;
    vdisParams.deviceParams[VDIS_DEV_DVO2].outputInfo.dataFormat = SYSTEM_DF_RGB24_888;

    Q1: why the video color is not correct?

    Q2: I notice that the dataFormat is support 

    Hi Brijesh

    I have a issue need your help, mention as below.

    I am able to capture video and display on the LCD, but the color isn't corrent, the red color

    is look like blue.

    I capture the video frame and save file to A8 host and open the file to display, I found the

    picture is normal, the color is correct. so i am sure the problems on the display setting.

    My display device is LCD and pipeline to DVO2 , config as below.

    configure_lcd()
    {
    echo "Configuring fb0 to LCD"
    echo 0 > /sys/devices/platform/vpss/graphics0/enabled
    echo 0 > /sys/devices/platform/vpss/display1/enabled
    echo 33500,800/164/89/10,600/10/23/10,1 > /sys/devices/platform/vpss/display1/timings
    echo triplediscrete,rgb888 > /sys/devices/platform/vpss/display1/output
    echo 1 > /sys/devices/platform/vpss/display1/enabled
    echo 1:dvo2 > /sys/devices/platform/vpss/graphics0/nodes
    echo 1 > /sys/devices/platform/vpss/graphics0/enabled
    fbset -xres 800 -yres 600 -vxres 800 -vyres 600
    fbset -depth 32 -rgba 8/16,8/8,8/0,0/0
    }

    My display parameter setting is below

    vdisParams.deviceParams[VDIS_DEV_HDMI].resolution = VSYS_STD_SVGA_60;
    vdisParams.deviceParams[VDIS_DEV_HDMI].outputInfo.dataFormat = SYSTEM_DF_RGB24_888;
    vdisParams.deviceParams[VDIS_DEV_DVO2].resolution = VSYS_STD_SVGA_60;
    vdisParams.deviceParams[VDIS_DEV_DVO2].outputInfo.dataFormat = SYSTEM_DF_RGB24_888;

    Q1: why the video color is not correct? 

    Q2: I notice that the dataFormat is support FVID2_DF_RGB24_888, FVID2_DF_YUV420SP_UV and  FVID2_DF_YUV422,

         not support FVID2_DF_ARGB32_8888 , My be FVID2_DF_ARGB32_8888 is right.

    Thanks and Regards

  • hi

     I have some problem when compile the qt, the cmd i used is ./configure -prefix  /usr/local/Trolltech/QtEmbedded-4.8.5-arm -opensource -confirm-license -release -shared -embedded arm -xplatform qws/linux-arm-g++ -depths 16,18,24 -fast -optimized-qmake -pch -qt-sql-sqlite -qt-libjpeg -qt-zlib -qt-libpng -qt-freetype -little-endian  -host-little-endian -qt3support  -no-libtiff   -no-libmng -no-opengl -no-mmx  -no-sse  -no-sse2 -no-3dnow -no-openssl -no-webkit -no-qvfb -no-phonon -no-nis -no-opengl -no-cups -no-glib -no-xcursor   -no-xfixes  -no-xrandr   -no-xrender -no-separate-debug-info -nomake examples   -nomake  tools   -nomake docs ,and compiled success,but when i run at board with cmd ./init.sh ./load.sh ./run_gui.sh,  it continuously print [m3vpss ]  1320827: SYSTEM: Attaching to [VIDEO-M3] .we can't see the gui on the screen,can you help me find the issue, and i also want to know your's cmd while compiled the QT, (qws/linux-arm-g++ or linux-arm-gnueabi-g++ or linux-TIarmv7-g++ which to choose,thanks.

    root@dm810x:/opt/dvr_rdk/ti810x# ./run_gui.sh
    *** Bootargs Validated for mem param ***
    *** Bootargs Validated for notifyk.vpssm3 params ***
    Kernel bootargs validated
    numid=101,iface=MIXER,name='Left DAC Mux'
      ; type=ENUMERATED,access=rw------,values=1,items=3
      ; Item #0 'DAC_L1'
      ; Item #1 'DAC_L3'
      ; Item #2 'DAC_L2'
      : values=2
    numid=99,iface=MIXER,name='Right DAC Mux'
      ; type=ENUMERATED,access=rw------,values=1,items=3
      ; Item #0 'DAC_R1'
      ; Item #1 'DAC_R3'
      ; Item #2 'DAC_R2'
      : values=2
    Removed syslink kernel module
     [c6xdsp ] Remote Debug Shared Memory @ 0xbfff0000
     [m3video] Remote Debug Shared Memory @ 0xbfff5020
     [m3vpss ] Remote Debug Shared Memory @ 0xbfffa040
    SysLink version : 2.20.02.20
    SysLink module created on Date:Aug  8 2013 Time:09:43:01
    Trace enabled
    Trace SetFailureReason enabled
     [m3vpss ]  SWMS0   : Output  FPS: 33.3 fps , Total Window FPS: 0.0 fps ... in 10.0 secs
     [m3vpss ]  CAPTURE : Capture FPS: 44.9 fps ... in 10.0 secs
     Setting L3 bandwidth regulator for [HDVICP0 ] to [press=[3,3] BW=2000, WM Cycles=4000]
     Setting DMM priority for [DUCATI  ] to [0] ( 0x4e000624 = 0x08000000 )
     Setting DMM priority for [HDVICP0 ] to [2] ( 0x4e000634 = 0x0000000a )
    Attached to slave procId 1.
    Loaded file ../firmware/dvr_rdk_fw_m3vpss_512M_128M.xem3 on slave procId 1.
    Started slave procId 1.
     [m3vpss ]      ISS Freq  : 480 MHz
    After Ipc_loadcallback status [0x00000000]
    After Ipc_startcallback status [0x00000000]
     [m3vpss ] ***** VPSS Firmware build time 09:52:28 Aug  8 2013  EDG gcc 3.0 mode
     [m3vpss ] ***** SYSTEM  : Frequency <ORG> - 200000000, <NEW> - 240000000
     [m3vpss ] notify_attach  rtnVal  0
     [m3vpss ] initProxyServer  rtnVal  0
     [m3vpss ]
     [m3vpss ]  *** UTILS: CPU KHz = 480000 Khz ***
     [m3vpss ]
     [m3vpss ]  1311823: SYSTEM  : System Common Init in progress !!!
     [m3vpss ]  1311823: SYSTEM: IPC init in progress !!!
     [m3vpss ]  1311823: SYSTEM: Attaching to [HOST] ...
     [m3vpss ]  1311829: SYSTEM: Attaching to [HOST] ... SUCCESS !!!
    Attached to slave procId 0.
    Loaded file ../firmware/dvr_rdk_fw_m3video_512M_128M.xem3 on slave procId 0.
    Started slave procId 0.
    After Ipc_loadcallback status [0x00000000Unable to handle kernel paging request at virtual address cb801d80
    ]
    pgd = c5e2c000
    [cb801d80] *pgd=85e92011, *pte=00000000, *ppte=00000000
    Internal error: Oops: 807 [#1]
    last sysfs file: /sys/devices/platform/vpss/graphics0/enabled
    Modules linked in: syslink ti81xxhdmi ti81xxfb vpss [last unloaded: osa_kermod]
    CPU: 0    Not tainted  (2.6.37 #1)
    PC is at notify_shm_drv_register_event+0xec/0x158
    LR is at notify_register_event_single+0x1c4/0x200
    pc : [<c0305b70>]    lr : [<c0303d58>]    psr: 20000013
    sp : c5cddc98  ip : 00000000  fp : c5cddcac
    r10: 00000000  r9 : c5cdddc4  r8 : 00000000
    r7 : bf15ef38  r6 : 00000002  r5 : c055e3ac  r4 : 00000000
    r3 : c67c6c00  r2 : 00000100  r1 : 00000002  r0 : cb801c80
    Flags: nzCv  IRQs on  FIQs on  Mode SVC_32  ISA ARM  Segment user
    Control: 10c5387d  Table: 85e2c019  DAC: 00000015
    Process fw_load.out (pid: 328, stack limit = 0xc5cdc2e8)
    Stack: (0xc5cddc98 to 0xc5cde000)
    dc80:                                                       c0305a84 00000000
    dca0: c5cddcd4 c5cddcb0 c0303d58 c0305a90 bf15ef38 c1d20002 00000000 00000000
    dcc0: bf15ef38 cc9e2000 c5cddd0c c5cddcd8 bf14e6e0 c0303ba0 cc9e2000 c1d20002
    dce0: bf15ef38 cc9e2000 00000000 cc9e2000 c5cddd8c cc9df000 00000000 00000080
    dd00: c5cddd7c c5cddd10 bf15fa5c bf14e690 cc9e2000 c5cddd8c 00000000 c5cddd28
    dd20: bf14a664 cd003080 00000001 00000000 cc7d2000 cd003080 00000000 00000000
    dd40: cc7d2000 cd003100 00000000 00000000 bf1d4090 cd002f80 c5cdddc4 bf1d4090
    dd60: cd002f80 00000000 00000000 00000200 c5cdddac c5cddd80 bf15fc3c bf15f81c
    dd80: c5cdddc4 cd002f80 c5cdddac 00000000 00000000 cd002f80 00000000 cd002f80
    dda0: c5cddde4 c5cdddb0 bf160eb4 bf15fba4 cd002f80 c5cdddc0 00000000 cc7d2000
    ddc0: cd002f80 cc9df000 bf14cf8c 00000000 00000000 cd000014 c5cdde44 c5cddde8
    dde0: bf158660 bf160e40 c5cdde0c c5cdddf8 c00a6c04 00000080 87e3882e cd000000
    de00: 00700000 00010002 e59f0000 00000080 e3a00001 00000000 c5cdde34 00000000
    de20: 00000001 00000206 01387fff 00000000 c5cdc000 00000000 c5cdde7c c5cdde48
    de40: bf13cd7c bf1580bc 00000000 c0217a00 c021983c 00000002 0000000a c5c45000
    de60: babe0001 bf1d3d74 00000000 00000000 c5cddea4 c5cdde80 bf15741c bf13cd44
    de80: babe0001 00000000 00000000 c014f497 bee47a9c bee47a9c c5cddefc c5cddea8
    dea0: bf17b454 bf15738c c014f497 bee47a9c c5cddedc c5cddec0 c006f05c 400a0000
    dec0: babe0001 00000000 bee47ae4 bee47abc c5cddef4 c60dcd00 00000005 bee47a9c
    dee0: 00000005 00000000 c5cdc000 00000000 c5cddf74 c5cddf00 c00da8f0 bf17b370
    df00: c01fed44 c0204ad8 c5cddf4c c020161c c5cd7940 0000002b 5102cdd6 08583b02
    df20: 00000003 c5c4cb00 4000e000 c5cddf70 00000000 0000002b c5cdc000 00000000
    df40: c5cddf6c c5cddf50 c00cd648 c01feb3c c5c6d100 bee47a9c c014f497 00000005
    df60: 00000000 c5cdc000 c5cddfa4 c5cddf78 c00da9bc c00da42c c5cddfac 00000001
    df80: c03ce3b0 bee47a9c 0007f334 c014f497 00000036 c004b568 00000000 c5cddfa8
    dfa0: c004b3c0 c00da970 bee47a9c 0007f334 00000005 c014f497 bee47a9c 00000001
    dfc0: bee47a9c 0007f334 c014f497 00000036 00000000 00000000 400aa000 00000000
    dfe0: 0007f2f0 bee47a38 0001dab4 401fa1cc 20000010 00000005 e1a03004 ebfffffe
    Backtrace:
    [<c0305a84>] (notify_shm_drv_register_event+0x0/0x158) from [<c0303d58>] (notify_register_event_single+0x1c4/0x200)
     r4:00000000 r3:c0305a84
    [<c0303b94>] (notify_register_event_single+0x0/0x200) from [<bf14e6e0>] (Notify_registerEventSingle+0x5c/0x6c [syslink])
     r8:cc9e2000 r7:bf15ef38 r6:00000000 r5:00000000 r4:c1d20002
    r3:bf15ef38
    [<bf14e684>] (Notify_registerEventSingle+0x0/0x6c [syslink]) from [<bf15fa5c>] (_TransportShm_create+0x24c/0x388 [syslink])
     r8:00000080 r7:00000000 r6:cc9df000 r5:c5cddd8c r4:cc9e2000
    [<bf15f810>] (_TransportShm_create+0x0/0x388 [syslink]) from [<bf15fc3c>] (TransportShm_openByAddr+0xa4/0xdc [syslink])
    [<bf15fb98>] (TransportShm_openByAddr+0x0/0xdc [syslink]) from [<bf160eb4>] (TransportShmSetup_attach+0x80/0xc0 [syslink])
     r5:cd002f80 r4:00000000
    [<bf160e34>] (TransportShmSetup_attach+0x0/0xc0 [syslink]) from [<bf158660>] (Ipc_attach+0x5b0/0x70c [syslink])
     r6:cd000014 r5:00000000 r4:00000000
    [<bf1580b0>] (Ipc_attach+0x0/0x70c [syslink]) from [<bf13cd7c>] (Platform_startCallback+0x44/0x1f8 [syslink])
    [<bf13cd38>] (Platform_startCallback+0x0/0x1f8 [syslink]) from [<bf15741c>] (Ipc_control+0x9c/0x160 [syslink])
     r7:00000000 r6:00000000 r5:bf1d3d74 r4:babe0001
    [<bf157380>] (Ipc_control+0x0/0x160 [syslink]) from [<bf17b454>] (IpcDrv_drvioctl+0xf0/0x574 [syslink])
     r7:bee47a9c r6:bee47a9c r5:c014f497 r4:00000000
    [<bf17b364>] (IpcDrv_drvioctl+0x0/0x574 [syslink]) from [<c00da8f0>] (do_vfs_ioctl+0x4d0/0x544)
    [<c00da420>] (do_vfs_ioctl+0x0/0x544) from [<c00da9bc>] (sys_ioctl+0x58/0x7c)
     r9:c5cdc000 r8:00000000 r7:00000005 r6:c014f497 r5:bee47a9c
    r4:c5c6d100
    [<c00da964>] (sys_ioctl+0x0/0x7c) from [<c004b3c0>] (ret_fast_syscall+0x0/0x30)
     r8:c004b568 r7:00000036 r6:c014f497 r5:0007f334 r4:bee47a9c
    Code: e5930008 e3510000 e3a04000 e0020192 (e780c002)
    ---[ end trace f3546499b9f6724a ]---
     [m3video]      ISS Freq  : 480 MHz
     [m3video] ***** VIDEO Firmware build time 09:53:38 Aug  8 2013  EDG gcc 3.0 mode
     [m3video] ***** SYSTEM  : Frequency <ORG> - 200000000, <NEW> - 240000000
     [m3video]
     [m3video]  *** UTILS: CPU KHz = 480000 Khz ***
     [m3video]
     [m3video]  1311943: SYSTEM  : System Common Init in progress !!!
     [m3video]  1311944: SYSTEM: IPC init in progress !!!
     [m3video]  1311944: SYSTEM: Attaching to [HOST] ...
     [m3vpss ]  1312827: SYSTEM: Attaching to [VIDEO-M3] ...
     [m3vpss ]  1313827: SYSTEM: Attaching to [VIDEO-M3] ...
     [m3vpss ]  1314827: SYSTEM: Attaching to [VIDEO-M3] ...
     [m3vpss ]  1315827: SYSTEM: Attaching to [VIDEO-M3] ...
     [m3vpss ]  1316827: SYSTEM: Attaching to [VIDEO-M3] ...
     [m3vpss ]  1317827: SYSTEM: Attaching to [VIDEO-M3] ...
     [m3vpss ]  1318827: SYSTEM: Attaching to [VIDEO-M3] ...
     [m3vpss ]  1319827: SYSTEM: Attaching to [VIDEO-M3] ...
     [m3vpss ]  1320827: SYSTEM: Attaching to [VIDEO-M3] ...
     [m3vpss ]  1321827: SYSTEM: Attaching to [VIDEO-M3] ...
     [m3vpss ]  1322827: SYSTEM: Attaching to [VIDEO-M3] ...
     [m3vpss ]  1323827: SYSTEM: Attaching to [VIDEO-M3] ...
     [m3vpss ]  1324827: SYSTEM: Attaching to [VIDEO-M3] ...
     [m3vpss ]  1325827: SYSTEM: Attaching to [VIDEO-M3] ...
     [m3vpss ]  1326827: SYSTEM: Attaching to [VIDEO-M3] ...
     [m3vpss ]  1327827: SYSTEM: Attaching to [VIDEO-M3] ...
     [m3vpss ]  1328827: SYSTEM: Attaching to [VIDEO-M3] ...
     [m3vpss ]  1329827: SYSTEM: Attaching to [VIDEO-M3] ...
     [m3vpss ]  1330827: SYSTEM: Attaching to [VIDEO-M3] ...
     [m3vpss ]  1331827: SYSTEM: Attaching to [VIDEO-M3] ...
     [m3vpss ]  1332827: SYSTEM: Attaching to [VIDEO-M3] ...
     [m3vpss ]  1333827: SYSTEM: Attaching to [VIDEO-M3] ...
     [m3vpss ]  1334827: SYSTEM: Attaching to [VIDEO-M3] ...
     [m3vpss ]  1335827: SYSTEM: Attaching to [VIDEO-M3] ...
     [m3vpss ]  1336827: SYSTEM: Attaching to [VIDEO-M3] ...
     [m3vpss ]  1337827: SYSTEM: Attaching to [VIDEO-M3] ...
     [m3vpss ]  1338827: SYSTEM: Attaching to [VIDEO-M3] ...
     [m3vpss ]  1339827: SYSTEM: Attaching to [VIDEO-M3] ...
     [m3vpss ]  1340827: SYSTEM: Attaching to [VIDEO-M3] ...
     [m3vpss ]  1341827: SYSTEM: Attaching to [VIDEO-M3] ...
     [m3vpss ]  1342827: SYSTEM: Attaching to [VIDEO-M3] ...
     [m3vpss ]  1343827: SYSTEM: Attaching to [VIDEO-M3] ...
     [m3vpss ]  1344827: SYSTEM: Attaching to [VIDEO-M3] ...
     
     fang

  • Hi Xu steven,

    I am having Mistral DM8148 EVM and trying to port DVR RDK4.1.In our capture + display video application,frames are not being captured.Could you please help me to configure tvp7002 decoder.

    Regards,

    Kiran S Patil

  • Hi Brijesh,

    I hope you can assist me with the following.

    I manage successfuly to show NTSC captured video on our  1024x768 60P display.

    Now, I only try to do the same with PAL input instead.

    I already see that the PAL video is captured successfuly.

    But on trying to display it I get that part of the screen has some noise (as you can see in below image).

    Is it a timing issue with LCD ? (I think the timing already works successfuly if ntsc inoput has no issues, so probably ity is something else)

    If you can only point me to dome direction it is good enough. 

    Thank you for any hint,

    Ran