rom-1210 evaluation kit - advantech

93
ROM-1210 Evaluation Kit Freescale i.MX53 Pr ocessor -ARM® Cortex™ A8 Architecture

Upload: khangminh22

Post on 12-May-2023

1 views

Category:

Documents


0 download

TRANSCRIPT

ROM-1210 Evaluation Kit

Freescale i.MX53 Processor -ARM® Cortex™ A8 Architecture

I ROM-1210 Evaluation Kit User Manual

Ch

apter1 O

verview

Part No. 2062121013 Edition 1.1

Printed in Taiwan Jul. 2012

Copyright The documentation and the software included with this product are copyrighted 2011 by Advantech Co., Ltd. All rights are reserved. Advantech Co., Ltd. reserves the right to make improvements in the products described in this manual at any time without notice. No part of this manual may be reproduced, copied, translated or transmitted in any form or by any means without the prior written permission of Advantech Co., Ltd. Information provided in this manual is intended to be accurate and reliable. However, Advantech Co., Ltd. assumes no responsibility for its use, nor for any infringements of the rights of third parties, which may result from its use.

Acknowledgements ARM is trademarks of ARM Corporation. Freescale is trademarks of Freescale Corporation. Microsoft Windows are registered trademarks of Microsoft Corp. All other product names or trademarks are properties of their respective owners.

ROM-1210 Evaluation Kit User Manual II

Packing List Before setting up the system, check that the items listed below are included and in good condition. If any item does not accord with the table, please contact your dealer immediately.

� ROM-1210 (COM: ROM-1210CF-A78BAE; CSB: 96920CSB02E) � LCD-LED Backlight 7" LVDS RGB, 97G070V1N0F-2 (P/N: 96LEDK-

A070WV32RB1) � LCD Backlight Cable (P/N: 1700014438) � LVDS Cable (P/N: 1700014418) � Touch Cable (P/N: 1700000194) � SATA Power Cable (P/N: 1700018785) � SATA Signal Cable (P/N:1700004711) � Speaker & Audio Cable (P/N: 1700019546-11) � F Cable IDE #2 10P-2.0/D-SUD 9P(M) (P/N: 1700100250) � Mini USB Client Cable (P/N: 1700019077) � Mini USB Host Cable (P/N: 1700019076) � USB Type-A Host (P/N: 1700019129) � RS-232 and RS-485 Cable (P/N: 1700019474) � RS-422 Cable (P/N: 1700019476) � Adapter 100-240V 65W 19V 3.42A 9NA0651256 (P/N: 1757003734) � F Cable IDE#2 10P-2.0/D-SUB 9P(M) 25CM x 2 (P/N: 1700100250) � Terminal connector 9P Female (P/N: 1654909900) � SQFlash SD Card SLC 2G, 2CH(-40~85°C)(P/N: SQF-ISDS2-2G-ETE)

� DVD-ROM for ROM-1210 Evaluation Kit V1.2 (P/N: 2062121012)

===Power Cord (Optional)=== � 3 pin Power Cord for USA standard (P/N: 1700001524) � 3 pin Power Cord for Europe standard (P/N: 170203183C) � 3 pin Power Cord for UK standard (P/N: 170203180A)

===Testing Board Module (Optional)=== � ROM-1210 Testing Board (P/N:9692MX5321E) � F Cable IDE#2 44P-2.0/IDE#2 44P-2.0 15CM (P/N: 1701440151)

===SATA DOM Module (Optional)=== � SQF SATA DOM VH 2GB SLC 2-CH (P/N: SQF-SDMS2-2G-VHE) � Power Cable for SATA DOM(P/N: 1700019707) ===Video Board Module (Optional)=== � Video Board (TTL to dual LVDS, VGA, and HDMI) (P/N: 96920CSB10E) � A CABLE 2*20P-1.25/2*20P-1,25+G-TEM*2 17CM (P/N: 1700002289) � A CABLE 2*5P-2.0/2*5P-2.0 20CM (P/N: 1700018332) � A CABLE 1*30P-1.25/2*20P-1.25+G-TEM 20CM (P/N: 1700017887) ===Battery (Optional)=== � Battery 11.1V 6300mAh 3S3P (P/N: 1760001300) ===21.5” Dual LVDS LCD Module (Optional)=== � AUO 21.5" CCFL PANEL 400N 1920X1080 (P/N: 96LCDK-A215FH40NX1) � PROMATE 95DBK215V6A0F (P/N: 9680013484) � Dual LVDS cable (P/N: 1700019709) � Power cable for Inverter (P/N: 1700019706) ===Keypad (Optional)=== � F Cable 2*10P-2.0/2*10P-2.0 18cm (P/N: 1703200180) � 8*8 keypad (P/N: 96969315A0E)

III ROM-1210 Evaluation Kit User Manual

Ch

apter1 O

verview

Safety Instructions

1. Read these safety instructions carefully. 2. Keep this User Manual for later reference. 3. Disconnect this equipment from any AC outlet before cleaning. Use a

damp cloth. Do not use liquid or spray detergents for cleaning. 4. For plug-in equipment, the power outlet socket must be located near the

equipment and must be easily accessible. 5. Keep this equipment away from humidity. 6. Put this equipment on a reliable surface during installation. Dropping it or

letting it fall may cause damage. 7. The openings on the enclosure are for air convection. Protect the

equipment from overheating. DO NOT COVER THE OPENINGS. 8. Make sure the voltage of the power source is correct before connecting

the equipment to the power outlet. 9. Position the power cord so that people cannot step on it. Do not place

anything over the power cord. 10. All cautions and warnings on the equipment should be noted. 11. If the equipment is not used for a long time, disconnect it from the power

source to avoid damage by transient overvoltage. 12. Never pour any liquid into an opening. This may cause fire or electrical

shock. 13. Never open the equipment. For safety reasons, the equipment should be

opened only by qualified service personnel. 14. If one of the following situations arises, get the equipment checked by

service personnel:

� The power cord or plug is damaged.

� Liquid has penetrated into the equipment.

� The equipment has been exposed to moisture.

� The equipment does not work well, or you cannot get it to work according to the user’s manual.

� The equipment has been dropped and damaged.

� The equipment has obvious signs of breakage.

DISCLAIMER: This set of instructions is given according to IEC 704-1. Advantech disclaims all responsibility for the accuracy of any statements contained herein.

ROM-1210 Evaluation Kit User Manual IV

Contents Chapter 1 Introduction…………………………… 1

1.1 Introduction ......................................................................................................................2

1.2 Features ............................................................................................................................3

1.3 Hardware Specification ....................................................................................................4

1.4 Board Block Diagram ........................................................................................................6

Chapter 2 H/W Installation……………… ...………7

2.1 Development Kit H/W Installation ..................................................................................8

2.1.1 RTX-CSB (Part-A) ........................................................................................................... 10

2.1.2 ROM-1210 Module Board(Part-B) ................................................................................ 10

2.1.3 Keypad (Part-C1)........................................................................................................... 10

2.1.4 Keypad Cable (Part-C2) ................................................................................................. 10

2.1.5 7” LVDS LCD Module (Part-D1) ..................................................................................... 10

2.1.6 LCD Backlight Cable (Part-D2) ...................................................................................... 10

2.1.7 LVDS Cable (Part-D3) .................................................................................................... 11

2.1.8 Touch Cable (Part-D4) .................................................................................................. 11

2.1.9 SATA Power Cable (Part-E) ........................................................................................... 11

2.1.10 SATA DOM (Part-F) ..................................................................................................... 11

2.1.11 SATA Cable (Part-G) .................................................................................................... 11

2.1.12 Cable for Testing Board (Part-H) ................................................................................ 11

2.1.13 Speaker & Audio Cables (Part-I) ................................................................................. 11

2.1.14 Video Board (Part-J1) ................................................................................................. 11

2.1.15 TTL Cable for Video Board (Part-J2) ........................................................................... 11

2.1.16 Signal Cable for Video Board (Part-J3) ....................................................................... 12

2.1.17 Mini USB Host Cable (Part-K) ..................................................................................... 12

2.1.18 Mini USB Client Cable (Part-L) .................................................................................... 12

2.1.19 USB Type-A Cable (Part-M) ........................................................................................ 12

2.1.20 D-SUB 9P Serial Cable (Part-N) ................................................................................... 12

2.1.21 ADAM-4520I (Part-O) ................................................................................................. 12

2.1.22 19V Power Adapter (Part-P) ....................................................................................... 12

2.1.23 Power Cord (Part-Q) ................................................................................................... 12

2.1.24 Battery (Part-R)........................................................................................................... 12

2.1.25 UART Port Cable (D-SUB 9P to Housing) (Part-S) ....................................................... 12

V ROM-1210 Evaluation Kit User Manual

Ch

apter1 O

verview

2.1.26 Terminal Connector 9P Female (Part-T) ..................................................................... 13

2.1.27 Testing Board (Part-U) ................................................................................................ 13

2.1.28 SQFlash SD Card (Part-V) ............................................................................................ 13

2.2 RTX-CSB Connectors ...................................................................................................... 14

2.2.1 VGA Connector (CN1) ................................................................................................... 15

2.2.2 TV-Out RCA Jack (CN2) ................................................................................................. 16

2.2.3 S-Video Connector (CN7) .............................................................................................. 16

2.2.4 Ethernet LAN2 Connector (CN8) .................................................................................. 17

2.2.5 LVDS0 LCD Connector (CN9) ......................................................................................... 18

2.2.6 Pin Header for Matrix Keypad (CN10) .......................................................................... 19

2.2.7 Wafer for SATA power (CN11) ...................................................................................... 20

2.2.8 System Bus (CN12) ....................................................................................................... 21

2.2.9 Pin Header for SD2 (CN13) ........................................................................................... 23

2.2.10 SATA Connector (CN14) .............................................................................................. 24

2.2.11 MiniPCIe connector (CN15) and Latch (CN19) ........................................................... 25

2.2.12 100-pin B2B Connector (CN16A~D) ............................................................................ 26

2.2.13 Box Header for Timer, RFOUT, I2S, BT656, I2C, SPI and CAN bus (CN17) .................. 27

2.2.14 TTL LCD Connector (CN18) ......................................................................................... 29

2.2.15 Wafer for 12V Backlight (Max 0.5A) (CN20) ............................................................... 30

2.2.16 Box Header for LINE-OUT, LINE-IN, MIC-IN and L&R Speakers (CN21) ...................... 31

2.2.17 Wafer for battery (CN22) ........................................................................................... 32

2.2.18 Wafer for 4-wire T/S (CN23) ....................................................................................... 33

2.2.19 Pin Header for COM3 (RS-232)(CN24) ........................................................................ 34

2.2.20 Wafer for 12V Backlight (Max 1.5A) (CN25) ............................................................... 35

2.2.21 Pin Header for 20x pins GPIO (CN26) ......................................................................... 36

2.2.22 Pin Header for COM1 (RS-232) (Debug Port) (CN27) ................................................. 37

2.2.23 Pin Header for COM4 (RS-232) (CN28) ....................................................................... 38

2.2.24 Pin Header for COM5 (RS-232) (CN29) ....................................................................... 39

2.2.25 Pin Header for USB_HOST_2 (CN30) .......................................................................... 40

2.2.26 Pin Header for CSB_HUB_USB3 (CN31) ...................................................................... 41

2.2.27 Ethernet LAN Connector (CN32) ................................................................................ 42

2.2.28 USB CSB_HUB_1&2 (Standard Type-A) (CN33) .......................................................... 43

2.2.29 Line-Out Jack (CN34) .................................................................................................. 44

2.2.30 Mic-in Jack (CN35) ...................................................................................................... 45

ROM-1210 Evaluation Kit User Manual VI

2.2.31 HDMI Connector (CN36) ............................................................................................. 46

2.2.32 USB CSB_HUB_3 (Standard Type-A) (CN37) ............................................................... 47

2.2.33 DC-IN Power Jack(CN38) ............................................................................................ 48

2.2.34 USB OTG MINI-AB Connector (CN39) ......................................................................... 49

2.2.35 COM2, RS-232/422/485, D-SUB9 Connector (CN40) ................................................. 50

2.2.36 SIM Card slot (CN42) .................................................................................................. 51

2.2.37 Component-Y/Pb/Pr RCA Jacks (CN43, CN44, CN5) ................................................... 52

2.2.38 Pin Header for Video Board Control (CN45) ............................................................... 53

2.2.39 LVDS1 LCD Connector (CN46) ..................................................................................... 54

2.2.40 SD1 Slot (CN47) .......................................................................................................... 55

2.2.41 Suspend/Resume Button (SW1) ................................................................................. 56

2.2.42 Reset Button (SW2) .................................................................................................... 57

2.2.43 Switch for COM2 RS-232/422/485 and Bluetooth /UART3 (SW3) ............................. 58

2.2.44 Power ON/OFF Switch (SW4) ..................................................................................... 59

2.2.45 Switch for CSB_GPIO_1/LAN2 Enable (SW5) .............................................................. 60

2.2.46 Coin Battery (BAT1) .................................................................................................... 61

2.3 Mechanical .................................................................................................................... 62

2.3.1 Connector Location ...................................................................................................... 62

2.3.2 ROM-1210 Board Dimension ........................................................................................ 63

2.3.3 RTX-CSB Board Dimension ............................................................................................ 64

Chapter 3 Software Functionality……………...65

3.1 Package Content ............................................................................................................ 66

3.1.1 Package for Making Linux System SD Storage Card ..................................................... 66

3.1.2 Source Code Package ................................................................................................... 67

3.1.2.1 Cross Compiler .......................................................................................................... 67

3.1.2.2 Image ......................................................................................................................... 67

3.1.2.3 Rootfs (Root File System) .......................................................................................... 68

3.1.2.4 Scripts ........................................................................................................................ 69

3.1.2.5 Source ........................................................................................................................ 69

3.2 Setup Building Environment ......................................................................................... 70

3.2.1 Setenv.sh ...................................................................................................................... 71

3.3 Building instructions...................................................................................................... 71

3.3.1 Building U-boot image "u-boot.bin" ............................................................................. 71

3.3.1 Building Linux Kernel Image ......................................................................................... 72

VII ROM-1210 Evaluation Kit User Manual

Ch

apter1 O

verview

3.3.2 Build Log ....................................................................................................................... 72

3.4 Source Code Modification ............................................................................................. 72

3.4.1 Adding a Driver to Kernel ............................................................................................. 72

3.4.2 Changing the Boot Logo ............................................................................................... 74

3.5 Making Linux System Booting Media ........................................................................... 75

3.5.1 Making a Linux System SD Storage Card ...................................................................... 75

3.5.1.1 From Linux_System_SD Package ............................................................................... 75

3.5.1.2 From Source Code Package ....................................................................................... 76

3.5.2 Booting from Onboard Flash ........................................................................................ 76

3.5.3 Booting from SATA DOM .............................................................................................. 77

3.6 Debug Message ............................................................................................................. 77

3.7 Linux Software Applications on ROM-1210 .................................................................. 78

3.7.1 Writing Your Own "Hello World!" Application and Executing on ROM-1210 .............. 78

3.7.2 Running Pre-installed Applications on ROM-1210 ....................................................... 79

3.7.2.1 Running QT Demos .................................................................................................... 79

3.7.2.2 Running Audio Demo ................................................................................................ 80

3.7.2.3 Running Video Demo ................................................................................................. 80

3.7.2.4 Running Photo Demo ................................................................................................ 81

3.7.2.5 Running Buzzer Testing ............................................................................................. 82

3.7.2.6 Running Memory Testing .......................................................................................... 82

Chapter 1 1 Overview

This chapter briefly introduces the ROM-1210 Product.

ROM-1210 Evaluation Kit User Manual 2

1.1 Introduction

In order to offer potential RISC-based Design-to-Order-Service (DTOS) project customers with a more efficient and low risk evaluation tool, Advantech provides a variety of RISC-based evaluation kits. Before DTOS projects kicking-off, customers can check their designs with these kits in detail more easily. The evaluation kits have already equipped with all of the necessary H/W and S/W parts which customer will need, thus these can reduce design efforts and speed up application developments to meet customers’ requirements. The ROM-1210 is designed as a computer-on-module (COM) solution, with adopting Freescale i.MX53 processor based on ARM® Cortex™ A8 architecture, which is a complete 32-bit, up to 1GHz speed SoC engine. It provides customers with a high performance board subsystem based on ARM® Cortex™ A8 technology with characteristics of ready-to-run, compact, and easy-to-expansion in order to meet customers’ versatile needs. With the flexible I/O interfaces and complete hardware and software solutions, ROM-1210 is a fast time-to-market platform for customers to develop their applications and products easily without considering system integration. The ROM-1210 Evaluation Kit is a complete system designed for customers to evaluate the ROM-1210. It integrates all of the solutions that developers will need, based on the ROM-1210 module board, into a package that provides customers an effortless system platform for project evaluation, application development, and solution feasibility testing that decreases lead-time and lowers initial expense. The ROM-1210 Evaluation Kit has already integrated complete certified functions under Linux’s test kits making project development and implementation becomes an easy and risk-free way at the starting point.

3 ROM-1210 Evaluation Kit User Manual

Ch

apter1 O

verview

1.2 Features ROM-1210 adopts Freescale i.MX53 Processor - ARM® Cortex™ A8 architecture as its SoC solution. The main features of this platform are heatsink-less, compact, reliable & great power management. Therefore, the platform will be suitable for the following applications:

� Economical HMI (Human Machine Interface)

� Self Service / Access Control

� Fleet management / Navigation

� Hand-held data collector And the main features of Freescale i.MX53 processor are shown as below:

� ARM Cortex™-A8 800MHz/1GHz high performance processor

� Supports OpenGL ES 2.0 and OpenVG™ 1.1 hardware accelerators

� Supports full HD 1080p video decode and HD 720p video encode hardware engine

� Freescale Smart Speed™ Technology support low power consumption

� I/O through 3.3V I/O voltage and wide working temperature by industrial design concept

� Rich I/O for high expansion capability: UART(5), Dual LVDS, TTL, Audio, USB Host, USB OTG, Dual LAN, SD(2), SATA(1), GPIO(20), I2C(2), SPI(1), I2S(1), CAN(1), Keypad 6x6, Touch, and System Bus.

� Supports SATA storage interface and CAN bus for vehicle application

� Supports Android, Embedded Linux2.6, Windows Embedded Compact 7

� Support wide working temperature -40 ~ 85°C operation temperature (optional)

ROM-1210 Evaluation Kit User Manual 4

1.3 Hardware Specification

Item Description

Kernel CPU Freescale ARM Cortex-A8 800MHz/1GHz

2D/3D Accelerators Support OpenGL ES 2.0 and OpenVG™ 1.1 hardware accelerators

System RAM 512MB DDR3

Flash 4GB

RTC Yes

Watchdog Timer Yes

Reset H/W reset & S/W reset Power Management

Normal/Idle/Suspend mode

I/O

COM

-COM 1, RS-232 (TX/RX) -COM 2, RS-232 (TX/RX/RTS)/RS-422/RS-485 -COM 3, RS-232 (TX/RX/RTS/CTS) -COM 4, RS-232 (TX/RX/RTS/CTS) -COM 5, RS-232 (TX/RX/RTS/CTS)

Ethernet LAN 2 x 10/100 BASE-T (RJ-45) USB Port 3 x USB 2.0 (High speed)

USB OTG 1 x USB 2.0 OTG (High speed)

SD/MMC 2 x SDIO/MMC interface (SD slot x 1+ pin header x 1)

SATA 1 x

Touch Screen 1 x 4 - wire resistive type interface

System Bus Yes (Address: 25 pins, data: 16 pins)

I2C Interface 2 x

I2S Interface 1 x

SPI Interface 1 x

CAN BUS 1 x Hotkey/ Matrix keypad

Support 6 x 6 matrix keypad

GPIO 20 pins 3.3V TTL level GPIOs

Buzzer control Yes

Multimedia

Graphic Chip CPU internal 24-bits LCD controller

LCD Resolution Default: 800 x 480 7” WVGA Optional: 320 x 240 ~ 1920 x 1080

Dual LVDS 2 x 24-bit LVDS

TTL 1 x 24-bit 3.3V TTL level Brightness/ Backlight Control

Yes

Audio Line-in (Stereo), Line-out (Stereo), Speak-Out (Stereo) & Mic-in

5 ROM-1210 Evaluation Kit User Manual

Ch

apter1 O

verview

Power

DC-input 10~24V ±5%

Power Consumption COM board: Standard 0.8W ( Full Run 2.4W)

Power Control 1 x Power Switch 1 x H/W reset Button

Power Management

-Standard mode -Idle mode

Mechanical and Environmental

Board size COM board: 68 x 68 x 7.5 mm ( PCB thickness 1.6mm) CSB board: 210 x 135 x 20 mm ( PCB thickness 1.6mm)

Weight ROM-1210: 25g; RTX-CSB: 225g Operation Temperature

0 ~ 60° C (32 ~ 140° F) (-20~70 °C ;-40~ 85 °C support)

Operating Humidity

5% ~ 95% Relative Humidity, non condensing

Vibration 3.5G, 1000 times

Others

RoHS Yes

Certification CE/FCC Class A

O.S Embedded Linux 2.6.35 (Default), Android 2.3.4, and Windows Embedded Compact 7

ROM-1210 Evaluation Kit User Manual 6

1.4 Board Block Diagram

Figure 1- 1 Board Block Diagram - COM Board (ROM-1210)

Figure 1- 2 Board Block Diagram - Carrier Board (RTX-CSB)

Freescale i.MX53 800MHz/1GHz

Flash

4GB

Chapter 2 H/W Installation This chapter introduces the setupprocedures of the ROM-1210 hardware, including instructions on setting jumpers and connecting peripherals, switches,indicators and mechanical drawings. Be sure to read all safety precautions before you begin the installation procedure.

ROM-1210 Evaluation Kit User Manual 8

2.1 Development Kit H/W Installation Figure 2-1 illustrates ROM-1210 Evaluation Kit assembly, and the detail description of each part with related Advantech P/N is shown as below:

Item Description Advantech P/N

Part-A RTX-CSB (P/N: 96920CSB02E)

Part-B ROM-1210 (P/N: ROM-1210CF-A78BAE)

Part-C1 8*8 Keypad (Optional) (P/N: 96969315A0E)

Part-C2 8*8 Keypad Cable (Optional) (P/N: 1703200180)

Part-D1 7” LCD-LED Backlight, LVDS, 800x480, T/S, 97G070V1N0F-2

(P/N: 96LEDK-A070WV32RB1)

Part-D2 LCD Backlight Cable (P/N: 1700014438)

Part-D3 LVDS Cable (P/N: 1700014418)

Part-D4 Touch Cable (P/N: 1700000194)

Part-E SATA Power Cable (P/N: 1700018785)

Part-F SATA DOM (Optional) (P/N: SQF-SDMS2-2G-VHE)

Part-G SATA Cable (P/N: 1700004711)

Part-H Cable for testing board (Optional) (P/N: 1701440151)

Part-I Speaker & Audio Cables (P/N: 1700019546-11)

Part-J1 Video Board (P/N: 96920CSB10E)

Part-J2 TTL Cable for Video Board (P/N: 1700002289)

Part-J3 Signal Cable for Video Board (P/N: 1700018332)

Part-K Mini USB Host Cable (P/N: 1700019076)

Part-L Mini USB Client Cable (P/N: 1700019077)

Part-M USB Type-A Cable (P/N: 1700019129)

Part-N RS-232 and RS-485 Cable RS-422 Cable

(P/N: 1700019474) (P/N: 1700019476)

Part-O Wide-Temp RS-232 to RS-422/485 Converter (P/N: ADAM-4520I-AE)

Part-P ADAPTER, 100-240V, 19V, 3.42A. (P/N: 1757003734)

Part-Q 3Pin Power Cord (USA Standard) (Optional) 3pin Power Cord (Europe standard) (Optional) 3pin Power Cord (UK standard) (Optional)

(P/N: 1700001524) (P/N: 170203183C) (P/N: 170203180A)

Part-R Battery (P/N: 1760001300)

Part-S COM Port Cable (P/N: 1700100250)

Part-T RS-232 Loopback (P/N: 1654909900)

Part-U Testing Board (Optional) (P/N: 9692MX5321E)

Part-V SQFlash SD Card, SLC 2G, (-40~85°C) (P/N: SQF-ISDS2-2G-ETE)

9 ROM-1210 Evaluation Kit User Manual

Ch

apter2 H

/W In

stallation

Figure 2-1 ROM-1210 Development Kit Assembly

ROM-1210 Evaluation Kit User Manual 10

2.1.1 RTX-CSB (Part-A)

RTX-CSB is designed as a reference board, which is based on RTX form factor, a System-On-Module form factor for next generation compact embedded computer application. The RTX-CSB is designed for verifying all of the I/O functions on COM module board which following RTX form factor, for example, ROM-1210. All I/O functions are implemented on RTX-CSB. RTX: R ISC Technology eXtended

CSB: Customer Solution Board

2.1.2 ROM-1210 Module Board(Part-B)

The ROM-1210 is a heatsink-less, cost-effective, low-power with high performance System-On-Module geared to satisfy the needs for various industrial computing equipment. Based on Freescale i.MX53 Processor - ARM® Cortex™ A8 architecture, there are DDR3, iNAND flash and other main ICs on this module. ROM-1210 connects with RTX-CSB by four B2B (board-to-board) connectors (100-pin definition compatible with Advantech RTX form factor).

2.1.3 Keypad (Part-C1)

8*8 arrays of 64 normally open single-pole switches. (6*6 region of keypad are available when using ROM-1210.)

2.1.4 Keypad Cable (Part-C2)

The keypad cable connects RTX-CSB (CN10) with the keypad.

2.1.5 7” LVDS LCD Module (Part-D1)

The 7.0 inch Color TFT-LCD Module with 4-wires resistive type touch sensor. The module is designed with wide viewing angle; wide operating temperature and long life LEDs backlight is well suited to be the display units for Industrial Applications. LED driving board for backlight unit is included in this panel and the structure of the LED units is replaceable. It’s built in timing controller and LVDS interface. The display supports the WVGA (800 (H) x 480(V)) screen format and 16.2M colors (RGB 24bits) or 262K (RGB 18bits) selectable.

2.1.6 LCD Backlight Cable (Part-D2)

The LVDS backlight cable connects RTX-CSB (CN20) with the LCD backlight connector of 7” LVDS LCD Module.

11 ROM-1210 Evaluation Kit User Manual

Ch

apter2 H

/W In

stallation

2.1.7 LVDS Cable (Part-D3)

The LVDS cable connects RTX-CSB (CN9) with the LCD signal connector of 7” LVDS LCD Module.

2.1.8 Touch Cable (Part-D4)

The touch cable connects RTX-CSB (CN23) with the touch connector of 7” LVDS LCD Module.

2.1.9 SATA Power Cable (Part-E)

The SATA power cable provides power with SATA HDD by connecting RTX-CSB (CN11) with it.

2.1.10 SATA DOM (Part-F)

The SATA DOM (Disk on Module) model is a SATA 7-pin DOM which utilizes a SATA interface in a vertical module configuration. It is a flash-based solid-state drive available and uses SLC NAND flash memory, making it ideal as an embedded SSD solution. It connects on CN14 of RTX-CSB.

2.1.11 SATA Cable (Part-G)

The SATA cable provides control signal with SATA HDD by connecting RTX-CSB (CN14) with it.

2.1.12 Cable for Testing Board (Part-H)

Advantech designed the testing board for verifying the buses of RTX-CSB. It includes Timer, RFOUT, I2S, BT656, I2C, SPI, CAN and system bus, which could be connected with RTX-CSB (CN17) through this cable. (Besides system bus)

2.1.13 Speaker & Audio Cables (Part-I)

The cable connects RTX-CSB (CN21) with LINE-OUT, LINE-IN, MIC-IN and L&R Speakers.

2.1.14 Video Board (Part-J1)

The video board can transfer TLL signal to HDMI, VGA, and dual LVDS interface.

2.1.15 TTL Cable for Video Board (Part-J2)

This cable provides the TTL signals with video board. It connects RTX-CSB (CN18) with video board (CN3).

ROM-1210 Evaluation Kit User Manual 12

2.1.16 Signal Cable for Video Board (Part-J3)

This cable provides the control signals with video board by connecting RTX-CSB (CN45) with the board (CN1).

2.1.17 Mini USB Host Cable (Part-K)

The mini USB Host cable (P/N: 1700019076) connects RTX-CSB (CN39) with one USB client device.

2.1.18 Mini USB Client Cable (Part-L)

The mini USB Client cable (P/N: 1700019077) connects RTX-CSB (CN39) with one USB host device.

2.1.19 USB Type-A Cable (Part-M)

The USB extend cable provide USB connector type-A for USB devices.

2.1.20 D-SUB 9P Serial Cable (Part-N)

The COM2 (CN40) of RTX-CSB supports RS-232/422/485. The RS-232 and RS-485 Cable is for RS-232 and 485 modes, while RS-422 Cable is for RS-232 mode.

2.1.21 ADAM-4520I (Part-O)

The ADAM-4520I Converter transparently converts RS-232 signals into isolated RS-422 or RS-485 signals. It could be used for testing RS-485 function (CN40) of RTX-CSB.

2.1.22 19V Power Adapter (Part-P)

The 19V power adapter is an AC-to-DC power device, which provides a 19V DC output (65W max) with constant voltage sources (100V~240V).

2.1.23 Power Cord (Part-Q)

3P Power Cord (USA, Europe or UK standard) for 19V Power Adapter AC input.

2.1.24 Battery (Part-R)

The battery provides power with RTX-CSB. And it can be charged by RTX-CSB with an adapter.

2.1.25 UART Port Cable (D-SUB 9P to Housing) (Part-S)

The UART port cable could be used to extend UART port 9pin header from RTX-CSB to D-SUB 9P serial port connector.

13 ROM-1210 Evaluation Kit User Manual

Ch

apter2 H

/W In

stallation

2.1.26 Terminal Connector 9P Female (Part-T)

The terminal connector 9P female could be used for testing RS-232 loopback function.

2.1.27 Testing Board (Part-U)

The testing board designed by Advantech is mainly used for verifying the buses on RTX-CSB, which includes the Timer, RFOUT, I2S, BT656, I2C, SPI, CAN and system bus.

The testing board could be connected with RTX-CSB by CN12, which provides the power and system bus control interface with the testing board.

2.1.28 SQFlash SD Card (Part-V)

The SQFlash SD card is a standard SD device. It is a flash-based solid-state drive available and uses SLC NAND flash memory, making it ideal as an embedded SSD solution. It could be connected with RTX-CSB by CN41.

ROM-1210 Evaluation Kit User Manual 14

2.2 RTX-CSB Connectors

The following table illustrates the connector list of RTX-CSB:

Connector Description CN 1 VGA Connector

CN 2 TV-Out RCA Jack

CN 7 S-Video Connector

CN 8 Ethernet LAN2 Connector

CN 9 LVDS0 LCD Connector

CN 10 Pin Header for Matrix Keypad

CN 11 Wafer for SATA power

CN 12 System Bus

CN 13 Pin Header for SD2

CN 14 SATA Connector

CN 15 MiniPCIe connector

CN 16 100pin*4 B2B Connector

CN 17 Box Header for Timer, RFOUT, I2S, BT656, I2C, SPI and CAN bus.

CN 18 TTL LCD Connector

CN 19 MiniPCIe Connector-Latch

CN 20 Wafer for 12V backlight (Max 0.5A)

CN 21 Box Header for LINE-OUT, LINE-IN, MIC-IN and L&R Speakers

CN 22 Wafer for battery

CN 23 Wafer for 4-wire T/S

CN 24 Pin Header for COM3

CN 25 Wafer for 12V backlight (Max 1.5A)

CN 26 Pin Header for 20x pins GPIO

CN 27 Pin Header for COM1 (Debug port)

CN 28 Pin Header for COM4 (RS-232)

CN 29 Pin Header for COM5 (RS-232)

CN 30 Pin Header for USB_HOST_2

CN 31 Pin Header for CSB_HUB_USB3

CN 32 Ethernet LAN Connector

CN 33 USB CSB_HUB_1&2 (Standard Type-A)

CN 34 Line-out Jack

CN 35 Mic-in Jack

CN 36 HDMI Connector

CN 37 USB CSB_HUB_3 (Standard Type-A)

CN 38 DC-IN Power Jack

CN 39 USB OTG MINI-AB Connector

CN 40 COM2, RS-232/422/485, D-SUB9 Connector

CN 42 SIM Card slot

15 ROM-1210 Evaluation Kit User Manual

Ch

apter2 H

/W In

stallation

CN 43 Component-Y RCA Jack

CN 44 Component-Pb RCA Jack

CN 5 Component-Pr RCA Jack

CN 45 Pin Header for Video Board Control

CN 46 LVDS1 LCD Connector

CN 47 SD1 Slot

SW 1 Suspend/Resume Button

SW 2 Reset Button

SW 3 Switch for COM2 RS-232/422/485 and Bluetooth/UART3

SW 4 Power ON/OFF Switch

SW 5 Switch for CSB_GPIO_1/LAN2 Enable

BAT1 Coin Battery

2.2.1 VGA Connector (CN1)

The RTX-CSB supports a standard VGA Interface (D-SUB15). The pin assignment is shown as below. Note! ROM-1210 does not support this function.

Figure 2-2 VGA Connector (D-SUB15)

Pin Description Pin Description 1 CRT_R 2 CRT_G 3 CRT_B 4 N/C

5 GND 6 GND

7 GND 8 GND

9 EXT_IO_5V 10 GND

11 N/C 12 I2C_DAT_5V

13 CRT_HSYNC 14 CRT_VSYNC

15 I2C_CLK_5V

ROM-1210 Evaluation Kit User Manual 16

2.2.2 TV-Out RCA Jack (CN2)

The RTX-CSB supports a standard TV-Out interface. Note! ROM-1210 does not support this function.

Figure 2-3 TV-Out RCA Jack

2.2.3 S-Video Connector (CN7)

The RTX-CSB supports a standard S-Video Interface. Note! ROM-1210 does not support this function.

Figure 2-4 S-Video Connector

17 ROM-1210 Evaluation Kit User Manual

Ch

apter2 H

/W In

stallation

2.2.4 Ethernet LAN2 Connector (CN8)

The Ethernet port (LAN2) is extended from system bus, which supports 10/100 Mbps transfer rates and is compliant with IEEE 802.3 standard.

LAN connector with LED indicator: green LED indicates Ethernet active; yellow LED indicates Ethernet speed 10/100.

Figure 2-5 Ethernet LAN2 Connector

ROM-1210 Evaluation Kit User Manual 18

2.2.5 LVDS0 LCD Connector (CN9)

The RTX-CSB supports dual LVDS LCD Interface (24+24bit). CN9 is LVDS0 (24bit) connector while CN46 is LVDS1 (24bit) connector. The pin assignment of LVDS0 (CN9) is shown as below.

Figure 2-6 LVDS0 LCD Connector

Pin Description Pin Description 1 3.3V 2 3.3V 3 3.3V 4 3.3V

5 LVDS0_TX0- 6 LVDS0_TX0+

7 GND 8 LVDS0_TX1-

9 LVDS0_TX1+ 10 GND

11 LVDS0_TX2- 12 LVDS0_TX2+

13 GND 14 LVDS0_CLK-

15 LVDS0_CLK+ 16 GND

17 3.3V 18 N/C

19 LVDS0_TX3- 20 LVDS0_TX3+

19 ROM-1210 Evaluation Kit User Manual

Ch

apter2 H

/W In

stallation

2.2.6 Pin Header for Matrix Keypad (CN10) The keypad circuitry scans an 8*8 array of 64 normal-open, single-pole switches. Any one or two keys depressed will be de-bounced and decoded. An interrupt is generated whenever a stable set of depressed keys is detected. The main features of the keypad interface are listed as below:

� Provides scanning, de-bounce, and decoding for a 64-key switch array � Scans a 8-row by 8-column matrix � May decode 2 keys at once � Generates an interrupt when a new stable key is determined � Also generate a 3-key reset interrupt

Note! 6*6 region of keypad are available on ROM-1210.

Figure 2-7 Pin Header for Matrix Keypad

Pin Description Pin Description 1 KEY_COL0 2 KEY_ROW0 3 KEY_COL1 4 KEY_ROW1

5 KEY_COL2 6 KEY_ROW2

7 KEY_COL3 8 KEY_ROW3

9 KEY_COL4 10 KEY_ROW4

11 KEY_COL5 12 KEY_ROW5

13 KEY_COL6 14 KEY_ROW6

15 KEY_COL7 16 KEY_ROW7

17 EXT_IO_3V3 18 EXT_IO_3V3

19 GND 20 GND

ROM-1210 Evaluation Kit User Manual 20

2.2.7 Wafer for SATA power (CN11)

The wafer could provide DC+12V&5V power for SATA HDD by connecting the SATA power cable. The pin assignment is shown as below.

Figure 2-8 Wafer for SATA power

Pin Description Pin Description 1 SATA_5V 2 GND 3 GND 4 SATA_12V

21 ROM-1210 Evaluation Kit User Manual

Ch

apter2 H

/W In

stallation

2.2.8 System Bus (CN12)

The RTX-CSB provides a system bus via PCI104+ connector for extend device used. The pin assignment is shown as below.

Figure 2-9 System Bus

ROM-1210 Evaluation Kit User Manual 22

Pin Description Pin Description Pin Description Pin Description A1 N/C B1 GND C1 N/C D1 N/C

A2 GND B2 N/C C2 EXT_IO_3V3 D2 EXT_IO_3V3

A3 CSB_GPIO_8 B3 CSB_GPIO_7 C3 CSB_GPIO_6 D3 CSB_GPIO_5

A4 N/C B4 N/C C4 EXT_IO_3V3 D4 EXT_IO_3V3

A5 SysBus_A0 B5 SysBus_A1 C5 SysBus_A15 D5 SysBus_A14

A6 SysBus_A2 B6 SysBus_A3 C6 SysBus_A13 D6 SysBus_A12

A7 SysBus_A4 B7 SysBus_A5 C7 SysBus_A11 D7 SysBus_A10

A8 SysBus_A6 B8 SysBus_A7 C8 SysBus_A9 D8 SysBus_A8

A9 SysBus_A16 B9 SysBus_A17 C9 SysBus_A24 D9 SysBus_A25

A10 SysBus_A18 B10 SysBus_A19 C10 N/C D10 SysBus_OE

A11 SysBus_A20 B11 SysBus_A21 C11 SysBus_nWE D11 GND

A12 SysBus_A22 B12 SysBus_A23 C12 N/C D12 N/C

A13 EXT_IO_3V3 B13 N/C C13 SysBus_CSB_CS1 D13 SysBus_CSB_CS2

A14 SysBus_D0 B14 SysBus_D1 C14 SysBus_D15 D14 SysBus_D14

A15 SysBus_D2 B15 SysBus_D3 C15 SysBus_D13 D15 SysBus_D12

A16 SysBus_D4 B16 SysBus_D5 C16 SysBus_D11 D16 SysBus_D10

A17 SysBus_D6 B17 SysBus_D7 C17 SysBus_D9 D17 SysBus_D8

A18 SysBus_D16 B18 SysBus_D17 C18 SysBus_D31 D18 SysBus_D30

A19 SysBus_D18 B19 SysBus_D19 C19 SysBus_D29 D19 SysBus_D28

A20 SysBus_D20 B20 SysBus_D21 C20 SysBus_D27 D20 SysBus_D26

A21 SysBus_D22 B21 SysBus_D23 C21 SysBus_D25 D21 SysBus_D24

A22 N/C B22 N/C C22 SysBus_CLK D22 GND

A23 N/C B23 N/C C23 N/C D23 GND

A24 N/C B24 N/C C24 SysBus_nBE1 D24 EXT_IO_3V3

A25 N/C B25 N/C C25 N/C D25 EXT_IO_3V3

A26 SysBus_nBE0 B26 N/C C26 N/C D26 N/C

A27 N/C B27 SysBus_ALE C27 EXT_IO_5V D27 EXT_IO_5V

A28 SysBus_WP B28 N/C C28 SysBus_Wait1 D28 N/C

A29 N/C B29 N/C C29 N/C D29 N/C

A30 SysBus_Wait2 B30 N/C C30 GND D30 N/C

23 ROM-1210 Evaluation Kit User Manual

Ch

apter2 H

/W In

stallation

2.2.9 Pin Header for SD2 (CN13)

The SD/MMC Slots are powered with 3.3V. It could be extended for SD slot module and WiFi module used with the following features:

� Fully compatible with the MMC system specification version 3.2

� Compatible with the SD Memory Card specification 1.01, and SD I/O specification 1.1 with 1/4 channel(s)

� Block-based data transfer between MMC card and SDHC (stream mode not supported)

� 100 Mbps maximum data rate in 4-bit mode, SD bus clock up to 25MHz

Figure 2-10 Pin Header for SD2

Pin Description Pin Description 1 UART3_TX_1V8 2 SD2_DATA1 3 UART3_RTS_1V8 4 SD2_DATA0

5 UART3_RX_1V8 6 SD2_CLK

7 UART3_CTS_1V8 8 SD2_CMD

9 WLAN_1V8_IRQ 10 SD2_DATA3

11 WLAN_1V8_EN 12 SD2_DATA2

13 BT_1V8_SHDN 14 SD2_INSERT

15 EXT_IO_3V3 16 GND

ROM-1210 Evaluation Kit User Manual 24

2.2.10 SATA Connector (CN14)

The RTX-CSB supports a SATA Interface. (Both SATA DOM and SATA HDD) The pin assignment is shown as below.

Figure 2-11 SATA Connector

Pin Description Pin Description 1 GND 2 SATA_TX+ 3 SATA_TX- 4 GND 5 SATA_RX- 6 SATA_RX+ 7 GND

25 ROM-1210 Evaluation Kit User Manual

Ch

apter2 H

/W In

stallation

2.2.11 MiniPCIe connector (CN15) and Latch (CN19)

The RTX-CSB supports a MiniPCIe Interface. The pin assignment is shown as below.

Figure 2-12 MiniPCIe Connector

Pin Description Pin Description 1 nWAKE 2 EXT_IO_3V3 3 N/C 4 N/C 5 N/C 6 IO_1V5 7 nCLKREQ 8 UIM_PWR

9 GND 10 UIM_DATA

11 PCIe_CLK_N 12 UIM_CLK

13 PCIe_CLK_P 14 UIM_RESET

15 GND 16 UIM_VPP

17 N/C 18 GND

19 N/C 20 N/C

21 GND 22 nRERST

23 PCIe_RX0_N 24 EXT_IO_3V3

25 PCIe_RX0_P 26 GND

27 GND 28 IO_1V5

29 GND 30 PCIe_SMBCLK

31 PCIe_TX0_N 32 PCIe_SMBDAT

33 PCIe_TX0_P 34 GND

35 GND 36 PCIe_USBDM

ROM-1210 Evaluation Kit User Manual 26

37 N/C 38 PCIe_USBDP

39 N/C 40 GND

41 N/C 42 LED_WWAN

43 N/C 44 LED_WLAN

45 N/C 46 LED_WPAN

47 N/C 48 IO_1V5

49 N/C 50 GND

51 N/C 52 EXT_IO_3V3

53 N/C 54 N/C

55 N/C 56 GND

2.2.12 100-pin B2B Connector (CN16A~D)

The B2B connectors are used to connect ROM-1210 module board with RTX-CSB. By combing these connectors with screw fastener fixation to RTX-CSB, thus ensures better stability than traditional golden fingers.

The B2B connectors adopted by RTX form factor provides customers with high I/O expandability and design flexibility, as well as a wide range of I/O and common interfaces that can meet a variety of different requirements.

Note! For detail introduction of RTX form factor and 400-pin definition, you can refer to the RTX_Specification_White_Paper.pdf attached in the DVD content.

Figure 2-13 RTX-CSB 100-pin B2B Connector Top View

27 ROM-1210 Evaluation Kit User Manual

Ch

apter2 H

/W In

stallation

Figure 2-14 ROM-1210 100-pin B2B Connector Bottom View

2.2.13 Box Header for Timer, RFOUT, I2S, BT656, I2C, SPI

and CAN bus (CN17)

The box header is for Timer, RFOUT, I2S, I2C, SPI and CAN bus connection used. The pin assignment is shown as below. Note! ROM-1210 does not support Timer.

ROM-1210 Evaluation Kit User Manual 28

Figure 2-15 Box Header for Timer, RFOUT, I2S, BT656, I2C, SPI and CAN bus

Pin Description Pin Description 1 EXT_IO_3V3 2 EXT_IO_3V3 3 GND 4 GND 5 TIMER0 6 TIMER1 7 RFOUT 8 N/C

9 I2S_MCLK 10 I2S_DOUT1

11 I2S_BCLK 12 I2S_DOUT2

13 I2S_LRSEL 14 I2S_DOUT3

15 I2S_DIN 16 I2S_DOUT4

17 BT656_D0 18 BT656_D4

19 BT656_D1 20 BT656_D5

21 BT656_D2 22 BT656_D6

23 BT656_D3 24 BT656_D7

25 BT656_CLK 26 N/C

27 CSB_I2C1_DAT 28 CSB_I2C1_CLK

29 CSB_I2C2_DAT 30 CSB_I2C2_CLK

31 SPI_MISO 32 SPI_CS0

33 SPI_MOSI 34 SPI_CLK

35 CAN0_D+ 36 CAN0_D-

37 CAN1_D+ 38 CAN1_D-

39 N/C 40 N/C

41 GND 42 GND

43 EXT_IO_3V3 44 EXT_IO_3V3

29 ROM-1210 Evaluation Kit User Manual

Ch

apter2 H

/W In

stallation

2.2.14 TTL LCD Connector (CN18)

The RTX-CSB supports a TTL LCD Interface. The pin assignment is shown as below.

Figure 2-16 TTL LCD Connector

Pin Description Pin Description 1 5V 2 5V 3 GND 4 GND 5 5V 6 5V 7 N/C 8 GND

9 LCD_B0 10 LCD_B1

11 LCD_B2 12 LCD_B3

13 LCD_B4 14 LCD_B5

15 LCD_B6 16 LCD_B7

17 LCD_G0 18 LCD_G1

19 LCD_G2 20 LCD_G3

21 LCD_G4 22 LCD_G5

23 LCD_G6 24 LCD_G7

25 LCD_R0 26 LCD_R1

27 LCD_R2 28 LCD_R3

29 LCD_R4 30 LCD_R5

31 LCD_R6 32 LCD_R7

33 GND 34 GND

35 LCD_PCLK 36 LCD_VSYNC

37 LCD_DE 38 LCD_HSYNC

39 3.3V 40 3.3V

ROM-1210 Evaluation Kit User Manual 30

2.2.15 Wafer for 12V Backlight (Max 0.5A) (CN20)

The backlight wafer provides DC+12V (Max 0.5A), backlight on/off control signal and 0 ~ 5V PWM dimming control to inverter. We will suggest you to choose the inverter which dimming control is by PWM (range from 0V to 5V) to fit the development kit design.

Figure 2-17 Wafer for 12V Backlight (Max 0.5A)

Pin Description Pin Description 1 GND 2 Backlight Enable (5V) 3 Brightness Control 4 12V

31 ROM-1210 Evaluation Kit User Manual

Ch

apter2 H

/W In

stallation

2.2.16 Box Header for LINE-OUT, LINE-IN, MIC-IN and

L&R Speakers (CN21)

The box header are audio signals input / output port, and the speaker-out uses a 2W amplifier. The pin assignment is shown as below.

Figure 2-18 Box Header for LINE-OUT, LINE-IN, MIC-IN and L&R Speakers

Pin Description Pin Description 1 LINE_OUT_R 2 SPK_R- 3 LINE_OUT_L 4 SPK_L- 5 SPK_R+ 6 SPK_L+ 7 N/C 8 GND

9 LINE_IN_R 10 LINE_IN_L

11 N/C 12 GND

13 N/C 14 N/C

15 MIC_IN 16 GND

ROM-1210 Evaluation Kit User Manual 32

2.2.17 Wafer for battery (CN22)

The wafer for battery provides power and control signals to battery by connecting corresponding cables. The pin assignment is shown as below.

Figure 2-19 Wafer for Battery

Pin Description Pin Description 1 VBAT 2 VBAT 3 BAT_SMBCLK 4 BAT_SMBDAT 5 BAT_THM 6 BAT_INSERT 7 GND 8 GND

33 ROM-1210 Evaluation Kit User Manual

Ch

apter2 H

/W In

stallation

2.2.18 Wafer for 4-wire T/S (CN23)

The touch screen interface performs all sampling, averaging, ADC range checking, and control for a wide variety of analog resistive touch screens. This controller only interrupts the processor when a meaningful change occurs. The pin assignment is shown as below.

Figure 2-20 Wafer for 4-wire T/S

Pin Description Pin Description 1 Touch_Y- 2 Touch_Y+ 3 Touch_X- 4 Touch_X+

ROM-1210 Evaluation Kit User Manual 34

2.2.19 Pin Header for COM3 (RS-232)(CN24)

The pin header for COM3 is a 4-wire (TXD/RXD/RTS/CTS) RS-232 port. It provides connections for serial devices (For example, GPS, GSM and Bluetooth devices…etc.) or a communication network. The pin assignment is shown as below.

Figure 2-21 Pin Header for COM3 (RS-232)

Pin Description Pin Description 1 N/C 2 N/C 3 COM3_RX 4 COM3_RTS

5 COM3_TX 6 COM3_CTS

7 N/C 8 N/C

9 GND 10 N/C

35 ROM-1210 Evaluation Kit User Manual

Ch

apter2 H

/W In

stallation

2.2.20 Wafer for 12V Backlight (Max 1.5A) (CN25)

The backlight wafer provides DC+12V (Max 1.5A) for larger size LCD panel, backlight on/off control signal and 0 ~ 5V PWM dimming control to inverter. We will suggest you to choose the inverter which dimming control is by PWM (range from 0V to 5V) to fit the development kit design.

Figure 2-22 Wafer for 12V Backlight (Max 1.5A)

Pin Description Pin Description 1 12V 2 12V 3 Backlight Enable (5V) 4 Brightness Control

5 GND 6 GND

ROM-1210 Evaluation Kit User Manual 36

2.2.21 Pin Header for 20x pins GPIO (CN26)

The pin header is extended for 20x pins 3.3V TTL Level GPIO. The pin assignment is shown as below.

Figure 2-23 Pin Header for GPIO

Pin Description Pin Description 1 GPIO_1 2 GPIO_2 3 GPIO_3 4 GPIO_4 5 GPIO_5 6 GPIO_6 7 GPIO_7 8 GPIO_8

9 GPIO_9 10 GPIO_10

11 GPIO_11 12 GPIO_12

13 GPIO_13 14 GPIO_14

15 GPIO_15 16 GPIO_16

17 GPIO_17 18 GPIO_18

19 EXT_IO_3V3 20 GND

37 ROM-1210 Evaluation Kit User Manual

Ch

apter2 H

/W In

stallation

2.2.22 Pin Header for COM1 (RS-232) (Debug Port) (CN27)

The pin header for COM1 is a 4-wire (TXD/RXD/RTS/CTS) RS-232 port, which is mainly used as a debug port. By connecting a PC with a null modem cable, you will see the booting debug message via hyper-terminal utility (Baud Rate 115200, 8bit, none, 1, none). Note! ROM-1210 only supports TX and RX on COM1.

Figure 2-24 Pin Header for COM1 (RS-232) (Debug Port)

Pin Description Pin Description 1 N/C 2 N/C 3 COM1_RX 4 COM1_RTS

5 COM1_TX 6 COM1_CTS

7 N/C 8 N/C

9 GND 10 N/C

ROM-1210 Evaluation Kit User Manual 38

2.2.23 Pin Header for COM4 (RS-232) (CN28)

The pin header for COM4 is a full function RS-232 port. It provides connections for serial devices (For example, GPS, GSM and Bluetooth devices…etc.) or a communication network. Note! ROM-1210 only supports TX, RX, RTS and CTS on COM4.

Figure 2-25 Pin Header for COM4 (RS-232)

Pin Description Pin Description 1 COM4_DCD 2 COM4_DSR 3 COM4_RX 4 COM4_RTS

5 COM4_TX 6 COM4_CTS

7 COM4_DTR 8 COM4_RI 9 GND 10 N/C

39 ROM-1210 Evaluation Kit User Manual

Ch

apter2 H

/W In

stallation

2.2.24 Pin Header for COM5 (RS-232) (CN29)

The pin header for COM5 is a full function RS-232 port. It provides connections for serial devices (For example, GPS, GSM and Bluetooth devices…etc.) or a communication network. Note! ROM-1210 only supports TX, RX, RTS and CTS on COM5.

Figure 2-26 Pin Header for COM5 (RS-232)

Pin Description Pin Description 1 COM5_DCD 2 COM5_DSR 3 COM5_RX 4 COM5_RTS

5 COM5_TX 6 COM5_CTS

7 COM5_DTR 8 COM5_RI 9 GND 10 N/C

ROM-1210 Evaluation Kit User Manual 40

2.2.25 Pin Header for USB_HOST_2 (CN30)

This USB port is extended from USB_HOST_2. The pin assignment is shown as below. Note! ROM-1210 does not support this function.

Figure 2-27 Pin Header for USB_HOST_2

Pin Description Pin Description 1 5V 2 USB_HOST2_Data - 3 USB_HOST2_Data + 4 GND 5 GND (Chassis Ground)

41 ROM-1210 Evaluation Kit User Manual

Ch

apter2 H

/W In

stallation

2.2.26 Pin Header for CSB_HUB_USB3 (CN31)

This USB port is extended from CSB_HUB_USB3. The pin assignment is shown as below. Note! This pin header is co-lay with CN37 (Type-A), thus CN31 and CN37 with two USB devices could not be used at the same time.

Figure 2-28 Pin Header for CSB_HUB_USB3

Pin Description Pin Description 1 5V 2 CSB_HUB3_Data - 3 CSB_HUB3_Data + 4 GND 5 GND (Chassis Ground)

ROM-1210 Evaluation Kit User Manual 42

2.2.27 Ethernet LAN Connector (CN32)

The Ethernet port is extended from CPU module board directly. It supports 10/100 Mbps transfer rates and is compliant with IEEE 802.3 standard.

LAN connector with LED indicator: green LED indicates Ethernet active, yellow LED indicates Ethernet speed 10/100.

Figure 2-29 Ethernet LAN Connector

43 ROM-1210 Evaluation Kit User Manual

Ch

apter2 H

/W In

stallation

2.2.28 USB CSB_HUB_1&2 (Standard Type-A) (CN33)

The USB interface provides full speed serial communications ports, which includes the following features:

� Compliance with the USB 2.0 specification

� Transceiver buffers integrated, over-current protection on ports

� Supports power management

� Operates as a master on the bus

Figure 2-30 USB CSB_HUB_1&2 (Standard Type-A)

ROM-1210 Evaluation Kit User Manual 44

2.2.29 Line-Out Jack (CN34)

The Line-Out jack is used for audio signals output port (Line-Out).

Figure 2-31 Line-Out Jack

45 ROM-1210 Evaluation Kit User Manual

Ch

apter2 H

/W In

stallation

2.2.30 Mic-in Jack (CN35)

The Mic-in jack is connected with Microphone device.

Figure 2-32 Mic-in Jack

ROM-1210 Evaluation Kit User Manual 46

2.2.31 HDMI Connector (CN36)

The RTX-CSB supports a standard HDMI Interface. Note! ROM-1210 does not support this function.

Figure 2-33 HDMI Connector

47 ROM-1210 Evaluation Kit User Manual

Ch

apter2 H

/W In

stallation

2.2.32 USB CSB_HUB_3 (Standard Type-A) (CN37)

The USB interface provides full speed serial communications ports, which includes the following features:

� Compliance with the USB 2.0 specification

� Transceiver buffers integrated, over-current protection on ports

� Supports power management

� Operates as a master on the bus

Note! This connector (Type-A) is co-lay with CN31 (pin header), thus CN31 and CN37 with two USB devices could not be used at the same time.

Figure 2-34 USB CSB_HUB_3 (Standard Type-A)

ROM-1210 Evaluation Kit User Manual 48

2.2.33 DC-IN Power Jack(CN38)

The DC-in power jack provides power for RTX-CSB (10~24V).

Figure 2-35 DC-IN Power Jack

49 ROM-1210 Evaluation Kit User Manual

Ch

apter2 H

/W In

stallation

2.2.34 USB OTG MINI-AB Connector (CN39)

The RTX-CSB has a single USB OTG mini-AB port which can be used as a USB client to link with PC. You could upload or download files to any folder in Windows CE and create a synchronous folder between PC and ROM-1210 through this connector.

Figure 2-36 USB OTG MINI-AB Connector

Pin Description Pin Description 1 5V 2 Data - 3 Data + 4 USBOTG_ID

5 GND

ROM-1210 Evaluation Kit User Manual 50

2.2.35 COM2, RS-232/422/485, D-SUB9 Connector (CN40)

The D-SUB9 connector for COM2 supports RS-232/422/485 mode, which can be switched by SW3. (Please refer to Chapter 2.2.43).

RS-232 Mode: Supports TX, RX, RTS, CTS.

RS-422 Mode: Supports TXD+, TXD-, RXD+, RXD-.

RS-485 Mode: Supports D+, D-,.

Figure 2-37 COM2, RS-232/422/485, D-SUB9 Connector

Pin Description Pin Description 1 RS-422&485_TXD- 2 RS-232_RX 3 RS-232_TX 4 RS-422_RXD+ 5 GND 6 RS-422&485_TXD+ 7 RS-232_RTS 8 RS-232_CTS

9 RS-422_RXD- 10 RS-422_RXD-

51 ROM-1210 Evaluation Kit User Manual

Ch

apter2 H

/W In

stallation

2.2.36 SIM Card slot (CN42)

The RTX-CSB provides a SIM card slot for MiniPCIe 3G devices.

Figure 2-38 SIM Card Slot

ROM-1210 Evaluation Kit User Manual 52

2.2.37 Component-Y/Pb/Pr RCA Jacks (CN43, CN44, CN5)

The RTX-CSB supports a standard Component Y (CN43)/ Pb (CN44)/ Pr (CN5) interface. Note! ROM-1210 does not support this function.

Figure 2-39 Component-Y/Pb/Pr RCA Jacks

53 ROM-1210 Evaluation Kit User Manual

Ch

apter2 H

/W In

stallation

2.2.38 Pin Header for Video Board Control (CN45)

The pin header is used for connecting an external module-Video board with RTX-CSB through CN45. The pin assignment is shown as below.

Figure 2-40 Pin Header for Video Board Control

Pin Description Pin Description 1 IO_3.3V 2 N/C 3 GND 4 CSB_I2C2_CLK 5 SPDIF 6 CSB_I2C2_DAT 7 GND 8 IO_5V

9 Panel_5V 10 LCD_VDD_EN

ROM-1210 Evaluation Kit User Manual 54

2.2.39 LVDS1 LCD Connector (CN46)

The RTX-CSB supports dual LVDS LCD Interface (24+24bit). The CN9 is LVDS0 (24bit) and CN46 is LVDS1 (24bit). The pin assignment of LVDS1 (CN46) is shown as below.

Figure 2-41 LVDS1 LCD Connector

Pin Description Pin Description 1 3.3V 2 3.3V 3 3.3V 4 3.3V

5 LVDS1_TX0- 6 LVDS1_TX0+

7 GND 8 LVDS1_TX1-

9 LVDS1_TX1+ 10 GND

11 LVDS1_TX2- 12 LVDS1_TX2+

13 GND 14 LVDS1_CLK-

15 LVDS1_CLK+ 16 GND

17 3.3V 18 N/C

19 LVDS1_TX3- 20 LVDS1_TX3+

55 ROM-1210 Evaluation Kit User Manual

Ch

apter2 H

/W In

stallation

2.2.40 SD1 Slot (CN47)

The SD1 Slots are 3.3V powered with the following features:

� Fully compatible with the MMC system specification version 3.2

� Compatible with the SD Memory Card specification 1.01, and SD I/O specification 1.1 with 1/4 channel(s)

� Block-based data transfer between MMC card and SDHC (stream mode not supported)

� 100 Mbps maximum data rate in 4-bit mode, SD bus clock up to 25MHz

Figure 2-42 SD1 Slot

ROM-1210 Evaluation Kit User Manual 56

2.2.41 Suspend/Resume Button (SW1)

This button is used for suspend the system, and the system will resume to work by pressing this suspend button again.

Figure 2-43 Suspend/Resume Button

57 ROM-1210 Evaluation Kit User Manual

Ch

apter2 H

/W In

stallation

2.2.42 Reset Button (SW2)

The reset button is used for cold-reset the system.

Figure 2-44 Reset Button

ROM-1210 Evaluation Kit User Manual 58

2.2.43 Switch for COM2 RS-232/422/485 and Bluetooth

/UART3 (SW3)

The switch is used for switching the COM2 RS-232/422/485 mode and selecting UART3 for Bluetooth module (CN13) or COM3 (CN24) used.

COM2 RS-232/422/485 mode:

Description SW3.1 SW3.2 SW3.3 COM2 RS-232 Mode ON OFF OFF

COM2 RS-422 Mode OFF ON OFF

COM2 RS-485 Mode OFF OFF ON

UART3 for Bluetooth module (CN13) / COM3 (CN24):

Description SW3.4 UART3 for Bluetooth module (CN13) ON

UART3 for COM3 (CN24) OFF

Figure 2-45 Switch for COM2 RS-232/422/485 and Bluetooth/UART3

59 ROM-1210 Evaluation Kit User Manual

Ch

apter2 H

/W In

stallation

2.2.44 Power ON/OFF Switch (SW4)

The switch is used to control input power on / off.

� Power ON: switch up � Power OFF: switch down

Figure 2-46 Power ON/OFF Switch

ROM-1210 Evaluation Kit User Manual 60

2.2.45 Switch for CSB_GPIO_1/LAN2 Enable (SW5)

This switch is used for switching CSB_GPIO_1 Enable or LAN2 Enable. If you want to use LAN2, the CSB_GPIO_1 at CN26-Pin1 will not work, and vice versa.

Description SW5.1

CSB_GPIO_1 Enable ON

LAN2 Enable OFF

Figure 2-47 Switch for CSB_GPIO_1/LAN2 Enable

61 ROM-1210 Evaluation Kit User Manual

Ch

apter2 H

/W In

stallation

2.2.46 Coin Battery (BAT1) The BAT1 is a Li-ion coin battery for system RTC power. When power input is off, the battery will provide power (DC 3V) for RTC function.

Figure 2-48 Coin Battery

ROM-1210 Evaluation Kit User Manual 62

2.3 Mechanical

2.3.1 Connector Location

Figure 2-49 RTX-CSB Position-Top

Figure 2-50 RTX-CSB Position-Bottom

63 ROM-1210 Evaluation Kit User Manual

Ch

apter2 H

/W In

stallation

2.3.2 ROM-1210 Board Dimension

The ROM-1210 follows Advantech RTX Form Factor at 68mm x 68mm compact size. The board dimension is listed as below.

Note! For detail introduction of RTX form factor and 400-pin definition, you can refer to the RTX_Specification_White_Paper.pdf attached in the DVD content.

Figure 2-51 ROM-1210 Board Dimension

1.6mm

ROM-1210 Evaluation Kit User Manual 64

2.3.3 RTX-CSB Board Dimension

Figure 2-52 RTX-CSB Dimension (Top)

Figure 2-53 RTX-CSB Dimension (Bottom)

Chapter 3 3Software Functionality This chapter introduces the Linux operating system on the ROM- 1210 platform.

ROM-1210 Evaluation Kit User Manual 66

The ROM-1210 platform is an embedded system with Linux kernel 2.6.35 operating system as default. Its major functions have already included all system-required shell commands and drivers for ROM-1210 platform. Advantech Linux package does not offer developing environment, you can develop it under an Ubuntu environment. There are three major boot components for Linux, “u-boot.bin”, “uImage” and “File System”. The “u-boot.bin” is for initial peripheral hardware parameter. The “uImage” is the Linux kernel image, and the “File System” is for Linux O.S. used. The system will not boot into Linux environment successfully if one of these files is not exist on booting media (SD storage card or onboard flash). The purpose of this chapter is to get you going with developing software for the ROM-1210 on a Linux development host only. Note! All instructions in this guide are for Ubuntu 10.04 LTS. At this time, it is the only supported Linux host distribution for development. Note! The “u-boot.bin” is placed on SPI NOR flash of ROM-1210 as default.

3.1 Package Content

There are two kinds of Linux package for ROM-1210. One is for making Linux system SD storage card, and another is source code package.

3.1.1 Package for Making Linux System SD Storage Card

ROM-1210 supports booting from SD storage card. You can use this package to make the Linux system SD storage card, which contains mkmmc-linux.sh, u-boot.bin, uImage and rootfs folder.

Figure 3-1 Contents of package for making Linux system SD storage card

The description of ROM-1210_Linux_system_SD package contents:

- mkmmc-linux.sh � A script to make the Linux system SD card quickly.

- u-boot.bin �U-boot image

- uImage � Linux kernel image

- rootfs � Root file system (include “mk_inand” folder) Note! Please contact with your Advantech contact window if you need it.

67 ROM-1210 Evaluation Kit User Manual

Ch

apter3 S

oftware F

unctio

nality

3.1.2 Source Code Package

The ROM-1210 source code package contains many software components which are accessed by ROM-1210 products. Some are developed by Advantech while others are developed by the open source community. This package contains seven main folders, “cross_compiler”, “image”, “logo”, “mk_inand”, “rootfs”, “scripts”, and “source”.

Figure 3-2 Contents of source code package

The contents of ROM-1210_Linux_Source_Code package are listed as below:

- “cross_compiler” � This folder contains source code for cross compiler.

- “image” �This folder contains the uImage, and the script for making Linux system media automatically.

- “logo” �This folder contains Advantech logo.

- “mk_inand” �Linux system files for onboard flash/SATA disk booting used.

(Including mkmmc-linux.sh/mksata-linux.sh, u-boot.bin, uImage, sfdisk.)

- “rootfs” �This folder contains source code for Linux file system

- “scripts” �This folder contains scripts for configure system and compile images automatically.

- “source” �This folder contains source code for Linux kernel image

3.1.2.1 Cross Compiler

You can use this cross compiler to compiler the uImage and the applications. (gcc version is 4.4.4_09_06_2010)

3.1.2.2 Image

This folder includes these files.

- mkmmc-linux.sh � A script to make the Linux system SD card quickly.

- u-boot.bin �U-boot image

ROM-1210 Evaluation Kit User Manual 68

- uImage � Linux kernel image

And the “uImage” is compiled from Chapter 3.1.2.5.

3.1.2.3 Rootfs (Root File System)

The Linux root file system could be viewed as a tree structure. The tree of the file system starts at the trunk or slash, indicated by a forward slash (/). This directory, containing all underlying directories and files, is also called the root directory or "the root" of the file system.

Directories that are only one level below the root directory are often preceded by a slash, to indicate their position and prevent confusion with other directories that could have the same name. When starting with a new system, it is always a good idea to take a look in the root directory. Below are the main folders which “rootfs” already contains:

- bin �Common programs, shared by the system, system administrator and users.

- boot �The startup files and the kernel. In some recent distributions also grub data. Grub is the GRand Unified Boot loader and is an attempt to get rid of the many different boot-loaders we know today.

- dev �Contains references to all the CPU peripheral hardware, which are represented as files with special properties.

- etc �Most important system configuration files are in /etc, this directory contains data similar to those in the Control Panel in Windows

- home �Home directories of the common users.

- lib �Library files, includes files for all kinds of programs needed by the system and the users.

- lost+found �Every partition has a lost+found in its upper directory. Files that were saved during failures are here.

- mnt �Standard mount point for external file systems.

- opt �Typically contains extra and third party software.

- proc �A virtual file system containing information about system resources. More information about the meaning of the files in proc is obtained by entering the command man proc in a terminal window. The file proc.txt discusses the virtual file system in detail.

- root �The administrative user's home directory. Mind the difference between /, the root directory and /root, the home directory of the root user.

- sbin �Programs for use by the system and the system administrator.

- tmp �Temporary space for use by the system, cleaned upon reboot, so doesn’t use this for saving any work!

- usr �Programs, libraries, documentation etc. for all user-related programs.

69 ROM-1210 Evaluation Kit User Manual

Ch

apter3 S

oftware F

unctio

nality

- var �Storage for all variable files and temporary files created by users, such as log files, the mail queue, the print spooler area, space for temporary storage of files downloaded from the Internet.

3.1.2.4 Scripts

The scripts developed by Advantech will help you configure your system or build the images in an efficient way. There are “setenv.sh”, “cfg_kernel.sh” and “mk_kernel.sh” with descriptions listed as below:

- setenv.sh � A script to setup the developing environment quickly.

- cfg_kernel.sh � A script to configure the kernel building setup quickly.

- mk_kernel.sh � A script to build the kernel(uImage) and copy the “uImage” to “image” folder after building.

- cfg_uboot.sh � A script to configure the u-boot building setup quickly.

- mk_uboot.sh � A script to build the u-boot(u-boot.bin) and copy the “u-boot.bin” to “image” and “mk_inand” folders after building.

3.1.2.5 Source

The source folder contains the folder “linux-2.6.35.3”, which is the source code for Linux kernel image Linux is a clone of the operating system Unix, in which all features you would expect in a modern fully-fledged Unix, including true multitasking, virtual memory, shared libraries, demand loading, shared copy-on-write executables, proper memory management, and multitask networking including IPv4 and IPv6. Linux is easily portable to most general-purpose 32- or 64-bit architectures as long as they have a paged memory management unit (PMMU) and a port of the GNU C compiler (gcc) (part of The GNU Compiler Collection, GCC). Linux has also been ported to a number of architectures without a PMMU, although functionality is then obviously somewhat limited. Linux has also been ported to itself. You can now run the kernel as a user space application - this is called User Mode Linux (UML). Below are the main folders with descriptions which “linux-2.6.35.3” contains:

- arch �The items related to hardware platform, most of them are for CPU.

- block �The setting information for block.

- crypto �The encryption technology that kernel supports.

- Documentation �The documentation for kernel.

- drivers �The drivers for hardware.

ROM-1210 Evaluation Kit User Manual 70

- firmware �Some of firmware data for old hardware.

- fs �The file system the kernel supports.

- include �The header definition for the other programs used.

- init �The initial functions for kernel.

- ipc �Define the communication for each program of Linux O.S.

- kernel �Define the Kernel process, status, schedule, signal.

- lib �Some of libraries.

- mm �The data related the memory.

- net � The data related the network.

- security �The security setting.

- sound �The module related audio.

- virt �The data related the virtual machine. There are plenty of documentation available for both Linux-specific and pertaining to general UNIX questions, and there are various README files in the /linux-2.6.35.3/Documentation: these typically contain kernel-specific installation notes for some drivers for example. See Documentation/00-INDEX for a list of what is contained in each file.

3.2 Setup Building Environment

All instructions in this guide are for Ubuntu 10.04 LTS. Please install the Ubuntu 10.04 LTS at your PC/NB in advance. When you get the ROM-1210 Linux source code package, you can refer to the following steps to unzip this package to your developing environment.

1) Copy “ROM1210_Linux_BSP.tar.gz” package to your desktop.

2) Open “Terminal” utility

3) Type #sudo su (Change to “root” authority)

4) Type your password

5) Type #cd Desktop/

6) Type #tar xvf ROM1210_Linux_BSP.tar.gz (Unzip the file)

7) Then you can see folder "ROM1210_BSP" on desktop

8) Finish.

A quick-start script developed by Advantech can help you setup the developing environment. You can refer to the following steps:

1) Open “Terminal” utility

2) Type #sudo su (Change to “root” authority)

71 ROM-1210 Evaluation Kit User Manual

Ch

apter3 S

oftware F

unctio

nality

3) Type your password

4) Type #cd Desktop/ROM1210_BSP /scripts/

5) Type #. setenv.sh (To configure the developing environment automatically)

6) Then you can start to code the source code, build images, or compile applications …etc.

3.2.1 Setenv.sh

The script “setenv.sh” developed by Advantech will help you configure the developing environment quickly. It will configure the important folder paths for system, and you can also add/modify the setenv.sh by yourself if you have added/changed the folder paths. The default code of setenv.sh is shown as below. #!/bin/bash export SRCROOT=${PWD}/.. export CC_PATH=${SRCROOT}/cross_compiler/arm-fsl-linux-gnueabi export CROSS_COMPILE=$CC_PATH/bin/arm-none-linux-gnueabi- export ARCH=arm export KROOT=${SRCROOT}/source/linux-2.6.35.3 export ROOTFS=${SRCROOT}/rootfs export LOG=${SRCROOT}/Build.log rm -rf ${LOG} Note! You have to run “setenv.sh” once you open a new “Terminal” utility every time.

Note! It is suggested to change to “root” authority to use the source code.

3.3 Building instructions

This section will introduce you to build the U-boot – “u-boot.bin” and the Linux kernel - “uImage”.

3.3.1 Building U-boot image "u-boot.bin"

Advantech has written a script to build the “u-boot.bin” quickly. You can build the image by referring to the following steps:

1) Open "Terminal" utility.

2) Type #sudo su (Change to “root” authority)

3) Type user password.

4) Type #cd Desktop/ROM1210_BSP/scripts/

5) Type #. setenv.sh (To configure the developing environment automatically)

ROM-1210 Evaluation Kit User Manual 72

6) Type #. cfg_uboot.sh (To set the u-boot.bin configuration automatically)

7) Type #. mk_uboot.sh (Start to build the u-boot.bin)

8) Then you can see "u-boot.bin" under folders "image" and “mk_inand”

9) Finish.

3.3.1 Building Linux Kernel Image

The scripts mentioned above will help you build the “uImage” quickly. You can realize it with the following steps:

1) Open “Terminal” utility

2) Type #sudo su (Change to “root” authority)

3) Type your password

4) Type #cd Desktop/ROM1210_BSP /scripts/

5) Type #apt-get install libncurses5-dev (To get the menuconfig library)

6) Type #apt-get install jigit (To get mkimage)

7) Type #. setenv.sh (To configure the developing environment automatically)

8) Type #. cfg_kernel.sh (To set the uImage configuration automatically)

9) Type #. mk_kernel.sh (Start to build the uImage)

10) Then you can see “uImage” under “image” folder

11) Finish.

3.3.2 Build Log

When there is design error when building kernel, it will be recorded in the file automatically. This build.log is under folder “ROM1210_BSP”.

3.4 Source Code Modification

This section will introduce you to use the Linux source code. Some examples for source code applications will be illustrated in the following section as well.

3.4.1 Adding a Driver to Kernel

You can add a driver to kernel by “menuconfig”. Below is an example for adding a RTC driver (Seiko Instruments S-35390A) to Linux kernel. Example:

1) Open “Terminal” utility

2) Type #sudo su (Change to “root” authority)

73 ROM-1210 Evaluation Kit User Manual

Ch

apter3 S

oftware F

unctio

nality

3) Type your password

4) Type #sudo apt-get install libncurses5-dev (set up ncurses libraries)

5) Type #cd Desktop/ROM1210_BSP/scripts/

6) Type #. setenv.sh (To configure the developing environment automatically)

7) Type #. cfg_kernel.sh menuconfig

8) Then you will see a GUI screen (Linux Kernel Configuration) as below:

Figure 3-3 Linux Kernel Configuration 9) Go to “Device Drivers”�”Real Time Clock”, then you will see the “Seiko

Instruments S-35390A” on the list. Select it and save the configuration before exit.

ROM-1210 Evaluation Kit User Manual 74

Figure 3-4 Selecting Seiko Instruments S-35390A

10) Go to folder “source/linux-2.6.35.3/arch/arm/mach-mx5”, then edit “mx53_smd.c” by adding the codes as below.

Figure 3-5 Integrate Code for Seiko Instruments S-35390A

11) Then you can refer to Chap. 3.3.2 to rebuild the kernel with RTC driver (Seiko

Instruments S-35390A).

Note! If you cannot find any drivers to enable your hardware device, you have to contact your hardware vender.

3.4.2 Changing the Boot Logo

A boot logo will be shown when booting up the system. This section will guide you to change the boot logo. Please refer to the following steps:

1) Download and install “netpbm” package by typing #sudo apt-get install

75 ROM-1210 Evaluation Kit User Manual

Ch

apter3 S

oftware F

unctio

nality

netpbm

2) Prepare a picture for boot logo. For example: bootlogo.png (Under folder Desktop/bootlogo)

Note! This picture should be PNG format that under 224 kinds of colors. And it is

better when the image resolution and LCD panel size are equal.

3) Open “Terminal” utility

4) Type #cd Desktop/bootlogo (Go into the folder that bootlogo.png located)

5) Type #pngtopnm bootlogo.png | pnmtoplainpnm > logo_linux_clut224.ppm

6) Type #cp logo_linux_clut224.ppm /home/user/Desktop/ROM1210_BSP/source/linux-2.6.35.3/drivers/video/logo

7) Then you can refer to Chap. 3.3.2 to rebuild the kernel with your boot logo.

3.5 Making Linux System Booting Media

ROM-1210 supports booting from SD storage card and onboard flash. This section will guide you to make the Linux system booting media for ROM-1210.

3.5.1 Making a Linux System SD Storage Card

3.5.1.1 From Linux_System_SD Package

When you get the package for making a Linux system SD storage card, you can refer to the following steps to make a Linux system SD storage card for booting. The script “mkmmc-linux.sh” will help you to build the “uImage” quickly.

1) Copy “ROM1210 _Linux_image.tar.gz” package to your desktop.

2) Open “Terminal” utility.

3) Type #sudo su (Change to “root” authority)

4) Type your password.

5) Type #cd Desktop/

6) Type #tar xvf ROM-1210_Linux_image.tar.gz (Unzip files)

7) Insert your SD card to the developing machine. (Ex: your PC)

8) Type #df -h to check the SD card code name (Ex: /dev/sdf)

9) Type #cd Desktop/ROM1210_Linux_imag/

10) Type #./mkmmc-linux.sh /dev/sdf u-boot.bin uImage rootfs

11) Type #y (Start to copy files, waiting a few minutes until it shows [Done])

12) Insert the Linux system SD storage card to CN41 of ROM-1210 and it will boot

ROM-1210 Evaluation Kit User Manual 76

into Linux environment.

13) Finish.

3.5.1.2 From Source Code Package

Another way to make a Linux system SD storage card for booting is from source code package. You can refer to the following steps and the script “mkmmc-linux.sh” will help you to build the “uImage” quickly.

1) Open “Terminal” utility.

2) Type #sudo su (Change to “root” authority)

3) Type your password.

4) Insert your SD card to the developing machine. (Ex: your PC)

5) Type #df -h to check the SD card code name (Ex: /dev/sdf)

6) Type #cd Desktop/ROM1210_BSP/image/

7) Type #./mkmmc-linux.sh /dev/sdf u-boot.bin uImage ../rootfs

8) Type #y (Start to copy files, waiting a few minutes until it shows [Done])

9) Insert the Linux system SD storage card to CN41 of ROM-1210 and it will boot into Linux environment.

10) Finish.

3.5.2 Booting from Onboard Flash

It is possible to boot up ROM-1210 from onboard flash. To realize the scenario, you could refer to the following steps and the script “mkmmc-linux.sh” will be helpful for you to build the “uImage” quickly.

1) Refer to Chap. 3.4.1 to make a Linux system SD storage card

2) Open “Terminal” utility.

3) Demount the SD card from File Browser and remove it.

4) Insert the Linux system SD card to ROM-1210 and boot into Linux.

5) On ROM-1210 platform, type #root (login)

6) On ROM-1210 platform, type #cd /mk_inand

7) On ROM-1210 platform, type #sh mkmmc-linux.sh /dev/mmcblk0 u-boot.bin uImage rootfs.tar.gz

8) On ROM-1210 platform, type #y (Start to copy files, waiting a few minutes until it shows [Done])

9) Power off and remove the SD card. Now you can boot from onboard flash without the SD card.

77 ROM-1210 Evaluation Kit User Manual

Ch

apter3 S

oftware F

unctio

nality

3.5.3 Booting from SATA DOM

When you get the package for making a Linux system SD storage card, you can refer to the following steps to boot up ROM-1210 form SATA DOM, and the script “mkmmc-linux.sh” will help you to build the “uImage” quickly.

1) Refer to Chap. 3.4.1 to make a Linux system SD storage card.

2) Open “Terminal” utility.

3) Demount the SD card from File Browser and remove it.

4) Insert the Linux system SD card to ROM-1210 and boot into Linux.

5) On ROM-1210 platform, type #root (login)

6) On ROM-1210 platform, type #cd /mk_inand

7) On ROM-1210 platform, type #sh mksata-linux.sh /dev/sda u-boot.bin uImage rootfs.tar.gz

8) On ROM-1210 platform, type #y (Start to copy files, waiting a few minutes until it shows [Done])

9) Power off and remove the SD card. Now you can boot from SATA DOM without the SD card.

3.6 Debug Message

The ROM-1210 can communicate with a host server (Windows or Linux) by a serial cable. Common serial communication programs such as HyperTerminal, Tera Term or PuTTY can be used. The following is an example to guide you using HyperTerminal on a Windows host:

1) Connect ROM-1210 (UART1, CN27 of RTX-CSB) with the Windows PC by a serial cable.

2) Open HyperTerminal on the Windows PC, and select the settings as shown in Figure 3-6.

3) After the bootloader is programmed on SD card, press “POWER” key to power up the board. The bootloader prompt is displayed on the terminal screen.

ROM-1210 Evaluation Kit User Manual 78

Figure 3-6 HyperTerminal Settings for Terminal Setup

3.7 Linux Software Applications on ROM-1210

This section will guide you to develop your own application under Linux. Firstly an example “Hello World” will be shown, and some of the pre-installed applications on ROM-1210 platform will be introduced in detail then.

3.7.1 Writing Your Own "Hello World!" Application and

Executing on ROM-1210

This section will guide you how to write a sample application “Hello World”. You can refer to the steps as below:

1) Open “Terminal” utility.

2) Type #sudo su (Change to “root” authority)

3) Type your password

4) Type #cd Desktop/ROM1210_BSP/scripts/

5) Type #. setenv.sh (To configure the developing environment automatically)

6) Type #cd /home/user/Desktop

7) Type #mkdir helloworld (Create your own work directory on the Desktop)

8) Type #cd helloworld (Enter the work directory)

9) Type # gedit helloworld.c (Create a new C source file)

10) Edit the helloworld.c with the following source code:

79 ROM-1210 Evaluation Kit User Manual

Ch

apter3 S

oftware F

unctio

nality

#include <stdio.h> void main() {

printf("Hello World!\n"); }

11) Save the file and exit.

12) Type #$CC -o helloworld helloworld.c (To compile helloworld.c)

13) Then you can see “helloworld” at the work directory. (/Desktop/helloworld/)

14) Insert the Linux system SD card to the developing machine. (Ex: your PC)

15) Type #cp helloworld /media/rootfs/tool (/media/rootfs is the partition of your Linux system SD card)

16) Remove the SD card and insert it to ROM-1210 for booting.

17) On ROM-1210 platform, type #root (login)

18) On ROM-1210 platform, type #cd /tools/

19) On ROM-1210 platform, type #./helloworld

20) Then it will show “Hello World!”

3.7.2 Running Pre-installed Applications on ROM-1210

The filesystem comes with a number of pre-installed applications. This section shows how to execute those applications in the provided filesystem.

3.7.2.1 Running QT Demos

There are many QT demo applications at path /usr/share/QT/demos.

Figure 3-7 QT Demo Applications

ROM-1210 Evaluation Kit User Manual 80

Below is an example for Fluidlauncher QT demo application. Execute the following commands to run this QT demo application on ROM-1210: Example:

1) Type #root (login)

2) Type #cd /usr/share/QT/demos/embedded/fluidlauncher

3) Type #./fluidlauncher –qws

4) Then you can see the Fluidlauncher demo on the LCD panel.

Figure 3-8 QT -Fluidlauncher Demo

3.7.2.2 Running Audio Demo

Execute the following commands to run the Audio Demo application on ROM-1210.

1) Type #root (login)

2) Type #cd /unit_tests

3) Type #aplay audio8k16S.wav

4) Then you can hear the music from speaker/head-sets.

3.7.2.3 Running Video Demo

Execute the following commands to run the Video Demo application on ROM-1210.

1) Type #root (login)

2) Type #cd /unit_tests

81 ROM-1210 Evaluation Kit User Manual

Ch

apter3 S

oftware F

unctio

nality

3) Type #gplay akiyo.mp4

4) Then you can see the video demo on the LCD panel.

Figure 3-9 Video Demo

3.7.2.4 Running Photo Demo

Execute the following commands to run the Photo Demo application on ROM-1210.

1) Type #root (login)

2) Type #cd /tools

3) Type #./fbv Advantech.jpg

4) Then you can see the photo demo on the LCD panel.

ROM-1210 Evaluation Kit User Manual 82

Figure 3-10 Photo Demo

3.7.2.5 Running Buzzer Testing

Execute the following commands to test the buzzer function of ROM-1210.

1) Type #root (login)

2) Type #cd /tools

3) Type #./test_buzzer.sh

4) Then you can hear the buzzer sound from RTX-CSB.

3.7.2.6 Running Memory Testing

Execute the following commands to run the memory testing of ROM-1210.

1) Type #root (login)

2) Type #cd /tools

3) Type #./memtester 10M 1 (Testing Size=10M Bytes; Loop=1 time)

4) Then it will start to run the memory testing and show the result.

83 ROM-1210 Evaluation Kit User Manual

Ch

apter3 S

oftware F

unctio

nality

Figure 3-11 Result of Memory Testing

ROM-1210 Evaluation Kit User Manual 84

www.advantech.com Please verify specifications before quoting. This guide is intended for reference purposes only. All product specifications are subject to change without notice. No part of this publication may be reproduced in any form or by any means, electronic, photocopying, recording or otherwise, without prior written permission of the publisher. All brand and product names are trademarks or registered trademarks of their respective companies. © Advantech Co., Ltd. 2012