[[bc10/rowboat]]

-Contents
#contents

*Summary [#o690add2]
>
This section covers form the setting of the development environment to the preparation for the build~
process. Development Environment discusses that the requirements and adjustments for the development~
environment. The section of SGX and DSP integration explains how to obtains the mandatory files and~
update the kernel of rowboat-eclair-dsp.~

*Development Environment [#p88a8224]
**OS [#u36b666b]
>
Ubuntu 10.04 (32 bit version) is used here for building the development environment. 
[[rowboat project:http://code.google.com/p/rowboat/wiki/ConfigureAndBuild]]~
recommends 8.x or 9.04. However, uboot-mkimage is only available for Ubuntu 8.10 or later. If Ubuntu 8.04~
is used, build [[uboot-mkimage:http://packages.debian.org/en/lenny/uboot-mkimage]] from its source package and install it. Uboot-mkimage is a utility, which~
creates and encloses a compressed uImage Linux kernel image with header information, CRC32 checksum,~
and others. This utility is used with the U-Boot bootloaer.~


**Installing Mandatory Packages [#acd5a524]
>
Installing the mandatory packages for building the development environment.
 $ sudo apt-get install git-core gnupg flex bison gperf libsdl-dev libesd0-dev libwxgtk2.6-dev build-essential zip curl libncurses5-dev zlib1g-dev minicom tftpd uboot-mkimage
To install DSP stack integration, '''expect''' is required for DSP stack instillation of TI.
 $ sudo apt-get install expect

**sun-java5-jdk [#j8110f45]
>
Since '''sun-java5-jdk''' is not supported for Ubuntu 9.10 or newer, add the old repository in  '''/etc/apt/sources.list''', temporarily.
 $ sudo vi /etc/apt/sources.list
  deb http://us.archive.ubuntu.com/ubuntu/ jaunty multiverse
  deb http://us.archive.ubuntu.com/ubuntu/ jaunty-updates multiverse
 $ sudo apt-get update
 $ sudo apt-get install sun-java5-jdk
After installation is completed, the added repository should be deleted. 

* SGX and DSP integration [#gec5eb48]
** Obtaining rowboat source[#n5477070]
>
This follows the direction listed in a [[wiki of rowboat:http://code.google.com/p/rowboat/wiki/Source]].
 $ mkdir ~/bin
 $ curl http://android.git.kernel.org/repo >~/bin/repo
 $ chmod a+x ~/bin/repo
There are two ways to make repo use. One is to execute '''PATH = ~/bin:$PATH''', and the other is to logout ounce, then~
login again. repo can be worked as supposedly.~
~
At this time, the targeted branch is rowboat-eclair-dsp. In rowboat, the newly created directory is named~
rowboat-android, but in this section, the directory is called rowboat-eclair-dsp.~
 $ mkdir ~/rowboat-eclair-dsp
 $ cd ~/rowboat-eclair-dsp
 $ repo init -u git://gitorious.org/rowboat/manifest.git -m rowboat-eclair-dsp.xml
After manifest.xml and other files are downloaded from the git repository to '''./repo''', the login name and e-mail address are~
asked. Input user's login name and e-mail address. Then confirm the login name and e-mail address by typing [y].~
 Your Name  [login name]: BeatCraft
 Your Email [e-mail address]: labs.beatcraft@gmail.com
 
 Your Identity is: BeatCraft <labs.beatcraft@gmail.com>
 is this correct [y/n]? y
 
 repo initialized in /home/beat/rowboat-eclair-dsp
The initialization is completed, then, start downloading.
 $ repo sync
It takes long time to download the source of rowboat from gitrious.org.

**Obtaining Android GSX SDK[#r38308db]
>
Acquire TI's Android SGX SDK.
 $ cd rowboat-eclair-dsp
 $ git clone git://gitorious.org/rowboat/ti_android_sgx_sdk.git

**DSP [#b81a7629]
>
The details of the build process of DSP are listed at DSP section of rowboart. This section follows the sections after Building~
and Testing DSP stack.

***Obtaining source[#i9b1cc5b]
>
To download codec_engine_2_24_01.tar.gz and c64cplus_mp3dec_1_31_001_production.bin, registration or a my.TI account is~
required. For the rest of the source files, prepare, a script, calls '''/external/ti-dsp/get_tidsp.sh''' for download, and the files are~
downloaded automatically. However, in this section, the rest of the source files is individually downloaded and stored into~
'''/rowboat-eclair-dsp/external/ti-dsp/'''.~
- [[codec_engine_2_24_01.tar.gz:http://software-dl.ti.com/dsps/dsps_registered_sw/sdo_sb/targetcontent/CE/ce_2_24/index.html]]~
Login with my.TI account, the download link is easily found. To click the link, open up the window of the license agreement.~
If it is accepted, the download starts immediately. To download the file, IE or Firefox is highly recommended. The license~
agreement window works with certain types of JavaScript, and Chrome browser does not manage such JavaScript. The~
license agreement window may not open as Chrome browser is used.~
~
- [[c64xplus_mp3dec_1_31_001_production.bin:http://software-dl-1.ti.com/dsps/forms/self_cert_export.html?prod_no=c64xplus_mp3dec_1_31_001_production.bin&ref_url=http://software-dl.ti.com/dsps/dsps_public_sw/sdo_sb/targetcontent/dvsdk/DVSDK_3_00/latest/]]~
Login with my.TI account, name and other information are asked. Submit the required information, and the download URL is sent~
by email within few minutes. Please download from there.~

>
Following files are downloaded directly from the links.~
- [[DVSDK_3_00 3_00_02_44:http://software-dl.ti.com/dsps/dsps_public_sw/sdo_sb/targetcontent/dvsdk/DVSDK_3_00/3_00_02_44/exports/dvsdk_setuplinux_3_00_02_44.bin]]~
~
- [[cs1omap3530_1_00_01:http://software-dl.ti.com/dsps/dsps_public_sw/sdo_sb/targetcontent/dvsdk/DVSDK_3_00/3_00_02_44/exports/cs1omap3530_setuplinux_1_00_01-44.bin]]~
~
- [[cg6x_6.0.16.1:http://software-dl.ti.com/dsps/dsps_public_sw/sdo_sb/targetcontent/dvsdk/DVSDK_3_00/3_00_02_44/exports/TI-C6x-CGT-v6.0.16.1.bin]]~
~
- [[bios_5_33_06:http://software-dl.ti.com/dsps/dsps_public_sw/sdo_sb/targetcontent/dvsdk/DVSDK_3_00/3_00_02_44/exports/bios_setuplinux_5_33_06.bin]]~
~
- [[xdctools_3_15_01_59:http://software-dl.ti.com/dsps/dsps_public_sw/sdo_sb/targetcontent/dvsdk/DVSDK_3_00/3_00_02_44/exports/xdctools_setuplinux_3_15_01_59.bin]]~
~
- TIGStreamerPlugin~
Gsresamer Plugin is checkout by svn.~

>
 $ cd rowboat-eclair-dsp/external/ti-dsp
 $ svn checkout -r 506 --username anonymous --password "" -q https://gstreamer.ti.com/svn/gstreamer_ti/trunk/gstreamer_ti

***Executing prepare [#yb68bbda]
>
Run '''prepare''' as it is shown below. DSP stack which will become a part of Android, is temporarily installed in '''/rowboat-eclair-dsp/external/ti-dsp''',~
and a patch for building Android is added.
 $ cd rowboat-eclair-dsp
 $ ./prepare

**Update kernel[#w3669810]
>
The kernel of rowboat-eclair-dsp is needed to be updated. The default kernel version of rowboat-eclair-dsp branch is 2.6.29,~
and the kernel does not work with Android SGX SDK, and the build process does not succeed. Even though the executing~
process of '''prepare''' is completed without any errors, which means that this is ready for building Android with DSP, the kernel~
still cannot handle Android SGX SDK. As far as rowboat-eclair-dsp's kernel version is 2.6.29, the build process fails. This is how~
to update the kernel version from 2.6.29 to 2.6.32.~
 $ cd rowboat-eclair-dsp/kernel
 $ git checkout -b rowboat-eclair-2.6.32 rowboat/rowboat-eclair-2.6.32

>
Continue to [[bc10/rowboat-eclair-dsp-2]]...

*Reference [#d8654444]
-Development Environment (Host Environment)
--http://code.google.com/p/rowboat/wiki/ConfigureAndBuild
--http://packages.debian.org/en/lenny/uboot-mkimage
-Source of rowboat
--http://code.google.com/p/rowboat/wiki/Source
-About DSP
--http://code.google.com/p/rowboat/wiki/DSP~



Front page   Edit Diff Backup Upload Copy Rename Reload   New List of pages Search Recent changes   RSS of recent changes