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. How- ever, Advantech Co., Ltd.
Consult the dealer or an experienced radio/TV technician for help. Technical Support and Assistance Visit the Advantech website at http://support.advantech.com where you can find the latest information about the product. Contact your distributor, sales representative, or Advantech's customer service center for technical support if you need additional assistance.
Warnings, Cautions and Notes Warning! Warnings indicate conditions, which if not observed, can cause personal injury! Caution! Cautions are included to help you avoid damaging hardware or losing data. e.g. There is a danger of a new battery exploding if it is incorrectly installed. Do not attempt to recharge, force open, or heat the battery.
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. UBC-200 User Manual...
Advantech also brings you the necessary tools such as S/W driver list and function test plans that will help reduce your design effort and speed up application development.
Features UBC-200 adopts Freescale i.MX6 Dual Core Processor - in an ARM® Cortex™ A9 architecture as its SoC solution. It supports both Dual Core and Quad Core as its embedded SoC. UBC-200 is heatsink-less, compact, and reliable with great power management, and is a suitable solution for the following applications: ...
Table 1.1: UBC-200 Specification Audio HDMI Power DC-input 9 ~ 24 V Normal Run: 2.5 W Power Consumption Full Run: 3.5 W Power Control 1 x Reset button - Standard mode Power Management - Sleep mode (Controlled by Software) Mechanical and Environmental Dimension 108 x 79 x 30 mm Weight...
Chapter UBC-200 H/W installation This chapter introduces the startup procedures of the UBC- 200 hardware, including assembly and device integration. It also includes mechanical drawings. Be sure to read all safety precau- tions before you begin installation procedure.
UBC-200 H/W Installation 2.1.1 I/O Description Figure 2.1 UBC-200 I/O Connector A. DC-in Connector Users can connect DC power cord to this connector to power on UBC-200. The pin define is shown below. Figure 2.2 DC-in Connector B. RESET Button Press this button to reset UBC-200.
DIN Rail Assembly You can optionally purchase DIN rail (P/N: 1960015198T011) for holding UBC-200. Please contact an Advantech salesperson for more details. Users can assemble a DIN rail to UBC-200’s metal chassis as shown below: Figure 2.4 DIN Rail Assembly...
2.2.3 Wall Mount Bracket Figure 2.7 UBC-200 Wall Mount Bracket Quick Start 2.3.1 Building Connection of Linux Console UBC-200 connects to a host PC (Windows) by using the telnet function. In order to communicate with a host PC, a telnet communication program such as PuTTY is a must.
Test Tools All test tools must be verified on UBC-200 system, please prepare required test fix- tures before verifying each specified I/O. If you have any problems, please contact your Advantech contact window for help. 2.4.1 eMMC Test Erase and check.
2.4.3 SD Test When booting from eMMC, you would see only below directories: #ls /dev/mmcblk* /dev/mmcblk0 /dev/mmcblk0boot0 /dev/mmcblk0boot1 /dev/mmcblk0p1 Insert SD card to SD card slot (SD1) and check your device again. You should be able to see more directories. /dev/mmcblk1 is the SD card storage. #ls /dev/mmcblk* /dev/mmcblk0 /dev/mmcblk0boot1 /dev/mmcblk1 /dev/mmcblk1p2/dev/mmcblk0boot0 /dev/mmcblk0p1 /dev/mmcblk1p1...
2.4.4 HDMI Test #gplay /tools/Advantech.avi Then you can see the video demo on the default display screen. Figure 2.8 HDMI Test 2.4.5 Mini PCIe (3 G and Wifi) Test The command used to test 3G module is as follows, the supported module P/N is EWM-C106FT01E.
2.4.6 OpenGL Test Please follow the instructions below to test OpenGL on the UBC-200 platform: Change path to /opt/viv_samples/vdk. #cd /opt/viv_samples/vdk #ls tutorial* tutorial1 tutorial2_es20 tutorial4 tutorial5_es20 tutorial1_es20 tutorial3 tutorial4_es20 tutorial6 tutorial2 tutorial3_es20 tutorial5 tutorial7 Run tutorial7 for OpenGL ES 1.1. Using Vertex Buffer Objects (VBO) can substantially increase performance by reduc- ing the bandwidth required to transmit geometry data.
2.4.7 LAN Test You can set dynamic ip by following instructions: Open /etc/rc.d/rc.conf. Modify IPADDR0=”dhcp”. #reboot. Then you will see: #ifconfig eth0 Link encap:Ethernet HWaddr 00:04:9F:01:30:E0 inet addr:172.17.21.96 Bcast:172.17.21.255 Mask:255.255.254.0 UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:129 errors:0 dropped:18 overruns:0 frame:0 TX packets:2 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:15016 (14.6 KiB) TX bytes:656 (656.0 B)
The target computer (Client) IP address is 172.17.20.192, so we can use the below command to see if we can get any response from the client. #ping 172.17.20.192 PING 172.17.20.192 (172.17.20.192): 56 data bytes 64 bytes from 172.17.20.192: seq=0 ttl=128 time=7.417 ms 64 bytes from 172.17.20.192: seq=1 ttl=128 time=0.203 ms 64 bytes from 172.17.20.192: seq=2 ttl=128 time=0.300 ms --- 172.17.20.192 ping statistics ---...
2.4.9 Photo Demo Test Execute the following commands to run the Photo demo application on UBC-200. #cd /tools #./fbv Advantech.jpg Then you can see the photo demo on the default display screen. Figure 2.9 Photo Demo UBC-200 User Manual...
UBC-200 source code package (BSP) contains cross compiler, Linux source code, Uboot source code, root file system and some scripts used in OS development. Some of above components are developed by Advantech and the others are devel- oped by open source community. UBC-200 source code package is composed of six main folders: “cross_compiler”, “document”, “image”, “package”, “scripts”, and...
Page 31
3.2.1.1 cross_compiler You can use the cross compiler toolchain to compile the uImage and related applica- tions. (gcc version is 4.6.2 20110630) Toolchain directory structure is as follow: |-- bin // toolchain with prefix, such as arm-none-linux-gnueabi-gcc etc. |-- lib // library files used for toolchain itself, not for application |-- arm-fsl-linux-gnueabi |-- bin // toolchain without prefix, such as gcc.
Page 32
→ just for sample test. 3.2.1.5 scripts Some scripts provided by Advantech will help you configure system or build the images more quickly. Please check them as follows: – setenv.sh → A script to setup the developing environment quickly.
Input user password #cd Desktop/ #tar xvf U200LBVxxxx.tar.bz2 (Unzip file) Advantech offer you a script to setup the developing environment quickly. You can refer following steps to setup your developing environment: Open "Terminal" on Ubuntu 10.04 LTS. $sudo su (Change to “root” authority)
This section will guide you how to build the u-boot & Linux kernel. 3.4.1 Build u-boot Image Advantech has written a script to build the u-boot quickly. You can build u-boot image by follow below steps: Open "Terminal" on Ubuntu 10.04 LTS $sudo su (Change to “root”...
Source Code Modification This section will guide you how to use the Linux source code. You will see some examples of using BSP source code in this section. 3.5.1 Add a Driver to Kernel by menuconfig You can add a driver to kernel by menuconfig. Here is an example to guide you how to add a RTC driver (Seiko Instruments S-35390A) to Linux kernel.
Page 36
Select “Device Drivers”→”Real Time Clock”, you will see an option “Seiko Instruments S-35390A” on the list. Choose this option then exit and save your configuration. Figure 3.2 Selecting Seiko Instruments S-35390A Change directory to “source/linux-3.0.35/arch/arm/mach-mx6”, edit the “board- mx6q_ROM-7420.h” and “board-mx6q_advantech.c”. Please add below codes to source/linux-3.0.35/arch/arm/mach-mx6/board- mx6q_ROM-7420.h: /* I2C */...
If you already have a Linux system SD card, you can refer to the following steps to copy the content to onboard flash and then boot from onboard flash. Advantech also provides you a script “mkinand-linux.sh” to speed up the process of installing system image to onboard flash.
On UBC-200 platform, type #cd /mk_inand On UBC-200 platform, type #./mkinand-linux.sh /dev/mmcblk0 On UBC-200 platform, type “y “(Start to copy files, wait until it shows [Done]) Power off and remove this SD card. Then you can boot from onboard flash without SD card. Telnet Function UBC-200 connects to a host PC (Windows) by using telnet function.
Linux Software AP and Testing on UBC-200 This section will guide you how to develop your own application under Linux environ- ment. First of all, an example “Hello World” will be shown. And then you will see some pre-installed test programs on UBC-200 will be introduced in this section. 3.8.1 “Hello World!”...
Insert the Linux system SD card to your developing computer. #cp helloworld /media/rootfs/tool (/media/rootfs is the mounted point of your Linux system SD card) Remove this SD card and insert it to UBC-200, then open serial console. On UBC-200 platform, type #root (Login) On UBC-200 platform, type #cd /tool On UBC-200 platform, type #./helloworld Now you should be able to see “Hello World!”...
3.8.5 3G Sample Code The code of 3glink, we have tried this command in 3 G test (Section 1.8). #!/bin/bash echo "Send AT commands..." pppd connect 'chat -v -s -t 10 "" "AT" "" "ATDT*99#" "CONNECT" ""' user username password password /dev/ttyUSB2 460800 nodetach crtscts debug usepeerdns defaultroute &...
System Recovery This section provides detail procedures of restoring the eMMC image. You can do system recovery following these steps if you destroy onboard flash image by acci- dent. Open "Terminal" on Ubuntu 10.04 LTS. $sudo su (Change to “root” authority). Input your password.
Advantech has been involved in the industrial computer industry for many years and found that customers usually have the following questions when implementing modu- lar designs.
Page 51
RISC COM. Design stage When a product moves into the design stage, Advantech will supply a design guide of the carrier board for reference. The carrier board design guide provides pin defini- tions of the COM connector with limitations and recommendations for carrier board design, so customers can have a clear guideline to follow during their carrier board development.
RISC platforms. As a supportive role, Advantech primarily helps customers solve their problems in the testing process and will give suggestions and tips as well. Through an efficient verifi- cation process backed by our technical support, customers are able to optimize their applications with less fuss.
(Dead-on-Arrival). The DOA Cross-Shipment excludes any shipping damage, cus- tomized and/or build-to-order products. For those products which are not DOA, the return fee to an authorized ADVANTECH repair facility will be at the customers' expense. The shipping fee for reconstructive products from ADVANTECH back to customers' sites will be at ADVANTECH's expense.
Page 54
"Problem Description". Vague entries such as "does not work" and "failure" are not acceptable. If you are uncertain about the cause of the problem, please contact ADVANTECH's Application Engineers (AE). They may be able to find a solution that does not require sending the product for repair.
Page 55
ranty. If a product has been repaired by ADVANTECH, and within three months after such a repair the product requires another repair for the same problem, ADVANTECH will do this repair free of charge. However, such free repairs do not apply to products which have been misused, abused, or subjected to unauthorized disassembly/modification;...
Need help?
Do you have a question about the UBC-200 RISC Compact Box and is the answer not in the manual?
Questions and answers