1. Download http://code.google.com/p/rowboat/dedicated android2.3. The difference between this download and official download is:
Added two directories
/Hardware/Ti/OMX
/External/Ti-DSP
2. dvsdk: Digital Video software development kit
It contains dsplink, DSP/bios, codec-enginer, dedicated codec-omap3530 codecs, dvtb, demo, Linux Kernel
3. Install dvsdk to Android
Under the Ti-DSP/directory
Fake-toolchain get_tidsp.sh install_dvsdk4.exp makefile md5sum. List Patches
The installation script is included to facilitate installation of the dvsdk, including environment configuration. The script file first checks whether the installed directory is installed.
Check whether the installation package is installed. patch the installation package.
When running the script, you need to install reverse CT.
Tcl8.5.12-src.tar.gz tk8.5.12-src.tar.gz expect5.45.tar.gz
./Configure
Make
Make install
The default installation path is/usr/local/
Therefore, you need to change the script in Ti-DSP.
Install_dvsdk4.exp
#! /Usr/local/bin/CT-F
Install Android during compilation
Android/build/CORE/rowboat. mk
Dsp_path: = $ (wildcard external/Ti-DSP)
To compile OMX and Ti-DSP, OMX needs to use the library in the dvsdk OF Ti-DSP before compiling
Make-C external/Ti-DSP combo_target = $ (combo_target) tools_prefix) host_prebuilt_tag = $ (host_prebuilt_tag)
Make-C Hardware/Ti/OMX combo_target = $ (combo_target) tools_prefix) host_prebuilt_tag = $ (host_prebuilt_tag)
4. After compilation, the generated library will be automatically copied to the file system.
CP/hardware/Ti/OMX/Video/libomx_dsp_video_sharedlibrary.so
Out/target/product/myboard/system/lib
CP/hardware/Ti/OMX/Audio/libomx_dsp_audio_sharedlibrary.so
Out/target/product/myboard/system/lib
CP/hardware/Ti/OMX/interface/libdspengineiface. So
Out/target/product/myboard/system/lib
5. Generate Ko
Out/target/product/myboard/system/Ti-DSP/
Cmemk. Ko CS. x64p dsplinkk. Ko lpm_omap3530.ko sdmak. Ko
Modify init. RC
# Load DSP modules
Insmod/system/Ti-DSP/cmemk. Ko "phys_start = 0x84f00000 phys_end = 0x85900000 allowoverlap = 1 useheaplfpooiunavailable = 1"
Insmod/system/Ti-DSP/dsplinkk. Ko
Insmod/system/Ti-DSP/lpm_omap3530.ko
Insmod/system/Ti-DSP/sdmak. Ko