Difference between revisions of "CM-QS600: Android: Getting started"

From Compulab Mediawiki
Jump to: navigation, search
Line 34: Line 34:
 
# There is a valid ''boot'' partition (i.e. CM-QS600 was pre-installed with OS).
 
# There is a valid ''boot'' partition (i.e. CM-QS600 was pre-installed with OS).
 
#: In this case, the device will boot from it.
 
#: In this case, the device will boot from it.
#: Accessing Android command line, one can observe and then destroy ''boot'' partition signature ("ANDROID"), effectively making ''boot'' partition invalid, going back to option '''1''' after reboot.
+
#: Reboot to bootloader by issuing on either workstation <pre>$ adb reboot bootloader</pre>
<pre>
+
#: or Android device itself <pre># reboot bootloader</pre>
      # dd if=/dev/block/platform/msm_sdcc.1/by-name/boot bs=1 count=7
 
      # echo -n "X" | dd of=/dev/block/platform/msm_sdcc.1/by-name/boot bs=1 count=1
 
</pre>
 
  
 
* Flash each partition image file to the eMMC with the aid of ''fastboot'' utility:
 
* Flash each partition image file to the eMMC with the aid of ''fastboot'' utility:

Revision as of 11:15, 5 November 2014

Overview

The following outlines the procedure necessary to install Android on the CompuLab CM-QS600 System-on-Module / Computer-on-Module.

Installation target media

CM-QS600 uses on-board eMMC as root file system medium.

Admolition note.png Additional media might be enabled in the coming releases.

Installation onto eMMC

Preconditions

  • CM-QS600 evaluation kit.
  • PC workstation with installed fastboot client software.
  • Connect HDMI display to the CM-QS600 (optional).
  • Connect serial console to the CM-QS600 (optional).
  • Connect USB cable between the CM-QS600 USB OTG (P7) jack and PC workstation, in order to enable fastboot protocol.
  • Connect RTC battery to P15.

Flashing Android image

  • Decompress the file, in order to get Android partition images.
  • Enter fastboot mode following either of the options:
  1. There is no valid boot partition (which is how CM-QS600 comes out of the box).
    In this case, the device will enter fastboot mode upon power on.
  2. There is a valid boot partition (i.e. CM-QS600 was pre-installed with OS).
    In this case, the device will boot from it.
    Reboot to bootloader by issuing on either workstation
    $ adb reboot bootloader
    or Android device itself
    # reboot bootloader
  • Flash each partition image file to the eMMC with the aid of fastboot utility:
$ fastboot flash boot     boot.img
$ fastboot flash system   system.img
$ fastboot flash cache    cache.img
$ fastboot flash userdata userdata.img


  • Proceed to boot, issuing
$ fastboot reboot

Boot

  • Power on
  • Within 3 seconds the device should start booting into Android.
Within 60 seconds the HDMI display should start showing signs of life.

See Also