PandaBoard L27.10.2-P1 Release Notes

From OMAPpedia

Revision as of 00:46, 5 April 2011 by Mikepuck (Talk | contribs)
Jump to: navigation, search



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

Please note Toolchain is upgraded since L27.7.0 release.
OMAP4 SGX hardware Graphics Accelerator libraries are needed to boot AFS.

OS Kernel: Linux® 2.6.35
Android: Froyo public project
Toolchain: CodeSourcery compiler version Sourcery G++ Lite 2010q1-202 for ARM GNU/Linux
Reference hardware platform: PandaBoard A1 -- ES2.1
Build Host OS: Ubuntu 10.04
HDMI Display: HP2159m
SD Card: 2GB Kingston Technology

Prebuilt binaries

Quick Environment setup

mkdir pandroid
cd pandroid
export pandroid='pwd'
mkdir pandroid/gfx
mkdir pandroid/wlan

Download binaries: L27.10.2-P1 Froyo Pre-Built Release Package

Package Contains:

Note: Download this to your pandroid directory

Adding GFX support for Prebuilt Environment

Download: Froyo_L27.10.2-P1_Graphics-1.0-Linux-x86-Install

sudo chmod a+x Froyo_L27.10.2-P1_Graphics-1.0-Linux-x86-Install

Note: Install this into your $pandroid/gfx directory

cp -Rfpv pandroid/gfx/data/ $pandroid/myfs/
cp -Rfpv pandroid/gfx/system/ $pandroid/myfs/

Adding BT/WLAN support for Prebuilt Environment

Download: Froyo_L27.10.2-P1_Connectivity_127x-1.0-Linux-x86-Install-1.0

sudo chmod a+x Froyo_L27.10.2-P1_Connectivity_127x-1.0-Linux-x86-Install-1.0

Note: Install this into pandroid/wlan/

cd $YOUR_PATH/L27.10.2-P1/myfs
mkdir $myfs/system/etc/firmware
cp -rfp pandroid/wlan/BTFM_Firmware/* $myfs/system/etc/firmware
cp -rfp pandroid/wlan/WLAN_ini/* $myfs/system/etc/wifi
cp -rfp pandroid/wlan/WLAN_Firmware/firmware.bin $myfs/system/etc/wifi
cp -rfp pandroid/wlan/WLAN_Firmware/firmware_ap.bin $myfs/system/etc/wifi/softap

Proceed to: Booting_Kernel_and_Android_File_System_from_SD_card

Building Pandroid

Tools & Dependency for Building

Pre-requisite packages for build Android Filesystem (Note this is with reference to uBuntu 8.04)

If you are behind firewall, you will have to set-up firewall using the instructions in Support Tools

For higher versions of U-buntu please refer to Host PC COnfiguration

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

sudo apt-get install git-core flex bison gperf libesd0-dev libwxgtk2.6-dev zlib1g-dev build-essential libstdc++5 tofrodos
sudo apt-get install x-dev
sudo apt-get install libx11-dev
sudo apt-get install libncurses5-dev
sudo apt-get install sun-java5-jdk

If you do not have sudo rights to your machine, contact your System Administrator for assistance. Google has issued that “sun-java6-jdk” has become unsupported: “because of incompatibilities with @Override” To uninstall “sun-java6-jdk” please type:

sudo apt-get remove sun-java6-jdk

“Intrepid (8.10) users may need a newer version of libreadline:

sudo apt-get install lib32readline5-dev”

Android Environment Setup

Use the example below to setup your environment. Your environment may vary...

export YOUR_PATH=`pwd`
mkdir -p $YOUR_PATH/L27.10.2-P1/mydroid
mkdir -p $YOUR_PATH/L27.10.2-P1/wlan
mkdir -p $YOUR_PATH/L27.10.2-P1/gfx
mkdir -p $YOUR_PATH/L27.10.2-P1/build_tools
cd $YOUR_PATH/L27.10.2-P1/mydroid
export MYDROID=`pwd`
cd $YOUR_PATH/L27.10.2-P1/build_tools/arm-2010q1

Tool Chain for building Kernel and Drivers

The Kernel and Driver sources are built using Sourcery G++ Lite 2010q1-202 for ARM GNU/Linux version.

Download: arm-2010q1-202 to $Your_PATH/L27.10.2-P1/build_tools/

cd $Your_PATH/L27.10.2-P1/build_tools/
tar jxvf arm-2010q1-202-arm-none-linux-gnueabi-i686-pc-linux-gnu.tar.bz2 .
cd $YOUR_PATH/L27.10.2-P1/build_tools/arm-2010q1/
export PATH=$PATH:$YOUR_PATH/L27.10.2-P1/build_tools/arm-2010q1/bin

Additional packages for building

Download: L27.10.2-P1 Froyo Pre-Built Release Package


Download: Froyo_L27.10.2-P1_Connectivity_127x-1.0-Linux-x86-Install-1.0


Download: Froyo_L27.10.2-P1_Graphics-1.0-Linux-x86-Install


Downloading Release Software

Installing repo

For detail information regarding repo visit: Using Repo and Git

Other reference links on Git can be found in Techincal References page

Download repo to environment

$ cd $YOUR_PATH/L27.10.2-P1/mydroid
$ curl > ./repo
$ chmod a+x repo

Download Android source

cd $YOUR_PATH/L27.10.2-P1/
git clone git://
cd omapmanifest
git reset --hard L27.10.2-P1_Froyo
export MANIFEST=`pwd`
repo init -u $MANIFEST
repo sync

Thanks to rowboat project we can cherry pick the following patches to enable keyboard and mouse support.

After cloning (repo sync) the perform the following;

 cd $MYDROID/frameworks/base
 git remote add rowboat git://
 git fetch rowboat
 git branch -a
 git cherry-pick 24117ce3ae32c40798d2d9bda80675814f76730d
 git cherry-pick ac82681dffdba3ad0b93ed3558365bac1dacbcd1
 git cherry-pick b0f60c6
 git cherry-pick afee303
 git cherry-pick 64d7c77

Kernel & Driver Source

To clone kernel source from scratch do:

cd $YOUR_PATH/L27.10.2-P1/
git clone git:// kernel/android-2.6.35
cd kernel/android-2.6.35
git checkout 41bac156b0f66c0932c4af3dd618775390544eff

If you already have kernel source cloned then just update it (and add a remote if it is the first time):

cd $YOUR_PATH/L27.10.2-P1/kernel/android-2.6.35
git fetch origin
git checkout 41bac156b0f66c0932c4af3dd618775390544eff

U-Boot Source

cd $YOUR_PATH/L27.10.2-P1/
git clone git:// u-boot
cd u-boot
git checkout e59fe26ac2fb5b2fc599cfc76a7618d7fdd7062e

X-loader Source

cd $YOUR_PATH/L27.10.2-P1/
git clone git:// x-loader
cd x-loader
git checkout ce983bb626e0c236bf1e1f748913c50c90ad5228

Build Instructions

Setting up build environment

cd $YOUR_PATH/L27.10.2-P1/
mkdir $MYDROID/logs
export JAVA_HOME=/usr/lib/jvm/java-1.5.0-sun
export CROSS_COMPILE=arm-none-linux-gnueabi-
export PATH=$YOUR_PATH/L27.10.2-P1/u-boot/tools:$PATH

Building u-boot

Before building u-boot adjust the bootdelay and bootargs in omap4430panda.h

Note: Anyone wanting to try Fastboot do not adjust the BOOTDELAY

changing bootdelay
vim $YOUR_PATH/L27.10.2-P1/u-boot/include/configs/omap4430panda.h
- #define CONFIG_BOOTDELAY         0
+ #define CONFIG_BOOTDELAY         5
build u-boot
cd $YOUR_PATH/L27.10.2-P1/u-boot
make distclean
make ARCH=arm omap4430panda_config
make 2>&1 |tee $MYDROID/logs/u-boot_make.out

For information regarding Fastboot visit: Android_eMMC_Booting

Building x-loader

cd $YOUR_PATH/L27.10.2-P1/x-loader
make distclean	
make ARCH=arm omap4430panda_config
make ift 2>&1 |tee $MYDROID/logs/x-loader_make.out

Building Kernel


Download Kernel-Patches to your environment. Apply the following patches to enable PandaBoard on L27.10.2-P1.

cd $YOUR_PATH/L27.10.2-P1/kernel/android-2.6.35
patch -p1 < kernel_ehci_patchset.patch
patch -p1 < 0001-Adding-WLAN-PowerEnable-GPIO-for-Panda.patch
patch -p1 < 0002-Enabling-CONFIG_WIFI_CONTROL_FUNC-for-MACH_OMAP4_PA.patch
Build Kernel

To create kernel uImage you need to add "mkimage" directory path to your "PATH" environment variable. "mkimage" is located in your u-boot/tools/ directory.

cd $YOUR_PATH/L27.10.2-P1/kernel/android-2.6.35
make ARCH=arm distclean #(required for rebuild only)
make ARCH=arm android_4430_defconfig
make ARCH=arm uImage 2>&1 |tee $MYDROID/logs/kernel_make.out
Building Kernel modules
cd $YOUR_PATH/L27.10.2-P1/kernel/android-2.6.35
make ARCH=arm modules 2>&1 |tee $MYDROID/logs/kernel_modules.out

Building WLAN driver


Dowload WLAN Package at: wlan1271 to enable wlan on AFS

$cd $MYDROID/hardware/ti/wlan/
patch -p1 < 0001-WLAN-lib-scan-merge-fix-for-hidden-ssid.patch
patch -p1 < 0002-WLAN-wl1283-cleanup-on-comments.patch
patch -p1 < 0003-WLAN-wl1283-Removing-makefile-dependency-on-HOST_PLA.patch
patch -p1 < 0004-WLAN-wl1283_softAP-Removing-makefile-dependency-on-H.patch
patch -p1 < 0005-WLAN-wl1283-wl1283_softAP-Build-system-cleanup.patch
Build 127x station driver
$cd $MYDROID/hardware/ti/wlan/wl1283
$export KERNEL_DIR=$YOUR_PATH/kernel/android-2.6.35
$cd platforms/os/linux
$make ARCH=arm TNETW=1273
Build 127x softAp driver
$cd MYDROID/hardware/ti/wlan/wl1283_softAP/platforms/os/linux
$make ARCH=arm TNETW=1273

Building Android Filesystem (AFS) with TI Codecs enabled

on step below use the number of cores you have available; i.e. -j4 or -j12:

cp -Rfp device/ti/blaze/
make clean (required for rebuild only)
make -j4 2>&1 |tee $MYDROID/logs/android_make.out

Preparing Android binaries

This step will prepare a directory, called myfs, containing all necessary Android files that you must include within your SD card.

Create Android Rootfs Directory

cd $YOUR_PATH/L27.10.2-P1/
mkdir myfs
cd myfs
cp -Rfp $YOUR_PATH/L27.10.2-P1/kernel/android-2.6.35/drivers/staging/ti-st/*.ko $MYDROID/out/target/product/blaze/root
cp -Rfp $MYDROID/hardware/ti/wlan/wl1283/platforms/os/linux/tiwlan_drv.ko $MYDROID/out/target/product/blaze/system/etc/wifi
cp -Rfp $MYDROID/out/target/product/blaze/root/* .
cp -Rfp $MYDROID/out/target/product/blaze/system .
cp -Rfp $MYDROID/out/target/product/blaze/data .
cp -Rfp $MYDROID/device/ti/blaze/init.omap4sdp.rc init.rc

Configure init.rc for PandaBoard

 cd myfs
 vim init.rc
 - Enable secondary display on Blaze
  - write /sys/devices/platform/omapdss/display1/enabled 1
  - write /sys/devices/platform/omapdss/overlay1/enabled 0
  - write /sys/devices/platform/omapdss/overlay1/manager "2lcd"
  - write /sys/devices/platform/omapdss/overlay1/enabled 1
 + #Enable secondary display on Blaze
  + #write /sys/devices/platform/omapdss/display1/enabled 1
  + #write /sys/devices/platform/omapdss/overlay1/enabled 0
  + #write /sys/devices/platform/omapdss/overlay1/manager "2lcd"
  + #write /sys/devices/platform/omapdss/overlay1/enabled 1

# switch CPUfreq from performance to hotplug
   - write /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor hotplug
   + write /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor performance
    # Enabling write by applications such as Web Browser for Performance Boost
    chmod 0666 /sys/devices/system/cpu/cpu1/online
    chmod 0666 /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor
    + write /sys/devices/system/cpu/cpu1/online 1

   - # Enable Smart Reflex in debugfs
   -  write /debug/pm_debug/smartreflex/sr_core/autocomp 1
   -  write /debug/pm_debug/smartreflex/sr_iva/autocomp 1
   -  write /debug/pm_debug/smartreflex/sr_mpu/autocomp 1

   + # Enable Smart Reflex in debugfs:
   +  write /debug/pm_debug/smartreflex/sr_core/autocomp 0
   +  write /debug/pm_debug/smartreflex/sr_iva/autocomp 0
   +  write /debug/pm_debug/smartreflex/sr_mpu/autocomp 0

Or just copy the file from: Additional_packages_for_building

Configure vold.fstab for PandaBoard

 cd myfs
 vim system/etc/vold.fstab

 - dev_mount sdcard /mnt/sdcard auto /devices/platform/mmci-omap-hs.0/mmc_host/mmc1
 + dev_mount sdcard /mnt/sdcard auto /devices/platform/mmci-omap-hs.0/mmc_host/mmc0

Replace Launcher apk

A new Launcher2.apk is required in order to boot Android on larger displays. Simply copy the apk to system/app

cd $YOUR_PATH/L27.10.2-P1/
cd myfs/system/app
cp -Rfp ../../Launcher2.apk .

Adding GFX support

Download: Froyo_L27.10.2-P1_Graphics-1.0-Linux-x86-Install to $YOUR_PATH

sudo chmod a+x Froyo_L27.10.2-P1_Graphics-1.0-Linux-x86-Install

Note:Install this into $YOUR_PATH/L27.10.2-P1/gfx

cp -Rfpv $YOUR_PATH/L27.10.2-P1/gfx/* $YOUR_PATH/L27.10.2-P1/myfs

Adding BT/WLAN support

Download: Froyo_L27.10.2-P1_Connectivity_127x-1.0-Linux-x86-Install-1.0 to $YOUR_PATH

sudo chmod a+x Froyo_L27.10.2-P1_Connectivity_127x-1.0-Linux-x86-Install-1.0

Note:Install this into $YOUR_PATH/L27.10.2-P1/wlan

cd $YOUR_PATH/L27.10.2-P1/myfs
mkdir $myfs/system/etc/firmware
cp -rfp $MYDROID/hardware/ti/wlan/wl1283/platforms/os/linux/*.ko $myfs/system/etc/wifi/
cp -rfp $mydroid/hardware/ti/wlan/wl1283_softAP/platforms/os/linux/*.ko $myfs/system/etc/wifi/softap/
cp -rfp $YOUR_PATH/wlan/BT_Firmware/* $myfs/system/etc/firmware/
cp -rfp $YOUR_PATH/wlan/WLAN_ini/* $myfs/system/etc/wifi
cp -rfp $YOUR_PATH/wlan/WLAN_Firmware/firmware.bin $myfs/system/etc/wifi
cp -rfp $YOUR_PATH/wlan/WLAN_Firmware/firmware_ap.bin $myfs/system/etc/wifi/softap

Booting Kernel and Android File System from SD card

Formatting SD Card

You will need to format your SD for the Linux file system. Connect your SD memory card reader with memory card inserted to a USB port on your Linux Ubuntu PC. You must login as Super User.

$ su
$ fdisk -l

Match the device to the size of your memory card. Look for the /dev/*** device which matches the memory card in the card reader. Use the matching device’s letter prefix in the next command. For example if the device for memory card reader card example was: /dev/sdb1, then use only /dev/sdb in the fdisk command.

Take note of the size in bytes of your SD Card. You will need this to calculate the number of cylinders in a future step.

$ fdisk /dev/sdb  (replace sdb with the letter prefix for your device)

(Delete all partitions on the card if they exist)
Command (m for help): d
Partition number (1-4): 1
Command (m for help): d
Selected partition 2

Command (m for help): x

(Change the number of heads, sectors and cylinders on the device)
Expert command (m for help): h
Number of heads (1-256, default 255): 255
Expert command (m for help): s
Number of sectors (1-63, default 63): 63
Expert command (m for help): c
Number of cylinders (1-1048576, default 248): <You must calculate the number of cylinders for your SD card.  To do this, use the following formula:  

new_cylinders = (Size in bytes from your fdisk –l command)/8225280
Drop any fractional values and enter the whole number in this command.
Use this number all the steps that refer to the number of cylinders>

(Now return to the main menu)
Expert command (m for help): r

(Create the first partition)
Command (m for help): n
Command action
   e   extended
   p   primary partition (1-4)
Partition number (1-4): 1
First cylinder (1-248, default 1): 1
Last cylinder or +size or +sizeM or +sizeK (1-248, default 248): +64M

If you plan to use this SD card partition for storing media your can use +1024M assuming a 2+ GB SD card.

(Create the second partition)
Command (m for help): n
Command action
   e   extended
   p   primary partition (1-4)
Partition number (1-4): 2
First cylinder (10-248, default 10): 10
Last cylinder or +size or +sizeM or +sizeK (124-248, default 248): <use the cylinder value you calculated earlier>  

(Change the first partition to at FAT32 partition)
Command (m for help): t
Partition number (1-4): 1
Hex code (type L to list codes): c
Changed system type of partition 1 to c (W95 FAT32 (LBA))

(Toggle the bootable flag for partition 1)
Command (m for help): a
Partition number (1-4): 1

(Print the partition table to confirm your settings)
Command (m for help): p

(Sample Output – your output may differ depending on your SD card’s size and brand)
Disk /dev/sdb: 2041 MB, 2041577472 bytes
255 heads, 63 sectors/track, 248 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x00000000

   Device Boot      Start         End      Blocks   Id  System
/dev/sdb1   *           1         9        72261     c  W95 FAT32 (LBA)
/dev/sdb2              10       248     1919767+    83  Linux

(Write your changes to the SD Card)	
Command (m for help): w

(You will see the following output)
The partition table has been altered!

Calling ioctl() to re-read partition table.

WARNING: If you have created or modified any DOS 6.x partitions, please see the fdisk manual page for additional information.
Syncing disks.

Format your partitions typing the following commands (logged as root@ubuntu-box):
$ mkfs.vfat -F 32 -n boot /dev/<your device’s first partition’s name – see the print output from the previous step> 
$ mkfs.ext3 -L android_fs /dev/<your device’s second partition’s name – see the print output from the previous step> 

There is a shell script that all calculations above automatically; to get it do:
$ wget

Add execution permission:
$ chmod +x

And you are ready to use it by just typing:
$sudo ./ <your_device (e.g. /dev/sdb)>

Copying Binaries onto SD Card

Now type the following to mount your SD Card on your Linux box (logged as root@ubuntu-box):

$ mkdir /tmp/mmc1
$ mkdir /tmp/mmc2
$ mount /dev/<your device’s first partition’s name> /tmp/mmc1
$ mount /dev/<your device’s second partition’s name> /tmp/mmc2

Load the appropriate software to the SD Card (logged as root@ubuntu-box):

$ cp $YOUR_PATH/x-loader/MLO /tmp/mmc1   (if you are using EMU or HS device, plese copy signed MLO instead)
$ cp $YOUR_PATH/u-boot/u-boot.bin /tmp/mmc1
$ cp $YOUR_PATH/kernel/android-2.6.35/arch/arm/boot/uImage /tmp/mmc1
$ cp -Rfp $YOUR_PATH/27.10.1/myfs/* /tmp/mmc2
$ chmod –R 777 /tmp/mmc2/*
$ umount /tmp/mmc1
$ umount /tmp/mmc2


Insert your SD card (with u-boot, x-loader and uImage loaded in FAT partition and ) into PandaBoard SD/MMC card slot, then plug the PandaBoard mini USB port to your PC and open a serial terminal (baudrate:115200, no parity, 8 bits). Power your board up and in your terminal window you should be able to see the ‘New’ u-boot prompt:


In your serial terminal define the bootargs and boot as mentioned in the bootarg section.</br>

Right after this your PandaBoard should start booting using the kernel image and loading the Android filesystem from your SD


Note that parameter mem=456M@0x80000000 mem=512M@0xA0000000 should be used in the bootargs

L27.10.2-P1 Bootargs for SD card boot

setenv bootargs 'console=ttyO2,115200n8 androidboot.console=ttyO2 mem=456M@0x80000000 mem=512M@0xA0000000 root=/dev/mmcblk0p2 rw rootdelay=2 init=/init vram="32M" omapfb.vram=0:16M,1:16M consoleblank=0' 
setenv bootcmd 'mmcinit 0;fatload mmc 0 0x80000000 uImage; bootm 0x80000000'

Known Issues

1. Screen blacks out on start up -- set your Menu/Display/Screen timeout to 30min

2. I can't hear any audio -- you and me both --> we are looking into this for GB release

3. Start up takes forever -- just the initial boot-up

4. I can't play videos -- me either -- another thing we are targeting for GB release -- we are still working on community release of codecs needed for AV playback


Personal tools