Android

Booting Android

To boot Android,
First boot gumstix and make sure that the USB flash memory is mounted.

root@gumstix-custom-verdex:~$ mount
rootfs on / type rootfs (rw)
/dev/root on / type jffs2 (rw,sync,noatime)
proc on /proc type proc (rw)
sysfs on /sys type sysfs (rw)
/dev/root on /dev/.static/dev type jffs2 (rw,sync)
tmpfs on /dev type tmpfs (rw)
devpts on /dev/pts type devpts (rw)
tmpfs on /dev/shm type tmpfs (rw)
tmpfs on /var/volatile type tmpfs (rw)
tmpfs on /media/ram type tmpfs (rw)
usbfs on /proc/bus/usb type usbfs (rw)
/dev/sda on /media/hdd type ext2 (rw)

Then execute following command:

chroot /media/hdd/adnroid-root /init

You will see Andoird on gumstix.

If you want to boot Android directly after power on gumstix,

/etc/init.d/android

Make this file as following contents:

#!/bin/sh
#
# Start android by chroot
#
 
start() {
       echo "Starting android..."
 
       /usr/sbin/chroot /media/hdd/android-root /init
}
case "$1" in
  start)
        start
        ;;
  *)           
        echo $"Usage: $0 {start}"
        exit 1
esac

exit $?

Add execute permission:

chmod a+x /etc/init.d/android

And in order to execute this script at default run level 5 booting, make symlink as follows:

root@gumstix-custom-verdex:~$ cd /etc/rc5.d/
root@gumstix-custom-verdex:~$ ln -s ../init.d/android S99android

This script will be executed at the end of gumstix linux booting process and Android will directly boot.


by Satoshi OTSUKA

Front page   Edit Freeze Diff Backup Upload Copy Rename Reload   New List of pages Search Recent changes   RSS of recent changes
Last-modified: 2009-05-12 (Tue) 06:04:27 (3111d)