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

From Compulab Mediawiki
Jump to: navigation, search
(Normal operation)
Line 1: Line 1:
== Preconditions ==
+
== Overview ==
* PC workstation
+
The following outlines the procedure necessary to install Android on CM-FX6.
* CM-FX6 evaluation kit [[Media:CM-FX6_Properly_Connected2.jpg|properly connected]]
 
* SD-Card with minimal capacity of 2GB, which will serve as the boot source
 
  
== Creating a bootable SD-Card ==
+
== Installation target media ==
* Download compressed [http://compulab.co.il/products/computer-on-modules/cm-fx6/#devres SD-Card image].
+
CM-FX6 may use either SD card (P6) or SATA SSD as root file system.
: Ensure integrity of the downloaded file by testing its MD5 summary.
+
 
 +
== Installation onto SD card ==
 +
=== Preconditions ===
 +
* [[Media:CM-FX6_Properly_Connected2.jpg|Properly connected]] CM-FX6 evaluation kit with valid U-Boot
 +
* SD-Card with minimal capacity of 2GB, which will serve as boot medium and root file system
 +
* PC workstation for creating bootable SD-Card  
 +
 
 +
=== Prepare bootable SD-Card ===
 +
* Download prebuilt [http://compulab.co.il/products/computer-on-modules/cm-fx6/#devres Android image].
 
* Unzip the file in order to get ''dd'' image.<br/>
 
* Unzip the file in order to get ''dd'' image.<br/>
* Copy the bootable image to the SD-Card following the [https://help.ubuntu.com/community/Installation/FromImgFiles instructions provided] for selection of operating systems.
+
* Flash the bootable image to the SD-Card following the [https://help.ubuntu.com/community/Installation/FromImgFiles directions].
: On Linux, the instructions below may may be used instead:
+
: On Linux, the instructions below may be used instead:
 
<pre>
 
<pre>
# dd if=cmfx6-android.img of=/dev/sdc
+
# dd if=cmfx6-android.img of=/dev/sdc bs=4M
 
</pre>
 
</pre>
  
== Boot ==
+
=== Boot ===
* Insert the bootable SD-Card into P6 SD-Card slot.
+
* Insert bootable SD-Card into SD-Card slot (P6)
* Power on.
+
* Power on
 
* Within 3 seconds the device should start booting into Android.
 
* Within 3 seconds the device should start booting into Android.
 
: Within 60 seconds the HDMI display should start showing ''signs of life''.
 
: Within 60 seconds the HDMI display should start showing ''signs of life''.
  
=== Advanced boot ===
+
== Post Install Procedure ==
By default CM-FX6 uses HDMI display with 1080p resolution.<br/>
+
* On first boot, proceed to '''Settings'''->'''Developer options''', check '''Stay awake ... while charging''' to prevent the device from going to suspended state.
This can be changed by providing alternate boot arguments to the Android/Linux kernel.
+
{{Note|If '''Developer options''' item is hidden (as is the default in Jelly Bean), re-introduce it proceeding to '''Settings'''->'''About tablet''' and clicking on '''Build number''' 7 times consequently.}}
* Connect to the serial console as explained in the [[CM-FX6: Android: Serial console connection | Development]] section.
+
* Default display configuration may be overridden following the ''display configuration'' [[CM-FX6: Android: Operating instructions | directions]].
* Press ENTER to stop the countdown.
 
<pre>
 
setenv videomode video=mxcfb0:dev=ldb,if=RGB24,1280x720M@60 fbmem=28M      # DVI display with 720p resolution
 
setenv videomode video=mxcfb0:dev=hdmi,if=RGB32,1920x1080M@60 fbmem=48M    # default video mode
 
setenv videomode video=mxcfb0:dev=lcd,if=RGB666,SCF04-WVGA                # LCD display connected P50 LCD connector
 
</pre>
 
* Type in '''boot''' to proceed to kernel boot overriding default video mode.
 
 
 
== Normal operation ==
 
* If the CM-FX6 module went to sleep, it can be woken up by a short press on '''ON/OFF''' button on the base board.
 
: Additional press on '''ON/OFF''' button will send the device back to sleep.
 
: Pressing and holding the '''ON/OFF''' button for more than 5 seconds, will unconditionally power the module down. This operation is pretty much equivalent to unplugging the power supply, so it should really be considered the last resort.
 
: Yet another press on '''ON/OFF''' button will bring the power back.
 
* Graceful shutdown
 
: Due to specifics of i.MX6 SoC hardware, the ON/OFF button cannot be used to bring up the Android '''Power off''' menu.
 
: CM-FX6 pre-configures GPIO 29 (P18, pin 2 on SB-FX6 base board) as GPIO Power Button. As GPIO 29 has an internal pull-up resistor, it can be momentarily connected to the ground to produce a 'power button press'. Short press will behave identically to short press on ON/OFF button, whereas long press will bring up the '''Power off''' menu allowing graceful shutdown.
 
  
 
== See Also ==
 
== See Also ==

Revision as of 07:32, 6 April 2014

Overview

The following outlines the procedure necessary to install Android on CM-FX6.

Installation target media

CM-FX6 may use either SD card (P6) or SATA SSD as root file system.

Installation onto SD card

Preconditions

  • Properly connected CM-FX6 evaluation kit with valid U-Boot
  • SD-Card with minimal capacity of 2GB, which will serve as boot medium and root file system
  • PC workstation for creating bootable SD-Card

Prepare bootable SD-Card

  • Download prebuilt Android image.
  • Unzip the file in order to get dd image.
  • Flash the bootable image to the SD-Card following the directions.
On Linux, the instructions below may be used instead:
# dd if=cmfx6-android.img of=/dev/sdc bs=4M

Boot

  • Insert bootable SD-Card into SD-Card slot (P6)
  • Power on
  • Within 3 seconds the device should start booting into Android.
Within 60 seconds the HDMI display should start showing signs of life.

Post Install Procedure

  • On first boot, proceed to Settings->Developer options, check Stay awake ... while charging to prevent the device from going to suspended state.
Admolition note.png If Developer options item is hidden (as is the default in Jelly Bean), re-introduce it proceeding to Settings->About tablet and clicking on Build number 7 times consequently.
  • Default display configuration may be overridden following the display configuration directions.

See Also