BlazeTablet L27.10.2-P1 Release Notes

From OMAPpedia

(Difference between revisions)
Jump to: navigation, search
(Resources)
 
(39 intermediate revisions not shown)
Line 2: Line 2:
This software release has been developed and verified in the following software and hardware environment.
This software release has been developed and verified in the following software and hardware environment.
-
<span style="color:red"> Please note Toolchain is upgraded since L27.7.0 release</span>
+
<span style="color:red">
 +
Please note Toolchain is upgraded since L27.7.0 release.<br>
 +
OMAP4 SGX hardware Graphics Accelerator libraries are needed to boot AFS.<br>
 +
Known issue: Launcher application doesn't handle touchscreen events properly.
 +
</span>
'''OS Kernel:''' Linux® 2.6.35 <br>
'''OS Kernel:''' Linux® 2.6.35 <br>
Line 9: Line 13:
'''Reference hardware platform:''' TI OMAP4 ES2.1 EMU BlazeTablet <br>
'''Reference hardware platform:''' TI OMAP4 ES2.1 EMU BlazeTablet <br>
'''Build Host OS:''' Ubuntu
'''Build Host OS:''' Ubuntu
 +
 +
= Prebuilt binaries =
 +
You can download prebuilt binaries here:
 +
 +
{|width="100%" cellspacing="2" border="1"
 +
|align="center" width="15%" colspan="3"|'''Bootloader'''
 +
|align="center" width="15%"|'''Kernel'''
 +
|align="center" width="15%"|'''Filesystem'''
 +
|-
 +
|align="center"|[https://gforge.ti.com/gf/download/frsrelease/493/4354/u-boot.bin Uboot]
 +
|align="center"|[https://gforge.ti.com/gf/download/frsrelease/493/4356/gp_MLO MLO(unsigned)] [https://gforge.ti.com/gf/download/frsrelease/493/4363/x-load.bin x-load(signable)]
 +
|align="center"|[https://gforge.ti.com/gf/download/frsrelease/493/4366/MLO MLO(signed)]
 +
 +
|align="center"|[https://gforge.ti.com/gf/download/frsrelease/493/4355/uImage uImage]
 +
|align="center"|[https://gforge.ti.com/gf/download/frsrelease/493/4367/BT_AFS_L27.10.2-P1.tar.bz2 rootfs][https://gforge.ti.com/gf/download/frsrelease/493/4368/Froyo_L27.10.2-P1_Graphics-1.0-Linux-x86-Install GFX Package needed in order to load GUI]
 +
|}
 +
=Tools & Dependency packages=
=Tools & Dependency packages=
Line 59: Line 80:
mkdir -p mydroid; cd mydroid
mkdir -p mydroid; cd mydroid
export MYDROID=`pwd`
export MYDROID=`pwd`
-
repo init -u git://gitorious.org/blazetablet/omapmanifest.git -b refs/tags/BT_L27.8.2P1
+
repo init -u git://gitorious.org/blazetablet/omapmanifest.git -b refs/tags/BT_L27.10.2P1
repo sync
repo sync
</pre>
</pre>
Line 104: Line 125:
- A9 source code for accelerating Video
- A9 source code for accelerating Video
-
The release has been verified with OMAP4 SGX hardware Graphics Accelerator libraries and accelerated Video codecs
+
The release has been verified with OMAP4 SGX hardware Graphics Accelerator libraries and accelerated Video codecs.
-
Please contact TI customer representative to gain access TI proprietary packages
+
 
 +
Please contact TI customer representative to gain access to TI proprietary sources.
=Build Instructions=
=Build Instructions=
Line 114: Line 136:
export YOUR_PATH=`pwd`
export YOUR_PATH=`pwd`
export PATH=$PATH:<toolchain_parent_dir>/arm-2010q1/bin
export PATH=$PATH:<toolchain_parent_dir>/arm-2010q1/bin
-
export MYDROID=${YOUR_PATH}/27.10.2-P1/mydroid
+
export MYDROID=${YOUR_PATH}/mydroid
mkdir $MYDROID/logs
mkdir $MYDROID/logs
export JAVA_HOME=/usr/lib/jvm/java-1.5.0-sun
export JAVA_HOME=/usr/lib/jvm/java-1.5.0-sun
Line 141: Line 163:
The tool for signing x-loader is provided on TI's package. Please contact TI customer representative to get access to this tool.
The tool for signing x-loader is provided on TI's package. Please contact TI customer representative to get access to this tool.
<pre>
<pre>
-
cd $YOUR_PATH/27.10.2-P1/mshield-dk
+
cd $YOUR_PATH/mshield-dk
cp -f $YOUR_PATH/x-loader/x-load.bin .
cp -f $YOUR_PATH/x-loader/x-load.bin .
./generate_MLO ES2.1 x-load.bin
./generate_MLO ES2.1 x-load.bin
Line 186: Line 208:
===Preparing Android binaries===
===Preparing Android binaries===
-
 
-
<span style="color:red">
 
-
Please note ES2.0 SOMs are not compatible with SmartReflex enabled (which is default).
 
-
It will cause the ES2.0 board to not boot.
 
-
 
-
To disable SmartReflex, you will need to modify the init.rc to remove the following lines:<br>
 
-
Enable Smart Reflex in debug fs<br>
 
-
write /debug/pm_debug/smartreflex/sr_core/autocomp 1 <br>write /debug/pm_debug/smartreflex/sr_iva/autocomp 1 ><br>write /debup/pm_debug/smartreflex/sr_mpu/autocomp 1
 
-
</span>
 
The following binaries are required by the BlazeTablet® board. This step will prepare a directory, called myfs, containing all necessary Android files that you must include within your SD card.
The following binaries are required by the BlazeTablet® board. This step will prepare a directory, called myfs, containing all necessary Android files that you must include within your SD card.
Line 201: Line 214:
mkdir myfs
mkdir myfs
cd myfs
cd myfs
-
cp -Rfp $YOUR_PATH/kernel/android-2.6.35/drivers/staging/ti-st/*.ko $MYDROID/out/target/product/blazetablet/root
+
cp -Rfp $YOUR_PATH/kernel/drivers/staging/ti-st/*.ko $MYDROID/out/target/product/blazetablet/root
 +
cp -Rfp $MYDROID/hardware/ti/wlan/wl1283/platforms/os/linux/tiwlan_drv.ko $MYDROID/out/target/product/blazetablet/system/etc/wifi
cp -Rfp $MYDROID/out/target/product/blazetablet/root/* .
cp -Rfp $MYDROID/out/target/product/blazetablet/root/* .
cp -Rfp $MYDROID/out/target/product/blazetablet/system/ .
cp -Rfp $MYDROID/out/target/product/blazetablet/system/ .
Line 207: Line 221:
cp -Rfp $MYDROID/device/ti/blazetablet/init.omap4sdp.rc init.rc
cp -Rfp $MYDROID/device/ti/blazetablet/init.omap4sdp.rc init.rc
</pre>
</pre>
 +
 +
Since this release won't work without OMAP4 SGX hardware Graphics Accelerator libraries, we include the binaries [https://gforge.ti.com/gf/download/frsrelease/493/4368/Froyo_L27.10.2-P1_Graphics-1.0-Linux-x86-Install here]
 +
 +
You will need to install the package on your computer, and then copy the binaries to your AFS:
 +
<pre>
 +
cd <your install folder>
 +
cp -Rfpv Froyo_L27.10.2-P1_Graphics/* $YOUR_PATH/myfs
 +
</pre>
 +
 +
For WLAN, you will also need to get firmware.bin and copy it over $MYDROID/out/target/product/blazetablet/system/etc/wifi. Please contact TI customer representative to gain access to corresponding TI proprietary packages.
===Preparing eMMC images===
===Preparing eMMC images===
Line 414: Line 438:
$ cp $YOUR_PATH/u-boot/u-boot.bin /tmp/mmc1
$ cp $YOUR_PATH/u-boot/u-boot.bin /tmp/mmc1
$ cp $YOUR_PATH/kernel/arch/arm/boot/uImage /tmp/mmc1
$ cp $YOUR_PATH/kernel/arch/arm/boot/uImage /tmp/mmc1
-
$ cp -Rfp $YOUR_PATH/27.10.1/myfs/* /tmp/mmc2
+
$ cp -Rfp $YOUR_PATH/myfs/* /tmp/mmc2
-
$ chmod –R 777 /tmp/mmc2/*
+
$ chmod -R 777 /tmp/mmc2/*
$ umount /tmp/mmc1
$ umount /tmp/mmc1
$ umount /tmp/mmc2
$ umount /tmp/mmc2
Line 447: Line 471:
<pre>
<pre>
-
---- OMAP 4 PPA tactical release 0.8.1 ----                                                                        
+
-- OMAP 4 (version 00000021) PPA release 1.0.0 --        
-
                                                                                                                   
+
Reset reason = 00030181                                   
-
 
+
                                       
-
Texas Instruments X-Loader 1.41 (Oct 20 2010 - 12:03:47)
+
                                       
-
Starting OS Bootloader from MMC/SD1 ...
+
Texas Instruments X-Loader 1.41 (Feb 19 2011 - 20:47:22)
-
 
+
mmc read: Invalid size                 
-
 
+
Starting OS Bootloader from MMC/SD1 ...  
-
U-Boot 1.1.4-g0e685295-dirty (Oct 14 2010 - 17:09:14)
+
                                       
 +
                                       
 +
U-Boot 1.1.4-BT_L27.10.2P1 (Feb 19 2011 - 20:46:09)
 +
Blaze Tablet Board: 0100APPS750-2143
Load address: 0x80e80000
Load address: 0x80e80000
-
DRAM:  1024 MB
+
DRAM:  1024 MB                                                                            
-
Flash:  0 kB
+
Flash:  0 kB                                                                              
-
In:    serial
+
In:    serial                                                                              
-
Out:  serial
+
Out:  serial                                                                              
-
Err:  serial
+
Err:  serial                                                                              
-
Net:  KS8851SNL
+
Net:  KS8851SNL                                                                          
-
Hit any key to stop autoboot:  0  
+
Hit any key to stop autoboot:  0                                                          
-
OMAP44XX SDP # fastboot
+
OMAP44XX SDP # fastboot                                                                    
-
Disconnect USB cable to finish fastboot..
+
Fastboot entered...  
</pre>
</pre>
On a linux machiche were  you should have untared the release image run
On a linux machiche were  you should have untared the release image run
<pre>$ sudo ./fastboot.sh </pre>
<pre>$ sudo ./fastboot.sh </pre>
-
If this is the first time you boot the device edit the fastboot.sh and uncomment the first line so it create the master boot partition. this only need to be odne the first time you boot the board doing it after that may create a partition conflict. That's why by default the fastboot.sh have this command commented.
+
If this is the first time you boot the device edit the fastboot.sh and uncomment the first line so it creates the master boot partition. This only need to be done the first time you boot the board doing it after that may create a partition conflict. That's why by default the fastboot.sh have this command commented.
Now connect the BlazeTablet micro USB port to your Linux box and go to where the eMMC files are. The first fastboot command will create the Master Boot Record that has the partition table along with other boot information on eMMC and the others will flash the files onto the corresponding eMMC partition <br>
Now connect the BlazeTablet micro USB port to your Linux box and go to where the eMMC files are. The first fastboot command will create the Master Boot Record that has the partition table along with other boot information on eMMC and the others will flash the files onto the corresponding eMMC partition <br>
Line 508: Line 535:
<pre>
<pre>
-
---- OMAP 4 PPA tactical release 0.9.1 ----
+
-- OMAP 4 (version 00000021) PPA release 1.0.0 --        
-
 
+
Reset reason = 00030181                                   
-
 
+
                                       
-
Texas Instruments X-Loader 1.41 (Oct 20 2010 - 12:03:47)
+
                                       
 +
Texas Instruments X-Loader 1.41 (Feb 19 2011 - 20:47:22)
Starting OS Bootloader from EMMC ...
Starting OS Bootloader from EMMC ...
 +
                                       
 +
                                       
 +
U-Boot 1.1.4-BT_L27.10.2P1 (Feb 19 2011 - 20:46:09)
-
 
+
Blaze Tablet Board: 0100APPS750-2143
-
U-Boot 1.1.4-g8024422c-dirty (Oct 20 2010 - 12:03:36)
+
-
 
+
Load address: 0x80e80000
Load address: 0x80e80000
-
DRAM:  1024 MB
+
DRAM:  1024 MB                                                                            
-
Flash:  0 kB
+
Flash:  0 kB                                                                              
-
In:    serial
+
In:    serial                                                                              
-
Out:  serial
+
Out:  serial                                                                              
-
Err:  serial
+
Err:  serial                                                                              
-
Net:  KS8851SNL
+
Net:  KS8851SNL                                                                          
-
Hit any key to stop autoboot:  5
+
Hit any key to stop autoboot:  5                                                          
</pre>
</pre>
Line 549: Line 578:
</span>
</span>
-
'''L27.8.2 Bootargs for SD card boot'''<br>
+
'''L27.10.2-P1 Bootargs for SD card boot'''<br>
<pre>
<pre>
-
setenv bootargs 'console=ttyO2,115200n8 root=/dev/mmcblk1p2 rw rootdelay=2 mem=458M@0x80000000 mem=512M@0xA0000000 init=/init vram="10M" omapfb.vram="0:6M"'
+
setenv bootargs androidboot.console=ttyO2 console=ttyO2,115200n8 mem=456M@0x80000000 mem=512M@0xA0000000 root=/dev/mmcblk1p2 rw rootdelay=2 init=/init vram="10M" omapfb.vram="0:6M"
setenv bootcmd 'mmcinit 0;fatload mmc 0 0x80000000 uImage; bootm 0x80000000'
setenv bootcmd 'mmcinit 0;fatload mmc 0 0x80000000 uImage; bootm 0x80000000'
saveenv
saveenv
Line 560: Line 589:
'''eMMC bootargs given in env.txt'''
'''eMMC bootargs given in env.txt'''
<pre>
<pre>
-
 
bootdelay=5
bootdelay=5
-
bootargs=console=ttyO2,115200n8 rootdelay=2 mem=458M@0x80000000 mem=512M@0xA0000000 init=/init vram=10M omapfb.vram=0:6M
+
bootargs=androidboot.console=ttyO2 console=ttyO2,115200n8 mem=456M@0x80000000 mem=512M@0xA0000000 rootdelay=2 init=/init vram=10M omapfb.vram=0:6M
-
bootcmd=mmcinit 1;mmc 1 read 0x1000 0x81000000 0x500000;bootm 81000000
+
bootcmd=mmcinit 1;mmc 1 read 0x500 0x81000000 0x500000;booti 81000000
loadaddr=81000000
loadaddr=81000000
 +
</pre>
 +
Right after this your BlazeTablet should start booting kernel image and loading the Android filesystem both from BlazeTablet eMMC
 +
=To Install Apps or Copy Files=
 +
<pre>
 +
Installing an App:
 +
First give permission to data folder, chmod 777 -R /data
 +
To install:
 +
adb install -r <apk name>
 +
</pre>
-
Right after this your BlazeTablet should start booting kernel image and loading the Android filesystem both from BlazeTablet eMMC
+
<pre>
-
 
+
Copy Files:
 +
To keep files after a reboot or restarting the eMMC it is recommended to copy these files to the sdcard or data folder.
 +
  adb push <file> /data          or
 +
  adb push <file> /sdcard
</pre>
</pre>
='''Resources'''=
='''Resources'''=
[http://www.omapedia.org/wiki/L27.INC1.10.2-P1_OMAP4_Froyo_ES2_Release_Notes http://www.omapedia.org/wiki/L27.INC1.10.2-P1_OMAP4_Froyo_ES2_Release_Notes]
[http://www.omapedia.org/wiki/L27.INC1.10.2-P1_OMAP4_Froyo_ES2_Release_Notes http://www.omapedia.org/wiki/L27.INC1.10.2-P1_OMAP4_Froyo_ES2_Release_Notes]

Latest revision as of 06:04, 23 February 2011

Contents

[edit] Introduction

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.
Known issue: Launcher application doesn't handle touchscreen events properly.

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: TI OMAP4 ES2.1 EMU BlazeTablet
Build Host OS: Ubuntu

[edit] Prebuilt binaries

You can download prebuilt binaries here:

Bootloader Kernel Filesystem
Uboot MLO(unsigned) x-load(signable) MLO(signed) uImage rootfsGFX Package needed in order to load GUI


[edit] Tools & Dependency packages

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”


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.

This tool chain can be obtained from [1]

[edit] Downloading Release Software

Android Filesystem Sources

you can get the Android source for this release by doing:

cd <your work directory>
mkdir -p mydroid; cd mydroid
export MYDROID=`pwd`
repo init -u git://gitorious.org/blazetablet/omapmanifest.git -b refs/tags/BT_L27.10.2P1
repo sync


Kernel & Driver Sources

To clone kernel source from scratch do:

cd <your work directory>; export YOUR_PATH=`pwd`
git clone git://gitorious.org/blazetablet/kernel.git kernel
cd kernel
git checkout BT_L27.10.2P1

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

cd $YOUR_PATH/kernel
git remote add blazetablet git://gitorious.org/blazetablet/kernel.git
git fetch -t blazetablet
git checkout BT_L27.10.2P1

U-Boot Sources

cd <your work directory>; export YOUR_PATH=`pwd`
git clone git://gitorious.org/blazetablet/u-boot.git u-boot
cd u-boot
git checkout BT_L27.10.2P1


X-loader Sources

cd <your work directory>; export YOUR_PATH=`pwd`
git clone git://gitorious.org/blazetablet/x-loader.git x-loader
cd x-loader
git checkout BT_L27.10.2P1

[edit] Release Content

This release has the below content - Kernel and Drivers tested with OMAP4 ES2.1 EMU BlazeTablet platform and verified with Froyo UI - A9 source code for accelerating Video

The release has been verified with OMAP4 SGX hardware Graphics Accelerator libraries and accelerated Video codecs.

Please contact TI customer representative to gain access to TI proprietary sources.

[edit] Build Instructions

[edit] Setting up build environment

From your work directory (where your 27.10.2-P1 folder resides):

export YOUR_PATH=`pwd`
export PATH=$PATH:<toolchain_parent_dir>/arm-2010q1/bin
export MYDROID=${YOUR_PATH}/mydroid
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}/u-boot/tools:${PATH}

[edit] Building U-BOOT

cd $YOUR_PATH/u-boot
make distclean (required for rebuild only)
make ARCH=arm omap4430sdp_config
make 2>&1 |tee $MYDROID/logs/u-boot_make.out

[edit] Building X-LOADER

cd $YOUR_PATH/x-loader
make distclean (required for rebuild only)
make ARCH=arm blazetablet_config
make ift 2>&1 |tee $MYDROID/logs/x-loader_make.out

Signing X-LOADER for EMU devices

The tool for signing x-loader is provided on TI's package. Please contact TI customer representative to get access to this tool.

cd $YOUR_PATH/mshield-dk
cp -f $YOUR_PATH/x-loader/x-load.bin .
./generate_MLO ES2.1 x-load.bin

[edit] Building Kernel

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

cd $YOUR_PATH/kernel
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

[edit] Building Kernel modules

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

[edit] Building WLAN driver

export HOST_PLATFORM=sdc4430
export KERNEL_DIR=$YOUR_PATH/kernel
cd $MYDROID/hardware/ti/wlan/wl1283/platforms/os/linux
make ARCH=arm

[edit] Building Android Filesystem (AFS) with TI Codecs enabled

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

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

[edit] Building AFS with Android Codecs

This release was not verified with Android codecs. Camera based applications need TI proprietary drivers. Please contact TI customer representative to get access to proprietary sources

[edit] Preparing Android binaries

The following binaries are required by the BlazeTablet® board. This step will prepare a directory, called myfs, containing all necessary Android files that you must include within your SD card.

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

Since this release won't work without OMAP4 SGX hardware Graphics Accelerator libraries, we include the binaries here

You will need to install the package on your computer, and then copy the binaries to your AFS:

cd <your install folder>
cp -Rfpv Froyo_L27.10.2-P1_Graphics/* $YOUR_PATH/myfs

For WLAN, you will also need to get firmware.bin and copy it over $MYDROID/out/target/product/blazetablet/system/etc/wifi. Please contact TI customer representative to gain access to corresponding TI proprietary packages.

[edit] Preparing eMMC images

If you wish to boot entirely from eMMC, you will need to modify init.rc file to mount eMMC partitions on your system and create the eMMC partition images:

cd $MYDROID
cp $YOUR_PATH/myfs/init.rc out/target/product/blazetablet/root 
sed -i -e '/system ro remount/a\
mount ext3 /dev/block/mmcblk0p1 /system\
mount ext3 /dev/block/mmcblk0p1 /system ro remount' \
-e '/data nosuid nodev/a\
mount ext3 /dev/block/mmcblk0p2 /data nosuid nodev' \
-e '/cache nosuid nodev/a\
mount ext3 /dev/block/mmcblk0p3 /cache nosuid nodev' out/target/product/blazetablet/root/init.rc

Now you need to rebuild your Android filesystem; but before you need to erase ramdisk.img file from your 'out' directory:

cd $MYDROID
rm -f out/target/product/blazetablet/ramdisk.img
make -j4

This build should not take too much time and will re-generate a new ramdisk.img file with the modified init.rc file in it.

After build is done you need to copy the new ramdisk.img file to a new directory where you will store all eMMC-related files for easy location:

cd $YOUR_PATH
mkdir omap4_emmc_files
cp -f $MYDROID/out/target/product/blazetablet/ramdisk.img omap4_emmc_files
cp -f $MYDROID/out/host/linux-x86/bin/fastboot omap4_emmc_files
cp -f $MYDROID/device/ti/blazetablet/mbr.bin omap4_emmc_files
cp -f $MYDROID/out/host/linux-x86/bin/mkbootimg omap4_emmc_files
cp -f u-boot/u-boot.bin omap4_emmc_files
cp -f x-loader/MLO omap4_emmc_files
cp -f kernel/arch/arm/boot/zImage omap4_emmc_files

Starting L27.10.1, uMulti-2 changed to boot.img it is created with mkbootimg instead of mkimage
Now from this new directory we will create the eMMC images which will be flashed using fastboot protocol (described later). First create boot.img image using kernel image we copied previously:

cd $YOUR_PATH/omap4_emmc_files
./mkbootimg --kernel zImage --ramdisk ramdisk.img --base 0x80000000 --cmdline aaaaaa --board omap4 -o boot.img

Then create system image:

cd $YOUR_PATH/omap4_emmc_files
dd if=/dev/zero of=./system.img bs=1048510 count=200
mkfs.ext3 -F system.img -L system
mkdir tmp
sudo mount -o loop system.img tmp
cp -prf $YOUR_PATH/myfs/system/* tmp
sudo umount tmp

In a similar fashion create userdata and cache partitions:

cd $YOUR_PATH/omap4_emmc_files
dd if=/dev/zero of=./data.img bs=1048510 count=150
mkfs.ext3 -F data.img -L data
sudo mount -o loop data.img tmp
cp -prf $YOUR_PATH/myfs/data/* tmp
sudo umount tmp
dd if=/dev/zero of=./cache.img bs=1048510 count=50
mkfs.ext3 -F cache.img -L cache

And finally the environment file with the bootargs and bootcmd information (see bootargs section)

[edit] 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)
p
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)
p
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 http://cgit.openembedded.org/cgit.cgi/openembedded/plain/contrib/angstrom/omap3-mkcard.sh

Add execution permission:
$ chmod +x omap3-mkcard.sh

And you are ready to use it by just typing:
$sudo ./omap3-mkcard.sh <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/arch/arm/boot/uImage /tmp/mmc1
$ cp -Rfp $YOUR_PATH/myfs/* /tmp/mmc2
$ chmod -R 777 /tmp/mmc2/*
$ umount /tmp/mmc1
$ umount /tmp/mmc2

Booting

Insert your SD card (with u-boot, x-loader and uImage loaded in FAT partition and ) into BlazeTablet SD/MMC card slot, then plug the BlazeTablet 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:

“OMAP44XX SDP #”

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

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

[edit] Booting Kernel and Android File System from eMMC

Formatting eMMC

Starting on L27.7.2 release onwards the eMMC partition table changed and the flashing procedure now uses fastboot protocol. Please read carefully the following instructions

If your are going to use eMMC for the first time, you need to create the appropriate partition table and create a filesystem (format) for each partition. For this you´ll need to format your SD card and load the u-boot, MLO and fastboot file from the image to the boot partition.

To boot using the SD card change your SYS_BOOT configuration (S2-[1:8] OFF, ON, OFF, ON, ON, ON, ON, ON) with the SD card inserted turn your BlazeTablet on and press any key on your serial terminal to stop the auto-boot process.

Now type from you serial terminal (on the u-boot prompt) 'fastboot' and board should be waiting for any fastboot command. You should see something like this: [Please note this is an older snapshot (so rev numbers you see might be different as compared to below)]

-- OMAP 4 (version 00000021) PPA release 1.0.0 --          
Reset reason = 00030181                                    
                                        
                                        
Texas Instruments X-Loader 1.41 (Feb 19 2011 - 20:47:22)
mmc read: Invalid size                  
Starting OS Bootloader from MMC/SD1 ... 
                                        
                                        
U-Boot 1.1.4-BT_L27.10.2P1 (Feb 19 2011 - 20:46:09)

Blaze Tablet Board: 0100APPS750-2143
Load address: 0x80e80000
DRAM:  1024 MB                                                                              
Flash:  0 kB                                                                                
In:    serial                                                                               
Out:   serial                                                                               
Err:   serial                                                                               
Net:   KS8851SNL                                                                            
Hit any key to stop autoboot:  0                                                            
OMAP44XX SDP # fastboot                                                                     
Fastboot entered... 

On a linux machiche were you should have untared the release image run

$ sudo ./fastboot.sh 

If this is the first time you boot the device edit the fastboot.sh and uncomment the first line so it creates the master boot partition. This only need to be done the first time you boot the board doing it after that may create a partition conflict. That's why by default the fastboot.sh have this command commented.

Now connect the BlazeTablet micro USB port to your Linux box and go to where the eMMC files are. The first fastboot command will create the Master Boot Record that has the partition table along with other boot information on eMMC and the others will flash the files onto the corresponding eMMC partition
The following part contain detailed information about how fastboot.sh works, to continue booting the board go to the booting part of this guide.

mbr.bin changed for this release, partition table name "mbr" has been renamed to "ptable". Hence mbr.bin needs to be Reflashed
Make sure you boot OS loader from SD, also ensure you have 10.2 u-boot and MLO in the SD.

cd $YOUR_PATH/omap4_emmc_files
./fastboot flash ptable mbr.bin 
./fastboot flash xloader ./MLO
./fastboot flash bootloader ./u-boot.bin
./fastboot flash environment ./env.txt
./fastboot flash boot ./boot.img
./fastboot flash system ./system.img
./fastboot flash userdata ./data.img
./fastboot flash cache ./cache.img

Once MBR is created you no longer need to flash mbr anymore; only when partition table changes is when we would need to flash mbr again but don't expect changes in the partition table so soon. You can now switch to boot from eMMC.

IMPORTANT: DO NOT ERASE ptable, system, userdata OR cache PARTITIONS. If you want to update these partitions with a new set of eMMC images just use fastboot "flash" commands as described above. For the other partitions you can safely use fastboot "erase" command before updating them:

./fastboot erase xloader
./fastboot erase bootloader
./fastboot erase environment
./fastboot erase boot

Booting

When fastboot has finished disconect the micro USB and power cables from the board. Insert a SD card into BlazeTablet SD/MMC card slot (now only required to store MM files, ideally use a different one than the one used for booting), then plug the BlazeTablet mini USB port to your PC and open a serial terminal (baudrate:115200, no parity, 8 bits), change your SYS_BOOT configuration to boot from eMMC (S2-[1:8] ON, ON, ON, ON, ON, ON, ON, ON) and power your board up and in your terminal window you should be able to see the auto-boot process start in 5 seconds:
* This SYS_BOOT configuration must be kept even when you want to update eMMC binaries set, just keep in mind you must NOT flash mbr.bin file again.

-- OMAP 4 (version 00000021) PPA release 1.0.0 --          
Reset reason = 00030181                                    
                                        
                                        
Texas Instruments X-Loader 1.41 (Feb 19 2011 - 20:47:22)
Starting OS Bootloader from EMMC ...
                                        
                                        
U-Boot 1.1.4-BT_L27.10.2P1 (Feb 19 2011 - 20:46:09)

Blaze Tablet Board: 0100APPS750-2143
Load address: 0x80e80000
DRAM:  1024 MB                                                                              
Flash:  0 kB                                                                                
In:    serial                                                                               
Out:   serial                                                                               
Err:   serial                                                                               
Net:   KS8851SNL                                                                            
Hit any key to stop autoboot:  5                                                            

If you want to verify that your bootargs and bootcmd were flashed correctly as described in env.txt file, then press any key to stop the auto-boot process and type 'print':

OMAP44XX SDP # print
bootdelay=5
bootargs=console=ttyO2,115200n8 rootdelay=2 mem=456M@0x80000000 mem=512M@0xA0000000 init=/init vram="10M" omapfb.vram="0:6M"
bootcmd=mmcinit 1;mmc 1 read 0x1000 0x81000000 0x500000;bootm 81000000
loadaddr=81000000
stdin=serial
stdout=serial
stderr=serial
ethact=KS8851SNL

Environment size: 223/131068 bytes

To continue booting just type 'boot' and the boot process will start.

[edit] Bootargs

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 androidboot.console=ttyO2 console=ttyO2,115200n8 mem=456M@0x80000000 mem=512M@0xA0000000 root=/dev/mmcblk1p2 rw rootdelay=2 init=/init vram="10M" omapfb.vram="0:6M"
setenv bootcmd 'mmcinit 0;fatload mmc 0 0x80000000 uImage; bootm 0x80000000'
saveenv
boot

eMMC bootargs given in env.txt

bootdelay=5
bootargs=androidboot.console=ttyO2 console=ttyO2,115200n8 mem=456M@0x80000000 mem=512M@0xA0000000 rootdelay=2 init=/init vram=10M omapfb.vram=0:6M
bootcmd=mmcinit 1;mmc 1 read 0x500 0x81000000 0x500000;booti 81000000
loadaddr=81000000

Right after this your BlazeTablet should start booting kernel image and loading the Android filesystem both from BlazeTablet eMMC

[edit] To Install Apps or Copy Files

Installing an App:
First give permission to data folder, chmod 777 -R /data
To install:
 adb install -r <apk name>
Copy Files:
To keep files after a reboot or restarting the eMMC it is recommended to copy these files to the sdcard or data folder.
  adb push <file> /data           or
  adb push <file> /sdcard

[edit] Resources

http://www.omapedia.org/wiki/L27.INC1.10.2-P1_OMAP4_Froyo_ES2_Release_Notes

Personal tools
Namespaces
Variants
Actions
Navigation
Toolbox