[[Software/Android]]~
[[Software/Android/bc9]]~
[[Software/Android/bc9/boot]]~


*Booting Android [#rc601bf8]
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/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
 }
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.

#youtube(NNSuuo505bE);


---------------------------------------
RIGHT:by Satoshi OTSUKA


Front page   Edit Diff Backup Upload Copy Rename Reload   New List of pages Search Recent changes   RSS of recent changes