CM-FX6: Android: Getting started

From Compulab Mediawiki
Revision as of 09:03, 11 July 2013 by Grinberg (talk | contribs) (Normal operation)
Jump to: navigation, search

Preconditions

  • PC workstation
  • CM-FX6 evaluation kit properly connected
  • SD-Card with minimal capacity of 2GB, which will serve as the boot source

Creating a bootable SD-Card

Ensure integrity of the downloaded file by testing its MD5 summary.
  • Unzip the file in order to get dd image.
  • Copy the bootable image to the SD-Card following the instructions provided for selection of operating systems.
On Linux, the instructions below may may be used instead:
# dd if=cmfx6-android.img of=/dev/sdc

Boot

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

Advanced boot

By default CM-FX6 uses HDMI display with 1080p resolution.
This can be changed by providing alternate boot arguments to the Android/Linux kernel.

  • Connect to the serial console as explained in the Development section.
  • Press ENTER to stop the countdown.
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
  • 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