5AI.1.7 Release Notes

= Introduction = This software release has been developed and verified in the following software and hardware environment.

OS Kernel: Linux® 3.1 Android:  Android IcecreamSandwich 4.0.3 MR1 Audio Back End (ABE):  09.51 Toolchain: CodeSourcery compiler version Sourcery G++ Lite 2010q1-202 for ARM GNU/Linux Reference hardware platforms: TI OMAP5 5430 SEVM ES1.0 GP Build Host OS: Ubuntu Daily Build OMAP5 SEVM Version: OMAP5_master build 43

=Tools & Dependency packages=

Pre-requisite packages for building the Android Filesystem (Note this is with reference to Ubuntu 10.04 64-bit). Ubuntu 64-bit is required by Ice Cream Sandwich.

If you are behind firewall, you will have to set-up firewall using the instructions in

The following commands will install the correct packages to your server:

sudo apt-get install git-core flex bison gperf libesd0-dev zip libwxgtk2.6-dev zlib1g-dev build-essential tofrodos x-dev sudo apt-get install lib32readline5-dev libstdc++6 lib32z1 lib32z1-dev ia32-libs g++-multilib libx11-dev libncurses5-dev

Add the partner repositories and install the JDK:

sudo add-apt-repository "deb http://archive.canonical.com/ lucid partner" sudo apt-get update sudo apt-get install sun-java6-jdk

Install latest repo tool:

mkdir ~/bin -p sudo apt-get install curl curl https://dl-ssl.google.com/dl/googlesource/git-repo/repo > ~/bin/repo chmod a+x ~/bin/repo export PATH=~/bin:$PATH

Command to get repo version:

repo --version Should be repo version v1.7.8.2 or higer.

If you do not have sudo rights to your machine, contact your System Administrator for assistance.

Tool Chain for building Kernel and Drivers

The Kernel and Driver sources are built using Sourcery G++ Lite 2010q1-202 for ARM GNU/Linux version.

This tool chain can be obtained from



=Downloading Release Software= Android Filesystem Sources

Note

''1: You should export a variable "https_proxy" when behind a firewall, since file system build downloads repo tree from Google server over https connection. You can use the format mentioned

below'' export https_proxy=

''2: Ensure that you back up .repo folder into another location, otherwise it will take precedence on top of the one you will be creating below. Command below for reference'' mv $HOME/.repo $HOME/.repo_old

You can get the Android source for this release by doing: cd export YOUR_PATH=`pwd` mkdir -p 5AI.1.7/mydroid; cd 5AI.1.7/mydroid export MYDROID=`pwd` repo init -u git://git.omapzoom.org/platform/omapmanifest.git -b 5AI.x -m RLS_5AI.1.7.xml repo sync

Kernel & Driver Sources

To clone kernel source from scratch do: cd ${YOUR_PATH} mkdir kernel git clone git://git.omapzoom.org/kernel/omap.git kernel/android-3.1 cd kernel/android-3.1 git checkout e498c8c803042dd904de436899ad0bd06df8e2ca If you already have kernel source cloned then just update it: cd $YOUR_PATH/kernel/android-3.1 git fetch origin git checkout e498c8c803042dd904de436899ad0bd06df8e2ca

U-Boot Sources cd ${YOUR_PATH} git clone git://git.omapzoom.org/repo/u-boot.git u-boot cd u-boot git checkout 090ac8e286d94ccb3e5d5e7d52b02f491617185a

=Release Content=

This release has the below content - Kernel and Drivers tested with OMAP5 5430 SEVM 1.0 GP and verified with Ice Cream Sandwich UI

=Build Instructions=

Setting up build environment
From your work directory (where your 5AI.1.7 folder resides): export YOUR_PATH=`pwd` export PATH=$PATH:/arm-2010q1/bin export MYDROID=${YOUR_PATH}/5AI.1.7/mydroid mkdir $MYDROID/logs export CROSS_COMPILE=arm-none-linux-gnueabi- export PATH=${YOUR_PATH}/u-boot/tools:${PATH}

Building U-BOOT
cd ${YOUR_PATH}/u-boot git clean -fdx make CROSS_COMPILE=" arm-none-linux-gnueabi-" -j1 clean make CROSS_COMPILE=" arm-none-linux-gnueabi-" -j1 omap5_evm5430_android_config make CROSS_COMPILE=" arm-none-linux-gnueabi-" -j$(cat /proc/cpuinfo |grep ^proc|wc -l) all

Generating boot.scr to boot from SD
NOTE: This is done automatically, and is based on the information in "boot.scr.omap.txt". This information is provided for information purposes only.

cd ${YOUR_PATH}/u-boot echo "i2c mw 0x48 0xd9 0x15" > boot.cmd echo "i2c mw 0x48 0xd4 0x05" >> boot.cmd echo "mmc part" >> boot.cmd echo "fatload mmc 0:1 0x80300000 uImage" >> boot.cmd echo "bootm 0x80300000" >> boot.cmd mkimage -A arm -O linux -T script -C none -a 0 -e 0 -n 'OMAP5 Integration' -d boot.cmd boot.scr

Building Kernel
To create kernel uImage you need to add "mkimage" directory path to your "PATH" environment variable: cd ${YOUR_PATH}/kernel/android-3.1 make -j$(cat /proc/cpuinfo |grep ^proc|wc -l) ARCH=arm CROSS_COMPILE=arm-none-linux-gnueabi- mrproper make -j$(cat /proc/cpuinfo |grep ^proc|wc -l) ARCH=arm CROSS_COMPILE=arm-none-linux-gnueabi- android_omap5sevm_defconfig make -j$(cat /proc/cpuinfo |grep ^proc|wc -l) ARCH=arm CROSS_COMPILE=arm-none-linux-gnueabi- uImage modules

Patching Android Filesystem (AFS) with TI Codecs enabled
This build requires 4 userspace patches to be applied. Three of them are in review.omapzoom.org, and the fourth is attached to this wiki page. These instructions assume you have downloaded the attached patch into ${MYDROID}.

cd ${MYDROID}/device/ti/common-open git fetch http://review.omapzoom.org/p/device/ti/common-open refs/changes/40/18540/2 && git cherry-pick FETCH_HEAD git fetch http://review.omapzoom.org/p/device/ti/common-open refs/changes/88/18488/4 && git cherry-pick FETCH_HEAD git fetch http://review.omapzoom.org/p/device/ti/common-open refs/changes/89/18489/6 && git cherry-pick FETCH_HEAD cd ${MYDROID}/hardware/ti/omap4xxx git fetch http://review.omapzoom.org/p/platform/hardware/ti/omap4xxx refs/changes/07/19107/1 && git cherry-pick FETCH_HEAD

Building Android Filesystem (AFS)
cd $MYDROID . build/envsetup.sh lunch 16 make -j $(egrep '^processor' /proc/cpuinfo | wc -l) clean make -j $(egrep '^processor' /proc/cpuinfo | wc -l)

Building SGX
The SGX package is based on the following internal repository:


 * The DDK version is 1.8@789263
 * repository - INTERNAL
 * commit ID - 5e4ca9b068a16491b21a7fe3e909cc55e9ebdd1e

cd ${YOUR_PATH} tar zxf /SGX_5AI.1.7.tgz cd SGX_5AI.1.7 export ANDROID_ROOT=${MYDROID} export KERNELDIR=${YOUR_PATH}/kernel/android-3.1 export DISCIMAGE=${PWD}/discimage if [ -d ${DISCIMAGE} ]; then rm -rf ${DISCIMAGE} fi mkdir ${DISCIMAGE} ./build_DDK.sh --build omap5 release clobber ./build_DDK.sh --build omap5 release fakeroot ./build_DDK.sh --install omap5 release

Building Ducati

 * RPMSG
 * Repository - git://git.omapzoom.org/repo/sysbios-rpmsg.git
 * Commit Tag - 1.00.09.43


 * Ducati MM
 * Repository - INTERNAL
 * Commit Tag - TI-MM-BENELLI_RLS.03.00.02.00

The Ducati MM package "Ducati_5AI.1.7.tgz" will need to be downloaded from CDDS.


 * Required Build Tools for Ducati packages:
 * Codec Engine
 * Framework Components
 * IPC
 * XDAIS
 * OSAL
 * BIOS
 * XDC Tools
 * CG Tools

The tools need to be downloaded and installed in a common tools directory that would then be used during the build. A complete Tools package is available from CDDS at the following link: ICS_Ducati_Tools This package will install the tools together in one specific directory called dsptools.

Setup
cd ${YOUR_PATH} tar zxf /Ducati_5AI.1.7.tgz

Build Steps for RPMSG
cd ${YOUR_PATH}/Ducati_5AI.1.7/ git clone git://git.omapzoom.org/repo/sysbios-rpmsg.git ducati-1.00.09.43 cd ducati-1.00.09.43 git checkout 1.00.09.43 chmod +w Makefile export DSPTOOLS= Edit the Makefile - REPO - else echo - put the path to the dsptools. Example using sed command below: sed -i -e "s#/usr/local#${DSPTOOLS}#g" Makefile export PATH=${PATH}: export XDCPATH="/src; /bios_6_32_01_38/packages" export TMS470CGTOOLPATH= export C6000CGTOOLPATH= make clean make -j4

Build Steps for Ducati
The paths below need to be defined and for each export commands are one line. Environment Settings: export XDCPATH="/src;/bios_6_32_01_38/packages; /ipc_1_23_01_26/packages;/codec_engine_3_21_00_19/packages; FCPATH>/framework_components_3_21_01_26/packages; /WTSD_DucatiMMSW/ext_rel/ivahd_codecs/packages; /xdais_7_21_00_02/packages;OSALPATH>/osal_1_21_01_08/packages;../../framework;" export TMS470CGTOOLPATH= export XDCROOT=<location of tools/XDC/xdctools_3_22_03_41 export XDCBUILDCFG=../../build/config.bld export PATH=$XDCROOT:$PATH export XDCARGS= Use eith Without or Without Instrumentation settings For OMAP5 XDCARGS options: Without Instrumentation: export XDCARGS="profile=release core=app_m3 target_build=BUILD_OMAP4 SenPosition=TABLET board_config=BOARD_CONFIG_TI_SEVM_S3D hw_type=OMAP5" With Instrumentation: export XDCARGS="profile=release core=app_m3 target_build=BUILD_OMAP4 SenPosition=TABLET board_config=BOARD_CONFIG_TI_SEVM_S3D hw_type=OMAP5 prof_type=ENABLE" Specific Build Steps: cd ${YOUR_PATH}/Ducati_5AI.1.7/ducati-mm-TI-MM-BENELLI_RLS.03.00.02.00/WTSD_DucatiMMSW/platform/base_image Clean: xdc clean -PD. Build: xdc --jobs=4 -PD. (the jobs depends on your build machine - more cores the larger the number) Building the ducati-m3.bin: After the build is complete, invoke below command from "sysbios-rpmsg/src/utils/" location in bios syslink tree: cd ${YOUR_PATH}/Ducati_5AI.1.7/ducati-1.00.09.43/src/utils ./genrprc ../ti/examples/srvmgr/ti_platform_omap4430_core0/release/test_omx_sysm3.xem3 \ <PATH TO DUCATI APP_M3 BASE IMAGE>/out/app_m3/release/base_image_app_m3.xem3 \ <PATH WHERE YOU WANT TO STORE GENERATED IMAGE>/ducati-m3.bin

The ducati-m3.bin would be generated and then this binary will be copied into the Android File System as instructed below.

Preparing Android binaries
The following binaries are required by the OMAP5 SEVM board. This step will prepare a directory, called myfs, containing all necessary Android files that you must include within your SD card.

Create the filesystem
export BOARD_TYPE="omap5sevm" cd ${MYDROID}/out/target/product/${BOARD_TYPE} cp -v ${YOUR_PATH}/Ducati_5AI.1.7/ducati-m3.bin system/vendor/firmware/ cp -avf ${YOUR_PATH}/SGX_5AI.1.7/discimage/system/vendor/* system/vendor/ cd $YOUR_PATH mkdir myfs cd myfs cp -Rfp $MYDROID/out/target/product/$BOARD_TYPE/root/*. cp -Rfp $MYDROID/out/target/product/$BOARD_TYPE/system/. cp -Rfp $MYDROID/out/target/product/$BOARD_TYPE/data/.

Create the boot partition
cd $YOUR_PATH mkdir boot cd boot cp ${YOUR_PATH}/kernel/android-3.1/arch/arm/uImage. cp ${YOUR_PATH}/u-boot/MLO. cp ${YOUR_PATH}/u-boot/u-boot.img. cp ${YOUR_PATH}/u-boot/boot.scr.

Formatting SD Card
You will need to format your SD for the Linux file system. Connect your micro SD memory card reader with memory card inserted to a USB port on your Linux Ubuntu PC. There is a shell script that performs all of the formatting required. Download it with:

$ wget http://cgit.openembedded.org/cgit.cgi/openembedded/plain/contrib/angstrom/omap3-mkcard.sh

Add execution permission:

$ chmod +x omap3-mkcard.sh

And you are ready to use it by just typing:

$sudo ./omap3-mkcard.sh <your_device (e.g. /dev/sdb)>

Once it has finished, remove and reinsert the micro SD card. If you are logged in graphically, "/media/boot" and "/media/Angstrom" will be automatically mounted. Otherwise you will need to mount them manually.

Installing the required files to micro SD
Assuming your micro SD card is mounted on "/media/boot" and "/media/Angstrom", use the following commands to populate the card:

sudo cp -a ${YOUR_PATH}/boot/* /media/boot/ sudo cp -a ${YOUR_PATH}/myfs/* /media/Angstrom/ sudo sync sudo eject /media/boot