Greetings,
My board is based on dm8148 with 512MB ddr3 and now I am using ezsdk5.04/5.03.
After applying the sub-device-call remove and select decoder patchs, my board can do certain video capture from our custom hdmi receiver.
However, this is not stable at all. I am using v4l2 firmware and not sure for the v4l2 capture whether I should use 512mb.xem or not.
I force the input to 1080p and when I run following pipeline:
gst-launch v4l2src always-copy=false queue-size=12 num-buffers=2000 ! 'video/x-raw-yuv-strided,format=(fourcc)NV12,width=1920,height=1080,framerate=(fraction)60/1' ! omxbufferalloc numBuffers=12 ! omx_h264enc bitrate=5000000 ! gstperf ! filesink location=v4l2cap.h264
Then, the pipeline seems to work fine in the beginning but it crashed after a few frames(see below).
Also, I can only able to capture at 15 or 30 frames per second, depending on the pipeline ran on the board.
We really need 1080p60 and so far I donot know how come I have errors.
Please know that I already make changes for the DDR3MB, as I posted in this thread :http://e2e.ti.com/support/dsp/davinci_digital_media_processors/f/716/t/186056.aspx
======
The error msgs after running v4l2 capture:
[<c02c0ed0>] (v4l2_ioctl+0x0/0x11c) from [<c00d3180>] (vfs_ioctl+0x28/0x44)
r9:c6418000 r8:00137d28 r7:0000001c r6:0000001c r5:c6e25a00
r4:00000000
[<c00d3158>] (vfs_ioctl+0x0/0x44) from [<c00d3890>] (do_vfs_ioctl+0x500/0x540)
[<c00d3390>] (do_vfs_ioctl+0x0/0x540) from [<c00d3928>] (sys_ioctl+0x58/0x7c)
[<c00d38d0>] (sys_ioctl+0x0/0x7c) from [<c0045e00>] (ret_fast_syscall+0x0/0x30)
r8:c0045fa8 r7:00000036 r6:00137d10 r5:0001ff30 r4:0010cda0
---[ end trace 7533b317be81c933 ]---
outbuf:0x44f70680
allocated outbuf:0x45267c80
allocated outbuf:0x4555f280
allocated outbuf:0x45856880
allocated outbuf:0x45b4de80
allocated outbuf:0x45e45480
allocated outbuf:0x4613ca80
allocated outbuf:0x46434080
allocated outbuf:0x4672b680
allocated outbuf:0x46a22c80
allocated outbuf:0x46d1a280
Pipeline is live and does not need PREROLL ...
Setting pipeline to PLAYING ...
New clock: GstSystemClock
perf0: frames: 37 current: 35.08 average: 35.08 arm-load: 1
perf0: frames: 67 current: 30.00 average: 32.61 arm-load: 5
perf0: frames: 97 current: 30.00 average: 31.75 arm-load: 5
perf0: frames: 127 current: 30.00 average: 31.32 arm-load: 5
perf0: frames: 158 current: 30.51 average: 31.16 arm-load: 4
perf0: frames: 188 current: 30.00 average: 30.97 arm-load: 3
perf0: frames: 219 current: 29.35 average: 30.73 arm-load: 0
perf0: frames: 250 current: 30.51 average: 30.70 arm-load: 2
perf0: frames: 281 current: 29.59 average: 30.57 arm-load: 4
perf0: frames: 312 current: 30.27 average: 30.54 arm-load: 4
perf0: frames: 343 current: 29.58 average: 30.45 arm-load: 7
perf0: frames: 374 current: 30.51 average: 30.46 arm-load: 9
perf0: frames: 405 current: 29.36 average: 30.37 arm-load: 10
perf0: frames: 435 current: 30.00 average: 30.35 arm-load: 10
perf0: frames: 465 current: 30.00 average: 30.32 arm-load: 9
perf0: frames: 495 current: 30.00 average: 30.30 arm-load: 5
perf0: frames: 525 current: 30.00 average: 30.29 arm-load: 6
perf0: frames: 556 current: 30.51 average: 30.30 arm-load: 4
perf0: frames: 586 current: 30.00 average: 30.28 arm-load: 1
perf0: frames: 617 current: 29.35 average: 30.24 arm-load: 0
perf0: frames: 647 current: 30.00 average: 30.22 arm-load: 15
perf0: frames: 678 current: 30.51 average: 30.24 arm-load: 14
perf0: frames: 708 current: 30.00 average: 30.23 arm-load: 5
perf0: frames: 739 current: 29.36 average: 30.19 arm-load: 8
perf0: frames: 769 current: 30.00 average: 30.18 arm-load: 20
perf0: frames: 799 current: 30.00 average: 30.18 arm-load: 10
perf0: frames: 830 current: 30.51 average: 30.19 arm-load: 19
perf0: frames: 861 current: 29.58 average: 30.17 arm-load: 7
perf0: frames: 896 current: 33.65 average: 30.29 arm-load: 18
perf0: frames: 926 current: 30.00 average: 30.28 arm-load: 5
perf0: frames: 956 current: 30.00 average: 30.27 arm-load: 25
perf0: frames: 987 current: 30.50 average: 30.28 arm-load: 7
perf0: frames: 1017 current: 30.00 average: 30.27 arm-load: 25
perf0: frames: 1052 current: 34.74 average: 30.40 arm-load: 27
perf0: frames: 1082 current: 30.00 average: 30.39 arm-load: 24
perf0: frames: 1113 current: 29.58 average: 30.36 arm-load: 4
perf0: frames: 1143 current: 30.00 average: 30.35 arm-load: 5
perf0: frames: 1173 current: 30.00 average: 30.35 arm-load: 20
perf0: frames: 1204 current: 30.27 average: 30.34 arm-load: 0
perf0: frames: 1235 current: 29.58 average: 30.32 arm-load: 23
perf0: frames: 1265 current: 30.00 average: 30.32 arm-load: 14
perf0: frames: 1295 current: 30.00 average: 30.31 arm-load: 5
perf0: frames: 1326 current: 30.04 average: 30.30 arm-load: 8
perf0: frames: 1356 current: 29.76 average: 30.29 arm-load: 24
kernel BUG at drivers/media/video/ti81xx/ti81xxvin_main.c:829!
Unable to handle kernel NULL pointer dereference at virtual address 00000000
pgd = c6718000
[00000000] *pgd=867ce031, *pte=00000000, *ppte=00000000
Internal error: Oops: 817 [#1]
last sysfs file: /sys/devices/virtual/video4linux/video5/index
Modules linked in: ti81xxhdmi ti81xxvin ti81xxvo ti81xxfb vpss syslink [last unloaded: vpss]
CPU: 0 Tainted: G W (2.6.37 #1)
PC is at __bug+0x20/0x2c
LR is at release_console_sem+0x198/0x1ac
pc : [<c004994c>] lr : [<c006cae8>] psr: 20000113
sp : c5309b90 ip : c5309ac8 fp : c5309b9c
r10: 00000000 r9 : c5309e08 r8 : c5309e08
r7 : c678bd04 r6 : c6e25e80 r5 : c678bc00 r4 : c67a3000
r3 : 00000000 r2 : 00000001 r1 : 000371d1 r0 : 00000045
Flags: nzCv IRQs on FIQs on Mode SVC_32 ISA ARM Segment user
Control: 10c5387d Table: 86718019 DAC: 00000015
Process gst-launch-0.10 (pid: 1252, stack limit = 0xc53082e8)
Stack: (0xc5309b90 to 0xc530a000)
9b80: c5309bbc c5309ba0 bf39bdc4 c0049938
9ba0: c6e25e80 20000013 00000000 c678bd04 c5309be4 c5309bc0 c02ce63c bf39bd20
9bc0: 00000001 c678bc00 c6d826c0 c5309e08 bf39cf2c c5309e08 c5309c4c c5309be8
9be0: bf39bb0c c02ce2cc c05187f0 00000008 00000001 00000000 00000000 00000000
9c00: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000002
9c20: 46434080 00000000 00000000 00000000 bf39ba74 00000000 c044560f c67e0200
9c40: c5309df4 c5309c50 c02c3368 bf39ba80 c0069c4c c0069b74 c5309c74 c5309c68
9c60: c007e004 c0069c40 c5309c94 c5309c78 c007e174 c007dff0 00000088 c051a1e0
9c80: c787d000 c051a1e0 c5309cc4 c5309c98 c007e44c c007e124 c0518838 c67350c0
9ca0: 342bf4e2 00000006 c67350b8 1f8dbce2 c5309ce4 c5309cc0 c0068924 c6735638
9cc0: c5309cf4 c5309cd0 c01d3c50 c01d3a5c c0518838 c673563c 3726e562 00000006
9ce0: c6735638 00000000 c5309d1c c5309cf8 c0068924 c01d3b54 c6735644 c67342c0
9d00: c05187f0 00000001 c0518838 c0518858 3726e562 00000006 00000000 00000000
9d20: c5309d54 c5309d30 c0068924 c01d3b54 c6734e04 c6735080 c05187f0 00000001
9d40: c6734dc0 c6734dc0 00000000 00000000 fffffffd 00000000 c5309d8c c5309d68
9d60: c03c414c c00411c4 c52c001c c6734dc0 00000015 c044560f c6e25a00 c6d826c0
9d80: c5309da4 c5309d90 c03c41ac c03c4124 00000000 c5309da0 c5309dbc c5309da8
9da0: c03c41d4 c03c419c c7b74d80 c6734dc0 c5309de4 c5309dc0 c03c08b4 c0069cbc
9dc0: c5308000 7fffffff d0ae5010 00000044 00000000 c044560f 00000000 00000000
9de0: 00000000 c5309e08 c5309eb4 c5309df8 c02c1e04 c02c2020 c02c2014 0010a5a0
9e00: c6e25a00 00000003 00000008 00000001 00000000 00000000 00000000 00000000
9e20: 00000000 00000000 00000000 00000000 00000000 00000000 00000002 46434080
9e40: 00000000 00000000 00000000 c5309e58 bf1e75c8 bf1e59b4 bf1e7668 bf1e5900
9e60: c5309ea4 cbb44000 00000000 d1004e00 c5309ea4 c5309e80 bf1f4748 bf1e5900
9e80: 00000000 c018f361 50933d60 c6e25a00 0010a5a0 bf39dc84 c044560f 0010a5a0
9ea0: c5308000 00000000 c5309ecc c5309eb8 c02c1f78 c02c1b2c c6e25a00 c67e0200
9ec0: c5309ef4 c5309ed0 c02c0fb8 c02c1f54 00000000 c6e25a00 0000001d 0000001d
9ee0: 0010a5a0 c5308000 c5309f04 c5309ef8 c00d3180 c02c0edc c5309f74 c5309f08
9f00: c00d3890 c00d3164 00141000 c7b74d80 00000174 00000000 fffffffd 00141170
9f20: 04000001 00141170 00000001 00000000 00141174 00000081 c5309fa4 c5309f48
9f40: c00937c4 c0092be4 00000001 00000000 0010a5a0 c044560f 0000001d c6e25a00
9f60: c5308000 00000000 c5309fa4 c5309f78 c00d3928 c00d339c c5309fac 00000001
9f80: 04000001 00000008 0000034c 405472d0 00000036 c0045fa8 00000000 c5309fa8
9fa0: c0045e00 c00d38dc 00000008 0000034c 0000001d c044560f 0010a5a0 46434080
9fc0: 00000008 0000034c 405472d0 00000036 0010cda0 be861d30 0000034c 50933c2c
9fe0: 0010a548 50933a70 4052c598 403e8aec 60000010 0000001d 00000000 00000019
Backtrace:
[<c004992c>] (__bug+0x0/0x2c) from [<bf39bdc4>] (ti81xxvin_buffer_queue+0xb0/0xe8 [ti81xxvin])
[<bf39bd14>] (ti81xxvin_buffer_queue+0x0/0xe8 [ti81xxvin]) from [<c02ce63c>] (videobuf_qbuf+0x37c/0x43c)
r7:c678bd04 r6:00000000 r5:20000013 r4:c6e25e80
[<c02ce2c0>] (videobuf_qbuf+0x0/0x43c) from [<bf39bb0c>] (vidioc_qbuf+0x98/0xb4 [ti81xxvin])
r9:c5309e08 r8:bf39cf2c r7:c5309e08 r6:c6d826c0 r5:c678bc00
r4:00000001
[<bf39ba74>] (vidioc_qbuf+0x0/0xb4 [ti81xxvin]) from [<c02c3368>] (__video_do_ioctl+0x1354/0x3f34)
r7:c67e0200 r6:c044560f r5:00000000 r4:bf39ba74
[<c02c2014>] (__video_do_ioctl+0x0/0x3f34) from [<c02c1e04>] (__video_usercopy+0x2e4/0x428)
[<c02c1b20>] (__video_usercopy+0x0/0x428) from [<c02c1f78>] (video_ioctl2+0x30/0x38)
[<c02c1f48>] (video_ioctl2+0x0/0x38) from [<c02c0fb8>] (v4l2_ioctl+0xe8/0x11c)
r5:c67e0200 r4:c6e25a00
[<c02c0ed0>] (v4l2_ioctl+0x0/0x11c) from [<c00d3180>] (vfs_ioctl+0x28/0x44)
r9:c5308000 r8:0010a5a0 r7:0000001d r6:0000001d r5:c6e25a00
r4:00000000
[<c00d3158>] (vfs_ioctl+0x0/0x44) from [<c00d3890>] (do_vfs_ioctl+0x500/0x540)
[<c00d3390>] (do_vfs_ioctl+0x0/0x540) from [<c00d3928>] (sys_ioctl+0x58/0x7c)
[<c00d38d0>] (sys_ioctl+0x0/0x7c) from [<c0045e00>] (ret_fast_syscall+0x0/0x30)
r8:c0045fa8 r7:00000036 r6:405472d0 r5:0000034c r4:00000008
Code: e1a01000 e59f000c eb0dda0a e3a03000 (e5833000)
---[ end trace 7533b317be81c934 ]---
ti81xxvin: list empty
Caught interrupt -- handling interrupt.
Interrupt: Stopping pipeline ...
Execution ended after 185034572948 ns.
Setting pipeline to PAUSED ...
Regards,
Jun