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
- 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.
- Unzip above Nandflash based demo package file
- Run the batch file from the unzip folder (*.bat)
- 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.
- Close the
logfile.log (by close the
NOTE: If anything goes wrong, the
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:
- Reset target EK board
- Wait about 1 minute for android booting up
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.
- Unzip the SD Based Demo package.
- Copy the demo image file (
*.img, for example:
Android-2.3.7_r1-sam9m10-sdboot.img) to Linux host
- 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
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.
To find out the device node of the SD Card you are using, you could use:
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.
We assume SD Card size is larger than 2GB
Boot from SD Card
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
- After the SD Card has been flashed successfully, insert SD card on EK board and power on the system.
- Wait about 1 minute for android booting
NOTE: If anything goes wrong, the output of DBGU is helpful for you to find what the problems are.
See also: PlayingWithAndroid