Personal tools

Log in

Changes

From IGEP - ISEE Wiki

Jump to: navigation, search

How to get the Android distribution

2,783 bytes added, 13:55, 17 February 2011
Froyo 2.2
==== Froyo 2.2 ====
Work in progress, please contributeWORK IN PROGRESS
===== Using TI Android DevKit =====* http://software-dl.ti.com/dsps/dsps_public_sw/sdo_tii/TI_Android_DevKit/02_02_00/index_FDS.html
Download and uncompress latest version ===== Build Android Froyo from http://software-dl.ti.com/dsps/dsps_public_sw/sdo_tii/TI_Android_DevKit/02_02_00/index_FDS.htmlsources =====
WORK IN PROGRESS Run repo init to bring down the latest version of Repo with all its most recent bug fixes. You must specify a URL for the manifest:  $ mkdir froyo $ cd froyo wget http$ repo init -u git://software-dlgitorious.ti.comorg/dspsrowboat/dsps_public_swmanifest.git -m rowboat-froyo-dsp.xml To pull down files to your working directory from the repositories as specified in the default manifest, run  $ repo sync First of all edit device/sdo_tiiti/TI_Android_DevKitigepv2/02_02_00BoardConfig.mk and set BOARD_USES_OMAP3_LIGHTS to false, otherwise compilation fails.<pre>diff --git a/exportsBoardConfig.mk b/TI_Android_FroYo_DevKit-V2BoardConfig.2mkindex b9e86b3.tar.gz95187de 100644 tar xzf TI_Android_FroYo_DevKit-V2-- a/BoardConfig.2mk+++ b/BoardConfig.tar.gzmk@@ -11,7 +11,7 @@ BUILD_WITH_ALSA_UTILS := true
BUILD_PV_VIDEO_ENCODERS := 1
-BOARD_USES_OMAP3_LIGHTS := true
+BOARD_USES_OMAP3_LIGHTS := false
BOARD_USES_VIRTUAL_TOUCHSCREEN := true
USE_CUSTOM_RUNTIME_HEAP_MAX := "64M"
</pre>
... ===== Build Android Froyo from sources =====Run repo init to bring down the latest version of Repo with all its most recent bug fixes. You must specify a URL for the manifestTIP:Enable loading dsp modules
<pre>
$ mkdir froyodiff --git a/init.rc b/init.rcindex 57bf9bc..dacc2de 100644$ cd froyo--- a/init.rc$ repo +++ b/init .rc@@ -124,6 +124,12 @@ loglevel 3 chmod 0777 /dev/video2 chmod 0777 /dev/omap-u git:resizer +# loading dsp modules+ insmod /system/ti-dsp/gitoriouscmemk.orgko "phys_start=0x84700000 phys_end=0x85900000 allowOverlap=1 useHeapIfPoolUnavailable=1"+ insmod /system/rowboatti-dsp/manifestdsplinkk.git ko+ insmod /system/ti-m rowboat-froyodsp/lpm_omap3530.ko+ insmod /system/ti-dsp/sdmak.xmlko+ # create basic filesystem structure mkdir /system/etc/wifi 0770 system wifi chmod 0770 /system/etc/wifi
</pre>
To pull down files to your working directory from the repositories TIP: Use partition 3 as specified in the default manifest, runmedia data.
<pre>
$ repo syncdiff --git a/vold.fstab b/vold.fstabindex fc83907..b58f21f 100644--- a/vold.fstab+++ b/vold.fstab@@ -1,2 +1,2 @@-dev_mount sdcard /mnt/sdcard auto /devices/platform/mmci-omap-hs.0/mmc_host/mmc0+dev_mount sdcard /mnt/sdcard 3 /devices/platform/mmci-omap-hs.0/mmc_host/mmc0
</pre>
First of all edit deviceDownload the TI DVSDK package to the external/ti-dsp folder manually from the table in webpage http://software-dl.ti.com/dsps/dsps_public_sw/sdo_sb/targetcontent/igepv2dvsdk/BoardConfigDVSDK_4_00/latest/index_FDS.mk and set BOARD_USES_OMAP3_LIGHTS to falsehtml. Registration might be needed.* For DM37xx platform, download dvsdk_dm3730-evm_4_01_00_09_setuplinux package;* For OMAP35xx platform, otherwise compilation failsdownload dvsdk_omap3530-evm_4_01_00_09_setuplinux package $ cp <dvsdk package> external/ti-dsp
Now build for your target product, do
<pre>. source build/envsetup.sh lunch igepv2-engm make TARGET_PRODUCT=igepv2 -j8OMAPES=(2.x|3.x|5.x) Set OMAPES variable to install proper version of SGX drivers (Default is 3.x): *OMAPES=2.x, for OMAP3530 ES1 or ES2;*OMAPES=3.x, for OMAP3530 ES3.0;*OMAPES=5.x, for DM37x</pre>
Next step is create a tarball containing the rootfs
<pre>$ cd out/target/product/igepv2 $ mkdir froyo-rootfs $ cp -r out/target/product/igepv2/root/* froyo-rootfs/ $ cp -r out/target/product/igepv2/system froyo-rootfs/ $ sudo build/tools/mktarball.sh out/host/linux-x86/bin/fs_get_stats froyo-rootfs . rootfs froyo-rootfs.tar.bz2 Create a SD card  $ wget http://downloads.igep.es/binaries/x-loader/v1.4.4-1/x-load-1.4.4-1.igep0020-sdcard.bin.ift $ wget http:/build/tools/mktarballdownloads.sh igep.es/binaries/u-boot-arm/v2010.06-1/u-boot-arm-2010.06-1./igep0020.bin  mmc init 0 fatload mmc 0 80200000 uImage setenv bootargs 'mem=71M@0x80000000 mem=384M@0x88000000 console=tty0 console=ttyS2,115200n8 \ androidboot.console=ttyS2 root=/dev/hostmmcblk0p2 rw rootfstype=ext3 init=/init rootwait ip=off \ omap_vout.vid1_static_vrfb_alloc=y omapdss.def_disp=lcd-70 omapfb.mode=dvi:1280x720MR-16 mpurate=800' bootm 0x80200000  $ mkimage -A arm -O linux-x86T script -C none -a 0 -e 0 -n 'Boot setup script' -d boot.source boot.scr finally create the sdcard with yhe mkmmc-android.sh script  $ wget http://bindownloads.igep.es/fs_get_stats android/froyo-rootfs 2. rootfs rootfs2/mkmmc-android.tar.bz2sh $ cd sudo ./mkmmc-android./sh <device> x-load-1.4.4-1.igep0020-sdcard.bin.ift u-boot-arm-2010./06-1.igep0020.bin kernel/arch/arm/boot/uImage boot.scr froyo-rootfs.tar./bz2 Media </pre>'''Warning:''' Provide the right device name after the script name when you invoke the script. If you get this wrong it can wipe your HDD.
--- That's all folks ---
[[Category:Software distributions|Android]]
0
edits