Hi, everone
I've found the following problem when upgrading from dvsdk 3.10.00.12 to dvsdk 3.10.00.19: the demo codes which I modified when working with
the dvsdk 3.10.00.12 (and which worked pretty well) have cesaed to run.
The tweaks I tried by comparing the codes and configurations between 3.10.00.12 and 3.10.00.19 didn't work, so I decided
to start from scratch by removing all dvsdk 3.10.00.19 and reinstalling again, following the Tiwiki instructions.
What happens now is that the original demos supplied with the dvsdk fail. For example, If I try to run the decode demo,
what occurs is as follows:
root@dm6467t-evm:/opt/dvsdk/dm6467# ./decode -v data/videos/davincieffect_1080i_30fps.264 -y 5
Decode demo started.
Error: Failed to create display device
root@dm6467t-evm:/opt/dvsdk/dm6467#
Just let me remark a HD Tv is correctly connected to the component output of the dvevm board, and it
worked pretty well when running the demo codes in the dvsdk 3.10.00.12.
To harvest more information, I run the decode with DMAI_DEBUG=2, thus obtaining the following:
root@dm6467t-evm:/opt/dvsdk/dm6467# DMAI_DEBUG=2 ./decode -v data/videos/davincieffect_1080i_30fps.264 -y 5
Decode demo started.
@0x0005f071:[T:0x4001fcd0]
ti.sdo.dmai - [Dmai] Dmai log level set to '2'. Note that calling
CERuntime_init after this point may cause unexpected change to DMAI
tracing behavior.
@0x0005f535:[T:0x413d6490] ti.sdo.dmai - [BufTab] Allocating BufTab for 3 buffers
@0x0005f6fa:[T:0x413d6490] ti.sdo.dmai - [Buffer] Alloc Buffer of size 4147200 at 0x413d7000 (0x87f44000 phys)
@0x0005f87b:[T:0x413d6490] ti.sdo.dmai - [Buffer] Alloc Buffer of size 4147200 at 0x417cc000 (0x88339000 phys)
@0x0005fa00:[T:0x413d6490] ti.sdo.dmai - [Buffer] Alloc Buffer of size 4147200 at 0x41bc1000 (0x8872e000 phys)
@0x0005fbe8:[T:0x413d6490] ti.sdo.dmai - [Display] Cannot open /dev/video2 (No such file or directory)
Error: Failed to create display device
@0x000c788a:[T:0x427b5490] ti.sdo.dmai - [Vdec2] Video decoder instance created
@0x000c79fb:[T:0x427b5490] ti.sdo.dmai - [Vdec2] Made XDM_SETPARAMS control call
@0x000c7b2e:[T:0x427b5490] ti.sdo.dmai - [Vdec2] Made XDM_GETBUFINFO control call
@0x000c7ba7:[T:0x427b5490] ti.sdo.dmai - [BufTab] Allocating BufTab for 5 buffers
...
root@dm6467t-evm:/opt/dvsdk/dm6467#
I've browsed through /dev, to find the following devices:
root@dm6467t-evm:/opt/dvsdk/dm6467# ls -la /dev
...
crw-rw---- 1 root root 251, 0 Jan 1 1970 usbmon0
crw-rw---- 1 root tty 7, 0 Jan 1 1970 vcs
crw-rw---- 1 root tty 7, 1 Jan 1 1970 vcs1
crw-rw---- 1 root tty 7, 128 Jan 1 1970 vcsa
crw-rw---- 1 root tty 7, 129 Jan 1 1970 vcsa1
crw-rw---- 1 root video 81, 0 Jan 1 1970 video0
crw-rw---- 1 root video 81, 1 Jan 1 1970 video1
crw-rw---- 1 root root 10, 130 Jan 1 1970 watchdog
crw-rw-rw- 1 root root 1, 5 Jan 1 1970 zero
root@dm6467t-evm:/opt/dvsdk/dm6467#
It seems that the /dev/video0 and /dev/video1 are created during boot, by -may be, I dont'k know for sure- udev.
I think that because I've browsed the filesystem in the host side (I'm
using an nfs filesystem to run programs during development)
but no /dev/video devices appeared.
I've created the device by "mknod /dev/video2 c 81 2", and relaunched the demo, but this time the failure is:
root@dm6467t-evm:/opt/dvsdk/dm6467# DMAI_DEBUG=2 ./decode -v data/videos/davincieffect_1080i_30fps.264 -y 5
Decode demo started.
@0x000a18b5:[T:0x4001fcd0]
ti.sdo.dmai - [Dmai] Dmai log level set to '2'. Note that calling
CERuntime_init after this point may cause unexpected change to DMAI
tracing behavior.
@0x000a1d76:[T:0x413d6490] ti.sdo.dmai - [BufTab] Allocating BufTab for 3 buffers
@0x000a1f3c:[T:0x413d6490] ti.sdo.dmai - [Buffer] Alloc Buffer of size 4147200 at 0x413d7000 (0x8872e000 phys)
@0x000a20c6:[T:0x413d6490] ti.sdo.dmai - [Buffer] Alloc Buffer of size 4147200 at 0x417cc000 (0x88339000 phys)
@0x000a2296:[T:0x413d6490] ti.sdo.dmai - [Buffer] Alloc Buffer of size 4147200 at 0x41bc1000 (0x87f44000 phys)
@0x000a23b2:[T:0x413d6490] ti.sdo.dmai - [Display] Component Output not found
@0x000a241d:[T:0x413d6490] ti.sdo.dmai - [Display] Display_detectVideoStd Failed
Error: Failed to create display device
@0x0011aff5:[T:0x427b5490] ti.sdo.dmai - [Vdec2] Video decoder instance created
@0x0011b16a:[T:0x427b5490] ti.sdo.dmai - [Vdec2] Made XDM_SETPARAMS control call
@0x0011b29c:[T:0x427b5490] ti.sdo.dmai - [Vdec2] Made XDM_GETBUFINFO control call
...
root@dm6467t-evm:/opt/dvsdk/dm6467#
Which I think is inconsistent with what the kernel says in the dmesg:
...
Linux video capture interface: v2.00
vpif_display vpif_display: channel=c51ad000,channel->video_dev=c51ad000
vpif_display vpif_display: channel=c51ad400,channel->video_dev=c51ad400
ths7303 1-002c: chip found @ 0x58 (DaVinci I2C adapter)
ths8200 1-0020: chip found @ 0x40 (DaVinci I2C adapter) <- here we have the component display chip correctly registered!
ths7353 1-002e: chip found @ 0x5c (DaVinci I2C adapter)
vpif_capture vpif_capture: registered sub device ths7353
tvp7002 1-005d: tvp7002 1-005d decoder driver registered !!
vpif_capture vpif_capture: registered sub device tvp7002
vpif_capture vpif_capture: DM646x VPIF Capture driver initialized
...
What could I do?