Chapter 1 Hardware and Software Introductions of pcduino



Similar documents
4/2/2014 Linux Dev-Boards. Linux Dev Boards. Tagung Forth Gesellschaft e.v. Maerz file:///home/cas/talk/linux-boards/html/linux-boards.

BeagleBone Black: Installing Operating Systems

Banana Pi Open-Source Router Board

Adafruit's Raspberry Pi Lesson 1. Preparing an SD Card for your Raspberry Pi

Mini Android PC. User Manual. Copyright Edis Trading (HK) Limited All Rights Reserved.

Raspberry Pi Setup Tutorial

Specifications. What s Inside The box

ATV310B User Manual. V1.1

1. Check the Accessories

AlienVault. Unified Security Management x Offline Update and Software Restoration Procedures

Intro to Intel Galileo - IoT Apps GERARDO CARMONA

Intel Compute Stick STCK1A32WFC User Guide. Intel Compute Stick STCK1A32WFC

Using AORUS Notebook for the First Time

Yun Shield User Manual VERSION: 1.0. Yun Shield User Manual 1 / 22.

Using GIGABYTE Notebook for the First Time

Workshop Intel Galileo Board

7inch HDMI LCD (B) User Manual

Using GIGABYTE Notebook for the First Time

Point of View SmartTV-500 Center - Android 4.2. General notices for use...2 Disclaimer...2 Box Contents...2

Mini PC Quick Start Guide

Adafruit's Raspberry Pi Lesson 5. Using a Console Cable

MobileLite Wireless G2 5-in-1 Mobile Companion User Manual

Using GIGABYTE Notebook for the First Time

Qt on Raspberry Pi. Jeff Tranter Integrated Computer Solutions (ICS) Qt Developer Days

10 Magni Tablet User Guide

RKM MK902II User Manual. Shenzhen Rikomagic Tech Corp.,Ltd. Page0

HARDWARE MANUAL. BrightSign HD120, HD220, HD1020. BrightSign, LLC Lark Ave., Suite 200 Los Gatos, CA

Technical Note TN_146. Creating Android Images for Application Development

Using GIGABYTE Notebook for the First Time

Point of view HDMI Smart TV dongle Mini RF Keyboard

MediaQ M310. Quick Start HUAWEI TECHNOLOGIES CO., LTD.

Point of View SmartTV HDMI 210 dongle - Android 4.2. General notices for use... 2 Disclaimer... 2 Box Contents... 2

HP EliteBook and ProBook Notebook PCs - Upgrading from Windows 7 to Windows 8

3.5 EXTERNAL NETWORK HDD. User s Manual

Using GIGABYTE Notebook for the First Time

User Manual 9.7 Tablet Android 4.0

User Manual. Product Model: MiTraveler 10C3. OS: Android 4.0

M Us U e s r e Ma M n a u n a u l 9 4" Ta T b a l b e l t e An A d n r d o r i o d i

TEGRA LINUX DRIVER PACKAGE R21.1

Reboot the ExtraHop System and Test Hardware with the Rescue USB Flash Drive

Quick Start Guide. The Raspberry Pi Single Board Computer. Source: Raspberry Pi & Wiki

EZblue BusinessServer The All - In - One Server For Your Home And Business

Ultra Thin Client TC-401 TC-402. Users s Guide

This software will update your Samsung Galaxy S II to Android software version GB28.

FreeTAB 1017 IPS2 X4+ Sint-Truidensesteenweg Hakendover

CPSC 226 Lab Nine Fall 2015

Point of View ProTab 3XXL IPS - Android 4.0 Tablet PC. Contents... 1 General notices for use... 2 Disclaimer... 2 Box Contents...

Using GIGABYTE Notebook for the First Time

How to Install Applications (APK Files) on Your Android Phone

MOI DVB-S2 Streaming Box Quick Start Guide

MediaTek LinkIt Smart 7688 FAQ

Addonics T E C H N O L O G I E S. NAS Adapter. Model: NASU Key Features

Revision History. Revision Revision History Date

User Manual. 2 ) PNY Flash drive 2.0 Series Specification Page 3

RKM MK802IIIS/MK802 IV User Manual USER MANUAL

Introduction to Mirametrix EyeTracker

Using GIGABYTE Notebook for the First Time

NetPoint Configuration Guide. for thin clients

USER MANUAL ITV101E v.1.0. PlayXtreme INTERNET TV HUB

Using GIGABYTE Notebook for the First Time

SBC8100 Single Board Computer

EZCast Universal WiFi Display Dongle Quick Instal ation Guide Ver. 1.3

7 Mini Tablet User Guide

Dell DR4000 Disk Backup System. Introduction to the Dell DR4000 Restore Manager A primer for creating and using a Restore Manager USB flash drive

User Manual. Product Model: MiTraveler 7D-4A. OS: Android 4.0

EZCast User s Manual

«Disaster Recovery» A DOM Restore Guide for Thecus NAS

Point of View Mobii Android 4.2 Tablet PC. General notices for use... 2 Disclaimer... 2 Box Contents... 2

Wireless Presentation System User s Manual

Puppy Linux Installation To a USB Flash Drive How to install Puppy Linux lupu Lucid to a Flash Drive

2.5" XTreme Files OS & Data Backup/Restore User Manual Please read the Instruction manual before using the XTreme Files (X Series) 1.

SBC8600B Single Board Computer

Getting Started Guide with WIZ550web

Industry First X86-based Single Board Computer JaguarBoard Released

Network USB Storage Link

US Cellular : How Do I Update The Software On My US Cellular SCH-R880 (Acclaim) Phone To Android 2.2 Froyo DL25 Build?

1. Open the battery compartment as shown in the image.

Installing the Operating System or Hypervisor

Raspberry Pi Android Projects. Raspberry Pi Android Projects. Gökhan Kurt. Create exciting projects by connecting Raspberry Pi to your Android phone

Chapter 5 Cubix XP4 Blade Server

M3 User Manual Tablet Android 4.1

Intel Do-It-Yourself Challenge Lab 2: Intel Galileo s Linux side Nicolas Vailliet

Archives About ARCHOS TV+

Canvio Home FAQ. is designed to be very easy to install and use to back up, share, and remotely access the files from your computers.

Tablet PC User Manual

System Firmware Update Instructions for AVH-4000NEX

Adafruit's Raspberry Pi Lesson 5. Using a Console Cable

XTreme Files OS & Data Backup/Restore User Manual Please read the Instruction manual before using the XTreme Files (F Series) 1.

How To Use An Action Replay Dsi On A Datel Dsi On A Pc Or Dsii On A Playstation 2 On A Ds 2 On Pc Or Playstation 3 On A Ipad Or Playboy Ds (D

User Manual. 2 Bay Docking Station

Seagate Business Storage 8-bay Rackmount NAS Reviewer s Guide

Samsung Galaxy S II Software Upgrade

Video/Cameras, High Bandwidth Data Handling on imx6 Cortex-A9 Single Board Computer

MF652 USB Modem User Guide

NAS HARD DRIVE ENCLOSURE USER MANUAL. S T O R E n S H A R E MUSIC DATA PHOTO MOVIE

USB Bare Metal Restore: Getting Started

Series. Laser air Leddura Lexinus Mensa. 70 inch. Smart innovation! When function matters.

A+ Guide to Software: Managing, Maintaining, and Troubleshooting, 5e. Chapter 3 Installing Windows

Transcription:

Chapter 1 Hardware and Software Introductions of pcduino pcduino is a high performance, cost effective mini PC platform that runs PC like OS such as Ubuntu Linux. It outputs its screen to HDMI enabled TV or monitor via the built in HDMI interface. It is specially targeted for the fast growing demands from the open source community. The platform could run full blown PC like OS with easy to use tool chain and compatible with the popular Arduino ecosystem such as Arduino Shields and open source projects etc. It can also run Android 4.0 ICS. The hardware specification of pcduino is as follows: Items CPU GPU DRAM Onboard Storage Video Output OS Extension Interface Network interface Power Details AllWinner A10 SoC, 1GHz ARM Cortex A8 OpenGL ES2.0, OpenVG 1.1 Mali 400 core 1GB 2GB Flash Micro-SD card slot for up to 32GB HDMI Linux3.0 + Ubuntu12.04 Android ICS 4.0 Arduino Headers USB WiFi extension (not included) Ethernet 10/100Mbps 5V, 2A The following are top and bottom views of pcduino:

pcduino targets for two markets primarily, i.e., the Raspberry Pi mini PC market and Arduino market as open-source electronics prototyping platform. With pcduino, user could do lots of fun stuff including but not limited to the follows: Learn or teach programming Work with hardware port Use Internet browser or Office from Ubuntu Learn Ubuntu linux Create media center with XBMC Play game DIY projects

Required Accessories Micro-USB port power adaptor ( 5V, 2000mA) Display with HDMI port HDMI cable If you don t have a HDMI monitor, you can use HDMI to DVI cable to connect to a DVI monitor or a HDMI to VGA cable to connect to a VGA monitor. USB keyboard (must) USB Hub and USB mouse ( optional but strongly recommended ) Some Dupont Lines to connect pcduino with test devices

Micro-SD card and its card reader Note: Before run the following samples, Connect pcduino with the devices correctly: USB host port => USB hub => keyboard & mouse HDMI port => HDMI cable => HDMI display pcduino board I/O interface description The detailed schematics can be downloaded from: https://s3.amazonaws.com/pcduino/hardware/pc+duino_v01-20130128.pdf Here is the list of I/O interfaces on pcduino board. 1. 14 digital pins for GPIO: GPIO max out current is 4mA. 2. One UART RX, one UART TX 3. Two PWM pins, support up to 24MHz. 4. Six ADC pins, ADC 0 and ADC 1 are 6 bits resolution, while the rest are 10 bits resolution. 5. Four SPI pins 6. Two I2C pins It supports to connect any Arduino shield with pcduino via any of the above I/O interfaces. It allows using pcduino with the same code used in Arduino.

Software pcduino supports both Ubuntu Linux and Android 4.0 ICS. When the book is written, the latest release version of Ubuntu for pcduino is 20130531. Ubuntu The factory default installation is Ubuntu in NAND flash. Ubuntu can boot from either NAND flash or a bootable microsd card. Ubuntu in NAND flash: If we want to reinstall Ubuntu or update Ubuntu in NAND flash, there are two options: Install Ubuntu using microsd cards. Install Ubuntu using through USB port using Livesuit. In the following we are going to introduce each one. How to install Ubuntu using microsd cards: The installation process involves two steps: 1) Install Linux kernel (use microsd card #1) and 2) Install Ubuntu file system (use microsd card #2 or a USB flash drive, which needs to be formatted as FAT). The microsd card should be 2GB minimal. In every pcduino ubuntu release, there are two versions of kernel image. One is for Phonexcard tool that is used to create microsd card #1 (This is the same file that is used by Livesuit, which will be discussed later). The other is for Win32DiskImager (windows) or dd (under linux) that is used to create microsd card #1. Phonexcard can be downloaded from https://s3.amazonaws.com/pcduino/tools/phoenixcardv306_20120302.rar

Win32DiskImager can be downloaded from: https://s3.amazonaws.com/pcduino/tools/win32diskimager-v0.7-binary.zip or http://sourceforge.net/projects/win32diskimager Burn the kernel in Linux PC a) Insert the micro-sd card to Linux PC or pcduino, the card will be mounted automatically. To continue, un-mount all the partitions on the card. For example, If the SD has two partitions: $ sudo umount /dev/mmcblk0p1 $ sudo umount /dev/mmcblk0p2

b) Then burn the downloaded and unzipped image file (a10_kernel_disk32imager_20130403.img) to the micro-sd card with the following command: $ sudo dd if=/udisk/a10_kernel_disk32imager_20130403.img of=/dev/mmcblk0 bs=1m $ sudo sync The of=/dev/mmcblk0 points to the micro-sd card. Cautions: Don t use of=/dev/xxx to point to your hard disk. It will destroy the contents in your hard disk. Now the micro-sd card is ready for use to burn the OS image to internal flash. c) Burn the OS image to internal flash from micro-sd card i. Plug the micro-sd card to the pcduino, power on the board, and then wait for one minute ii. Eject the TF card and reset the device. If you see the RX LED stays on, and the TX LED is blinking, the kernel is updated successfully Burn the kernel in MAC OS PC a) Open the terminal in MacOS, insert the micro-sd card, the card will be mounted automatically. To continue, un-mount all the partitions on the card. For example, If the SD has two partitions: $ sudo umount /dev/disk1s1 $ sudo umount /dev/disk1s2 If the SD card is failed to umount, you can use the following script to force umount: $ sudo diskutil umount force /dev/disk1s1 $ sudo diskutil umount force /dev/disk1s2 b) Then burn the downloaded and unzipped image file (a10_kernel_disk32imager_20130403.img) to the micro-sd card with the following command: $ sudo dd if=/udisk/a10_kernel_disk32imager_20130403.img of=/dev/disk1 bs=1m The of=/dev/disk1 points to the micro-sd card. After this command is complete, your Mac PC will pop up the message can t identify the SD card that indicates the file system in your card is unknown to Mac PC now. Cautions: Don t use of=/dev/xxx to point to your hard disk. It will destroy the contents in your hard disk.

Now the micro-sd card is ready for use to burn the OS image to internal flash. c) Burn the OS image to internal flash from micro-sd card i. Plug the micro-sd card to the pcduino, power on the board, and then wait for one minute ii. Eject the TF card and reset the device. If you see the RX LED stays on, and the TX LED is blinking, the kernel is updated successfully After we create microsd card #1, insert microsd #1 into the SD slot, and power cycle the board. When the board starts to burn image file from SD card to flash, the TX LED will blink slowly. Wait for about one minute, if the kernel is updated successfully, the LEDs will be off. Now, we are ready to flash Ubuntu file system to NAND flash. In every pcduino Ubuntu release, there is a file ball named Ubuntu, this is Ubuntu file system. Download the Ubuntu file, and unzip it to get two files like these: - Update.sh: shell script for Ubuntu update - Ubuntu_xxx.img: image file for Ubuntu Copy the two files to micro SD #2 or a USB flash drive, which must be formatted as FAT. Power cycle pcduino, you will see booting information on the screen, and plug in micro SD #2 or USB flash drive when the message showing that it is looking for a disk containing Ubuntu file system. The screen will shows It will take about 10 minutes to finish. Please wait patiently and the screen will prompt that it finished updating. When that is done, remove the microsd card, and power cycle pcduino. Tips: The microsd card #1 is specially created to allow it to be recognized by the ROMBOOT of the board. To avoid the unexpected update of pcduino, we can use the PhoenixCard to restore it to normal and clean card i. Plug your micro-sd card to your PC, run PhoenixCard.exe. ii. Select the micro-sd card in the disk scroll window, and choose Format to Normal to restore the card. How to install Ubuntu using LiveSuit: LiveSuit is a free tool which can upgrade firmware by USB device. To use this tool, you must install two USB drivers. You can download the tool and drivers and read the user manual from:

https://s3.amazonaws.com/pcduino/tools/livesuit.rar Note: LiveSuit is not very stable on Windows Vista or Windows 7, and it does not work well on 64 bits CPU. So this tool is not recommended. Ubuntu in bootable microsd card: In every pcduino Ubuntu release, there is a file named SD bootable image. This file is intended to create a bootable microsd card, so we can put all of our application and data on the SD card instead of the space-limited NAND flash. Steps: 1. Download the bootable microsd card image. 2. Unzip it and get xxx.img 3. Burn the unzipped image file above to the micro-sd card with win32diskimager or dd in Linux PC or pcduino 4. Plug the micro-sd card into pcduino and power cycle pcduino. 5. Ubuntu will be up running. By default, the file system only uses 2GB. If you have a more space on your SD card, it is not used by default. We are going to use a script to expand the file system to the whole SD card. $wget https://s3.amazonaws.com/pcduino/samplecode/system/expandfs/expand _sdcard_rootfs.sh $sudo bash./expand_sdcard_rootfs.sh

After the expansion, we reboot pcduino by: $sudo reboot After reboot, we run: sudo resize2fs /dev/mmcblk0p2

Check the storage space again using $df -h

Backup NAND to a SD card, and boot from SD card pcduino has an onboard NAND of 2GB. When we are doing heavy duty project development, we can easily eat up all the space. When that happens, we need a way to move all the program and data from NAND to a SD of larger capacity and make that SD bootable. The key function we are going to use is: make_mmc_boot Clone system from nand to mmc card This function will copy the entire content in NAND to a SD card. This is equivalent to flash an mmc-boot image. The benefit is that users still keep their own program/data. When the space of NAND is not enough, we can use the SD card to replace the system in NAND. When the book is written, the latest image release is 20130531. In the original image 20130513, the above mentioned function is not there in board-config. We need to do an update in board-config to make it available. There are two ways to run board-config. One is to run that after reset. The other is to run it in terminal. In the following, we are going to use the second approach. We type: $sudo board-config.sh

Next, we are going to choose Update : Then we choose config : After that, pcduino will check for update:

Press Y, and after the update is down, exit and re-run: $sudo board-config.sh The option make_mmc_boot will display in the menu:

Plug in a SD card (in our case, a card of 16GB) to the SD slot, and press ENTER : It takes some time to backup:

After a long wait, we will get the following message: We reboot pcduino, and check the storage space using: $df h

In the above figure, we can see that although the SD card is of capacity 16GB, it only shows up as 2GB. We are going to use a script to expand the file system to the whole SD card. $wget https://s3.amazonaws.com/pcduino/samplecode/system/expandfs/expand _sdcard_rootfs.sh $sudo bash./expand_sdcard_rootfs.sh

After the expansion, we reboot pcduino by: $sudo reboot After reboot, we run: sudo resize2fs /dev/mmcblk0p2

Check the storage space again using $df -h

We can see that we get a full access to the SD card. Android The factory default installation is Ubuntu in NAND flash. Android in NAND flash: If we want to reinstall Android or update Android in NAND flash, there are two options: Install Ubuntu using microsd cards. Install Ubuntu using through USB port using Livesuit. In the following we are going to introduce each one. How to install Android using microsd card: 1. Download the Android operating system for pcduino The download link is: http://www.pcduino.com/?page_id=14 Find the link for Android image, download it and get one file with.img extension. Phonexcard can be downloaded from https://s3.amazonaws.com/pcduino/tools/phoenixcardv306_20120302.rar

2. Write pcduino Android image to micro-sd card (a) Plug your micro-sd card to your PC, run PhoenixCard.exe. You will see something like this: (b) Choose the Android image file pcduino_android_ xxx.img that you ve downloaded and write it to the micro-sd card

After a few minutes, the micro-sd card is ready to use. 3. Burn the OS image to internal flash from micro-sd card a) Plug the micro-sd card to the pcduino and then power on the board. Wait for about four minutes b) Eject the micro-sd card and reset the device * We have a catch in step (a). We don't have any LED to indicate when the boot image is burned completely unless you connect the hyperterminal to pcduino, so please wait for four minutes patiently. Moreover, please eject the TF card before resetting the device. Otherwise, it will start to burn the OS image again if the TF card is inserted. 4. Restore the micro-sd card created The micro-sd card is specially created to allow it to be recognized by the ROMBOOT of the board. To avoid the unexpected update of the Android OS, use the PhoenixCard to restore it to normal and clean card iii. Plug your micro-sd card to your PC, run PhoenixCard.exe. iv. Select the micro-sd card in the disk scroll window, and choose Format to Normal to restore the card.

How to install Android using LiveSuit: LiveSuit is a free tool which can upgrade firmware by USB device. To use this tool, you must install two USB drivers. You can download the tool and drivers and read the user manual from: https://s3.amazonaws.com/pcduino/tools/livesuit.rar Note: LiveSuit is not very stable on Windows Vista or Windows 7, and it does not work well on 64 bits CPU. So this tool is not recommended.

Use pcduino as an mini PC platform 1) pcduino and Ubuntu pcduino & Ubuntu support customized Ubuntu linux 12.04 that is specially optimized for running on ARM cortex platform with limited DRAM and NAND flash support. The device could be operated with the USB mouse and keyboard. The supported application list consists of the follows: Items Details Terminal Use build in LXTerminal application from desktop Launch terminal application, run standard linux commands or vi editor etc. Launch C/C++ compile (use gcc), assembly and execution File browser Use build in File Manager from desktop Used for typical file management Internet browser Use chromium web browser from desktop Support HTML5 Office Use Document Viewer from desktop for PDF file view Use Gnumeric from desktop for Excel file view and edit Use AbiWord from desktop for Word file view and edit Movie player Use MPlayer from desktop Servers VNC server SSH Could playback audio, video and image Development Arduino IDE for pcduino Note: The root user and password are ubuntu. 6.2 pcduino and Android pcduino board supports customized android 4.0 that is specially optimized for HD-TV output display devices. The device could be operated with the USB mouse and keyboard. The supported application list consists of but not limited the follows: Items Details File browser Use build in File Manager Used for typical file management Internet browser Use web browser from desktop or Google Search widget Support HTML5 Calendar Gmail People App Store Google Calendar Visit Gmail accounts Google contacts apps Use Google play store to download third-party apps

Music Android built-in music player Movie player built-in Super-HD Player to play local movies