Home
User Manual ROM-3420 - download.advantech.com
Contents
1. 31 3 83 GPIO Seting aene eet ete etr dedita d e 32 3 8 4 RS232 Initial Codesoso eet nne eet 33 3 8 5 Display Output Setting cse cete 33 3 8 6 Network 35 3 8 7 Storage SATA eMMC SD 35 3 8 8 3G Sample Code 35 System Recovery 37 Boot up from the SD card onboard eMMC or SATA DOM 38 4 1 1 Boot up from the SD 38 4 1 2 Boot up from the onboard eMMC 38 4 1 3 Boot up from SATA 38 Advantech Services 39 RISC Design in Services e cseseee caddie cidit daba gan 40 Contact InfortmiatiOn c 43 Technical Support and 44 viii Product Overview This chapter briefly introduces ROM 3420 platform Sections include E Introduction E Specification 1 1 Introduction ROM 3420 uses the Freescale i MX6 Dual Core Processor ARM Cortex 9 architecture as its SoC solution Main features include RTX 2 0 Standard heatsink less compact size total reliability and excellent power management ROM 3420 platform is suitable for the following applications HMI Human Machine In
2. Advantech offer script to help setup the development environment quickly You refer to the following steps to setup your environment Open Terminal on Ubuntu 10 04 LTS sudo su Change to root authority Input user password Change directory to BSP s scripts folder 4 setenv sh To configure the development environment automatically Then you can start to code the source code build images or compile applica tions Oeo I ROM 3420 User Manual 24 3 3 1 3 3 2 Installing required packages Open terminal console and perform following command sudo apt get install bison build essential ccache dpkg flex gcc g gettext V intltool libarchive zip perl libdbus glib 1 dev libfreetype6 dev libgtk2 dev liblzo2 2 liblzo2 dev libncurses5 dev liborbit2 dev libtool libx11 dev libxml2 dev m4 patch rpm tcl uboot mkimage uuid uuid dev zliblg zlibig dev setenv sh This script is used to configure the development environment quickly It will configure the folder paths for your system and you can also add modify the setenv sh by your self if you have added changed the folders and paths The major part of setenv sh is shown as follows export SRCROOT PWD export CC PATH SRCROOT cross compiler fsl linaro toolchain export CROSS COMPILE CC PATH bin arm none linux gnueabi export CC CROSS COMPILE gcc export STRIP CROSS COMPILE strip export
3. 400Mbps Watch Dog Timer Sec muli oglion PCle 1 PCle SATA 1 SATA II USB 1 USB 2 0 1 USB2 0 OTG Audio HD Audio with 125 Serial Port 3 UART 3 x 4 wires w 3 3 V 1 0 SPI 1 SPI CAN 2 CAN bus 2 0B GPIO 10 GPIO 12C 4 12C System bus Address 26 bits Data 16 bits 2 chip select pins 0 5 Linux 3 0 35 Power Supply Voltage 5 24V Operation 0 60 C Environment Operating Humidity 0 90 relative humidity non con densing Physical Characteristics Dimensions WxD 68 x 68 mm ROM 3420 User Manual 1 3 1 4 1 5 Mechanical Specifications Dimensions RTX form factor size 68 mm W x 68 mm D Height on Top Under 5 5 mm base on SPEC definition without heatsink Height on Bottom Under 2 5 mm base on SPEC definition Heatsink Dimensions 68 mm x 68 mm x 10 5 mm L x W x H Electrical Specifications B Power supply Voltage Voltage requirements 5 24 V Power Consumption 5V Kernel idle Maximum mode ROM 3420CD MDA 1E on Linux 2 85 W 6 25 W Environmental Specifications B Operating temperature 0 60 C 32 140 F The operating temperature refers to the environmental temperature for the model B Operating Humidity 0 90 relative humidity non condensing B Storage temperature 40 85 C Storage Humidity Relative humidity 95 60 C ROM 3420 User Manual 4 H W Installation This chapter gives mechanical and connector information on the ROM 3
4. Enable GPIO gpio request SABRESD GPIO8 gpio 8 gpio request SABRESD GPIO9 gpio 9 ROM 3420 User Manual 32 gpio direction input SABRESD GPIOS8 gpio direction output SABRESD GPIO9 0 3 8 4 RS232 Initial Code The RS232 initial code as below It shows you how to initial COM port int open port void int fd fd open dev ttymxc1 0 RDWR O NOCTTY O NDELAY if fd 1 perror open error return fd 3 8 5 Display Output Setting 3 8 5 1 LVDS Settings Please set environment in u boot as below setenv bootargs base setenv bootargs console ttymxc 115200 enable wait_mode off video mxcfb1 dev ldb 1024x768M 60 if RGB24 LDB XGA is an example for the resolution of your LVDS panel You can input the actual resolution of your LVDS panel here such as 800x480 1024x768 etc The sys tem will accomplish the corresponding parameters automatically 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 Idb c You can add a new one for your LVDS panel static struct fb videomode ldb modedb 5 LDB XGA 60 1024 768 15385 220 49 21 7 60 10 e FB VMODE NONINTERLACED FB MODE IS DETAILED The definition of fb videomode in linux 3 0 35 include linux fb h The name field is optional If you input this value it can be used in U Boot environ
5. ROM 3420 RISC based RTX Module with Freescale i MX6 ARM Cortex A9 Processor AD VANTECH Enabling an Intelligent Planet Copyright The documentation and the software included with this product are copyrighted 2014 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 How ever Advantech Co Ltd assumes no responsibility for its use nor for any infringe ments 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 Product Warranty 2 years Advantech warrants to you the original purchaser that each of its products will be free from defects in materials and workmanship for two years from the date of pur chase This warranty does not apply to any products which have been repaired or altered by persons other than repair personnel authorized by Advantech or which have been subject to misuse abuse accident
6. home lib mnt opt proc root sbin Sys tmp unit tests usr var tools scripts Common programs shared by the system the system administrator and the users Contains references to all the CPU peripheral hardware which are resented as files with special properties Most important system configuration files are in etc this directory con tains data similar to those in the Control Panel in Windows Home directories of the common users Library files includes files for all kinds of programs needed by the sys tem and the users Standard mount point for external file systems Typically contains extra and third party software 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 The administrative user s home directory Mind the difference between the root directory and root the home directory of the root user Programs for use by the system and the system administrator Linux sys file system Temporary space for use by the system cleaned upon reboot so doesn t use this for saving any work unit test tools are provided by Freescale i MX6 product Programs libraries documentation etc for all user related progra
7. ment settings The refresh field is the screen refresh frame rate such as 60Hz 70Hz The resolution can be filled in the xres amp yres fields The pixel clock pixclock is equaled to 10 Total horizontal line Total vertical line DCLK For example the total horizontal line is 1344 DCLK and total vertical number 33 ROM 3420 User Manual 3 8 5 2 3 8 5 3 is 806 horizontal lines The DCLK frequency is 60 MHz Therefore we can get 1012 1344 806 60 15385 The margin values can be seen as front porch amp back porch The sync len means pulse width The sync value indicates the sync polarity low or high struct fb videomode 4 const char name optional u32 refresh optional u32 xres u32 yres u32 pixclock u32 left margin u32 right margin u32 upper margin u32 lower margin u32 hsync len u32 vsync len u32 sync u32 vmode u32 flag Single Display Settings HDMI out please set in u boot as below setenv bootargs base setenv bootargs console ttymxc 115200 enable wait_mode off video mxcfb dev hdmi 1920x1080M 60 if RGB24 VGA out please set in u boot as below setenv bootargs base setenv bootargs console ttymxc 115200 enable wait_mode off video mxcfb dev lcd 1920x1080M 60 if RGB24 LVDS out please set in u boot as below setenv bootargs base setenv bootargs console ttymxc 115200 enable wait_mode off video mxcfb1 dev ldb 1024x768M 60 if RGB24 Multi Display Setting
8. 13 14 15 16 Esc 1 2 3 4 5 6 7 8 9 9 Minus Equal Backspace Tab Q Misc 4 ScanCode Event type 20 Repeat Testing interrupt to exit 3 1 19 2 press any keypad button Real example for keypad1 button as following A While keypad1 pressed Event time 947201564 418599 type 4 Misc code 4 ScanCode value 03 Event time 947201564 418606 type 1 Key code 4 3 value 1 Event time 947201564 418608 Report Sync B While keypad1 keep pressed Event time 947201564 668613 type 1 Key code 4 3 value 2 Event time 947201564 668614 Report Sync C While keypad1 released Event time 947201564 998592 type 4 Misc code 4 ScanCode value 03 21 ROM 3420 User Manual 3 2 3 2 1 3 2 1 1 Event time 947201564 998596 type 1 Key code 4 3 value 0 Event time 947201564 998597 Report Sync keypad vs code keypad1 code 4 keypad2 code 8 keypad3 code 12 keypad4 code 16 keypad5 code 3 keypad6 code 7 keypad7 code 11 keypad8 code 15 keypad9 code 2 keypad19 code 6 keypad11 code 19 keypad12 code 14 keypad13 code 1 keypad14 code 5 keypad15 code 9 keypad16 code 13 Package Content Source Code Package ROM 3420 source code package BSP contains cross compiler Linux source code Uboot source code root file system and some scripts used in OS devel
9. echo Hcat dev ttymxc4 amp Hecho Hello dev ttymxc4 Hello 3 1 14 Watchdog Timer Test Step 1 Executing wdt driver test out H unit tests wdt driver test out Usage wdt driver test timeout sleep test timeout value in seconds to cause wdt timeout reset sleep value in seconds to service the wdt test Service wdt with ioctl 1 with write Step 2 Please try below command to set timeout as 10 seconds system will reboot after then H unit tests wdt driver test out 10 5 0 Starting wdt driver timeout 10 sleep 5 test ioctl Trying to set timeout value 10 seconds 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 3 1 15 Audio Test Execute the following commands to run the Audio demo application on ROM 3420 Hcd unit tests Haplay 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 3420 tools fbv Advantech jpg Then you can see the photo demo on the default display screen 19 ROM 3420 User Manual AD ANTECH Enabling an Intelligent Planet 3 1 17 Camera Input Test Execute the following commands to run the camera demo application on ROM 3420 3 1 17 1 Preview gst launch mfw v4l
10. root authority Input user password Change directory to BSP s scripts folder setenv sh To configure the development environment automatically cfg_kernel sh imx6_rom3420_defconfig To set the ulmage configura tion automatically 7 mk_kernel sh Start to build the ulmage 8 Then you can see ulmage is being built and located in image Build Log You can find the build log file from the directory of ROM 3420 BSP If you got any error messages when building the Linux kernel it is suggested to look into the log file to find the problem ROM 3420 User Manual 26 3 5 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 the kernel by menuconfig Here is an example to guide you how to add a RTC driver Seiko Instruments S 35390A to Linux kernel Please refer to the following steps 1 Open Terminal on Ubuntu 10 04 LTS 2 sudo su Change to root authority 3 Input user password 4 Change directory to BSP s scripts folder 5 4 setenv sh To configure the development environment automatically 6 cfg_kernel sh menuconfig 7 Then you will see a GUI screen Linux Kernel Configuration as below Linux arm 3 0 35 Kernel Configuration Arrow keys navigate the menu Enter selects submenus gt Highlighted lette
11. ARCH arm export KROOT SRCROOT source linux 3 0 35 export ADVBOOT SOURCE SRCROOT source u boot 2009 08 export UBOOT SOURCE SRCROOT source u boot 2009 08 export ROOTFS SRCROOT image rootfs export LOG SRCROOT Build log export PATH bin UBOOT SOURCE tools PATH Note You have to wrap setenv sh once you open a new Terminal utility every time ED Z i e source setenv sh 25 ROM 3420 User Manual 3 4 3 4 1 3 4 2 3 4 3 Note Itis suggested to change to root authority to use the source code D Build Instructions This section will guide you on how to build the u boot amp Linux kernel Build u boot Image Advantech has written a script to help build u boot quickly You can build a u boot image by following the steps below Open Terminal on Ubuntu 10 04 LTS sudo su Change to root authority Input user password Change directory to BSP s scripts folder setenv sh To configure the development environment automatically cfg_uboot sh mx6q_rom 3420_1G_config To set the u boot configura tion automatically 4 mk uboot sh Start to build the u boot 8 Then you can see u boot crc bin and u boot crc bin crc are being built and located in image Oa hon gt N Build Linux Kernel Image Advantech offer you a script to build the ulmage quickly You can build a ulmage by following these steps Open Terminal on Ubuntu 10 04 LTS sudo su Change to
12. Intersil X1205 Philips PCF8563 Epson RTC8564 Philips PCF8583 ST M41T62 65 M41T80 81 82 83 84 85 87 TI BQ32000 Seiko Instruments 5 353902 Ramtron FM3130 Epson RX 8581 Epson RX 80255A NB EM Microelectronic EM3027 Micro Crystal RIC lt Exit gt lt gt Figure 3 2 Selecting Seiko Instruments 5 35390 mx6q ROM 3420 h and board mx6q advantech c Please add below codes to source linux 3 0 35 arch arm mach mx6 board mx6q ROM 3420 h static struct i2c board info mxc i2c6 board info initdata switch 3 rtc S35390A s I2C BOARD INFO s35390a 0x30 Please add below codes to source linux 3 0 35 arch arm mach mx6 board mx6q advantech c i2c register board info 6 mxc i2c6 board info ARRAY SIZE mxc i2c6 board info 10 Please refer to former Chapter 3 4 2 Build Linux Kernel Image to rebuild the ker nel with RTC driver Seiko Instruments S 35390A after completing above steps Note Ifyou cannot find the driver for your device from the list please contact E your hardware vendor ROM 3420 User Manual 28 3 5 2 3 6 3 7 3 7 1 3 7 1 1 3 7 1 2 Change ROM 3420 Boot Logo By default ROM 3420 shows boot logo when booting up You can replace the logo to whatever your want by following the steps below 1 Install netpbm sudo apt get install netpbm 2 Prepare your boot logo For example bootlogo png Under folder Desktop boot logo Note This pict
13. LVDS 0 3 1 7 2 Test Hi2cdetect 1 i2c 0 i2c imx i2c I2C adapter i2c 1 12 imx i2c I2C adapter i2c 2 i2c imx i2c I2C adapter i2c 3 i2c i2c 1 mux chan id 0 I2C adapter i2c 4 i2c i2c 1 mux chan id 1 I2C adapter i2c 5 12 i2c 1 mux chan id 2 I2C adapter i2c 6 i2c i2c 1 mux chan id 3 I2C adapter Try the command below to know if there is any devices connected to i2c bus 5 i2cdetect y 5 0 1 2 3 4 5 6 7 8 9 a b cd f P 22 Tok SE G E oe S ipee 2 Se as s Se ek Sees EEE EEE joines Oc sis ee ee Se ee SS SOs Bo ok due G oe 60 95 25 6 26 55 38 25 2 AU d D G 32 06 70 UU 0 50 is the HDMI address Try the command below to know if the 2 bus is working or not i2cdump f y 5 0x50 No size specified using byte data access 012 345067 89 abcde f 0123456789abcdef 00 00 ff ff ff ff ff ff 00 04 69 fd 22 03 01 0101 1 10 16 17 01 03 80 30 1b 78 2 2 5 a4 56 4f 28 2 0 x VO 20 50 54 b7 ef 00 di 81 40 81 80 95 00 b3 00 PT QQ 30 71 4f 81 0 81 00 02 3a 80 18 71 38 2d 40 58 2c q0 q8 X 40 45 00 dc 11 00 00 1e 00 00 00 ff 00 44 35 4c D
14. com http www advantech com ePlatform For technical support and service please visit our support website at lt http support advantech com tw support gt 1 Visit the Advantech web site at www advantech com support where you can find the latest information about the product 2 Contact your distributor sales representative or Advantech s customer Service center for technical support if you need additional assistance Please have the following information ready before you call Product name and serial number Description of your peripheral attachments Description of your software operating system version application software etc A complete description of the problem The exact wording of any error messages ROM 3420 User Manual 44 45 ROM 3420 User Manual ADMANTECH Enabling an Intelligent Planet 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 permis sion of the publisher All brand and product names are trademarks or registered trademarks of their respective companies O Advantech Co Ltd 2014
15. the default display screen AD ANTECH amy Testing through gst launch for multi display If you d like to have multiple displays such as dual LVDS VGA and HDMI output you should set parameter in uboot first Please refer to section 3 7 5 3 for more detail Once the display method is set up please follow the below instructions to run gst launch to play video Step1 Turn ON the HDMI display please type as below gst launch playbin2 uri file tools Advantech avi video sink mfw_v4lsink device dev video16 amp Step2 Turn ON VGA display at the same time please type gst launch playbin2 uri file tools Advantech avi video sink mfw_v4lsink device dev video18 amp You can see independent displays 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 gst launch playbin2 uri file tools Advantech avi video sink mfw_v4lsink device dev video17 audio sink alsasink device plughw 0 B Plughw 1 Output the audio through HDMI gst launch playbin2 uri file tools Advantech avi video sink mfw_v4lsink device dev video17 audio sink alsasink device plughw 1 13 ROM 3420 User Manual If you d like to change display monitor please refer to below table video16 HDMI video17 HDMI overlay video18 VGA video19 VGA overlay video20
16. 0 00 00 00 00 00 OG 00 00 00 Step 4 Write and check echo n 0123456789ABCDEF dd of dev mmcblk1 bs 1024 count 1 seek 25118 1 records in 1 records out 11 ROM 3420 User Manual 3 1 5 3 1 5 1 3 1 5 2 hexdump C dev mmcblk1 s 25720832 n 16 01887800 30 31 32 33 34 35 36 37 38 39 41 42 43 44 45 46 0123456789ABCDEF Note Please make sure parameter seek is equal to 25118 as indicated in N red in above codes If you create the file to a wrong sector that may damage the system GPIO Test GPIO Default Setting ROM DB3900 ee Isysiclass gpio GPIO8 gpio1 GPIO9 gpio 2 sys class gpio You can use ls to list all GPIO devices and you should also see GPIO ports in above table Testing A Set gpio1 GPI in Hecho gt gpio1 direction cat gpiol direction in B Set gpio2 GPO out echo out gt gpio2 direction cat gpio2 direction out C Set gpio2 GPO value 0 echo 0 gt gpio2 value D Get gpio1 value cat gpiol value 0 you can see above procedure we set gpio 1 as GPI gpio 2 as GPO so once we send data out from gpio 2 it should be able to receive the same data from gpio 1 ROM 3420 User Manual 12 3 1 6 3 1 6 1 3 1 6 2 LVDS HDMI VGA Test Testing through gplay for default single display Step 1 amp gplay tools Advantech avi Step 2 Then you can see the video demo on
17. 1 sleep sec atoi argv 2 if sleep sec lt 0 sleep sec 1 printf correct 0 or negative sleep time to Xd seconds Mn sleep sec test atoi argv 3 31 ROM 3420 User Manual printf Starting driver timeout Xd sleep Xd test s n timeout sleep sec test 0 ioctl write fd open dev watchdog O WRONLY if fd 1 perror watchdog exit 1 printf Trying to set timeout value d seconds n timeout ioctl fd WDIOC SETTIMEOUT amp timeout printf The actual timeout was set to Xd seconds n timeout ioctl fd WDIOC GETTIMEOUT amp timeout printf Now reading back The timeout is Xd seconds n timeout while 1 printf WDT Time out counter d n count if test 0 amp amp test count printf Ping Watchdog reset wdt n ioctl fd WDIOC KEEPALIVE 0 test 0 count 0 sleep sleep sec count sleep sec return 0 void help info void printf Usage wdt driver test timeout sleep lt trigger gt n printf timeout value in seconds to cause wdt timeout reset n printf sleep value in seconds to display wdt timeout n printf trigger value in seconds to ping the wdt n If you would like to change the WDT time please modify ioctl fd WDIOC SETTIMEOUT amp timeout 3 8 3 GPIO Setting Please see GPIO initial code listed below Below code is to assign the starting value to GPIO variable
18. 30 E0 inet addr 172 17 21 97 Bcast 172 17 255 255 Mask 255 255 0 0 UP BROADCAST RUNNING MULTICAST MTU 150 Metric 1 RX packets 2851 errors dropped 271 overruns 0 0 TX packets 30 errors dropped 0 overruns carrier collisions txqueuelen 1000 RX bytes 291407 284 5 KiB TX bytes 2000 1 9 KiB The target computer Client IP address is 172 17 20 192 so we can use below com mand to see if we can get any response from the client Hping 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 3 packets transmitted 3 packets received 0 packet loss round trip min avg max 0 203 2 640 7 417 ms 3 1 13 RS232 Test setserial g dev ttymxc dev ttymxc UART undefined Port 0x0000 IRQ 58 dev ttymxc1 UART undefined Port 0x0000 IRQ 59 dev ttymxc2 UART undefined Port 0x0000 IRQ 60 dev ttymxc3 UART undefined Port 0x0000 IRQ 61 dev ttymxc4 UART undefined Port 0x0000 IRQ 62 3 1 13 1 ttymxc1 Testing Hstty F dev ttymxc1 echo Hcat dev ttymxc1 amp Hecho Hello gt dev ttymxc1 ROM 3420 User Manual 18 Hello 3 1 13 2 ttymxc3 Testing Hstty F dev ttymxc3 echo Hcat dev ttymxc3 amp Hecho Hello dev ttymxc3 Hello 3 1 13 3 ttymxc4 Testing Hstty F dev ttymxc4
19. 420 CPU Computer on Module Sections include m Connector Information Mechanical Drawing 2 1 ROM 3420 Board Looks 2 2 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 U1101 Flash ROM A SW1001 Boot selection B CN1201 JTAG connector C CN1101 MCU programming port D CN1202 Debug port E ROM 3420 User Manual 6 SW1001 Boot selection Jumper Mode Jumper Mode 1 ON 1 OFF 2 OFF SPI ROM Default 2 ON SD Reserved for recovery CN1101 MCU programming port Pin Signal Pin Signal 1 3 3V 2 MCU TXD 3 MCU RXD 4 PROGRAM 5 GND CN1201 JTAG connector Pin Signal Pin Signal 1 3 3V 2 JTAG TRSTH 3 JTAG TMS 4 JTAG TDO 5 JTAG TDI 6 JTAG TCK 7 8 GND 9 10 GND CN1202 Debug connector Pin Signal Pin Signal 1 3 3V 2 UART1 TX 3 UART1 RX 4 GND 7 ROM 3420 User Manual 2 3 ROM 3420 Board Block Diagram HI DDR3 256MB x 4pcs RTX CONN C ATHERO AR8033 AL1B USB2 0 OTG USB2 0 HOST RTX CONN A SYSTEM BUS POWER MANAGMENT 4 lanes 2 chip select address 26 bit data 16 bit RTC POWER RTX POWER Freescale i MX6 RTX CONN D 1GHz RTX CONN B 12 SWITCH HOMIDDC PCA9545APW a rrr IMPERA 12 SWITCH 1200 PCA9545APW 1262 12 SWIT
20. 5L 50 44 51 53 30 39 36 30 34 38 0a 00 00 00 fd 00 32 05096048 2 60 4b 18 53 11 00 0a 20 20 20 20 20 20 00 00 00 fc K S ROM 3420 User Manual 14 70 00 41 53 55 53 20 56 53 32 32 38 20 20 01 f6 ASUS VS228 9 80 02 03 22 71 4f 01 02 03 11 12 13 04 14 05 Ge Of q0 90 1d 1e 1f 10 23 09 17 07 83 01 00 00 65 03 00 H e a0 10 00 8c 40 8 20 eg 2d 10 10 3e 96 00 dc 0c 2 9 gt b 11 00 00 18 01 1d 00 72 51 00 1e 20 28 55 00 rQ n U C0 dc 0c 11 00 00 1e 01 1d 00 bc 52 d 1e 20 b8 28 d 55 40 dc c 11 00 00 1e 8c 0a 40 90 20 40 31 20 UQ 1 Oc 40 55 00 dc Oc 11 00 00 18 00 00 00 00 00 29U 2 2 0 00 00 00 00 00 00 00 00 00 00 OG OG bb If there is nothing connected to the HDMI port the result should be as below Hi2cdump f y 5 0x50 No size specified using byte data access 012 34 567 89 a b cde f 0123456789abcdef 00 XX XX XX XX XX XX XX XX XX XX XX XX XX XX XX XX XXXXXXXXXXXXXXXX 10 XX XX XX XX XX XX XX XX XX XX XX XX XX XX XXXXXXXXXXXXXXXX 20 XX XX XX XX XX XX XX XX XX XX XX XX XX XX XX XX XXXXXXXXXXXXXXXX 30 XX XX XX XX XX XX XX XX XX XX XX XX XX XX XX XX XXXXXXXXXXXXXXXX 40 XX XX XX XX XX XX XX XX XX XX XX XX XX XX XX XX XXXXXXXXXXXXXXXX 50 XX XX XX XX XX XX XX XX XX XX XX XX XX XX XX XX XXXXXXXXXXXXXXXX 60 XX XX XX XX XX XX XX XX XX XX XX XX XX XX XX XX X
21. 7 2 1 3 7 2 2 3 7 3 3 7 3 1 3 7 3 2 3 8 3 8 1 Boot from the onboard eMMC Transfer whole system to onboard eMMC 1 Boot up from SD card refer to Chapter 3 6 1 2 Login as root and perform following commands cd mk inand mkinand linux sh dev mmcblke Set the DIP switch 1 Open one debug console 2 Turn off ROM 3420 3 Set Dip switch to 1 ON 2 OFF 3 OFF 4 Turn on ROM 3420 Boot up from SATA DOM Transfer whole system to SATA DOM 1 Turn off ROM 3420 2 Plug SATA DOM into ROM DB3900 s SATA slot 3 Boot up from SD card refer to Chapter 3 6 1 4 Login as root and perform the following commands assume SATA DOM s device name is dev sdf cd mk inand mkinand linux sh dev sdf Set the DIP switch 1 Open one debug console 2 Turn off ROM 3420 3 Set Dip switch to 1 ON 2 ON 3 ON 4 Turn on ROM 3420 Linux Software AP and Testing on ROM 3420 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 ROM 3420 will be introduced in this section Hello World Application and Execution This section will guide you how to write a simple sample Hello World program Refer to the following steps 1 Open Terminal on Ubuntu 10 04 LTS sudo su Change to root authority Type user password Change directory to BSP s scripts folder 4 seten
22. 7800 30 31 32 33 34 35 36 37 38 39 41 42 43 44 45 46 0123456789ABCDEF USB Test Step 1 Insert USB flash disk then assure it is in ROM 3420 device list Step 2 Erase and check dd if dev zero of dev sdb bs 1024 count 1 seek 25118 ROM 3420 User Manual 10 1 0 records in 1 0 records out hexdump C dev sdb s 25720832 n 16 01887800 00 00 00 00 00 00 00 00 00 00 00 00 OG 00 00 00 Step 3 Write and check echo n 0123456789ABCDEF dd of dev sdb bs 1024 count 1 seek 25118 1 records in 1 records out hexdump dev sdb s 25720832 n 16 01887800 30 31 32 33 34 35 36 37 38 39 41 42 43 44 45 46 0123456789ABCDEF Note This operation may damage the data stored in USB flash disk Please make sure there is no critical data in the USB flash disk being used for this test SD Test Step 1 When booting from eMMC you would see only below directories Hls dev mmcblk dev mmcblke dev mmcblk boote dev mmcblk booti dev mmcb1lk p1 Step 2 Insert SD card to SD card slot and check your device again You should be able to see more devices dev mmcblk1 is the SD card storage 15 dev mmcblk dev mmcb1k dev mmcblkObooti1 dev mmcblk1 dev mmcblkip2 dev mmcblkOebooto dev mmcblk pi dev mmcblkip1 Step 3 Erase and check dd if dev zero of dev mmcblki bs 1024 count 1 seek 25118 1 0 records in 1 0 records out hexdump C dev mmcblk1 s 25720832 n 16 01887800 00 00 00 00 00 00 0
23. CH UART2 4 5 UART x3 12 SWITCH PCA9545APW Console UART2 wires Figure 2 1 ROM 3420 Block Diagram ROM 3420 User Manual 8 Software Functionality This chapter details the software programs on the ROM 3420 plat form 3 1 3 1 1 3 1 2 3 1 3 Test Tools All test tools must be verified on the ROM 3420 Evaluation kit please prepare required test fixtures before verifying each specified I O If you have any problems getting the test fixtures please contact your Advantech contact window for help eMMC Test Step1 Erase and check dd if dev zero of dev mmcblkO bs 1024 count 1 seek 25118 1 0 records in 140 records out hexdump C dev mmcblkO s 25720832 n 16 01887800 00 00 00 00 00 00 00 00 00 00 00 00 OG 00 00 OO Step2 Write and check echo n 0123456789ABCDEF dd of dev mmcb11k bs 1024 count 1 seek 25118 1 records in 1 records out hexdump C dev mmcblkO s 25720832 n 16 01887800 30 31 32 33 34 35 36 37 38 39 41 42 43 44 45 46 0123456789ABCDEF SATA Test Step1 Erase and check if dev zero of dev sda bs 1024 count 1 seek 25118 1 0 records in 140 records out hexdump C dev sda s 25720832 n 16 01887800 00 00 00 00 00 00 00 00 00 00 00 00 00 OG 00 00 Step2 Write and check echo n 0123456789ABCDEF dd of dev sda bs 1024 count 1 seek 25118 0 1 records in 0 1 records out hexdump C dev sda s 25720832 n 16 0188
24. RM TI and Freescale Advantech helps solve commu nication and technical support difficulties and that can reduce the uncertainties of product development too Advantech s professional software team also focuses on providing a complete Board Support Package and assists customers to build up a software development environment for their RISC platforms Advantech RISC design in services helps customers overcome their problems to achieve the most important goal of faster time to market through a streamlined RISC Design in services Along with our multi stage development process which includes planning design integration and validation Advantech s RISC design in service provides comprehen sive support to the following different phases Planning stage Before deciding to adopt Advantech RISC COM customers must go through a com plete survey process including product features specification and compatibility test ing with software So Advantech offers a RISC Customer Solution Board CSB as an evaluation tool for carrier boards which are simultaneously designed when devel opment RISC COMs In the planning stage customers can use this evaluation board to assess RISC modules and test peripheral hardware What s more Advantech pro vides standard software Board Support Package BSP for RISC COM so that cus tomers can define their products specifications as well as verifying I O and performance at the same time We not only offer hardware pl
25. XXXXXXXXXXXXXXX 70 XX XX XX XX XX XX XX XX XX XX XX XX XX XX XX XX XXXXXXXXXXXXXXXX 80 XX XX XX XX XX XX XX XX XX XX XX XX XX XX XX XX XXXXXXXXXXXXXXXX 90 XX XX XX XX XX XX XX XX XX XX XX XX XX XX XX XX XXXXXXXXXXXXXXXX a0 XX XX XX XX XX XX XX XX XX XX XX XX XX XX XX XX XXXXXXXXXXXXXXXX b XX XX XX XX XX XX XX XX XX XX XX XX XX XX XX XX 0 XX XX XX XX XX XX XX XX XX XX XX XX XX XX XX XX XXXXXXXXXXXXXXXX d XX XX XX XX XX XX XX XX XX XX XX XX XX XX XX XX XXXXXXXXXXXXXXXK e0 XX XX XX XX XX XX XX XX XX XX XX XX XX XX XX XXXXXXXXXXXXXXXX 0 XX XX XX XX XX XX XX XX XX XX XX XX XX XX XX XXXXXXXXXXXXXXXX Mini PCle WiFi Test The command used to test WiFi module is as follows the supported module P N is EWM W142H01E ifconfig 1 up passphrase ESSID PASS gt tmp wpa conf note put ESSID and PASS with exact essid and pass phrase Hwpa supplicant BDwext iwlanO c tmp wpa conf dhclient wlane CAN Test Step 1 Check CAN network device dmesg grep can 15 ROM 3420 User Manual vcan Virtual CAN interface driver flexcan netdevice driver flexcan imx6q flexcan 0 device registered reg base c09b8000 irq 142 flexcan imx6q flexcan 1 device registered reg base c09e8000 irq 143 can controller area network core rev 20090105 abi 8 can raw protocol rev 20090105 can broadcast manager protocol rev 20090105 t Step 2 Activate CAN device Hip link se
26. a mirroring material and centered at the origin spins about its Y axis and reflects the scene surrounding it H tutorial3 es20 3 1 12 LAN Test You can set dynamic ip by following instructions 1 Open etc rc d rc conf 2 Modify IPADDRO0 dhep 3 reboot Then you will see Hifconfig eth 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 150 Metric 1 RX packets 129 errors dropped 18 overruns frame 0 TX packets 2 errors dropped overruns 0 carrier collisions 0 txqueuelen 1000 RX bytes 15016 14 6 KiB TX bytes 656 656 0 B lo Link encap Local Loopback inet addr 127 0 0 1 Mask 255 0 0 0 UP LOOPBACK RUNNING MTU 16436 Metric 1 RX packets errors dropped 0 overruns frame TX packets errors dropped overruns carrier collisions 0 txqueuelen 0 RX bytes 0 0 0 B TX bytes 0 0 B You can set static ip by following instructions 17 ROM 3420 User Manual Open etc rc d rc conf Modify Modify NETMASKO0 xxx XX XX XXX reboot Open etc rc d rc local Add to mark ifconfig ethO 192 168 0 1 netmask 255 255 255 0 ARGON Here is real case for your reference The hosts UBC 200 IP is 172 17 21 97 the target A desktop computer IP is 172 17 20 192 Hifconfig 172 17 21 97 up ifconfig eth Link encap Ethernet HWaddr 00 04 9F 01
27. anning and technology consulting but also software evaluation and peripheral module recommendations such as WiFi 3G BT Resolving customer concerns is Advantech s main target at this stage Since we all know that product evaluation is the key task in the planning period especially for performance and specification so we try to help our customers conduct all the necessary tests for their 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 Regarding different form factors Advantech offers a complete pin out check list for different form factors such as Q7 ULP and RTX2 0 so that customers can examine the carrier board signals and layout design accordingly In addition our team is able to assist customers to review the placement layout and schematics to ensure the carrier board design meets their full requirements For software develop ment Advantech RISC software team can assist customers to establish an environ ment for software development and evaluate the amount of time and resources needed If customers outsource software development to a 3rd party Advantech can also cooperate with the 3rd party and provide proficient consu
28. developed resulting in a fundamental change in the IPC industry In the past System Integrators SI were used to completing projects without outside assistance but now such working models have moved on Due to diverse market demands and intense competition cooperation for both upstream and downstream vertical inte gration has become a much more effective way to create competitive advantages As a result ARM based CPU modules were born out of this trend Concentrating all nec essary components on the CPU module and placing other parts on the carrier board in response to market requirements for specialization provides greater flexibility while retaining its low power consumption credentials 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 General I O design capability Although customers possess the ability for vertical integration and have enough know how and core competitiveness in the professional application field the lack of expertise and experience in general power and I O design causes many challenges for them especially integrating CPU modules into their carrier board The acquisition of information Even if the individual client is able to obtain sufficient information to make the right decision for the specialized vertical application some customers encounter difficult problems dealing with platform d
29. dite 22 Set up Build 24 3 3 1 Installing required 25 2 9 2 setenv sh sii De v e e E pa a i ies 25 Build A a E 26 3 41 Build re en 26 3 4 2 Build Linux Kernel 26 3 4 9 Build er debo rte eo iri se e 26 Source Code Modification esee 27 3 5 1 Adda Driver to Kernel by menuconfig 27 Figure 3 1 Linux Kernel Configuration 27 Figure 3 2 Selecting Seiko Instruments S 35390A 28 3 5 2 Change ROM 3420 29 Debug Console tirer uir 29 Boot up from the SD card onboard eMMC or SATA DOM 29 vii ROM 3420 User Manual 3 8 Chapter 4 4 1 Chapter 5 ROM 3420 User Manual 3 7 1 Boot up from the SD 29 3 7 2 Boot up from the onboard eMMC 30 3 7 3 Boot up from SATA DOM eee 30 Linux Software and Testing on 3420 30 3 8 1 Hello World Application and Execution 30 3 8 2 Watchdog Timer Sample
30. ely m 1ROM 3420 4Screws for ROM 3420 WB 1 China RoHs Notice Optional Accessories Part No Description 1960065189N001 Heatsink for ROM 3420 1935020402 Screw for ROM 3420 Heatsink 9696ED2000E Debug adapter board 1700022373 01 Debug port cable for ROM 3420 iii ROM 3420 User Manual Development Board Part No Description ROM 3420CD MDA1E Freescale i mx6 Dual 1GHz w 1 GB DDR3 RTX module 0 60 C ROM 3420WD MDA1E Freescale i mx6 Dual 1GHz w 1GB DDR3 RTX module 40 85 C ROM 3420CQ MDA1E Freescale i mx6 Quad 1GHz w 2GB DDR3 RTX module 0 60 C ROM 3420WQ MDA1E Freescale i mx6 Quad 1GHz w 2GB DDR3 RTX module 40 85 C 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 Ordering Information Model Number Description E Commercial grade Part No Description ROM 3420CD MDA1E Freescale i mx6 Dual 1GHz w 1 GB DDR3 RTX module 0 60 C ROM 3420WD MDA1E Freescale i mx6 Dual 1GHz w 1GB DDR3 RTX module 40 85 C ROM 3420CQ MDA1E Freescale i mx6 Quad 1GHz w 2GB DDR3 RTX module 0 60 C ROM 3420WQ MDA1E Freescale i mx6 Quad 1GHz w 2GB DDR3 RTX module 40 85 C ROM 3420 User Manual Safety Instructions 10 11 12 13 14 Read these safety instruct
31. esign in general and communicating with CPU or chipset manufacturers thereby increasing carrier board design difficulties and risk as well as seriously impacting on Time to market and lost market opportunities Software development and modification Compared to x86 architectures RISC architectures use simpler instruction sets therefore the software support for x86 platforms cannot be used on RISC platforms System integrators need to develop software for their system and do the hardware and software integration themselves Unlike x86 platforms RISC platforms have less support for Board Support Packages BSP and drivers as well Even though driver support is provided Sls still have to make a lot of effort to integrate it into the system core Moreover the BSP provided by CPU manufacturers are usually for carrier board design so it s difficult for Sls to have an environment for software develop ment 41 ROM 3420 User Manual In view of this Advantech proposed the concept of Streamlined Design in Support Services for RISC based Computer On Modules COM With dedicated profes sional design in services team Advantech actively participates in carrier board design and problem solving Our services not only enable customers to effectively distribute their resources but also reduce R amp D manpower cost and hardware invest ment By virtue of a close interactive relationship with leading original manufacturers of CPUs and chipsets such as A
32. he package and ship it prepaid to your dealer Part No 2006M34201 Edition 2 Printed in Taiwan June 2015 ROM 3420 User Manual ii Declaration of Conformity FCC Class B Note This equipment has been tested and found to comply with the limits for a Class B digital device pursuant to part 15 of the FCC Rules These limits are designed to provide reasonable protection against harmful interference in residential installa tion This equipment generates uses and can radiate radio frequency energy and if not installed and used in accordance with the instructions may cause harmful inter ference to radio communications However there is no guarantee that interference will not occur in particular installation If this equipment does cause harmful interfer ence to radio or television reception which can be determined by turning the equip ment off and on the user is encouraged to try to correct the interference by one or more of the following measures W or relocate the receiving antenna B Increase the separation between the equipment and receiver B Connect the equipment into an outlet on a circuit different from that to which the receiver is connected Consult the dealer or an experienced radio TV technician for help 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 immediat
33. he storages devices are named as follows Device Name SATA dev sda eMMC dev mmcblkO SD card dev mmcblk1 3G Sample Code The code of 3glink we have tried this command in 3 G test Section 1 8 it 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 amp 35 ROM 3420 User Manual ROM 3420 User Manual 36 System Recovery This chapter introduces how to recover a Linux operating system if it is damaged accidentally 4 1 4 1 1 4 1 1 1 4 1 1 2 4 1 2 4 1 2 1 4 1 2 2 4 1 3 4 1 3 1 4 1 3 2 Boot up from the SD card onboard eMMC or SATA DOM Boot up from the SD card Create a bootable SD card 1 one terminal console and change directory to BSP scripts folder 2 Perform following command assume SD card s device name is dev sdf sudo mksd linux sh dev sdf 3 Remove SD card from PC NB Set the DIP switch Open one debug console Turn off ROM 3420 Plug a bootable SD card into ROM DB3900 s SD slot Set Dip switch to 1 OFF 2 ON 3 ON Turn on ROM 3420 Boot up from the onboard eMMC Transfer whole system to onboard eMMC 1 Boot up from SD card refer to Chapter 3 6 1 2 Login as root and perform following commands cd mk inand mkinand linux sh dev mmcblke Set the DIP switch 1 Open one deb
34. ions carefully Keep this User Manual for later reference Disconnect this equipment from any outlet before cleaning Use damp cloth Do not use liquid or spray detergents for cleaning For plug in equipment the power outlet socket must be located near the equip ment and must be easily accessible Keep this equipment away from humidity Put this equipment on a reliable surface during installation Dropping it or letting it fall may cause damage The openings on the enclosure are for air convection Protect the equipment from overheating DO NOT COVER THE OPENINGS Make sure the voltage of the power source is correct before connecting the equipment to the power outlet Position the power cord so that people cannot step on it Do not place anything over the power cord All cautions and warnings on the equipment should be noted If the equipment is not used for a long time disconnect it from the power source to avoid damage by transient overvoltage Never pour any liquid into an opening This may cause fire or electrical shock Never open the equipment For safety reasons the equipment should be opened only by qualified service personnel If one of the following situations arises get the equipment checked by service personnel B The power cord or plug is damaged M Liquid has penetrated into the equipment B The equipment has been exposed to moisture m The equipment does not work well or you cannot get it to w
35. lting services With Advantech s professional support the design process becomes much easier and product quality will be improved to meet their targets ROM 3420 User Manual 42 Integration stage This phase comprises HW SW integration application development and peripheral module implementation Due to the lack of knowledge and experience on platforms customers need to spend certain amount of time on analyzing integration problems In addition peripheral module implementation has a lot to do with driver designs on carrier boards 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 Validation stage After customer s ES sample is completed the next step series of verification steps In addition to verifying a product s functionality the related test of the product s efficiency is also an important part at this stage especially for 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 pr
36. ms 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 just for sample test Some scripts provided by Advantech will help you configure system or build the images more quickly Please check them as follows setenv sh cfg uboot sh mk uboot sh cfg kernel sh mk kernel sh mksd linux sh script to setup the development environment quickly script to configure the u boot building setup quickly A script to build the u boot and copy the u boot to image folder after building A script to configure the kernel building setup quickly A script to build the ulmage and copy the ulmage to image folder after building script to setup up a bootable SD card if users build their images 23 ROM 3420 User Manual 3 2 1 6 source 3 3 This folder contains sub directories linux 3 0 35 and u boot 2009 08 They are the source codes of the Linux kernel and U boot The main sub directories under linux 3 0 35 are listed as follows arch The items related to hardware platform most of them are for CPU block setting information for block crypto The encryption technology that kernel supports Documentation The documentation for kernel drivers The drivers for hardware fir
37. mware Some of firmware data for old hardware fs file system the kernel supports include The header definition for the other programs used init 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 data related the memory net The data related the network security security setting sound The module related audio virt data related the virtual machine 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 Set up Build Environment All instructions in this guide are based on Ubuntu 10 04 LTS only Please install Ubuntu 10 04 LTS with minimum 1GB DRAM in advance When you obtain the ROM 3420 Linux source code package please refer to following instructions to extract to your development environment 1 34203420LBVxxxx tar bz2 package to your desktop is the ver sion of the BSP source code Start your Terminal on Ubuntu 10 04 LTS sudo su Change to root authority Input user password Desktop tar xvf 342 LBVxxxx tar bz2 Unzip file Oa
38. ocess backed by our technical support customers are able to optimize their applications with less fuss Furthermore Advantech s team can provide professional consulting services about further testing and equipment usage so customers can find the right tools to efficiently identify and solve problems to further enhance their products quality and performance Contact Information Below is the contact information for Advantech customer service Region Country Contact Information America 1 888 576 9688 Brazil 0800 770 5355 Mexico 01 800 467 2415 Europe Toll Free 00800 2426 8080 Singapore amp SAP 65 64421000 Malaysia 1800 88 1809 Australia Toll Free 1300 308 531 China Toll Free 800 810 0345 800 810 8389 Sales advantech com cn India Toll Free 1 800 425 5071 Japan Toll Free 0800 500 1055 Korea Toll Free 080 363 9494 080 363 9495 Taiwan Toll Free 0800 777 111 Russia Toll Free 8 800 555 01 50 You can also reach our service team through the website below our technical sup port engineer will provide quick response once the form is filled out http www advantech com tw contact default aspx page contact form2 amp sub Technical Support 43 ROM 3420 User Manual 5 3 Technical Support and Assistance For more information about this and other Advantech products please visit our web site at http www advantech
39. opment Some of above components are developed by Advantech and the others are devel oped by open source community ROM 3420 source code package is composed of six main folders cross compiler document image package scripts and source The description of 3420LBVxxxx package contents cross compiler This folder contains source code for cross compiler B document This folder contains user guide image This folder contains the ulmage and the script for making Linux system media automatically B image rootfs This folder contains Linux root file system package This folder contains source code provided by Freescale with out any modification B scripts This folder contains scripts for configure system and compile images automatically B source This folder contains source code owned by Advantech cross compiler You can use the cross compiler toolchain to compile the ulmage and related applica tions gcc version is 4 6 2 20110630 ROM 3420 User Manual 22 3 2 1 2 3 2 1 3 3 2 1 4 3 2 1 5 document User guide of how to setup up the environment of development image This folder includes ulmage amp u boot image rootfs Linux adopts Hierarchical File System HFS image rootfs is the Linux file system in highest level of the tree structure The main folders in rootfs are listed as follows bin dev etc
40. or improper installation Advantech assumes no liability under the terms of this warranty as a consequence of such events Because of Advantech s high quality control standards and rigorous testing most of our customers never need to use our repair service If an Advantech product is defec tive it will be repaired or replaced at no charge during the warranty period For out of warranty repairs you will be billed according to the cost of replacement materials service time and freight Please consult your dealer for more details If you think you have a defective product follow these steps 1 Collect all the information about the problem encountered For example CPU speed Advantech products used other hardware and software used etc Note anything abnormal and list any onscreen messages you get when the problem OCCUIS 2 Call your dealer and describe the problem Please have your manual product and any helpful information readily available 3 f your product is diagnosed as defective obtain an RMA return merchandize authorization number from your dealer This allows us to process your return more quickly 4 Carefully pack the defective product a fully completed Repair and Replacement Order Card and a photocopy proof of purchase date such as your sales receipt in a shippable container A product returned without proof of the purchase date is not eligible for warranty service 5 Write the RMA number visibly on the outside of t
41. ork according to the user s manual The equipment has been dropped and damaged B 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 V ROM 3420 User Manual Safety Precaution Static Electricity Follow these simple precautions to protect yourself from harm and the products from damage B To avoid electrical shock always disconnect the power from your PC chassis before you work on it Don t touch any components on the CPU card or other cards while the PC is on Disconnect power before making any configuration changes The sudden rush of power as you connect a jumper or install a card may damage sensitive elec tronic components ROM 3420 User Manual vi Contents Chapter Chapter Chapter 1 aan nm TRAN 2 2 1 2 2 2 3 3 1 3 2 3 3 3 4 3 5 3 6 3 7 Product Overview I Introduction 2 Product Features tice essen eterne that a aa aea iad 3 Mechanical 9 6 4 Electrical Specifications aoi tete eaten ne ctn aa d ate edd dens 4 Environmental Specifications 4 H W Installation 5 ROM 3420 Board LOOKS adsis etit nha dier Rada da aded 6 Board Gonneclot
42. rier boards 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 W Full Range of RISC Product Offerings B Comprehensive Document Support Design Assistance Service Advantech provides check list for engineer for easy check their schematics and also review service based on customer carrier board schematics Those services are pre ventative and help to catch design errors before they happen It helps to save a lot of time and costs with regard to development carrier boards E Schematic Review W Placement and Layout Review Debugging Assistance Services WB General Special Reference Design Database ROM 3420 User Manual 40 Thermal Solution Services In order to provide quicker and more flexible solutions for customer s thermal designs Advantech provides thermal solution services including modularized thermal solutions and customized thermal solutions Standard Thermal Solutions B Customized Thermal Solutions Embedded Software Services Supports driver software integration or customized firmware root file system and Linux image Customers can save lot of time and focus on their core development B Embedded Linux Android OS B Advantech boot loader Customization With the spread of industrial computing a whole range of new applications have been
43. rs are hotkeys Pressing Y includes N excludes M modularizes features Press Esc Esc to exit for Help for Search Legend built in excluded M module lt gt module capable Patch physical to virtual translations at runtime EXPERIMENTAL General setup Enable loadable module support gt Enable the block layer gt System Type gt Bus support gt Kernel Features gt Boot options gt CPU Power Management gt Floating point emulation gt Userspace binary formats gt 1 1 l l l 1 l 1 1 1 Figure 3 1 Linux Kernel Configuration 27 ROM 3420 User Manual 8 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 Arrow keys navigate the menu Enter selects submenus gt Highlighted letters are hotkeys Pressing Y includes N excludes M modularizes features Legend gt AAA l l 1 l l l l 9 Change directory to source linux 3 0 35 arch arm mach mx6 edit the board Real Time Clock Press lt Esc gt lt Esc gt to exit lt gt for Help lt gt for Search built in excluded lt M gt module lt gt module capable Xicor
44. s t red E Goin dte 6 2 2 4 GConnector Listir dire esi dera ril E qued 6 ROM 3420 Board Block Diagram see 8 Figure 2 1 ROM 3420 Block 8 Software Functionality 9 Test Tools iie Per eee tr ce ree edet 10 3 1 1 OMMC TeSt initi debe ete He 10 3 12 SATA TOSL 10 3 1 3 USB 65th de aee at dle 10 3 1 4 50 R 11 3 1 5 GPIO T6SL ident e adt eden 12 3 1 6 LVDS HDMI VGA enne 13 34 7 I2O T6Sbain aede Deed dat 14 3 1 8 Mini PCIe WiFi Test 15 3 1 9 CAN T6Sb i ied bla t s 15 3 1 10 Audio Out and MIC In 4000 16 3 1 11 OpenGL 16 ON LAE CLE 17 3 1 19 RS232 b ed o 18 3 1 14 Watchdog Timer Test ine 19 Audo TeSt t 19 2 16 Photo Demo hd 19 3 1 17 Camera Input Test eicere cete entregas 20 3 1 18 System Bus Test acere d teen dunk 20 3 1 19 Keypad ite ed deepest eeu ed icta e Redde e ERR 21 Package Content 2 ur od ro eer tle Paix Aa Redi RR 22 3 2 1 Source Code Package tie
45. s When you want to display dual LVDS VGA and HDMI output set the parameter in U boot as follows This is the default settings in U boot setenv bootargs base setenv bootargs console ttymxc 115200 enable wait mode off video mode extension video mxcfb dev hdmi 1920x1080M 60 if RGB24 videosmxcfb1 dev lcd 1920x1080MQ960 if RGB24 video mxcfb2 dev ldb 800 480 060 if RGB24 For display interface clock there are several options Independently for each port listed below 1 Derived from the IPU internal clock Master Mode 2 Provided by an external source Slave Mode ROM 3420 User Manual 34 3 8 6 3 8 7 3 8 8 3 The transfer rate supported When a single port is active the pixel clock rate is up to 264 MHz When both LVDS ports are active you have to follow below condition 1 Each pixel clock rate may be up to 220 MHz 2 The sum of pixel clock rates is up to 240 MHz Note In Single Display mode the pixel clock of HDMI is up to 264 MHz each x other is up to 200 MHz iE In Dual Display mode the pixel clock of HDMI is up to 240 MHz each other is up to 200 MHz Network Setup If you would like to use DHCP mode instead please goes to etc rc d rc conf and set IPADDRO to dhcp If you prefer to use static IP as default you should goes to etc rc d rc conf and set IPADDRO to the IP to be used And the NETMASKO should be changed to corre sponding netmask as well Storage SATA eMMC SD Card T
46. src mfw_v4lsink 3 1 17 2 Capture Hgst launch mfw v4lsrc num buffers 1 jpegenc filesink loca tion tools snapshot jpg 3 1 17 3 View picture HVSALPHA 1 gst launch filesrc location tools snapshot jpg jpegdec imagefreeze mfw isink 3 1 17 4 Record video Hgst launch mfw v4lsrc queue vpuenc codec 6 matroskamux filesink location tools output avi sync false 3 1 17 5 Play video gst launch playbin2 uri file tools output avi video sink mfw_v4lsink device dev video16 audio sink alsasink device plughw 0 3 1 18 System Bus Test There are 2 UART decives that have been implemented in linux kernel 3 1 18 1 ttyS0 CN10 testing Hstty F dev ttyS echo Hcat dev ttySe amp Hecho Hello gt dev ttySe Hello 3 1 18 2 ttyS1 CN9 testing Hstty F dev ttyS1 echo dev ttyS1 amp Hecho Hello gt dev ttys1 ROM 3420 User Manual 20 Hello 3 1 19 Keypad Test 3 1 19 1 perform following command evtest dev input event1 Input driver version is 1 0 1 Input device ID bus 0x19 vendor 0x0 product 0x0 version 0x0 Input device name matrix keypad Supported events Event type 0 Event type 1 Event Event Event Event Event Event Event Event Event Event Event Event Event Event Event Event code code code code code code code code code code code code code code code code Event type 4 Event code Sync Key 1 2 3 4 5 6 7 8 9 10 11 12
47. t up type can bitrate 125000 flexcan imx6q flexcan 0 writing ctrl1 0x0e312005 Hip link set cani up type can bitrate 125000 flexcan imx6q flexcan 1 writing ctrl1 0x0e312005 Note Bitrate is supported from 1 to 1M 3 Step 3 Send Receive CAN frames Receive CAN frames cantest amp Send CAN frames cantest 1 12345678 123412341234 read 16 bytes 12345678 6 12 34 12 34 12 34 3 1 10 Audio Out and MIC In Test 3 1 11 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 OpenGL Test Please follow below instructions to test OpenGL on ROM 3420 platform Step 1 Change path to opt viv samples vdk opt viv samples vdk Hls tutorial tutoriall tutorial2 es20 tutorial4 tutorial5 es20 tutoriall 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 Information such vertex nor ROM 3420 User Manual 16 mal vector color and so on is sent once to locate device video memory and then bound and used as needed rather than being read from system memory every time This example illustrates how to create and use vertex buffer objects tutorial7 Step 3 Run tutorial3 es20 for OpenGL ES 2 0 A ball made of
48. terface Ruggedized applications Fleet management Navigation Industrial data collection The main features of Freescale i MX6 processors are ARM Cortex A9 high performance processor dual core 1 GHz Supports OpenGL ES 2 0 and OpenVG 1 1 hardware accelerators full HD 1080p video codec Freescale Smart Speed technology supports low power consumption Capabilities of I O expansion UART 3 Single LVDS Audio USB Host USB OTG Gigabit Ethernet SD SATA GPIO 10 I2C 4 SPI 2 System bus Data 16 bits Address 26 bits CAN bus 2 PCle signal inside and parallel RGB HDMI MIPI camera support Supports SATA storage interface and CAN bus for vehicle applications Supports Linux 3 0 35 Supports working temperature ranges of 0 60 C Specialized heatsink design for ROM 3420 ROM 3420 User Manual 2 1 2 Product Features Compatible Module RTX 2 0 Processor System CPU Freescale i MX6 Dual Core 1 0 GHz Technology DDR3 1066 MHz Memory Capacity On board DDR3 1 GB Flash 4 GB eMMC for O S and 4 MB NOR Flash for Advantech boot loader Graphics Engine 2 GPUs OpenGL ES 2 0 for 3D BitBIt for 2D and OpenVG 1 1 Decoder MPEG 4 ASP H 264 HP HW Video Codec Eheoder 4 SP H 204 BP H 263 MJPEG BP HDMI 1 HDMI LVDS 1 single 24 bit LVDS TTL LCD 24 bit TTL LCD Freescale i MX6 Dual integrated Ethernet RGMII Speed 1 10 100 1000 Mbps
49. ug console 2 Turn off ROM 3420 3 Set Dip switch to 1 ON 2 OFF 3 OFF 4 Turn on ROM 3420 Boot up from SATA DOM Transfer whole system to SATA DOM 1 Turn off ROM 3420 2 Plug SATA DOM into ROM DB3900 s SATA slot 3 Boot up from SD card refer to Chapter 3 6 1 4 Login as root and perform the following commands assume SATA DOM s device name is dev sdf cd mk inand mkinand linux sh dev sdf Set the DIP switch 1 Open one debug console 2 Turn off ROM 3420 3 Set Dip switch to 1 ON 2 ON 3 ON 4 Turn on ROM 3420 ROM 3420 User Manual 38 Advantech Services This chapter introduces Advantech design in serviceability technical support and warranty policy for ROM 3420 evaluation kit 5 1 RISC Design in Services Product Design Services 6 Schematic Review S W Package Evaluation Layout Review Booting Firmware Standard Thermal Solutions Carrier Board Design Guide Test image Package BSP Design Service Linux Kernel Driver 7 5 eripheral Driver Integration Root file System Tool Chai Y Function Customized S W Integration er oett Customized O S Image Test Utilities u 2 Special Function Development ex GPIO function support Advantech RISC Design in Services help customers to reduce the time and work involved with designing new carrier boards We handle the complexities of technical research and greatly minimize the development risk associated with car
50. ure should be in PNG format and less than 224 colors It is sug E gested to have the image resolution equal to your LCD panel size Open Terminal on Ubuntu 10 04 LTS sudo su Change to root authority Input user password Desktop bootlogo Go into the folder that bootlogo png located pngtopnm bootlogo png ppmquant 224 pnmtoplainpnm gt logo linux clut224 ppm 8 logo linux clut224 ppm to the directory source linux 3 0 35 drivers video logo 9 Then you can refer Chapter 3 4 2 to rebuild the kernel with your own boot logo C im Debug Console Connect the 9 pin D SUB of the debug console cable with the host computer serial port and use a serial port terminal application like minicom putty or teraterm to con figure serial port as 115200 8N1 Then plug the 5 pin connector of the debug console cable into ROM 3420 s debug port also known as dev ttymxcO in Linux system Boot up from the SD card onboard eMMC or SATA DOM Boot up from the SD card Create a bootable SD card 1 one terminal console and change directory to BSP scripts folder 2 Perform following command assume SD card s device name is dev sdf sudo mksd linux sh dev sdf 3 Remove SD card from PC NB Set the DIP switch Open one debug console Turn off ROM 3420 Plug a bootable SD card into ROM DB3900 s SD slot Set Dip switch to 1 OFF 2 ON 3 ON Turn on ROM 3420 om ONS 29 3420 User Manual 3 7 2 3
51. v sh To configure the development environment automatically source mkdir helloworld Create your own work directory on the Desktop helloworld Enter the work directory gedit helloworld c Create a new C source file WN ROM 3420 User Manual 30 Edit the helloworld c with the following source code include lt stdio h gt void main printf Hello World n 10 Save the file and exit 11 CC o helloworld helloworld c To compile helloworld c 12 Then you can see helloworld in current directory 13 Insert the Linux system SD card to your development computer 14 cp helloworld media rootfs tool media rootfs is the mounted point of your Linux system SD card 15 Remove this SD card and insert it to ROM DB3900 then open debug console 16 On ROM 3420 platform type root Login 17 On ROM 3420 platform type tool 18 On ROM 3420 platform type helloworld 19 Now you should be able to see Hello World shown on ROM 3420 3 8 2 Watchdog Timer Sample Code WatchDog Timer WDT sample code is as below include lt stdio h gt include lt stdlib h gt include fcntl h include lt linux watchdog h gt include sys ioctl h include lt unistd h gt void help info void int main int const char argv int fd timeout sleep sec test int count 1 if argc lt 2 1 help info return 1 timeout atoi argv
Download Pdf Manuals
Related Search
Related Contents
Samsung YP-C1H Instrukcja obsługi Télécharger l`article 9 - Pasvision EVO-192SPVrs2.1 - iNTER, distribuidor mayorista de Tarif n°104 ALHAMBRA 続きはコチラ!! - ニッコーエクステリア Leica mojo3D User Manual USER MANUAL & MAINTENANCE GUIDE Philips HP6576/50 Data Sheet 第五章 中国の知的財産権制度とその課題 関 和郎 Copyright © All rights reserved.
Failed to retrieve file