Template:Multimedia rebuild ipumm firmware

= Rebuild IPUMM Firmware =

Pre-built IPUMM firmware images can be located on target file system at /lib/firmware/dra7-ipu2-fw.xem4. In case there is a need to rebuild the IPUMM firmware, the instructions below are provided for rebuilding IPUMM firmware. It assumes that everything is done on a Ubuntu machine.

IPUMM GIT Repo
IPUMM is publically available at https://git.ti.com/ivimm/ipumm. To clone the git repository, execute the following command. git clone git://git.ti.com/ivimm/ipumm.git

To checkout a particular tag, e.g., 3.00.09.01, run the following command: cd ipumm git checkout [tag, e.g., 3.00.09.01]

IPUMM Build Tools
Making IPUMM depends on the following tools.


 * Codec Engine: Codec Engine Product Releases
 * Framework Components: Framework Components Product Releases
 * IPC: IPC Product Releases
 * XDAIS: XDAIS Product Releases
 * BIOS: SYS/BIOS Product Releases
 * XDC Tools: XDCTools Product Releases
 * TMS470 CGT ARM: The compiler tools are provided as part of CCS.CCSv6 Download

Each release of IPUMM is verified with particular versions of the tools above. Check top level Makefile of ipumm to identify the versions to be downloaded and installed. For example, the tool versions used in IPUMM 3.00.09.01 are listed as below: XDCVERSION     ?= xdctools_3_31_02_38_core BIOSVERSION    ?= bios_6_42_02_29 IPCVERSION     ?= ipc_3_40_01_08 CEVERSION      ?= codec_engine_3_24_00_08 FCVERSION      ?= framework_components_3_40_01_04 XDAISVERSION   ?= xdais_7_24_00_04 # TI Compiler Settings export TMS470CGTOOLPATH ?= $(BIOSTOOLSROOT)/ccsv6/tools/compiler/ti-cgt-arm_5.2.5

Below are direct download links and install instructions for IPUMM 3.00.09.01 build tools. When installing the tools, it is preferable to install all the tools to the same directory, e.g., /opt/ti.
 * Download and untar codec_engine_3_24_00_08,lite.tar.gz
 * Download and untar framework_components_3_40_01_04,lite.tar.gz
 * Download and unzip ipc_3_40_01_08.zip
 * Download and untar xdais_7_24_00_04.tar.gz
 * Download and install bios_setuplinux_6_42_02_29.bin
 * Download and untar xdctools_3_31_02_38_core_linux.zip
 * Download and install CCSv6 Build#6.1.1.00022. Ensure that "TI ARM Compiler" is selected during the installation. After the installation, the compiler tools (version 5.2.5) are located at [ccs_install_dir]/ccsv6/tools/compiler/ti-cgt-arm_5.2.5.

Setup Environment
Export the following environment variables: export BIOSTOOLSROOT= export IPCSRC= export TMS470CGTOOLPATH=

Example for IPUMM 3.00.09.01 assuming all the tools are installed to /opt/ti directory: export BIOSTOOLSROOT=/opt/ti export IPCSRC=/opt/ti/ipc_3_40_01_08 export TMS470CGTOOLPATH=/opt/ti/ccsv6/tools/compiler/ti-cgt-arm_5.2.5

Build IPUMM
Follow the steps below to build IPUMM firmware. export HWVERSION=ES10 cd ipumm make unconfig make vayu_smp_config make clean make ducatibin

After the build is completed, two different images will get created. Select the correct one for your devices. * dra7-ipu2-fw.xem4: This firmware will be used for Linux or Android. The firmware is built with the resource table defined in platform/ti/dce/baseimage/custom_rsc_table_vayu_ipu.h The corresponding map file is: platform/ti/dce/baseimage/package/cfg/out/ipu/release/ipu.xem4.map

* dra7xx-m4-ipu2.xem4: This firmware will be used for QNX. The firmware is built with the resource table defined in platform/ti/dce/baseimage/qnx_custom_rsc_table_vayu_ipu.h The corresponding map file is: platform/ti/dce/baseimage/package/cfg/out/ipu/release/qnx_ipu.xem4.map