I got this opncCV demo build and runs on the TI EVM now. However, it only runs on the RAM side. When I try to use the DSP with “-M armdsp”, I got the following error:
-----------------------------------------------------------------------------------------------------------------------
[t=00030000] mv-main:
C6accel_create() failed engineName: ti8168, algName : c6accel
Segmentation fault
-----------------------------------------------------------------------------------------------------------------------
The mv_app demo software is build with “ti-ezsdk_dm816x-evm_5_02_02_60”.
I followed User guide for my
testing and the following information should shows what I did.
disable the firmware according to the User guide (move the files in /etc/rc5.d):
--------------------------------------------------------------------------------------------------------------------
_____ _____ _ _
| _ |___ ___ ___ ___ | _ |___ ___ |_|___ ___| |_
| | _| .'| . | . | | __| _| . | | | -_| _| _|
|__|__|_| |__,|_ |___| |__| |_| |___|_| |___|___|_|
|___| |___|
Arago Project http://arago-project.org dm816x-evm ttyO2
Arago 2011.05 dm816x-evm ttyO2
dm816x-evm login: root
root@dm816x-evm:~# ls /etc/rc5.d
K10load-hdvicp2-firmware.sh S15load-hdvpss-firmware.sh
K30pvr-init S20syslog
K99matrix-gui-e S20thttpd
S02dbus-1 S99rmnologin
S10telnetd
root@dm816x-evm:~#
-------------------------------------------------------------------------------------------------------------
I than run the following commands according to the User guide:
-------------------------------------------------------------------------------------------------------------
root@dm816x-evm:~# cd /mv_app/
root@dm816x-evm:/mv_app# cat load.sh
export LD_LIBRARY_PATH=/lib
modprobe cmemk phys_start=0x96C00000 phys_end=0x98000000 pools=20x4096
echo 24 > /sys/class/graphics/fb0/bits_per_pixel
echo 24 > /sys/class/graphics/fb1/bits_per_pixel
echo 24 > /sys/class/graphics/fb2/bits_per_pixel
cat /sys/class/graphics/fb0/virtual_size
echo 752,480> /sys/class/graphics/fb1/virtual_size
echo 752,480> /sys/class/graphics/fb2/virtual_size
echo 1:hdmi > /sys/devices/platform/vpss/graphics0/nodes
echo 1:hdmi > /sys/devices/platform/vpss/graphics1/nodes
echo 1:hdmi > /sys/devices/platform/vpss/graphics2/nodes
root@dm816x-evm:/mv_app# sh load.sh
CMEMK module: built on Sep 8 2011 at 12:02:13
Reference Linux version 2.6.37
File /swcoe/sdk/cm/netra/arago-tmp/work/dm816x-evm-none-linux-gnueabi/ti-linuxutils-1_3_21_00_04-r4d/linuxutils_3_21_00_04/packages/ti/sdo/linuxutils/cmem/src/module/cmemk.c
allocated heap buffer 0xd7000000 of size 0x13ec000
cmemk initialized
1920,1080
root@dm816x-evm:/mv_app#
----------------------------------------------------------------------------------------------------------------
After this the mv_app runs ok with ARM only option:
----------------------------------------------------------------------------------------------------------------
root@dm816x-evm:/mv_app# ./mv_app -M arm
Arena 0:
system bytes = 135168
in use bytes = 5496
Total (incl. mmap):
system bytes = 135168
in use bytes = 5496
max mmap regions = 0
max mmap bytes = 0
M M V V
MM MM AA CCCC H H I N N EEEEEE V V I SSSS I OOOO N N
M M M M A A C C H H I NN N E V V I S I O O NN N
M M M A A C HHHHHH I N N N EEEEE V V I SSSS I O O N N N
M M AAAAAA C H H I N N N E V V I S I O O N N N
M M A A C C H H I N NN E V V I S S I O O N NN
M M A A CCCC H H I N N EEEEEE V I SSSS I OOOO N N
Current Configurations :
************************
Applcation : Assembly Line
Execution mode : ARM
Output Resolution : 1920 X 1080
Assembly line image resolution : 752 X 480
Number of Channels : 2
Ch1 : Active
Ch1 Seq1 path : ./data/default_ch1_seq_752_480.raw
Ch2 : Active
Ch2 Seq2 path : ./data/default_ch2_seq_752_480.raw
Backround Image path : ./data/default_bg_img_1920_1080.raw
Template img path : ./data/default_tmplt_img_752_480.raw
GUI mode : FbDev
Image format : BGR
Application Flow : Parallel
Runtime : Infinite
File Src data location : DDR
Number of Images per ch : 15
Buffer size per ch : 5414400
Frame refresh rate (per sec) : 27
Status/Statistics Refresh Rate (per sec) : 1
[t=00540000] mv-al: Ch : 0 Active images processed: 1
[t=00550000] mv-al: Ch : 1 Active images processed: 1
[t=10230000] mv-al: Ch : 1 Active images processed: 133
[t=10310000] mv-al: Ch : 0 Active images processed: 128
root@dm816x-evm:/mv_app#
--------------------------------------------------------------------------------------------------------
But it is NOT running with the DSP:
--------------------------------------------------------------------------------------------------------
root@dm816x-evm:/mv_app# ./mv_app -M armdsp
Arena 0:
system bytes = 135168
in use bytes = 5496
Total (incl. mmap):
system bytes = 135168
in use bytes = 5496
max mmap regions = 0
max mmap bytes = 0
M M V V
MM MM AA CCCC H H I N N EEEEEE V V I SSSS I OOOO N N
M M M M A A C C H H I NN N E V V I S I O O NN N
M M M A A C HHHHHH I N N N EEEEE V V I SSSS I O O N N N
M M AAAAAA C H H I N N N E V V I S I O O N N N
M M A A C C H H I N NN E V V I S S I O O N NN
M M A A CCCC H H I N N EEEEEE V I SSSS I OOOO N N
Current Configurations :
************************
Applcation : Assembly Line
Execution mode : ARM + DSP
Acceleration mode :DSP only
Output Resolution : 1920 X 1080
Assembly line image resolution : 752 X 480
Number of Channels : 2
Ch1 : Active
Ch1 Seq1 path : ./data/default_ch1_seq_752_480.raw
Ch2 : Active
Ch2 Seq2 path : ./data/default_ch2_seq_752_480.raw
Backround Image path : ./data/default_bg_img_1920_1080.raw
Template img path : ./data/default_tmplt_img_752_480.raw
GUI mode : FbDev
Image format : BGR
Application Flow : Parallel
Runtime : Infinite
File Src data location : DDR
Number of Images per ch : 15
Buffer size per ch : 5414400
Frame refresh rate (per sec) : 27
Status/Statistics Refresh Rate (per sec) : 1
[t=00030000] mv-main: C6accel_create() failed engineName: ti8168, algName : c6accel
Segmentation fault
root@dm816x-evm:/mv_app#
------------------------------------------------------------------------------------------------------------------------
Regards,
Heng