6AK.1.2 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.

NOTE: Same set of software binaries work for both J6 and J6 Eco EVMs, only the device tree file (.dtb) is different
 * dra7-evm.dtb for J6 EVM
 * dra72-evm.dtb for J6 Eco EVM

Release Features
NOTE: This is the last release on KitKat MR2 and Linux kernel 3.8.x, future releases will be on Android L and Linux kernel 3.14.x

Following features are enabled/tested for J6 and J6 Eco in this release
 * Boot: QSPI/NOR + emmc boot, USB peripheral boot, SE Linux permissive mode, Single stage bootloader and SD card boot
 * Connectivity: USB2.0 Host and Gadget, USB3.0 Host mode, Dual Ethernet, DCAN
 * Power: AVS0, DVFS (MPU, GPU) for Thermal, AdaptiveBodyBias
 * Thermal: Governors implemented for MPU and GPU sensors (On Die), Monitoring implemented for all on chip sensors
 * Display: SGX (DDK1.12) accelerated UI with touchscreen, Dual display support (On board LCD + HDMI)
 * 2D: Bltsville API (driver validation only)
 * Audio: Stereo audio out on one McASP, MP3 decode, AAC LC decode, Multichannel audio out on HDMI, Multichannel to stereo down mix to McASP
 * Video: H.264 Encoder (file to File mode), IPU accelerated playback - 1080p60fps
 * Camera: VIP Single instance, Analog camera using JAMR3
 * WiLink8Q: GNSS support added, WLAN - Wi-Fi/Wi-Fi Direct/SoftAP (R8.4 Version), BT - A2DP Sink, AVRCP, HFP (using Cybercomm stack), PG1.11 support
 * Radio: HD 1.5 Radio Library 3.02C support (DSP rendering)
 * Secure boot: Validated in this release on HS device and M-shiled DK lite (available in CDDS Only). Customers needing access to Mshield DK lite should contact their TI representatives to get access

Release Limitations
In this release:
 * USB: ADB connection freezes sometimes, USB3.0 gadget mode not functional
 * HDMI: With HDMI connected, overall boot time increases by 10 seconds
 * Video: Video streaming not validated. Very fast seek operations (forward, backwards) results in video stopping
 * USB: Removing USB mass storage device immediately after connecting it (before Android mounts it) make subsequent mounts fail. Unmounting from commandline resumes normal behavior

=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.2 cd 6AK.1.2 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.2.xml repo sync

TI Hardware Accelerated Graphics and MultiMedia Binaries
Multimedia (DCE) and 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 53fa2ada34fb4b3be716a05084762b776282e04e

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

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 7e6408234000c6526dae3f55c851adbcaae2d9ef

Setting up build environment
From your work directory (6AK.1.2 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

Building WiLink WLAN Driver
Instructions for building TI WiLink (Wl18xx) WLAN driver

export ARCH=arm export CROSS_COMPILE=${MYDROID}/prebuilts/gcc/linux-x86/arm/arm-eabi-4.7/bin/arm-eabi- export KERNEL_DIR=${YOUR_PATH}/kernel/android-3.8 export KLIB=${KERNEL_DIR} export KLIB_BUILD=${KERNEL_DIR} cd ${MYDROID}/hardware/ti/wlan/mac80211/compat_wl18xx/ make defconfig-wl18xx make

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

Copy WLAN Driver (This step is for making wlan driver modules to be part of system.img) cd $OUT/system/lib/modules/ cp -fp ${MYDROID}/hardware/ti/wlan/mac80211/compat_wl18xx/compat/compat.ko. cp -fp ${MYDROID}/hardware/ti/wlan/mac80211/compat_wl18xx/net/wireless/cfg80211.ko. cp -fp ${MYDROID}/hardware/ti/wlan/mac80211/compat_wl18xx/net/mac80211/mac80211.ko. cp -fp ${MYDROID}/hardware/ti/wlan/mac80211/compat_wl18xx/drivers/net/wireless/ti/wl18xx/wl18xx.ko. cp -fp ${MYDROID}/hardware/ti/wlan/mac80211/compat_wl18xx/drivers/net/wireless/ti/wlcore/wlcore.ko. cp -fp ${MYDROID}/hardware/ti/wlan/mac80211/compat_wl18xx/drivers/net/wireless/ti/wlcore/wlcore_sdio.ko.

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.
 * Instructions are same for J6 and J6 Eco EVM
 * For other options refer to "Boot Options" Application note.
 * For more info on partitions and flashing refer to "QSPI NOR/eMMC partitions" Application note.
 * If you are using pre built binaries and have a J6 Rev G board (10" panel) rename or copy over dra7-evm-revg.dtb file to dra7-evm.dtb before flashing

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/Additional Info= 6AK.1.2_Application_Notes

Refer to Application notes page for more info on features of this release, additional boot options, etc...