Page 1
User Manual ROM-5420 RISC-based SMARC Module with ® Freescale i.MX6 ARM Cortex™ A9 Processor...
Page 2
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.
Page 3
Do not attempt to recharge, force open, or heat the battery. Replace the battery only with the same or equivalent type recom- mended by the manufacturer. Discard used batteries according to the manufacturer’s instructions. Note! Notes provide optional additional information. ROM-5420 User Manual...
Page 4
Part No. Description ROM-DB5900-SWA1E Development carrier board for SMARC Rev.1.0 For more information please refer to "Advantech Baseboard Check List" and "Evalu- ation Board Reference Schematic". You can download "Advantech Baseboard Check List" and "Evaluation Board Refer- ence Schematic" from http://com.advantech.com/...
Page 5
Commercial grade Part No. ROM-5420CD-MDA1E Freescale i.MX6 Dual 1 GHz Memory 1 GB eMMC 4 GB Camera Input Parallel RGB HDMI LVDS PCIe 1 Host, 1 OTG Audio GPIO Serial Operation Temp. 0 ~ 60° C ROM-5420 User Manual...
Page 6
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-5420 User Manual...
Introduction ROM-5420 adopts Freescale i.MX6 Dual Core Processor - ARM® Cortex™ A9 archi- tecture as its SoC solution. The main features of this platform are followed by SMARC 1.0 standard, with a heatsink-less, compact, reliable & great power manage- ment. Therefore, ROM-5420 platform is suitable for following applications: ...
On-board DDR3 1 GB Memory 4 GB eMMC for O.S. and 4 MB NOR Flash Flash for Advantech boot loader 3 GPUs. OpenGL ES 2.0 for 3D, BitBlt Graphics Engine for 2D and OpenVG 1.1 Decoder: MPEG-4 ASP, H.264 HP, H.263, MPEG-2 MP, MJPEG BP...
Operating temperature: 0 ~ 60° C (32~140° F) The operating temperature refers to the environmental temperature for the model. Operating Humidity: 0% ~ 90% relative humidity, non-condensing Storage temperature: -40~85° C Storage Humidity: – Relative humidity: 95% @ 60° C ROM-5420 User Manual...
Chapter H/W Installation This chapter gives mechanical and connector information on the ROM-5420 CPU Computer on Module. Sections include: Connector Information Mechanical Drawing...
ROM-5420 Board Looks Board Connectors The board has four connectors that allow you to configure your system to your appli- cation. 2.2.1 Connector List External IO Connector Position Description U1103 Flash ROM SW1001 Boot selection CN1602 JTAG connector CN1101 MCU programming port...
Page 15
SD (Reserved for recovery) 2-OFF 2-ON CN1101 (MCU programming port) Signal Signal +3.3 V SWDIO SWCLK MCU_JTAG_RESET CN1602 (JTAG connector) Signal Signal +3.3 V JTAG_TRST# JTAG_TMS JTAG_TDO JTAG_TDI JTAG_TCK JTAG_RTCK CN1603 (Debug connector) Signal Signal +3.3 V UART1_TX UART1_RX ROM-5420 User Manual...
01887800 30 31 32 33 34 35 36 37 38 39 41 42 43 44 45 46 |0123456789ABCDEF| 3.1.3 USB Test Step 1: Insert USB flash disk then assure it is in ROM-5420 device list Step 2: Erase and check #dd if=/dev/sdb of=/dev/sdb bs=1024 count=1 seek=25118...
GPIO11 gpio177 * GPIO1 & GPIO3 has been reserved for camera input in ROM-5420. You can use the two GPIO ports if you do not need the camera feature. #cd /sys/class/gpio You can use “ls” to list all GPIO devices, and you should also see GPIO ports in above table.
You can see display independent both show Advantech.avi at the same time. If you’d like to set the output audio as HDMI out or speaker out, please add the parameter of plughw: A. Plughw:0 → Output the audio through audio jack (AUDIO1)
HDMI video17 HDMI overlay video18 video19 VGA overlay video20 LVDS 0 video21 LVDS 1 3.1.7 I2C Test There are three i2c bus in ROM-5420. #ls /sys/class/i2c-dev i2c-0 i2c-1 i2c-2 i2c-3 i2c-4 i2c-5 i2c-6 #i2cdetect -l i2c-0 imx-i2c I2C adapter...
Page 23
XXXXXXXXXXXXXXXX e0: XX XX XX XX XX XX XX XX XX XX XX XX XX XX XX XX XXXXXXXXXXXXXXXX f0: XX XX XX XX XX XX XX XX XX XX XX XX XX XX XX XX XXXXXXXXXXXXXXXX ROM-5420 User Manual...
[6] 12 34 12 34 12 34 3.1.10 Audio Out and MIC In Test MIC IN command is as follows: #arecord -t wav -c 1 -r 44100 -d 5 2.wav Audio out command is as follows: #aplay 2.wav ROM-5420 User Manual...
3.1.11 OpenGL Test Please follow below instructions to test OpenGL on ROM-5420 platform: Step 1: 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 Step 2: 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.
= 0.203/2.640/7.417 ms 3.1.13 RS232 Test As you can see below, there are 5 UART supported by ROM-5420. /dev/ttymxc0 is reserved for ROM-5420 debug port (ROM-5420 CN1), the rest UART ports could be applied by user. #setserial -g /dev/ttymxc*...
The actual timeout was set to 10 seconds Now reading back -- The timeout is 10 seconds Press [CTRL+C] then you should be able to see below result: imx2-wdt imx2-wdt.0: Unexpected close: Expect reboot! Then system will reboot in 10 seconds ROM-5420 User Manual...
3.1.15 Audio Test Execute the following commands to run the Audio demo application on ROM-5420. #cd /unit_tests #aplay audio8k16S.wav Then you can hear the music from speaker/head-sets. 3.1.16 Photo Demo Test Execute the following commands to run the Photo demo application on ROM-5420.
# RAWDATA=`i2cget -f -y 4 0x30 0x80 w` # echo $((RAWDATA % 256 * 256 + RAWDATA / 256))mV ROM-5420 platform is an embedded system with Linux kernel 3.0.35 inside. It con- tains all system-required shell commands and drivers ready for ROM-5420 platform.
Package Content We would offer you two different kinds of Linux package for ROM-5420. One is pre- built system image for system recovery another is source code package (BSP). 3.2.1 Source Code Package ROM-5420 source code package (BSP) contains cross compiler, Linux source code, Uboot source code, root file system and some scripts used in OS development.
Page 31
→ 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.
Page 32
Linux-specific and general UNIX questions. There are also various README files in ./source/linux-3.0.35/Documentation, you can find the kernel-specified installations and notes for drivers. You can refer to ./ source/linux-3.0.35/Documentation/00-INDEX for a list of the purpose of each README/note. ROM-5420 User Manual...
All instructions in this guide are based on Ubuntu 10.04 LTS developing environment. Please install the Ubuntu 10.04 LTS at your PC/NB in advance. When you obtain the ROM-5420 Linux source code package, please refer to follow- ing instructions to extract to your developing environment: Copy "5420LBVxxxx.tar.bz2"...
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”...
$sudo su (Change to “root” authority) Input user password. Change directory to BSP's scripts folder #. setenv.sh (To configure the developing environment automatically) #./cfg_kernel.sh menuconfig Then you will see a GUI screen (Linux Kernel Configuration) as below: Figure 3.1 Linux Kernel Configuration ROM-5420 User Manual...
Page 36
Please refer to former Chapter 3.5.1 to rebuild the kernel with RTC driver (Seiko Instruments S-35390A) after completing above steps Note! If you cannot find the driver for your device from the list, please contact your hardware vender. ROM-5420 User Manual...
Change directory to BSP's scripts folder #./mksd-linux.sh /dev/sdf Type “y” (Start to copy files, wait until it shows [Done]) Then insert the Linux system SD card to ROM-5420 SD card slot (SD1), it will boot up with Linux environment. 3.6.2...
On ROM-5420 platform, type #cd /mk_inand On ROM-5420 platform, type #./mksd-linux.sh /dev/sda (Check the SATA location like: /dev/sda) On ROM-5420 platform, type “y “(Start to copy files, waiting a few minutes until it shows [Done]) Power off and remove this SD card.
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 ROM-5420, then open serial console. On ROM-5420 platform, type #root (Login) On ROM-5420 platform, type #cd /tool On ROM-5420 platform, type #./helloworld...
Page 40
If you would like to change the WDT time, please modify: ioctl(fd, WDIOC_SETTIMEOUT, &timeout). ROM-5420 User Manual...
If the panel has problem to be activated, you may need to check the panel datasheet to configure the panel related parameters. The LVDS video mode database is stored in linux-3.0.35/drivers/video/mxc/ldb.c. You can add a new one for your LVDS panel. static struct fb_videomode ldb_modedb[] = { "LDB-XGA", 60, 1024, 768, 15385, ROM-5420 User Manual...
Page 42
Single Display Settings HDMI out, please set in u-boot as below: setenv bootargs_mmc 'setenv bootargs ${bootargs} root=/dev/ mmcblk1p1 rootwait rw video=mxcfb0:dev=hdmi,1920x1080M@60,if=RGB24' VGA out, please set in u-boot as below: setenv bootargs_mmc 'setenv bootargs ${bootargs} root=/dev/ mmcblk1p1 rootwait rw video=mxcfb0:dev=lcd,1920x1080M@60,if=RGB24' ROM-5420 User Manual...
SYNOPSIS ifconfig [-v] [-a] [-s] [interface] ifconfig [-v] interface [aftype] options | address ... OPTIONS display all interfaces which are currently available, even if down display a short list (like netstat -i) ROM-5420 User Manual...
Otherwise, set (or clear) the IFF_BROADCAST flag for the interface. del addr/prefixlen Remove an IPv6 address from an interface. 3.8.7 Storage (SATA /eMMC/SD Card) The storages devices are named as follows: Device Name SATA /dev/sda eMMC /dev/mmcblk0 SD card /dev/mmcblk1 ROM-5420 User Manual...
Connect console cable to debug port (CN1) and open serial console program on Ubuntu 10.04 LTS, set baudrate to 115200. For detail console setting, please refer to section 3.6. On ROM-5420 platform, type #root (Login) On ROM-5420 platform, type #cd /mk_inand On ROM-5420 platform, type #./mkinand-linux.sh /dev/mmcblk0 On ROM-5420 platform, type “y “...
Chapter Advantech Services This chapter introduces Advantech design in serviceability, technical support and warranty policy for ROM-5420 evaluation kit.
Easy Development Advantech has support firmware, root file-system, BSP or other develop tools for cus- tomers. It helps customers to easy develop their carrier board and differentiate their embedded products and applications.
Page 49
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 50
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 usually have less support for ready-made drivers on the carrier board, therefore the customer has to learn from trial and error and finally get the best solution with the least effort. Advantech’s team has years of experience in customer support and HW/SW development knowledge. Consequently, we can support customers with professional advice and information as well as shortening development time and enabling more effective product integration.
Technical Support and Assistance For more information about this and other Advantech products, please visit our web- site at: http://www.advantech.com/ http://www.advantech.com/ePlatform/ For technical support and service, please visit our support website at: <http://support.advantech.com.tw/support/> Visit the Advantech web site at www.advantech.com/support where you can find the latest information about the product.