FlashPreBuildDemo

Flash Pre-built Demo

There are two types of demo packages:

  • NAND flash based: Android system works on NAND flash
  • SD card based: Android system works on SD card

Nand Flash Based

Connect Device in SamBA Mode To PC

  • Connect a USB cable between the board and PC
  • Connect a serial link between DBGU connector and PC, then open a terminal emulator program on PC
  • Choose the proper procedure depending on your chip
    • Power down the board
    • Check and conform to the Default Jumpers Settings
      • For other boards, please refer to the schematics respectively
    • Warning, important BMS shall be configured to boot from the on-chip Boot ROM
    • Disable NAND Flash chip select
    • Power up the board
    • Verify that the USB connection is established
    • Enable NAND Flash chip select

Flash into Nandflash

After the target is connected to the PC successfully, we can run the batch file (.bat) in the pre-built package to flash the Android demo into Nandflash.

Before doing this we need to enable Nandflash chip select.

  1. Unzip above Nandflash based demo package file
  2. Run the batch file from the unzip folder (*.bat)
  3. Wait for the log file: logfile.log (Opened by notepad.exe). This will take a few minutes. Debug messages can be observed from the DBGU port.
  4. Close the logfile.log (by close the Notepad)

Warning, important NOTE: If anything goes wrong, the logfile.log and the output of DBGU are helpful for you to find what the problems are.

Bootup from Nandflash

After nand flash base demo package has been flashed into your EK board:

  1. Reset target EK board
  2. Wait about 1 minute for android booting up

Warning, important NOTE: If anything goes wrong, the output of DBGU is helpful for you to find where the problems are.

SD Card Based

Generate SD card

We need to use Linux host PC with SD card device to program SD Card based demo.

  1. Unzip the SD Based Demo package.
  2. Copy the demo image file (*.img, for example: Android-2.3.7_r1-sam9m10-sdboot.img) to Linux host
  3. Write image file to SD Card

    For Linux platform you can
    $ dd if=Android-2.3.7_r1-sam9m10-sdboot.img of=/dev/sdb
    Here, we assume the demo image file is in current directory, and /dev/sdb for SD card device node as an example
    Warning, important You need to specify the correct device name, or you may come across the data loss.

    For Windows platform, you can use the tool from http://win32diskimager.sourceforge.net/ to write the image file to SD Card.

TIP To find out the device node of the SD Card you are using, you could use:

$ mount
before and after you insert your SD card. The newly added device after you insert your SD Card is the device node of your SD Card.

TIP We assume SD Card size is larger than 2GB.

Boot from SD Card

ALERT! As the SD Card is chosen as the boot device, you need to disable all external booting memory

  • Dataflash boot
  • NOR flash boot
  • NAND flash boot
Please refer to schematics for chip select configuration

  1. After the SD Card has been flashed successfully, insert SD card on EK board and power on the system.
  2. Wait about 1 minute for android booting

Warning, important NOTE: If anything goes wrong, the output of DBGU is helpful for you to find what the problems are.

See also: PlayingWithAndroid, GettingStarted, Requirements

r13 - 18 Nov 2014 - 02:21:35 - VoiceShen
 
Android4SAM

Copyright by the contributing authors. All material on the platform is the property of the contributing authors.

Android is a trademark of Google Inc. Use of this trademark is subject to Google Permissions

Atmel and others, are registered trademarks or trademarks of Atmel or its subsidiaries.This site is powered by the TWiki collaboration platform

ARM and others are registered trademarks or trademarks or ARM Ltd. Other terms and product names may be trademarks of others.

Under the terms of the Creative Commons Attribution License

Syndicate this siteRSS ATOM

antalya escort bayan escort bursa bayan eski┼čehir escort bayan istanbul escort bayan izmir escort bayan