6AK.1.0 Release Notes

= Introduction =

These Release Notes provide instructions for both,
 * Testing the release using a pre-built binary image which can be loaded onto eMMC on EVM board
 * Rebuilding the Android binary image from the Android sources

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

Release Features
Following features are enabled
 * Boot: ES 1.1 Validation, SELinux permissive mode
 * Connectivity: USB 2.0 Host and Gadget, Dual Ethernet
 * Display: SGX accelerated UI with touchscreen
 * Audio: Basic audio (Audio out on CPU board jack, labeled as “HEADPHONE” (P13))
 * Secure boot: Validated in this release on HS device and mshiled DK lite (available in CDDS Only). Customers needing access to Mshield DK lite should contact their TI representatives to get access

=Using the Prebuilt Release Image= The prebuilt release image can be obtained from here. After you download the binaries, follow the flashing instruction from "Flashing eMMC images" section.

=Rebuilding Android from Sources=

Build PC setup
You would need a 64bit machine for building Android file system. You must have sudo permissions on the PC for installing packages


 * Install Pre-requisite packages for building the Android File System

The information below on initializing build environment for Android, is taken from official Android page here

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

Ubuntu 10.04 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 sudo apt-get install uboot-mkimage libxml2-utils

Ubuntu 12.04 sudo apt-get install git-core flex bison gperf libesd0-dev zip libwxgtk2.8-dev zlib1g-dev build-essential tofrodos sudo apt-get install lib32readline6-dev libstdc++6 lib32z1 lib32z1-dev ia32-libs g++-multilib libx11-dev libncurses5-dev sudo apt-get install uboot-mkimage libxml2-utils


 * Install Java SE 6 JDK 

sudo add-apt-repository ppa:webupd8team/java sudo apt-get update sudo apt-get install oracle-java6-installer


 * Proxy/Firewall

If you are behind proxy/firewall, workaround it using the instructions in

For installing repo make sure you also export https_proxy environment variable. export https_proxy= eg: http://local.proxyserver.com:80


 * Install latest repo tool

mkdir ~/bin -p sudo apt-get install curl curl http://commondatastorage.googleapis.com/git-repo-downloads/repo > ~/bin/repo chmod a+x ~/bin/repo export PATH=~/bin:$PATH

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 the Android linux-x86 toolchain for ARM GNU/Linux version. This tool chain can be obtained when you pull the Android code based on the released manifest that will be given.

Android Filesystem Sources
You can get the Android source for this release by doing: cd mkdir -p 6AK.1.0 cd 6AK.1.0 export YOUR_PATH=$PWD mkdir -p mydroid; cd mydroid export MYDROID=$PWD repo init -u git://git.omapzoom.org/platform/omapmanifest.git -b 6AK.x -m RLS_6AK.1.0.xml repo sync

TI Hardware Accelerated Graphics Binaries
Accelerated graphics binaries are part of Android file system build

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

Usbboot Sources
cd ${YOUR_PATH} git clone git://git.omapzoom.org/repo/omapboot.git cd omapboot git checkout 6ebde14205520687c9a67b95430bc1c86d84cb92

Kernel & Driver Sources
cd ${YOUR_PATH} mkdir kernel git clone git://git.omapzoom.org/kernel/omap.git kernel/android-3.8 cd kernel/android-3.8 git checkout 0ba13d80600dd590c4e9eb765de1467505567585

Setting up build environment
From your work directory (6AK.1.0 folder): export YOUR_PATH=$PWD export MYDROID=${YOUR_PATH}/mydroid export PATH=$PATH:${MYDROID}/prebuilts/gcc/linux-x86/arm/arm-eabi-4.7/bin/ export CROSS_COMPILE=${MYDROID}/prebuilts/gcc/linux-x86/arm/arm-eabi-4.7/bin/arm-eabi-

Building U-boot sources
Instructions for building x-loader and bootloader

cd ${YOUR_PATH}/u-boot export CROSS_COMPILE=${MYDROID}/prebuilts/gcc/linux-x86/arm/arm-eabi-4.7/bin/arm-eabi- export ARCH=arm make distclean make dra7xx_evm_android

Building usbboot tool
Instructions for building usbboot host PC binary

cd ${YOUR_PATH}/omapboot export CROSS_COMPILE=${MYDROID}/prebuilts/gcc/linux-x86/arm/arm-eabi-4.7/bin/arm-eabi- cd host/tools make

Building Kernel
Instructions for building kernel and device tree

cd ${YOUR_PATH}/kernel/android-3.8 export CROSS_COMPILE=${MYDROID}/prebuilts/gcc/linux-x86/arm/arm-eabi-4.7/bin/arm-eabi- make ARCH=arm mrproper make ARCH=arm android_omap_defconfig make ARCH=arm uImage dtbs

Note: If you are making changes to kernel defconfig and need to rebuild SGX kernel module, refer here

Building Android Filesystem (AFS)
Instructions for building Android file system

cd $MYDROID . build/envsetup.sh lunch full_jacinto6evm-userdebug make -j2 clean make -j2

Rebuild Android Filesystem (AFS) to include kernel and WLAN driver
Copy Kernel Image (This step is for making your kernel to be part of boot.img) cd $MYDROID cp -v ${YOUR_PATH}/kernel/android-3.8/arch/arm/boot/zImage device/ti/jacinto6evm/kernel

Rebuild AFS to generate update images cd $MYDROID . build/envsetup.sh lunch full_jacinto6evm-userdebug rm out/target/product/jacinto6evm/*.img rm out/target/product/jacinto6evm/obj/PACKAGING/systemimage_intermediates/system.img make -j2

Preparing eMMC binaries/images
cd $YOUR_PATH mkdir emmc_files cp -v ${MYDROID}/out/target/product/jacinto6evm/*img emmc_files cp -v ${MYDROID}/device/ti/jacinto6evm/fastboot.sh emmc_files cp -v ${MYDROID}/out/host/linux-x86/bin/{simg2img,make_ext4fs,mkbootimg,fastboot,adb} emmc_files cp -v ${YOUR_PATH}/kernel/android-3.8/arch/arm/boot/zImage emmc_files/kernel cp -v ${YOUR_PATH}/kernel/android-3.8/arch/arm/boot/dts/dra7-evm.dtb emmc_files cp -v ${YOUR_PATH}/u-boot/MLO emmc_files/GP_MLO cp -v ${YOUR_PATH}/u-boot/MLO emmc_files/ cp -v ${YOUR_PATH}/u-boot/u-boot.img emmc_files cp -v ${YOUR_PATH}/u-boot/spl/u-boot-spl.bin emmc_files cp -v ${YOUR_PATH}/omapboot/host/tools/usbboot-stand-alone emmc_files

=Flashing eMMC images=

The default setup is to flash MLO and u-boot.img to QSPI and remaining binaries (kernel, dtb file and AFS) to emmc.
 * For other options refer to "Boot Options" Application note.
 * For more info on partitions and flashing refer to "QSPI NOR/eMMC partitions" Application note.

DIP Switch settings
Required DIP switch settings: This configuration corresponds to the following device boot order: SD &rArr; QSPI_1 SYSBOOT [0-15] OFF ON ON OFF OFF OFF OFF OFF   ON OFF OFF OFF OFF OFF OFF OFF ON

USERCONFIG [SW5] OFF OFF ON OFF ON ON ON OFF OFF OFF

Flashing procedure
Hit any key to stop autoboot: 3 DRA752 EVM # fastboot cd $YOUR_PATH/emmc_files sudo ./fastboot.sh
 * Copy u-boot.img and MLO files to an SD card (boot partition) and then boot the target board from this external SD card. If you don't want to use SD card, refer to peripheral booting option
 * Connect a USB cable from the Linux PC to the USB3.0 port on board
 * Power on the board and stop the board at u-boot prompt by interrupting with key press
 * Put the board in fastboot mode by typing in fastboot command
 * On the Linux PC which has the emmc images run the fastboot.sh script to flash the binaries
 * NOTE: After the flashing is done, remove the external SD card and reboot the board.

=Application Notes=

Re-Building SGX kernel module
Some changes made to kernel defconfig can causes prebuilt SGX kernel module to not load

Follow the instructions below for rebuilding SGX module

cd ${MYDROID}/device/ti/proprietary-open/jacinto6/sgx_src/eurasia_km/eurasiacon/build/linux2/omap_android export KERNELDIR=${YOUR_PATH}/kernel/android-3.8 export CROSS_COMPILE=${MYDROID}/prebuilts/gcc/linux-x86/arm/arm-eabi-4.7/bin/arm-eabi- export KERNEL_CROSS_COMPILE=${MYDROID}/prebuilts/gcc/linux-x86/arm/arm-eabi-4.7/bin/arm-eabi- export ARCH=arm make TARGET_PRODUCT="jacinto6evm" PLATFORM_VERSION=4.4 BUILD=release

SGX module will be present at ${MYDROID}/device/ti/proprietary-open/jacinto6/sgx_src/eurasia_km/eurasiacon/binary2_omap_android_release/target/pvrsrvkm.ko

Push this file to /system/lib/modules/ location on the target and reboot the board.

Rev-G 10" Display
6AJ.1.3_Application_Notes

USB DRD
6AJ_USB_DRD