Difference between revisions of "CM-T335: Android: Getting started"
(→Installing Kernel) |
(→Installing Android) |
||
Line 52: | Line 52: | ||
* Extract the Android Demo root filesystem on to that partition: | * Extract the Android Demo root filesystem on to that partition: | ||
<pre> | <pre> | ||
− | sudo tar -xpf /path/to/cm-t335-android/images/Android-image-cm-t335.tar.bz2 -C /media/rootfs && sync | + | sudo tar --numeric-owner -xpf /path/to/cm-t335-android/images/Android-image-cm-t335.tar.bz2 -C /media/rootfs && sync |
</pre> | </pre> | ||
* Unmount all micro SD card partitions: | * Unmount all micro SD card partitions: | ||
Line 75: | Line 75: | ||
CM-T3x # saveenv | CM-T3x # saveenv | ||
CM-T3x # boot | CM-T3x # boot | ||
+ | </pre> | ||
+ | |||
+ | === Select video out === | ||
+ | |||
+ | Default CM-T335 video output device is DVI. | ||
+ | LCD video output can be enabled by adding the following boot options to the kernel command line parameters: | ||
+ | <pre> | ||
+ | cm_t335_disp=lcd | ||
</pre> | </pre> | ||
Revision as of 11:26, 26 December 2013
Contents
Introduction
The Android Demo filesystem image for CM-T335 is based on Android 4.1.2 Jelly Bean with SGX (3D graphics acceleration) support. The CompuLab Android Demo package for CM-T335 includes ready to run Demo Android filesystem image and Linux kernel based on 3.2.0 version.
We do not recommend using Android Demo Image on CM-T335 devices with less then 256MB of RAM. |
Preparation steps
- Obtain a Linux PC workstation.
- Get a USB Card reader and a micro SD Card. Use either the micro SD card, supplied with the CM-T335 Evaluation kit, or create a new one.
- Plug the USB SD Card reader to a host Linux PC. Insert the micro SD Card into the USB Card reader. From now we assume the device name of the MMC/SD card on your Linux PC is /dev/sdc.
- Download the Android Demo package for CM-T335 from CompuLab website. Unzip the package to a directory on your host workstation.
- All image files mentioned below can be found in images subdirectory of the Demo package.
Preparing MMC/SD card
- Create two partitions (FAT32 partition for Linux kernel and ext4 partition for root filesystem) as described in the Default MMC/SD Card mapping article:
Disk /dev/sdc: 8035 MB, 8035237888 bytes 32 heads, 32 sectors/track, 15326 cylinders, total 15693824 sectors Units = sectors of 1 * 512 = 512 bytes Sector size (logical/physical): 512 bytes / 512 bytes I/O size (minimum/optimal): 512 bytes / 512 bytes Disk identifier: 0x710ab397 Device Boot Start End Blocks Id System /dev/sdc1 * 2048 242959 120456 c W95 FAT32 (LBA) /dev/sdc2 243712 15693823 7725056 83 Linux
- Format FAT32 partition:
sudo mkfs.vfat -F 32 -n boot /dev/sdc1
- Format ext4 partition:
sudo mkfs.ext4 -L rootfs /dev/sdc2
- Mount the FAT32 partition under /media/boot location:
sudo mkdir -p /media/boot sudo mount /dev/sdc1 /media/boot
- Mount the partition under /media/boot location:
sudo mkdir -p /media/rootfs sudo mount /dev/sdc2 /media/rootfs
Installing Kernel
- Copy Linux kernel image on to the boot partition:
cp /path/to/cm-t335-android/images/uImage-cm-t335 /media/boot/
Installing Android
- Extract the Android Demo root filesystem on to that partition:
sudo tar --numeric-owner -xpf /path/to/cm-t335-android/images/Android-image-cm-t335.tar.bz2 -C /media/rootfs && sync
- Unmount all micro SD card partitions:
sudo umount /dev/sdc1; sudo umount /dev/sdc2
- Remove the micro SD card from the SD card reader and insert into the CM-T335 micro SD card socket (P23).
- Continue to the After Installation section.
After Installation
- Connect the host PC to the SB-T335 base-board (connector P11) via the serial cable supplied with the evaluation kit.
- Start terminal emulation software on your PC. Set baud rate to 115200 bps, 8 bit per frame, 1 stop bit, no parity, no flow control.
- Connect the DVI display to the CM-T335 evaluation system. The U-Boot boot-loader will start and you will get a command prompt.
- Set the bootargs environment variable:
setenv bootargs "console=ttyO0,115200n8 androidboot.console=ttyO0 root=/dev/mmcblk0p2 rw rootfstype=ext4 rootwait init=/init ip=off"
- To boot Android Demo image type:
CM-T3x # setenv bootdelay 3 CM-T3x # setenv bootcmd "mmc rescan; fatload mmc 0 82000000 uImage-cm-t335; bootm" CM-T3x # saveenv CM-T3x # boot
Select video out
Default CM-T335 video output device is DVI. LCD video output can be enabled by adding the following boot options to the kernel command line parameters:
cm_t335_disp=lcd