4AJ.2.5 OMAP4-Panda Jelly Bean Release Notes

From OMAPpedia

(Difference between revisions)
Jump to: navigation, search
Line 33: Line 33:
The following commands will install the correct packages to your server:
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
-
<pre>
+
  sudo apt-get install lib32readline6-dev libstdc++6 lib32z1 lib32z1-dev ia32-libs g++-multilib libx11-dev lib32ncurses5-dev
-
sudo apt-get install git-core flex bison gperf libesd0-dev zip libwxgtk2.6-dev zlib1g-dev build-essential tofrodos
+
-
sudo apt-get install lib32readline6-dev libstdc++6 lib32z1 lib32z1-dev ia32-libs g++-multilib libx11-dev lib32ncurses5-dev
+
-
</pre>
+
Add the partner repositories and install the Oracle/Sun JDK:
Add the partner repositories and install the Oracle/Sun JDK:
Line 44: Line 41:
Install ''repo'' tool:
Install ''repo'' tool:
-
 
+
  mkdir ~/bin -p
-
<pre>
+
  sudo apt-get install curl
-
mkdir ~/bin -p
+
  curl https://dl-ssl.google.com/dl/googlesource/git-repo/repo > ~/bin/repo
-
sudo apt-get install curl
+
  chmod a+x ~/bin/repo
-
curl https://dl-ssl.google.com/dl/googlesource/git-repo/repo > ~/bin/repo
+
  export PATH=~/bin:$PATH
-
chmod a+x ~/bin/repo
+
-
export PATH=~/bin:$PATH
+
-
</pre>
+
'''Tool Chain for building Kernel and Drivers'''
'''Tool Chain for building Kernel and Drivers'''
Line 62: Line 56:
= Setting up environment =
= Setting up environment =
From your work directory:
From your work directory:
-
 
+
  cd <your work directory>
-
<pre>
+
  mkdir -p 4AJ.2.5-panda; cd 4AJ.2.5-panda
-
cd <your work directory>
+
  export YOUR_PATH=`pwd`
-
mkdir -p 4AJ.2.5-panda; cd 4AJ.2.5-panda
+
  mkdir -p mydroid
-
export YOUR_PATH=`pwd`
+
  cd mydroid
-
mkdir -p mydroid
+
  export MYDROID=`pwd`
-
cd mydroid
+
-
export MYDROID=`pwd`
+
-
</pre>
+
= Downloading Release Software =
= Downloading Release Software =
To obtain '''Android Filesystem Sources''' follow:
To obtain '''Android Filesystem Sources''' follow:
-
 
+
  cd ${MYDROID}
-
<pre>
+
  repo init -u git://git.omapzoom.org/platform/omapmanifest.git -b 27.x -m RLS4AJ.2.5_JellyBean.xml
-
cd ${MYDROID}
+
  repo sync
-
repo init -u git://git.omapzoom.org/platform/omapmanifest.git -b 27.x -m RLS4AJ.2.5_JellyBean.xml
+
-
repo sync
+
-
</pre>
+
To obtain '''Kernel & Driver Sources''' follow:
To obtain '''Kernel & Driver Sources''' follow:
-
<pre>
+
  cd ${YOUR_PATH}
-
cd ${YOUR_PATH}
+
  git clone git://git.omapzoom.org/kernel/omap.git kernel/android-3.4
-
git clone git://git.omapzoom.org/kernel/omap.git kernel/android-3.4
+
  cd kernel/android-3.4
-
cd kernel/android-3.4
+
  git checkout origin/p-android-omap-3.4
-
git checkout origin/p-android-omap-3.4
+
-
</pre>
+
-
To obtain '''OMAPBOOT Sources''' follow:
+
xloader and bootloader are located in device/ti/panda as precompiled binaries
-
<pre>
+
-
cd ${YOUR_PATH}
+
-
git clone git://git.omapzoom.org/repo/omapboot.git omapboot
+
-
cd omapboot
+
-
git checkout origin/p-master-dev
+
-
</pre>
+
= Patching for Pandaboard Support =
= Patching for Pandaboard Support =
== Patching KERNEL ==
== Patching KERNEL ==
-
<pre>
+
  cd ${YOUR_PATH}/kernel/android-3.4
-
cd ${YOUR_PATH}/kernel/android-3.4
+
  git fetch http://review.omapzoom.org/kernel/omap refs/changes/24/32424/1 && git cherry-pick FETCH_HEAD
-
git fetch http://review.omapzoom.org/kernel/omap refs/changes/24/32424/1 && git cherry-pick FETCH_HEAD
+
 
-
</pre>
+
 
 +
== Patching AFS ==
 +
HWComposer (workaround)
 +
  cd $MYDROID/hardware/ti/omap4xxx
 +
  git fetch http://review.omapzoom.org/platform/hardware/ti/omap4xxx refs/changes/49/33049/1 && git cherry-pick FETCH_HEAD
 +
 
= Build Instructions =
= Build Instructions =
== Setting up build environment ==
== Setting up build environment ==
-
<pre>
+
  cd ${YOUR_PATH}
-
cd ${YOUR_PATH}
+
  export PATH=$PATH:${MYDROID}/prebuilts/gcc/linux-x86/arm/arm-eabi-4.6
-
export PATH=$PATH:${MYDROID}/prebuilts/gcc/linux-x86/arm/arm-eabi-4.6
+
  mkdir $MYDROID/logs
-
mkdir $MYDROID/logs
+
  export CROSS_COMPILE=arm-eabi-
-
export CROSS_COMPILE=arm-eabi-
+
-
</pre>
+
== Building Kernel ==
== Building Kernel ==
To create kernel uImage you need to add "mkimage" directory path to your "PATH" environment variable:
To create kernel uImage you need to add "mkimage" directory path to your "PATH" environment variable:
-
<pre>
+
  cd ${YOUR_PATH}/kernel/android-3.4
-
cd ${YOUR_PATH}/kernel/android-3.4
+
  make ARCH=arm distclean
-
make ARCH=arm distclean
+
  make ARCH=arm android_omap_defconfig
-
make ARCH=arm android_omap_defconfig
+
  make ARCH=arm 2>&1 |tee $MYDROID/logs/kernel_make.out
-
make ARCH=arm 2>&1 |tee $MYDROID/logs/kernel_make.out
+
-
</pre>
+
== Building Kernel modules ==
== Building Kernel modules ==
-
<pre>
+
  cd ${YOUR_PATH}/kernel/android-3.4
-
cd ${YOUR_PATH}/kernel/android-3.4
+
  make ARCH=arm modules 2>&1 |tee $MYDROID/logs/kernel_modules.out
-
make ARCH=arm modules 2>&1 |tee $MYDROID/logs/kernel_modules.out
+
-
</pre>
+
== Building WLAN driver ==
== Building WLAN driver ==
-
<pre>
+
  cd $MYDROID/hardware/ti/wlan/mac80211/compat_wl12xx
-
cd $MYDROID/hardware/ti/wlan/mac80211/compat_wl12xx
+
  export KERNEL_DIR=${YOUR_PATH}/kernel/android-3.4
-
export KERNEL_DIR=${YOUR_PATH}/kernel/android-3.4
+
  export KLIB=${KERNEL_DIR}
-
export KLIB=${KERNEL_DIR}
+
  export KLIB_BUILD=${KERNEL_DIR}
-
export KLIB_BUILD=${KERNEL_DIR}
+
  make ARCH=arm
-
make ARCH=arm
+
-
</pre>
+
The above step will produce the following kernel WLAN modules: ''compat.ko'', ''cfg80211.ko'', ''mac80211.ko'', ''wl12xx.ko'' and ''wl12xx_sdio.ko''. These modules are pushed into the ''/system/lib/modules'' directory on the system image.
The above step will produce the following kernel WLAN modules: ''compat.ko'', ''cfg80211.ko'', ''mac80211.ko'', ''wl12xx.ko'' and ''wl12xx_sdio.ko''. These modules are pushed into the ''/system/lib/modules'' directory on the system image.
Line 159: Line 136:
cd eurasia_km/eurasiacon/build/linux2/omap4430_android
cd eurasia_km/eurasiacon/build/linux2/omap4430_android
export KERNELDIR=${YOUR_PATH}/kernel/android-3.4
export KERNELDIR=${YOUR_PATH}/kernel/android-3.4
-
make ARCH=arm CROSS_COMPILE=arm-none-linux-gnueabi- TARGET_PRODUCT="blaze_tablet" BUILD=release TARGET_SGX=540 PLATFORM_VERSION=4.0
+
make ARCH=arm CROSS_COMPILE=arm-eabi- TARGET_PRODUCT="blaze_tablet" BUILD=release TARGET_SGX=540 PLATFORM_VERSION=4.0
</pre>
</pre>

Revision as of 09:31, 2 July 2013

This is not official release notes, just community work. So there is not warranty of any kind.
Texas Instruments is not responsible for supporting these notes, it is up to the community.
Feel free to use this instructions under your own risk being aware that if you face any issue you have to fix it by yourself

Contents

Warning!

Document development is still in progress. Please don't use it!

Introduction

This software has been tested in the following software and hardware environment:

OS Kernel: Linux® 3.4
Android: Android JellyBean 4.2.2
Parent TI release Android JB 4AJ.2.5
Toolchain: Andriod linux-x86 toolchain arm-eabi-4.6
Reference hardware platforms: TI OMAP4 4460 Pandaboard ES
Build Host OS: Ubuntu 12.04 LTS x86_64

Current status

Tools & Dependency packages

Pre-requisite packages for building the Android Filesystem (Note: This is with reference to Ubuntu 12.04 64-bit). Ubuntu 64-bit is required for the cross-compilation of Android JellyBean Filesystem.


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
 sudo apt-get install lib32readline6-dev libstdc++6 lib32z1 lib32z1-dev ia32-libs g++-multilib libx11-dev lib32ncurses5-dev

Add the partner repositories and install the Oracle/Sun JDK:

Please find proper guide somewhere in Google

Install 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

Tool Chain for building Kernel and Drivers

The Kernel and Driver sources are built using Andriod linux-x86 toolchain arm-eabi-4.6 (This particular version is needed for the AFS to work properly).

It is already inside Android source tree.


Setting up environment

From your work directory:

 cd <your work directory>
 mkdir -p 4AJ.2.5-panda; cd 4AJ.2.5-panda
 export YOUR_PATH=`pwd`
 mkdir -p mydroid
 cd mydroid
 export MYDROID=`pwd`

Downloading Release Software

To obtain Android Filesystem Sources follow:

 cd ${MYDROID}
 repo init -u git://git.omapzoom.org/platform/omapmanifest.git -b 27.x -m RLS4AJ.2.5_JellyBean.xml
 repo sync

To obtain Kernel & Driver Sources follow:

 cd ${YOUR_PATH}
 git clone git://git.omapzoom.org/kernel/omap.git kernel/android-3.4
 cd kernel/android-3.4
 git checkout origin/p-android-omap-3.4

xloader and bootloader are located in device/ti/panda as precompiled binaries

Patching for Pandaboard Support

Patching KERNEL

 cd ${YOUR_PATH}/kernel/android-3.4
 git fetch http://review.omapzoom.org/kernel/omap refs/changes/24/32424/1 && git cherry-pick FETCH_HEAD


Patching AFS

HWComposer (workaround)

 cd $MYDROID/hardware/ti/omap4xxx
 git fetch http://review.omapzoom.org/platform/hardware/ti/omap4xxx refs/changes/49/33049/1 && git cherry-pick FETCH_HEAD


Build Instructions

Setting up build environment

 cd ${YOUR_PATH}
 export PATH=$PATH:${MYDROID}/prebuilts/gcc/linux-x86/arm/arm-eabi-4.6
 mkdir $MYDROID/logs
 export CROSS_COMPILE=arm-eabi-

Building Kernel

To create kernel uImage you need to add "mkimage" directory path to your "PATH" environment variable:

 cd ${YOUR_PATH}/kernel/android-3.4
 make ARCH=arm distclean
 make ARCH=arm android_omap_defconfig
 make ARCH=arm 2>&1 |tee $MYDROID/logs/kernel_make.out

Building Kernel modules

 cd ${YOUR_PATH}/kernel/android-3.4
 make ARCH=arm modules 2>&1 |tee $MYDROID/logs/kernel_modules.out

Building WLAN driver

 cd $MYDROID/hardware/ti/wlan/mac80211/compat_wl12xx
 export KERNEL_DIR=${YOUR_PATH}/kernel/android-3.4
 export KLIB=${KERNEL_DIR}
 export KLIB_BUILD=${KERNEL_DIR}
 make ARCH=arm

The above step will produce the following kernel WLAN modules: compat.ko, cfg80211.ko, mac80211.ko, wl12xx.ko and wl12xx_sdio.ko. These modules are pushed into the /system/lib/modules directory on the system image.

Building Android Filesystem (AFS)

In the make step below use the number of cores you have available; i.e. -j4 (for 4 cores) or -j12 (for 12 cores)

cd $MYDROID
source build/envsetup.sh
lunch full_panda-userdebug
make -j4 2>&1 |tee $MYDROID/logs/android_make.out

Building SGX driver

Extract the source code from the tarball if you haven't yet

cd $MYDROID/device/ti/proprietary-open/omap4/sgx_src
tar xzf eurasia_km.tgz
cd eurasia_km/eurasiacon/build/linux2/omap4430_android
export KERNELDIR=${YOUR_PATH}/kernel/android-3.4
make ARCH=arm CROSS_COMPILE=arm-eabi- TARGET_PRODUCT="blaze_tablet" BUILD=release TARGET_SGX=540 PLATFORM_VERSION=4.0

The above step will produce the following kernel SGX modules: pvrsrvkm_sgx540_120.ko and omaplfb_sgx540_120.ko. These modules are pushed into the /system/lib/modules directory on the system image.

Note that you need to add DISPLAY_CONTROLLER_COMPONENT := dc_omapfb3_linux in eurasia_km/eurasiacon/build/linux2/omap4430_android/Makefile to generate omaplfb_sgx540_120.ko

Preparing Android binaries

The following binaries maybe are not required by the Panda board.

 export BOARD_TYPE="panda"
 cd $MYDROID/out/target/product/$BOARD_TYPE
 mkdir -p system/lib/modules
 cp $MYDROID/hardware/ti/wlan/mac80211/compat_wl12xx/compat/compat.ko system/lib/modules/
 cp $MYDROID/hardware/ti/wlan/mac80211/compat_wl12xx/net/wireless/cfg80211.ko system/lib/modules/
 cp $MYDROID/hardware/ti/wlan/mac80211/compat_wl12xx/net/mac80211/mac80211.ko system/lib/modules/
 cp $MYDROID/hardware/ti/wlan/mac80211/compat_wl12xx/drivers/net/wireless/wl12xx/wl12xx.ko system/lib/modules/
 cp $MYDROID/hardware/ti/wlan/mac80211/compat_wl12xx/drivers/net/wireless/wl12xx/wl12xx_sdio.ko system/lib/modules/
 cp $MYDROID/out/target/product/$BOARD_TYPE/target/kbuild/omaplfb_sgx540_120.ko system/lib/modules/
 cp $MYDROID/out/target/product/$BOARD_TYPE/target/kbuild/pvrsrvkm_sgx540_120.ko system/lib/modules/

Flashing the OMAP4 Hardware

Flashing board (with SD card inserted)

You should stay at $MYDROID directory when doing any of following operation.

If this is first time booting up or your SD card is blank, then you need to do initial steps. With no SD card inserted, plug USB first, then the power cord, and load fastboot over USB:

 device/ti/panda/usbboot device/ti/panda/bootloader.bin

Once in fastboot, insert and initialize an SD card (4GB or greater):

 fastboot oem format
 fastboot flash xloader device/ti/panda/xloader.bin
 fastboot flash bootloader device/ti/panda/bootloader.bin

Then, when you finish building Android File System, you could flash it:

 fastboot erase cache
 fastboot flash userdata
 fastboot flashall

Not first time flashing on SD

After the SD files are available you then can use the fastboot to upload binaries to your Panda or Panda ES.

Connect the Panda or Panda ES mini USB port to your Linux machine and go to where the SD files are. Previous partitions created will be deleted and SD will be flashed with new bootloader and xloader. You need to boot the board and start fastboot server on the target (Pandaboard) by keeping the USER button press.


Resources

4AJ.2.5 Release

To get a stable release as base for the porting the 4AJ.2.5 Texas Instrument release for Blaze and Blaze Tablet was considered 4AJ.2.5 OMAP4 Jelly Bean Release Notes

WLAN Calibration

For optimal Wi-Fi performance calibration of Wi-Fi hardware is mandatory, follow the procedure from http://omappedia.org/wiki/Android_Mac80211#WLAN_Calibration_Instruction

Personal tools
Namespaces
Variants
Actions
Navigation
Toolbox