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.

DM8168 Bottle Spin Demo Issues (OpenCV)



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

  • Heng,

              Since the problem is comming from C6accel_create(), could you please ensure that the c6accel sample application is working fine. How to run C6accel sample is documented in Software developers guide.

             we need below data to debug this further.

              If so, could you please ensure that the file ti816x.xe674 is present in the same directory as mv_app executable.

             Also could you please ensure you have done below step.

               - Disable Out-Of-Box demos by running below command in target file system, But this does not disable the HDVPSS firmware loading and FbDev loading

                         cd $(TARGET_FS)/etc/rc5.d
    mv S10load-hdvicp2-firmware.sh K10load-hdvicp2-firmware.sh
    mv S30pvr-init K30pvr-init
    mv S99matrix-gui-e K99matrix-gui-e

    I am also not sure if you had applied the patch $(EZSDK_ROOT)/component-sources/c6accel_MM_NN_XX_YY/patches/c6accel_opencv_integration.patch to c6accel.

    Also can you please attach the below files, There a one parameter needs to be altered here, i want to check if they are having that update.
    1. c6accel_2_01_00_09/soc/packages/ti/c6accel_unitservers/TI816X/ti816x.cfg
    2. c6accel_2_01_00_09/soc/packages/ti/c6accel_unitservers/TI816X/bios6.cfg

    Best Regards
    Velan




  • Hi Velan,

    There are many files named ti816x.xe674 in the file system.  I copied /home/root/dm816x-evm/c6accel/c6accel_opencv_testapp/ti816x.xe674 to mv_app directory and the "mv_app" works with the DSP now.  I did apply the patch to the c6accel and disable the HDVPSS before.  Let me know if you need the .cfg files.

    The mv_app can run only once if I use the DSP acceleration, need reboot the system before I could run it again.

    Thanks,

    Heng