background image

RSB-4221 User Manual

62

5.1

RISC Design-in Services

Advantech RISC Design-in Services help customers 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 carrier boards. 

Easy Development

Advantech has support firmware, root file-system, BSP or other develop tools for cus-
tomers to help them easily develop their carrier board and differentiate their embed-
ded products and applications.

Full Range of RISC Product Offerings

Comprehensive Document Support

Design Assistance Service

Advantech provides a check list for engineers to check their schematics and also
review their service based on their customer carrier board schematics. Those ser-
vices are preventative, and help to catch design errors before they happen. It helps to
save a lot of time and costs with regard to development  of carrier boards. 

Schematic Review

Placement and Layout Review

Debugging Assistance Services

General/Special Reference Design Database. 

Summary of Contents for RSB-4221

Page 1: ...User Manual RSB 4221 RISC 3 5inch SBC based on TI Sitara AM3358 Cortex A8 1Ghz High Performance Processor...

Page 2: ...rms of this warranty as a consequence of such events Because of Advantech s high quality control standards and rigorous testing most customers never need to use our repair service However if an Advant...

Page 3: ...rgy and if not installed and used in accordance with the instruction manual may cause harmful interference to radio communications Opera tion of this equipment in a residential area is likely to cause...

Page 4: ...SQF SD C6 SLC 4G 1CH 170203183C Power Cord 3P Europe 1700023307 01 DC Jack Cable 170203180A Power Cord 3P UK 2 5A 3A 250V 1 83M 1700001524 Power Cord 3P UL 10A 125V 180cm 1700023366 01 Backlight Cabl...

Page 5: ...e 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...

Page 6: ...RSB 4221 User Manual vi...

Page 7: ...ORT 12 Figure 2 5 COM port pin header 13 Figure 2 6 COM port pin header 13 Figure 2 7 CAN port Connector 14 Figure 2 8 GPIO pin header 14 Figure 2 9 USB port connector 15 Figure 2 10USB port connector...

Page 8: ...Modification 45 4 5 1 Add a Driver to Kernel by menuconfig 45 Figure 4 3 Linux Kernel Configuration 45 Figure 4 4 Selecting Seiko Instruments S 35390A 46 4 6 Create a Linux System Boot Media 47 4 6 1...

Page 9: ...62 5 2 Contact Information 65 5 3 Technical Support and Assistance 66 5 4 Global Service Policy 66 5 4 1 Warranty Policy 66 5 4 2 Warranty Period 66 5 4 3 Repairs under Warranty 66 5 4 4 Exclusions f...

Page 10: ...RSB 4221 User Manual x...

Page 11: ...Chapter 1 1 General Introduction This chapter gives background information on the RSB 4221 Sections include Introduction Specification...

Page 12: ...S and 4MB NOR Flash for ADV Loader Graphic LVDS 1366 x 768 resolution 18bit LVDS OS Support RSB 4221 supports Linux Kernel 3 2 0 Ethernet Transceiver TI AM3358 Integrated RGMII Speed 2 x 10 100 1000...

Page 13: ...cluding whole package 1 2 3 Electrical Specifications Power supply type DC in 12V RTC Battery Typical voltage 3V Normal discharge capacity 240 mAh 1 3 Environmental Specifications Operating temperatur...

Page 14: ...RSB 4221 User Manual 4...

Page 15: ...ter 2 2 H W Installation This chapter gives mechanical and connector information on the RSB 4221 3 5 inch SBC Sections include Jumper Information Connector Information Mechanical Drawing Quick Start G...

Page 16: ...er settings are schematically depicted in this manual as follows A pair of needle nose pliers may be helpful when working with jumpers If you have any doubts about the best hardware configuration for...

Page 17: ...mber 1600000202 Footprint SW_2x2P_50_161X315 Description DIP SW CHS 02TB 29 SMD 4P SPST P 1 27mm W 5 4mm Setting Function 1 1 Boot from SD 1 0 Boot from SPI J2 LVDS power level select CN3 Part Number...

Page 18: ...the same time 2 3 RS485 mode JSETCOM1 must be set RS485 mode at the same time J5 COM1 RS232 RS422 RS485 signal select JSETCOM1 Part number 1653009260 Footprint HD_9x2P_79 Description PIN HEADER 9x2P 2...

Page 19: ...function 1 3 2 4 7 9 8 10 UART1 switch to M 2 function Table 2 2 Connector List CN9 RTC battery CN11 M 2 COM0 UART0 debug port COM1 UART1 COM port COM2_3 UART2 UART3 COM port Pin Connector COM4_5 UAR...

Page 20: ...3V 3 USB_HOST_DP 4 3 3V 5 USB_HOST_DN 6 WLAN_LED 7 GND 8 NC 9 SDIO_CLK 10 NC 11 SDIO_CMD 12 NC 13 SDIO_DAT0 14 NC 15 SDIO_DAT1 16 BT_LED 17 SDIO_DAT2 18 GND 19 SDIO_DAT3 20 NC 21 SDIO_WAKE 22 UART1_TX...

Page 21: ...ure 2 2 M 2 CONNECTOR 2 2 2 3 UART0 debug port COM0 RSB 4221 can communicate with a host server Windows or Linux by using stan dard DB9 69 GND 70 NC 71 NC 72 GND 73 NC 74 GND 75 GND Pin Description 1...

Page 22: ...2 2 2 4 UART1 COM port COM1 RSB 4221provides a standard DB9 which can support RS232 RS422 RS485 by changing CN10 JSETCOM1 jumper Figure 2 4 COM PORT Pin Description 1 COM1_DCD 2 COM1_RX 3 COM1_TX 4 CO...

Page 23: ...T4 and UART5 COM port Pin Connector COM4_5 RSB 4221 provides a 2x3 pin connector which contains 2 two wire COM ports RS232 level Figure 2 6 COM port pin header 2 2 2 7 CAN PORT Pin Connector CN16 RSB...

Page 24: ...4221 provides a 10x2 pin connector for GPIO supports 3 3V level GPIO_PWR 3 3V Figure 2 8 GPIO pin header Pin Description 1 GPIO_PWR 2 GND 3 NC 4 NO PIN 5 NC 6 NC 7 GPIO0 8 GPIO7 9 GPIO1 10 GPIO8 11 G...

Page 25: ...rt connector 2 2 2 10 USB Type A Connector CN19 Figure 2 10 USB port connector 2 2 2 11 USB Pin Box CN18 RSB 4221supports a pin box header that contains two USB2 0 ports Pin Description 1 5V 2 USB_P1L...

Page 26: ...B port connector 2 2 2 12 JTAG CN1 JTAG connector is used for internal debugging only Figure 2 12 JTAG Pin header Pin Description 1 3 3V 2 JTAG_TRSTn 3 JTAG_TMS 4 JTAG_TDO 5 JTAG_TDI 6 JTAG_TCK 7 JTAG...

Page 27: ...2 ab 100 base TX IEEE 802 u 10 base t IEEE 802 3 The Ethernet ports provide standard RJ 45 jack connector with LED indicators on the front side to show Active Link status and speed status Figure 2 13...

Page 28: ...2 2 14 Ethernet Connector CN20 Figure 2 14 Ethernet Connector Pin Description B1 MDI10 B2 MDI10 B3 MDI11 B4 MDI11 B5 GND B6 GND B7 MDI12 B8 MDI12 B9 MDI13 B10 MDI13 B11 LAN1_100_LINK B12 LAN1_1000_LI...

Page 29: ...ard to board connector for single channel 18 bit LVDS panel up to 1366x768 To avoid damaging the LCD panel please make sure to set the right voltage level before powering on refer to jumper setting de...

Page 30: ...ke sure set the right voltage level before powering on refer to jumper setting description for CN2 and LCD datasheet that you will use Figure 2 17 LVDS Inverter Power Connector 13 LVDS0_z_D2 14 NC 15...

Page 31: ...2 19 Recovery SW2 RSB 4221 supports a recovery function when it runs on Android OS Under Linux OS the recovery button SW2 is useless You must press SW2 for about 5 seconds as the board powers up Gene...

Page 32: ...RSB 4221 User Manual 22 2 3 Mechanical 2 3 1 Jumper and Connector Location COM0 COM1 LAN1 USB1 LAN2 USB2 Recovery DC In COM2 3 4 5 I2C M 2 LVDS USB3 4 CAN GPIO Backlight SD Slot...

Page 33: ...23 RSB 4221 User Manual Chapter 2 H W Installation 2 3 2 Board Dimension...

Page 34: ...programs such as HyperTerminal Tera Term or PuTTY can be used in this case The examples below describe the serial terminal setup using HyperTerminal on a Windows host 1 Connect RSB 4221 with your PC b...

Page 35: ...Chapter 3 3 Software Functionality This chapter details the software programs on the RSB 4221 plat form...

Page 36: ...size logical physical 512 bytes 512 bytes I O size minimum optimal 512 bytes 512 bytes Disk identifier 0xb7e5e6db Device Boot Start End Blocks Id System dev mmcblk1p1 2048 22527 10240 83 Linux dev mmc...

Page 37: ...tem can detect it root am335x adv unit_tests fdisk l dev mmcblk0 Disk dev mmcblk0 3980 MB 3980394496 bytes 255 heads 63 sectors track 483 cylinders total 7774208 sectors Units sectors of 1 512 512 byt...

Page 38: ...oobsize 0 regions 0 Erased 4194304 bytes from address 0x00000000 in flash Copied 4194304 bytes from address 0x00000000 in flash to temp 1 img 0000000 ffffffffffffffffffffffffffffffff 0400000 SPI mtdbl...

Page 39: ...UUUUUUUUU 40 50 UU 60 70 UU I2C test Pass 3 7 CAN Test 1 Connect one RSB 4221 CAN Port CAN1_D CAN1_D and GND with another RSB 4221 2 Run program to transmit data between two RSB 4221 CAN ports root am...

Page 40: ...t_tests AutoRun_gpio sh GPIO200 direction is in GPIO201 direction is in GPIO202 direction is in GPIO203 direction is in GPIO204 direction is in GPIO205 direction is in GPIO206 direction is in GPIO207...

Page 41: ...args run bootargs_defaults setenv bootargs console console root mmcroot rootfstype mmcrootfstype ip ip_method M2WIFIFlag TRUE 3 10 1 M 2 wifi Test 1 Connect the marverll WIFI module to M 2 interface u...

Page 42: ...eps 1 Connect the marverllWIFI module to M 2 interface under rsb 4221 board the supported module is sd8897 2 After entering the linux system insert the module for Bluetooth root am335x adv insmod unit...

Page 43: ...8 1 1 seq 2 ttl 64 time 0 110 ms 64 bytes from 192 168 1 1 seq 3 ttl 64 time 0 102 ms 64 bytes from 192 168 1 1 seq 4 ttl 64 time 0 208 ms 64 bytes from 192 168 1 1 seq 5 ttl 64 time 0 135 ms 64 bytes...

Page 44: ...221 dev ttyO0 is reserved for RSB 4221 debug port RSB 4221 COM0 the rest UART ports could be applied by user 3 12 1 COM1 COM5 RS232 Test Switching jumper as described before please refer to 2 1 2 Jump...

Page 45: ...to switch UART1 working at RS485 transmit data between UART1 and UART4 root am335x adv unit_tests AutoRun_uart485 p dev ttyO1 dev ttyO4 t 6 Open uart dev ttyO1 PASS Open uart dev ttyO4 PASS Writing Th...

Page 46: ...D 10 Get the timeout value from driver timeout 60 seconds Now we set the timeout value to 10 seconds Get the timeout value from driver again timeout 10 seconds Setting succeeded and watchdog is enable...

Page 47: ...B 4221 User Manual Chapter 3 Software Functionality musb hdrc ConfigData 0xde UTMI 8 dyn FIFOs bulk combine bulk split HB ISO Rx HB ISO Tx SoftConn musb hdrc MHDRC RTL version 2 0 musb hdrc setup fifo...

Page 48: ...RSB 4221 User Manual 38...

Page 49: ...Chapter 4 4 LinuxBSP This chapter introduces how to build an Android system and develop based our Linux system...

Page 50: ...bility issues In this case we strongly recommend using Ubuntu 12 04 LTS installed on your host PC before starting RSB 4221 evaluation development 4 2 Package Content We offer you two different kinds...

Page 51: ...rectories and files used in the file system The main folders in rootfs are listed as follows bin Common programs shared by the system the system administrator and the users dev Contains references to...

Page 52: ...card if users build their images mkinand linux sh A script to goto SD card Linux O S then burn O S to eMMC flash 4 2 2 6 Source This folder contains sub directories linux 3 2 0 psp04 06 00 11 and u bo...

Page 53: ...can refer to source linux 3 2 0 psp04 06 00 11 Documentation 00 INDEX for a list of the purpose of each README note 4 3 Set up Build Environment All instructions in this guide are based on Ubuntu 12...

Page 54: ...oot configuration automatically 7 mk_uboot sh Start to build the u boot 8 Then you can see u boot imgis being built and located in image 4 4 2 Build Linux Kernel Image Advantech offer you a script to...

Page 55: ...Here is an example of how to add a RTC driver Seiko Instruments S 35390A to Linux kernel Please refer to the fol lowing steps 1 Open Terminal on Ubuntu 12 04 LTS 2 sudo su Change to root authority 3 I...

Page 56: ...o source linux 3 2 0 psp04 06 00 11 arch arm mach mx6 board rsb4221 h I2C staticstruct i2c_board_info mxc_i2c0_board_info __initdata I2C_BOARD_INFO s35390a 0x30 Please add below codes to source linux...

Page 57: ...7 Insert one SD card to your development computer 8 Check the SD card location like dev sdb 9 cd 4221LIVxxxx_yyyy mm dd scripts 10 mksd linux sh dev sdb 11 Type y Start to copy files wait until it sho...

Page 58: ...nux sh dev mmcblk1 6 Power off and remove this SD card You can then boot from the onboard flash without an SD card 4 7 Debug Message RSB 4221 can connect to a host PC Linux or Windows by using console...

Page 59: ...booting up the RSB 4221 the tftp service is started by default and the tftp server s working directory is tftpboot You need to execute chmod 777 tftpboot on RSB 4221 to let the tftp server work Then u...

Page 60: ...op is 4 8 2 5 http Server We support an embedded web server name lighttpd and the matrix gui is based on it The service start command is And the stop is 4 8 3 Network configuration 4 8 3 1 Configurati...

Page 61: ...d dhcpc eth1 start etc adv d netcfg eth1 advantech etc init d dhcpc eth0 stop advantech etc init d dhcpc eth1 stop advantech sbin ifconfig eth0 172 21 73 191 netmask 255 255 255 0 advantech sbin rout...

Page 62: ...an while the RTC time will be synchronized to the time you just set 4 8 5 About System If you want to know the version information of this system you can see it with the util ity on App Launcher Click...

Page 63: ...a GUI application to control the brightness So you can conveniently adjust the screen brightness Figure 4 9 Brightness Control 4 8 7 Serial Tools We have five serial ports named ttyO1 ttyO5 We provide...

Page 64: ...le applications and demos provided There are two forms of Matrix local and remote Matrix All of the example applications and demos are available using either the local or remote version Matrix comes a...

Page 65: ...pending on if you want to add a new application or a new directory to Matrix The Type field must be set according to your decision The desktop file must have the desktop suffix 3 Update the Icon field...

Page 66: ...es and is used in this capacity in the OpenEmbedded and OpenWrt projects Advantech Embedded Linux for RSB 4221 has built in OPKG package manager with this tool you can install most of the required sof...

Page 67: ...ur development computer Note media rootfs is the mounted point of your Linux system SD card Remove this SD card and insert it to RSB 4221 then open serial console On RSB 4221 platform type root Login...

Page 68: ...are watchdog the watchdog API follows posix standards The valid timeout value is from 1 to 6553 seconds if the timeout value set is not in this scope the driver will set timeout value to default value...

Page 69: ...out when it is disabled call the following ioctl function inti_en WDIOS_ENABLECARD ioctl fd WDIOC_SETOPTIONS i_en Get the current timeout value get the current timeout value the driver used int timeou...

Page 70: ...the sys file sys class backlight pwm backlight brightness You can set brightness using the following command Note The value should be between 1 100 You can get the current brightness values using the...

Page 71: ...Chapter 5 5 Advantech Services This chapter introduces Advan tech design in serviceability tech nical support and warranty policy for RSB 4221 evaluation kit...

Page 72: ...evelop their carrier board and differentiate their embed ded products and applications Full Range of RISC Product Offerings Comprehensive Document Support Design Assistance Service Advantech provides...

Page 73: ...rial 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 abil...

Page 74: ...ssess RISC modules and test peripheral hardware What s more Advantech pro vides standard software Board Support Package BSP for RISC COM so that customers can define their product s specifi cations as...

Page 75: ...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 ou...

Page 76: ...roducts and 3rd party off the shelf products used to assemble Advantech Configure to Order products are entitled to a 2 years complete and prompt global warranty service Product defect in design mater...

Page 77: ...VANTECH com tw with an authorized user ID and password You must fill out basic product and customer information and describe the problems encountered in detail in Problem Description Vague entries suc...

Page 78: ...er expiry of the warranty period The product is tested or calibrated after expiry of the warranty period and a No Problem Found NPF result is obtained The product though repaired within the warranty p...

Page 79: ...ubmitted for Repair ADVANTECH will retain custody of a product submitted for repair for one month while it is waiting for return of a signed P I or payment A R If the customer fails to respond within...

Page 80: ...e subject to change without notice No part of this publication may be reproduced in any form or by any means such as electronically by photocopying recording or otherwise without prior written permiss...

Reviews: