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.

Android DSP codec--Dmai Compile problems

Other Parts Discussed in Thread: OMAP3530

       I try to compile the Android DSP codec follow address: http://code.google.com/p/rowboat/wiki/DSP

       I installed dvsdk_setuplinux_3_01_00_10.bin   ,cs1omap3530_setupLinux_1_01_00-prebuilt-dvsdk3.01.00.10.bin  ,ti_cgt_c6000_6.1.12_setup_linux_x86.bin      

       completed

       downloaded the  codec_engine_2_25_05_16.tar.gz  then installed.

complie the android for testing codec:  make TARGET_PRODUCT=beagleboard OMAPES=2.x

codec_engine_2_25_05_16         ---pass
cs1omap3530_1_01_00              ---pass

TI_CGT_C6000_6.1.12                ---pass
dsplink_linux_1_65_00_02        ---pass

xdais_6_25_02_11                      ---pass
xdctools_3_16_01_27                ---pass

Enter dmai_2_05_00_12 folder.. complie error--output as follows:

gmake[2]: Entering directory `/home/davinci/rowboat-android/external/ti-dsp/dvsdk_3_01_00_10/dmai_2_05_00_12'
/home/davinci/rowboat-android/external/ti-dsp/dvsdk_3_01_00_10/xdctools_3_16_01_27/gmake -C ./packages/ti/sdo/dmai
gmake[3]: Entering directory `/home/davinci/rowboat-android/external/ti-dsp/dvsdk_3_01_00_10/dmai_2_05_00_12/packages/ti/sdo/dmai'
Building dmai for o3530_al..

Compiling obj/BufTab.omap3530.o470MV from BufTab.c..
/home/davinci/rowboat-android/prebuilt/linux-x86/toolchain/arm-eabi-4.4.0/bin/arm-eabi-gcc  -I/home/davinci/rowboat-android/external/ti-dsp/dvsdk_3_01_00_10/xdctools_3_16_01_27/packages -I../../../../packages -I/home/davinci/rowboat-android/external/ti-dsp/dvsdk_3_01_00_10/codec_engine_2_25_05_16/packages -I/home/davinci/rowboat-android/external/ti-dsp/dvsdk_3_01_00_10/codec_engine_2_25_05_16/cetools/packages -I/home/davinci/rowboat-android/external/ti-dsp/dvsdk_3_01_00_10/xdais_6_25_02_11/packages -I/home/davinci/rowboat-android/external/ti-dsp/dvsdk_3_01_00_10/cs1omap3530_1_01_00/packages -DDmai_Device_omap3530 -I/home/davinci/rowboat-android/kernel/include -I/home/davinci/rowboat-android/kernel/arch/arm/plat-omap/include -I/home/davinci/rowboat-android/kernel/arch/arm/include -include /home/davinci/rowboat-android/kernel/include/linux/autoconf.h -I/home/davinci/rowboat-android/external/ti-dsp/dvsdk_3_01_00_10/codec_engine_2_25_05_16/cetools/packages -I/home/davinci/rowboat-android/external/ti-dsp/dvsdk_3_01_00_10/dsplink_linux_1_65_00_02/packages -DDmai_BuildOs_linux -Dxdc_target_types__=gnu/targets/std.h -I/home/davinci/rowboat-android/external/ti-dsp/dvsdk_3_01_00_10//linuxlibs/include -Dxdc_target_name__=arm/GCArmv5T -g -Wall -Werror -c -o obj/BufTab.omap3530.o470MV BufTab.c
BufTab.c:33:20: error: stdlib.h: No such file or directory
BufTab.c:34:20: error: string.h: No such file or directory
In file included from ../../../../packages/ti/sdo/dmai/Buffer.h:58,
                 from BufTab.c:38:
../../../../packages/ti/sdo/dmai/Dmai.h:43:20: error: assert.h: No such file or directory
../../../../packages/ti/sdo/dmai/Dmai.h:44:19: error: stdio.h: No such file or directory
cc1: warnings being treated as errors
BufTab.c: In function 'cleanup':
BufTab.c:98: error: implicit declaration of function 'free'
BufTab.c:98: error: incompatible implicit declaration of built-in function 'free'
BufTab.c:105: error: incompatible implicit declaration of built-in function 'free'
BufTab.c:108: error: incompatible implicit declaration of built-in function 'free'
BufTab.c: In function 'BufTab_create':
BufTab.c:126: error: implicit declaration of function 'calloc'
BufTab.c:126: error: incompatible implicit declaration of built-in function 'calloc'
BufTab.c:139: error: incompatible implicit declaration of built-in function 'free'
BufTab.c: In function 'BufTab_expand':
BufTab.c:175: error: implicit declaration of function 'assert'
BufTab.c:189: error: incompatible implicit declaration of built-in function 'calloc'
BufTab.c:197: error: implicit declaration of function 'memcpy'
BufTab.c:197: error: incompatible implicit declaration of built-in function 'memcpy'
BufTab.c:206: error: incompatible implicit declaration of built-in function 'free'
BufTab.c:216: error: incompatible implicit declaration of built-in function 'free'
BufTab.c: In function 'BufTab_chunk':
BufTab.c:273: error: incompatible implicit declaration of built-in function 'calloc'
BufTab.c: In function 'BufTab_collapse':
BufTab.c:352: error: incompatible implicit declaration of built-in function 'free'
BufTab.c:357: error: incompatible implicit declaration of built-in function 'free'
BufTab.c: In function 'BufTab_print':
BufTab.c:377: error: implicit declaration of function 'printf'
BufTab.c:377: error: incompatible implicit declaration of built-in function 'printf'
gmake[3]: *** [obj/BufTab.omap3530.o470MV] Error 1
gmake[3]: Leaving directory `/home/davinci/rowboat-android/external/ti-dsp/dvsdk_3_01_00_10/dmai_2_05_00_12/packages/ti/sdo/dmai'
gmake[2]: *** [all] Error 2
gmake[2]: Leaving directory `/home/davinci/rowboat-android/external/ti-dsp/dvsdk_3_01_00_10/dmai_2_05_00_12'
make[1]: *** [dmai_build] Error 2
make[1]: Leaving directory `/home/davinci/rowboat-android/external/ti-dsp'
make: *** [dvsdk] Error 2

The error seems like cause by the glibc, But I installed the libc6-dev,  When I uninstall the libc6-dev,  complied error when started.

How Could I solve this problem? Help me, I appreciate!


       

      

  • What manifest do you use? Have you done 'repo sync' to update your source?

    It seems like your dvsdk package is not patched properly from external/ti-dsp/patches/ before build.

    The log you provided shows the xdc_target_name is GCArmv5T, which should be GCArmv7A after patched. libc6-dev is irrelevant, all the headers missed are provided in bionic, but their path is not included in your build cmd in the log, because "ANDROID_CFLAGS" is missing due to improper patching. Please refer to external/ti-dsp/patches/dmai.patch.


    You may want to manually run the patching cmds in external/ti-dsp/get_tidsp.sh to see why patching failed. Or simply remove external/ti-dsp/already_clean and external/ti-dsp/dvsdk_3_01_00_10/ and re-build it.

  • The manifest is rowboat-eclair-dsp.xml.  I really do 'repo sync', and update the source completely      : )

    I check the patchs by the get_tidsp.sh

    XXXXXXXXXXXXXXXX:~/rowboat-android/external/ti-dsp$ ./get_tidsp.sh
    ./get_tidsp.sh: line 24: cd: /home/davinci/rowboat-android/external/ti-dsp/external/ti-dsp: No such file or directory
    Downloading DVSDK files...
    Checking md5 sums...
    ERROR: dvsdk_3_01_00_10_Setup.bin md5sum not matched!
    XXXXXXXXXXXXXXXX:~/rowboat-android/external/ti-dsp$

    --line 24  seems like "warning"? ok, let it be.

    --ERROR   dvsdk_3_01_00_10_Setup.bin is  not matched.   >>>I will check later....

    Mr Liu. Thanks for your help.

  • re line 24 - I have the same message in my build. Seems does not hurt. Never got a chance to figure out what exactly it means.

    It seem like your dvsdk download is corrupted. Please try to download it again.

  • Hi Mr Liu,

                 I removed the DVSDK get_tidsp.sh ,ran the get_tidso.sh to download again, The output as follows:

    XXXXXXXXXXXXXXXXXXXXXX:~/rowboat-android/external/ti-dsp$ ./get_tidsp.sh
    ./get_tidsp.sh: line 24: cd: /home/davinci/rowboat-android/external/ti-dsp/external/ti-dsp: No such file or directory
    Downloading DVSDK files...
    Checking md5 sums...
    Installing DVSDK...
    cp: cannot create directory `/home/davinci/rowboat-android/external/ti-dsp/external/ti-dsp/dvsdk_3_01_00_10/': No such file or directory
    ./get_tidsp.sh: line 114: cd: OLDPWD not set
    Patching...
    ./get_tidsp.sh: line 119: cd: /home/davinci/rowboat-android/external/ti-dsp/external/ti-dsp/dvsdk_3_01_00_10: No such file or directory
    ln: creating symbolic link `codec_engine_2_25_05_16/cetools/packages/ti/sdo/fc/utils/gtinfra/gt_dais.h': No such file or directory
    ./get_tidsp.sh: line 121: /home/davinci/rowboat-android/external/ti-dsp/external/ti-dsp/patches/dmai.patch: No such file or directory
    ./get_tidsp.sh: line 122: /home/davinci/rowboat-android/external/ti-dsp/external/ti-dsp/patches/dsplink.patch: No such file or directory
    ./get_tidsp.sh: line 123: /home/davinci/rowboat-android/external/ti-dsp/external/ti-dsp/patches/codec_engine.patch: No such file or directory
    ./get_tidsp.sh: line 124: /home/davinci/rowboat-android/external/ti-dsp/external/ti-dsp/patches/gst_ti.patch: No such file or directory
    ./get_tidsp.sh: line 125: /home/davinci/rowboat-android/external/ti-dsp/external/ti-dsp/patches/openmax.patch: No such file or directory
    ./get_tidsp.sh: line 126: /home/davinci/rowboat-android/external/ti-dsp/external/ti-dsp/patches/overlay.patch: No such file or directory
    ./get_tidsp.sh: line 127: /home/davinci/rowboat-android/external/ti-dsp/external/ti-dsp/patches/omx_dsp_component.patch: No such file or directory
    ./get_tidsp.sh: line 128: /home/davinci/rowboat-android/external/ti-dsp/external/ti-dsp/patches/omx_dsp_aac.patch: No such file or directory
    ./get_tidsp.sh: line 129: /home/davinci/rowboat-android/external/ti-dsp/external/ti-dsp/patches/omx_ti.patch: No such file or directory
    ./get_tidsp.sh: line 130: /home/davinci/rowboat-android/external/ti-dsp/external/ti-dsp/patches/omx_ti.1.patch: No such file or directory
    ./get_tidsp.sh: line 131: /home/davinci/rowboat-android/external/ti-dsp/external/ti-dsp/patches/omx_global_handle.patch: No such file or directory
    ./get_tidsp.sh: line 132: /home/davinci/rowboat-android/external/ti-dsp/external/ti-dsp/patches/aac_mp4_support.patch: No such file or directory
    ./get_tidsp.sh: line 133: /home/davinci/rowboat-android/external/ti-dsp/external/ti-dsp/patches/omx_mp3_support.patch: No such file or directory
    ./get_tidsp.sh: line 134: /home/davinci/rowboat-android/external/ti-dsp/external/ti-dsp/patches/omx_aac_sample_rate_and_channels_dynamic.patch: No such file or directory
    ./get_tidsp.sh: line 135: /home/davinci/rowboat-android/external/ti-dsp/external/ti-dsp/patches/disable_omx_logs.patch: No such file or directory
    ./get_tidsp.sh: line 136: /home/davinci/rowboat-android/external/ti-dsp/external/ti-dsp/patches/h263_codec_name_fix.patch: No such file or directory
    ./get_tidsp.sh: line 137: cd: OLDPWD not set
    XXXXXXXXXXXXXXXXXXXXXX:~/rowboat-android/external/ti-dsp$

    Then I rebuild the Andorid, The error is same as before.

    Must I change the Dmai version?   Thanks.

  • Removed dvsdk_3_01_00_10  not the get_tidsp.sh  

    Could you tell me which the available Dmai version to match the DVSDK 3.01.00.10?

  • Clark Zheng said:

    XXXXXXXXXXXXXXXXXXXXXX:~/rowboat-android/external/ti-dsp$ ./get_tidsp.sh

    get_tidsp.sh script should _only_ be run in the top level directory, ~/rowboat-android/ in your case, not under external/ti-dsp/. Otherwise it tries to create external/ti-dsp/external/ti-dsp and fails. Check the log you pasted please. Please refer to the top level Makefile how to use it.

    The DMAI package is provided in the dvsdk package, I dont think its version has been changed if you did not touch dvsdk manually.

    I believe you dvsdk download is corrupted from the information you provided, my advice is download it again, remove external/already_clean and external/ti-dsp/dvsdk_3_01_00_10/, then re-run the build command again.

  • Dear Mr Liu,

              I ran the get_tidsp.sh as follows:

               XXXXXXXXXXXXXXXXXXXXXX:~/rowboat-android$ ./external/ti-dsp/get_tidsp.sh

              And it complie all is ok! Thanks Again!

    When I run the image on the board, the output error as follows.         what is problems? no syncing the DSP? how to deal with that?

      # Unable to handle kernel paging request at virtual address 041d2063
    pgd = c7bac000
    [041d2063] *pgd=00000000
    Internal error: Oops: 5 [#1]
    last sysfs file: /sys/devices/platform/mmci-omap-hs.0/mmc_host/mmc0/mmc0:aaaa/block/mmcblk0/mmcblk0p3/uevent
    Modules linked in: omaplfb pvrsrvkm sdmak lpm_omap3530 dsplinkk
    CPU: 0    Not tainted  (2.6.32 #1)
    PC is at GEN_Strlen+0x14/0x3c [dsplinkk]
    LR is at COFF_fillArgsBuffer_64x+0x50/0x14c [dsplinkk]
    pc : [<bf017744>]    lr : [<bf0194f4>]    psr: a0000113
    sp : c44f1d80  ip : c44f1d8c  fp : 00000100
    r10: 00000014  r9 : 87fbf8e0  r8 : c9ca5000
    r7 : 00000001  r6 : bef2ac3c  r5 : 00000003  r4 : 00000001
    r3 : 041d2063  r2 : 00000001  r1 : c44f1d8c  r0 : 041d2063
    Flags: NzCv  IRQs on  FIQs on  Mode SVC_32  ISA ARM  Segment user
    Control: 10c5387d  Table: 87bac019  DAC: 00000015

    SP: 0xc44f1d00:
    1d00  c4457bc0 00002000 c8800000 c00a7c24 c8802000 00000000 00001fff c04b57f0
    1d20  000200d2 ffffffff c44f1d6c bef2ac3c 00000001 c00339ec 041d2063 c44f1d8c
    1d40  00000001 041d2063 00000001 00000003 bef2ac3c 00000001 c9ca5000 87fbf8e0
    1d60  00000014 00000100 c44f1d8c c44f1d80 bf0194f4 bf017744 a0000113 ffffffff
    1d80  000000d2 c44f1d8c c44f1e18 c44f1e60 0000015f c92e9000 c44f1e18 c44f1e60
    1da0  0000015f 00000001 c9ca5000 00000003 c44f1e14 bf018b68 87fbf8e0 00000001
    1dc0  00000003 c9ca5000 00021439 0000016d 00000000 00000001 87fa9740 bef2ac3c
    1de0  6772612e 00000073 87fbf8e0 87fbf8e0 00000100 0023afc2 00000000 00000000

    IP: 0xc44f1d0c:
    1d0c  c00a7c24 c8802000 00000000 00001fff c04b57f0 000200d2 ffffffff c44f1d6c
    1d2c  bef2ac3c 00000001 c00339ec 041d2063 c44f1d8c 00000001 041d2063 00000001
    1d4c  00000003 bef2ac3c 00000001 c9ca5000 87fbf8e0 00000014 00000100 c44f1d8c
    1d6c  c44f1d80 bf0194f4 bf017744 a0000113 ffffffff 000000d2 c44f1d8c c44f1e18
    1d8c  c44f1e60 0000015f c92e9000 c44f1e18 c44f1e60 0000015f 00000001 c9ca5000
    1dac  00000003 c44f1e14 bf018b68 87fbf8e0 00000001 00000003 c9ca5000 00021439
    1dcc  0000016d 00000000 00000001 87fa9740 bef2ac3c 6772612e 00000073 87fbf8e0
    1dec  87fbf8e0 00000100 0023afc2 00000000 00000000 00000000 00000000 00000240

    R1: 0xc44f1d0c:
    1d0c  c00a7c24 c8802000 00000000 00001fff c04b57f0 000200d2 ffffffff c44f1d6c
    1d2c  bef2ac3c 00000001 c00339ec 041d2063 c44f1d8c 00000001 041d2063 00000001
    1d4c  00000003 bef2ac3c 00000001 c9ca5000 87fbf8e0 00000014 00000100 c44f1d8c
    1d6c  c44f1d80 bf0194f4 bf017744 a0000113 ffffffff 000000d2 c44f1d8c c44f1e18
    1d8c  c44f1e60 0000015f c92e9000 c44f1e18 c44f1e60 0000015f 00000001 c9ca5000
    1dac  00000003 c44f1e14 bf018b68 87fbf8e0 00000001 00000003 c9ca5000 00021439
    1dcc  0000016d 00000000 00000001 87fa9740 bef2ac3c 6772612e 00000073 87fbf8e0
    1dec  87fbf8e0 00000100 0023afc2 00000000 00000000 00000000 00000000 00000240

    R8: 0xc9ca4f80:
    4f80  ******** ******** ******** ******** ******** ******** ******** ********
    4fa0  ******** ******** ******** ******** ******** ******** ******** ********
    4fc0  ******** ******** ******** ******** ******** ******** ******** ********
    4fe0  ******** ******** ******** ******** ******** ******** ******** ********
    5000  61206c65 636f6c6c 6f697461 6166206e 64656c69 4157000a 4e494e52 44203a47
    5020  51205053 20414d44 6e616843 206c656e 67617375 203e2065 63000a34 6365646f
    5040  696e755f 72657374 00726576 65646f63 6e755f63 65737469 72657672 3231303d
    5060  36353433 616d0037 203e6e69 636c6557 20656d6f 43206f74 4d4f3153 35335041
    Process mediaserver (pid: 818, stack limit = 0xc44f02e8)
    Stack: (0xc44f1d80 to 0xc44f2000)
    1d80: 000000d2 c44f1d8c c44f1e18 c44f1e60 0000015f c92e9000 c44f1e18 c44f1e60
    1da0: 0000015f 00000001 c9ca5000 00000003 c44f1e14 bf018b68 87fbf8e0 00000001
    1dc0: 00000003 c9ca5000 00021439 0000016d 00000000 00000001 87fa9740 bef2ac3c
    1de0: 6772612e 00000073 87fbf8e0 87fbf8e0 00000100 0023afc2 00000000 00000000
    1e00: 00000000 00000000 00000240 00000000 bf020001 c9ca5000 6772612e 00000073
    1e20: 00000000 0000001c 00000000 00000000 00000000 00000000 c8e78000 bf0238a8
    1e40: 00000008 bf0238ac 00000001 00008000 bef2ac3c bf01db7c bf0238ac c9102800
    1e60: c92e9000 c9102910 00000003 00000001 bf00de70 bf00de48 00000002 bf021d64
    1e80: bf021d64 bf021d38 c44f0000 100ffe50 c018e015 c018e015 00000007 c0034028
    1ea0: c44f0000 00000000 0000bb00 bf01ec9c c7bad000 00000458 00000116 00000000
    1ec0: 00000000 40116888 c78f6540 c44f1fb0 c44d23e8 c44d240c 40119000 00008000
    1ee0: 00000000 8082405c 00000001 bef2ac3c 00070000 c7b879c0 40119000 c7a68d40
    1f00: 00000000 c018e015 00000007 c0034028 00000000 c00bd8c8 100ffe50 c7a68d40
    1f20: c018e015 c00bdf90 c7a68d40 00087304 00000000 00000000 00071000 c7a68d40
    1f40: 00000000 c7b89c78 c44d2440 4018a000 00000001 c44d245c c78f6540 c7a68d40
    1f60: c44f0000 40119000 00000003 c7a68d40 100ffe50 c018e015 00000007 c0034028
    1f80: c44f0000 c00be030 00000007 00000001 100ffe50 100ffe50 0000c010 00000004
    1fa0: 00000036 c0033e80 100ffe50 0000c010 00000007 c018e015 100ffe50 100ffdfc
    1fc0: 100ffe50 0000c010 00000004 00000036 00000170 80817789 10000000 0000bb00
    1fe0: 8082e0d4 100ffde0 afe20741 afe0cb0c 00000010 00000007 00010012 000039f4
    [<bf017744>] (GEN_Strlen+0x14/0x3c [dsplinkk]) from [<bf0194f4>] (COFF_fillArgsBuffer_64x+0x50/0x14c [dsplinkk])
    [<bf0194f4>] (COFF_fillArgsBuffer_64x+0x50/0x14c [dsplinkk]) from [<bf018b68>] (COFF_load+0x408/0x644 [dsplinkk])
    [<bf018b68>] (COFF_load+0x408/0x644 [dsplinkk]) from [<bf01db7c>] (PMGR_PROC_load+0x1cc/0x264 [dsplinkk])
    [<bf01db7c>] (PMGR_PROC_load+0x1cc/0x264 [dsplinkk]) from [<bf01ec9c>] (DRV_Ioctl+0x330/0x7b8 [dsplinkk])
    [<bf01ec9c>] (DRV_Ioctl+0x330/0x7b8 [dsplinkk]) from [<c00bd8c8>] (vfs_ioctl+0x5c/0x6c)
    [<c00bd8c8>] (vfs_ioctl+0x5c/0x6c) from [<c00bdf90>] (do_vfs_ioctl+0x4e4/0x550)
    [<c00bdf90>] (do_vfs_ioctl+0x4e4/0x550) from [<c00be030>] (sys_ioctl+0x34/0x54)
    [<c00be030>] (sys_ioctl+0x34/0x54) from [<c0033e80>] (ret_fast_syscall+0x0/0x2c)
    Code: 13510000 059f2028 0a000007 e1a03000 (e4d32001)
    ---[ end trace 6109984f17ac8155 ]---
    Kernel panic - not syncing: Fatal exception

  • What device/platform do you use? What is its version?

    Please list ALL commands here you have used to build and run the image, start from 'repo init...' unitl uboot param setup. Please make sure you have fully followed the DSP wiki on rowboat.

    Please attach the FULL console boot-up log.

  • Dear Liu,

                 Thanks for your kind help... That is my "bootargs"problem.. And now, All is ok.

                 I capture the ARM's utility rate by "top&", Sometimes, It run error and system restart.  any other tools to capture the ARM's utility rate?

                Anyway, I appreciate.

  • Glad you got it up and running.

    What platform do you use? I always use 'top' to check the ARM load on OMAP3EVM and did not have any issue. I am not aware of any other tool can check ARM load at the moment.

  •      ICETEK-OMAP3530-Mini V3.  And I think it is my video file's codec problem, I change a new file for test, run "top" well and stably   : )

         As we know, the command "top" can not capture the DSP's utility rate,  Could you advise me what tools to capture the DSP's utility rate?   Thanks a lot again and again : P

        Best Regards!