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

From Compulab Mediawiki
Jump to: navigation, search
(Boot)
 
(2 intermediate revisions by one other user not shown)
Line 1: Line 1:
 
== Overview ==
 
== Overview ==
The following outlines the procedure necessary to install Android on CM-QS600.
+
The following outlines the procedure necessary to install Android on the CompuLab CM-QS600 System-on-Module / Computer-on-Module.
  
 
== Installation target media ==
 
== Installation target media ==
Line 7: Line 7:
  
 
== Installation onto eMMC ==
 
== Installation onto eMMC ==
=== Preconditions ===
+
=== Preparation steps ===
 +
[[Image:SB-QS600-top.jpg|right|thumb|CM-QS600 evaluation kit. Top view.]]
 +
[[Image:SB-QS600-bottom.jpg|right|thumb|CM-QS600 evaluation kit. Bottom view.]]
 
* CM-QS600 evaluation kit.
 
* CM-QS600 evaluation kit.
 
* PC workstation with installed [[Android: Fastboot setup | fastboot]] client software.
 
* PC workstation with installed [[Android: Fastboot setup | fastboot]] client software.
Line 13: Line 15:
 
* Connect [[CM-QS600: Android: Serial console connection | serial console]] to the CM-QS600 ''(optional)''.
 
* Connect [[CM-QS600: Android: Serial console connection | 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 [[Android: Fastboot setup | fastboot]] protocol.
 
* Connect USB cable between the CM-QS600 USB OTG (P7) jack and PC workstation, in order to enable [[Android: Fastboot setup | fastboot]] protocol.
 +
* Connect RTC battery to P15.
  
 
=== Flashing Android image ===
 
=== Flashing Android image ===
* Download prebuilt [http://compulab.co.il/products/computer-on-modules/cm-qs600/#devres Android image].
+
* Download [http://www.compulab.co.il/products/computer-on-modules/cm-qs600/#devres Android software package].
  
* Decompress the file, in order to get Android partition images.
+
* Decompress the file, in order to access Android partition images.
<!--
 
{{Note|Extracting '''.tar.xz''' archive is done<br/>
 
in '''Linux''' command line:
 
<pre>
 
$ tar -xJf <filename.tar.xz> -C <dest. directory>
 
</pre>
 
in '''Windows''': with the aid of ''7-zip'' application
 
}}
 
-->
 
  
* Enter ''fastboot mode'' following either of the options:
+
* Enter ''fastboot mode'' - this should happen automatically, as CM-QS600 arrives with no valid boot partition.
# There is no valid ''boot'' partition - this is the factory default in which the CM-QS600 comes out of the box.
+
{{Note | There exist additional options for [[Android: Fastboot setup#Forcing fastboot mode | forcing fastboot mode]].}}
#: In this case, the device will enter ''fastboot mode'' upon power on.
 
# There is a valid ''boot'' partition - usually the case when android was previously installed on the device.
 
#: 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.
 
<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:
Line 47: Line 33:
 
</pre>
 
</pre>
  
<!--
+
* Reboot the CM-QS600 evaluation system:
* Flash boot partition to the EMMC with the aid of ''fastboot'' utility:
 
<pre>
 
$ fastboot flash boot    boot.img
 
</pre>
 
 
 
* Flash file system image to an SD-card (at least 2GB in size)
 
{{Note|Flashing SD-card image is done<br/>
 
in '''Linux''' command line:
 
<pre>
 
$ sudo dd if=rootfs.img of=/dev/sdx
 
</pre>
 
in '''Windows''': with the aid of [https://wiki.ubuntu.com/Win32DiskImager  Win32 Disk Imager] application.
 
}}
 
 
 
* Insert SD-card into (P5) SD-card slot.
 
-->
 
 
 
* Proceed to boot, issuing
 
 
<pre>
 
<pre>
 
$ fastboot reboot
 
$ fastboot reboot
Line 72: Line 40:
 
=== Boot ===
 
=== Boot ===
 
* Power on
 
* Power on
* Within 3 seconds the device should start booting into Android.
+
* Wait for the boot process to complete
: Within 60 seconds the HDMI display should start showing ''signs of life''.
 
  
 
== See Also ==
 
== See Also ==
* [[CM-QS600: Android: Serial console connection]]
+
* [http://compulab.co.il/products/computer-on-modules/cm-qs600/#devres  CM-QS600 development resources]
* [[Android: Fastboot setup]]
+
* [[CM-QS600: Android: Software package | Software package contents]]
* [[Android: ADB setup]]
+
* [[CM-QS600: Android: Serial console connection | Serial console connection]]
 +
* [[Android: Fastboot setup | Fastboot setup]]
 +
* [[Android: ADB setup | ADB setup]]
  
 
[[Category:Android]]
 
[[Category:Android]]
 
[[Category:CM-QS600]]
 
[[Category:CM-QS600]]

Latest revision as of 10:49, 21 October 2015

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

Preparation steps

CM-QS600 evaluation kit. Top view.
CM-QS600 evaluation kit. Bottom view.
  • 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 access Android partition images.
  • Enter fastboot mode - this should happen automatically, as CM-QS600 arrives with no valid boot partition.
Admolition note.png There exist additional options for forcing fastboot mode.
  • 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
  • Reboot the CM-QS600 evaluation system:
$ fastboot reboot

Boot

  • Power on
  • Wait for the boot process to complete

See Also