Advantech RSB-4210 Evaluation Kit User Manual

Browse online or download User Manual for Server barebones Advantech RSB-4210 Evaluation Kit. Advantech RSB-4210 Evaluation Kit User manual

  • Download
  • Add to my manuals
  • Print
  • Page
    / 104
  • Table of contents
  • BOOKMARKS
  • Rated. / 5. Based on customer reviews
Page view 0
User Manual
RSB-4210 Evaluation
Kit
Freescale i.MX53 Processor -
ARM® Cortex™ A8 Architecture
Page view 0
1 2 3 4 5 6 ... 103 104

Summary of Contents

Page 1 - RSB-4210 Evaluation

User ManualRSB-4210 Evaluation KitFreescale i.MX53 Processor -ARM® Cortex™ A8 Architecture

Page 2 - Product Warranty (2 years)

RSB-4210 User Manual 21.1 IntroductionIn order to offer potential RISC-based Design-to-Order-Service (DTOS) project cus-tomers with a more efficient a

Page 3 - Packing List

RSB-4210 User Manual 92Device drivers are the modules that generate events. The events are however notuseful without being handled, so you also will n

Page 4 - Safety Instructions

93 RSB-4210 User ManualChapter 3 Software FunctionalityThe right way would be to pass the events to keyboard.c directly, best if key-board.c would its

Page 5 - Contents

RSB-4210 User Manual 94evdev is the generic input event interface. It passes the events generated in thekernel straight to the program, with timestamp

Page 6

95 RSB-4210 User ManualChapter 3 Software FunctionalityMore detail please reference "source/linux-2.6.35.4/Documentation/input/input.txt".3.

Page 7

www.advantech.comPlease verify specifications before quoting. This guide is intended for referencepurposes only.All product specifications are subject

Page 8

3 RSB-4210 User ManualChapter 1 Overview1.3 Hardware SpecificationsItem DescriptionKernelCPU Freescale i.MX53 1GHz (ARM Cortex A8)2D/3D Accelerators

Page 9 - Chapter 1

RSB-4210 User Manual 41.4 Board Block DiagramFigure 1.1 RSB-4210 Board Block DiagramPower ConsumptionNormal Run ~2.3 WFull Run ~3.8 WPower Control1 x

Page 10 - 1.2 Features

Chapter 22 H/W InstallationThis chapter introduces the setup procedures of the RSB-4210 hard-ware, including instructions on setting jumpers and conne

Page 11 - Chapter 1 Overview

RSB-4210 User Manual 62.1 Development Kit H/W InstallationThe Figure 2-1 is RSB-4210 Evaluation Kit Assembly, and the detail descriptions withAdvantec

Page 12 - 1.4 Board Block Diagram

7 RSB-4210 User ManualChapter 2 H/W InstallationFigure 2.1 RSB-4210 Development Kit Assembly2.1.1 RSB-4210 (Part-A)RSB-4210 is a cost-effective, low-p

Page 13 - Chapter 2

RSB-4210 User Manual 82.1.3 LCD Backlight Cable (Part-B2)The LVDS backlight cable connects RSB-4210 (CN11) with the LCD backlight con-nector of 7"

Page 14

9 RSB-4210 User ManualChapter 2 H/W Installation2.1.15 Power Cord (Part-L)3P Power Cord (USA, Europe or UK standard) for 19 V Power Adapter AC input.2

Page 15 - Chapter 2 H/W Installation

RSB-4210 User Manual 102.2 RSB-4210 ConnectorsThe following table shows the connector list of RSB-4210. 2.2.1 Wafer for 4-wire Resistive Type Touch S

Page 16 - RSB-4210 User Manual 8

11 RSB-4210 User ManualChapter 2 H/W InstallationFigure 2.2 Wafer for 4-wire Resistive Type Touch Screen2.2.2 Phoenix Connector for CAN Bus (CN2)RSB-

Page 17

RSB-4210 User Manual iiCopyrightThe documentation and the software included with this product are copyrighted 2012by Advantech Co., Ltd. All rights ar

Page 18 - 2.2 RSB-4210 Connectors

RSB-4210 User Manual 12Figure 2.4 CAN ApplicationFigure 2.5 Schematics of CAN on RSB-42102.2.3 Phoenix Connector for COM3, RS-485 (CN3)RSB-4210 suppor

Page 19

13 RSB-4210 User ManualChapter 2 H/W InstallationFigure 2.7 RS-485 ApplicationFigure 2.8 Schematics of RS-485 on RSB-42102.2.4 System Bus (CN4)The RSB

Page 20 - 1 RS485_TXD- 2 RS485_TXD+

RSB-4210 User Manual 142.2.5 Pin Header for COM5, RS-232 (TX/RX/RTS/CTS) (CN5)CN5 is a 4-wire (TX/RX/RTS/CTS) RS-232 port which provides connections b

Page 21

15 RSB-4210 User ManualChapter 2 H/W Installation2.2.6 Pin Header for COM4, 3.3V TTL (TX/RX/RTS/CTS) (CN6)CN6 is a 4-wire (TX/RX/RTS/CTS) 3.3 V TTL si

Page 22

RSB-4210 User Manual 162.2.8 LVDS0 LCD Connector (CN8)RSB-4210 supports dual LVDS LCD Interfaces (24+24 bit), in which CN8 is LVDS0(24-bit) while CN14

Page 23

17 RSB-4210 User ManualChapter 2 H/W Installation2.2.9 Pin Header for COM1, RS-232 (TX/RX) (CN9)CN9 is a 2-wire (TX/RX) RS-232 port which provides con

Page 24

RSB-4210 User Manual 18Figure 2.15 Pin Header for SD22.2.11 Wafer for Backlight Power and Controller (CN11)This wafer provides DC +12 V, DC +5 V, back

Page 25

19 RSB-4210 User ManualChapter 2 H/W Installation2.2.12 MiniPCIe Connector-Latch (CN12) and Connector (CN13)RSB-4210 supports a MiniPCIe Interface. Th

Page 26

RSB-4210 User Manual 202.2.13 LVDS1 LCD Connector (CN14)RSB-4210 supports dual LVDS LCD Interfaces (24+24bit), in which CN8 is LVDS0(24 bit) while CN1

Page 27

21 RSB-4210 User ManualChapter 2 H/W Installation2.2.14 Pin Header for Jtag (CN15)RSB-4210 provides one Jtag interface for debugging CPU. CN15 is the

Page 28

iii RSB-4210 User Manual Packing ListBefore setting up the system, check that the items listed below are included and ingood condition. If any item do

Page 29

RSB-4210 User Manual 222.2.16 Wafer for Power ON/OFF (CN17)When plug-in the adapter with CN17 shorted by a jumper, the system will power-on.Or you can

Page 30

23 RSB-4210 User ManualChapter 2 H/W InstallationFigure 2.22 Ethernet LAN1 & LAN2 Connector2.2.18 Wafer for Coin Battery (CN19)CN19 is used for a

Page 31

RSB-4210 User Manual 242.2.19 SIM Card slot (CN20)RSB-4210 provides a SIM card slot for MiniPCIe devices.Figure 2.24 SIM Card slot2.2.20 Pin Header fo

Page 32 - 2.2.19 SIM Card slot (CN20)

25 RSB-4210 User ManualChapter 2 H/W Installation2.2.21 Pin Header for Suspend (SUS_BTN1)SUS_BTN1 is used to making system entering into suspend mode

Page 33

RSB-4210 User Manual 26Figure 2.27 Pin Header for Matrix Keypad 2.2.23 Pin Header for I2C/SPI (CN21)RSB-4210 provides two I2C and one SPI interface wi

Page 34

27 RSB-4210 User ManualChapter 2 H/W Installation2.2.24 Pin Header for 20x pins GPIO (GPIO1)GPIO1 is extended for 20x pins 3.3V TTL Level GPIO. GPIO1~

Page 35

RSB-4210 User Manual 282.2.25 SATA Connector (SATA_CN1)RSB-4210 supports one SATA Interface thru SATA_CN1. (Both SATA DOM andSATA HDD support.) The pi

Page 36 - Figure 2.30 SATA Connector

29 RSB-4210 User ManualChapter 2 H/W Installation2.2.27 Wafer for Battery Charger Board - Power (BAT_CN1)BAT_CN1 provides the power with battery charg

Page 37

RSB-4210 User Manual 302.2.29 USB OTG MINI-AB Connector (USB_OTG1)The RSB-4210 has a single USB OTG mini-AB port which can be used as a USB cli-ent to

Page 38

31 RSB-4210 User ManualChapter 2 H/W Installation2.2.31 VGA Connector (CRT1)RSB-4210 supports a standard VGA Interface (D-SUB15). The pin assignment i

Page 39

RSB-4210 User Manual ivSafety Instructions1. Read these safety instructions carefully.2. Keep this User Manual for later reference.3. Disconnect this

Page 40 - (AUDIO1)

RSB-4210 User Manual 322.2.33 Box Header for LINE-OUT, LINE-IN, MIC-IN and L&R Speakers (AUDIO1)The box header is used for audio input / output si

Page 41

33 RSB-4210 User ManualChapter 2 H/W Installation2.2.35 DC-IN Power Jack(DCIN1)The DC-in power jack DCIN1 provides the power with RSB-4210 (+9 ~ 24 V)

Page 42 - 2.3 Mechanical

RSB-4210 User Manual 342.3 Mechanical2.3.1 Connector LocationFigure 2.42 RSB-4210 Connector Position (Top) Figure 2.43 RSB-4210 Connector Position (Bo

Page 43

35 RSB-4210 User ManualChapter 2 H/W Installation2.3.2 RSB-4210 Board DimensionFigure 2.44 RSB-4210 Board Dimension

Page 44 - RSB-4210 User Manual 36

RSB-4210 User Manual 36

Page 45 - Chapter 3

Chapter 33 Software FunctionalityThis chapter details the Linux operating system on RSB-4210.

Page 46 - 3.2 Package Content

RSB-4210 User Manual 383.1 IntroductionThe RSB-4210 platform is an embedded system with Linux kernel 2.6.35 as default.Its major functions include all

Page 47 - 3.2.2 Source Code Package

39 RSB-4210 User ManualChapter 3 Software Functionality3.2.2 Source Code PackageRSB-4210 source code package contains many software components which a

Page 48

RSB-4210 User Manual 40 boot' → The startup files and the kernel. In some recent distributions also grub data. Grub is the Grand Unified Boot lo

Page 49

41 RSB-4210 User ManualChapter 3 Software FunctionalityThe main folders contained in "linux-2.6.35.3" are listed as follows: arch' → T

Page 50 - 3.4 Building Instructions

v RSB-4210 User Manual ContentsChapter 1 Overview...11.1 Introduction ...

Page 51 - 3.5 Source Code Modification

RSB-4210 User Manual 423.3.1 Setenv.shThe script "setenv.sh" is mainly used to configure the developing environmentquickly. It will configur

Page 52 - 3.5.2 Changing the Boot Logo

43 RSB-4210 User ManualChapter 3 Software Functionality4. Type #cd Desktop/RSB4210_BSP/scripts/5. Type #. setenv.sh (To configure the developing envir

Page 53 - 45 RSB-4210 User Manual

RSB-4210 User Manual 448. Go to "Device Drivers"'"Real Time Clock", then you can see the "Seiko Instru-ments S-35390A&qu

Page 54 - 3.7 Debug Message

45 RSB-4210 User ManualChapter 3 Software Functionality3. Open "Terminal" utility.4. Type #cd Desktop/bootlogo (Go into the folder that boot

Page 55 - 47 RSB-4210 User Manual

RSB-4210 User Manual 467. Type #./mkmmc-linux.sh /dev/sdf u-boot.bin uImage ../rootfs8. Type #y (Start to copy files, waiting few minutes until it sho

Page 56 - RSB-4210 User Manual 48

47 RSB-4210 User ManualChapter 3 Software Functionality3. After the bootloader is programmed on SD card, press "POWER" key to power up the b

Page 57 - 49 RSB-4210 User Manual

RSB-4210 User Manual 4811. Save the file and exit.12. Type #$CC -o helloworld helloworld.c (To compile helloworld.c)13. Then you can see "hellowo

Page 58 - RSB-4210 User Manual 50

49 RSB-4210 User ManualChapter 3 Software FunctionalityFigure 3.8 QT - Fluidlauncher demo3.8.2.2 Running Audio DemoExecute the following commands to r

Page 59 - 3.9.2 Bypass Mode

RSB-4210 User Manual 50Figure 3.10 Photo demo3.8.2.5 Running Buzzer TestingExecute the following commands to test the buzzer function of RSB-4210.1. T

Page 60

51 RSB-4210 User ManualChapter 3 Software Functionality3.9 VGA/HDMI Configuration on RSB-4210In this section, we will introduce how to configure VGA/H

Page 61 - Table 3.3: Auto Parameters

RSB-4210 User Manual vi2.2.7 Pin Header for I2S (CN7)... 15Figure 2.12Pin Header for I2S...

Page 62 - 3.10.1 What is a GPIO?

RSB-4210 User Manual 52your panel. (For example, if your panel supports UXGA60 as its max resolution, youmay choose value "2".) Table 3.2: 4

Page 63 - 3.10.2 Paths in Sysfs

53 RSB-4210 User ManualChapter 3 Software FunctionalityFurthermore, an auto parameter provided by Advantech can be set to decide whichpanel is the pri

Page 64 - RSB-4210 User Manual 56

RSB-4210 User Manual 544. Type # echo 2 > mode (Configure bypass mode) Figure 3.15 Bypass mode configuration5. Type # echo 19 > auto_video (Use

Page 65 - 3.11.2 C example

55 RSB-4210 User ManualChapter 3 Software Functionalitycan be written generically, so that board setup code passes such pin configurationdata to drive

Page 66 - RSB-4210 User Manual 58

RSB-4210 User Manual 56"edge" reads as either "none", "rising", "falling", or "both". Write these st

Page 67 - 59 RSB-4210 User Manual

57 RSB-4210 User ManualChapter 3 Software Functionality3.10.3 GPIO Mapping Table 3.11 Interface Device Reference Documentation3.11.1 I2CUsually, i2c d

Page 68 - RSB-4210 User Manual 60

RSB-4210 User Manual 58somewhat dynamically, so you cannot assume much about them. They can evenchange from one boot to the next.Next thing, open the

Page 69 - 3.11.3 UART

59 RSB-4210 User ManualChapter 3 Software Functionality buf[0] = register; buf[1] = 0x43; buf[2] = 0x65; if (write(file, buf, 3) ! =3) { /* ERR

Page 70 - RSB-4210 User Manual 62

RSB-4210 User Manual 60Do combined read/write transaction without stop in between.Only valid if the adapter has I2C_FUNC_I2C. The argument is apointe

Page 71 - 63 RSB-4210 User Manual

61 RSB-4210 User ManualChapter 3 Software Functionality3.11.2.2 Implementation detailsFor the interested, here's the code flow which happens insi

Page 72 - RSB-4210 User Manual 64

vii RSB-4210 User Manual CTS) ... 322.2.35 DC-IN Power Jack(DCIN1) ...

Page 73 - 65 RSB-4210 User Manual

RSB-4210 User Manual 62set_termios() Called on termios change, serialized against itself by a sema-phore. May sleep.set_ldisc() Notifier for disciplin

Page 74 - RSB-4210 User Manual 66

63 RSB-4210 User ManualChapter 3 Software FunctionalityReturns the ldisc reference and allows the ldisc to be closed. Returning the referencetakes awa

Page 75 - 67 RSB-4210 User Manual

RSB-4210 User Manual 64 ( void ) ftime( &tb ); realNow = (unsigned int )(((tb.time%4290) * 1000000 ) + (tb.millitm * 1000 )); return(real

Page 76 - RSB-4210 User Manual 68

65 RSB-4210 User ManualChapter 3 Software Functionality case 57600: retval = B57600; break; case 115200:

Page 77 - 69 RSB-4210 User Manual

RSB-4210 User Manual 66 case 1152000: retval = B1152000; break;#endif#ifdef B1500000 case 1500000: retv

Page 78 - RSB-4210 User Manual 70

67 RSB-4210 User ManualChapter 3 Software Functionality return(retval);}int trun, rrun;int fd;int size = 10000;unsigned int tcount, rcount;FILE *fu

Page 79 - 3.11.4 CAN bus

RSB-4210 User Manual 68/* Read in and wrap around the list */ iores = read(fd, rx, iocount);rcount += iores;fwrite(rx, 1, iores, furead

Page 80 - RSB-4210 User Manual 72

69 RSB-4210 User ManualChapter 3 Software Functionalitytcgetattr(fd, &options);options.c_cflag &= ~CSTOPB;options.c_cflag &= ~CSIZE;option

Page 81 - 73 RSB-4210 User Manual

RSB-4210 User Manual 70cfsetospeed(&options, baudrate_map(baudrate));}tcsetattr(fd, TCSANOW, &options);printf("UART %lu, %dbit, %dstop, %

Page 82 - RSB-4210 User Manual 74

71 RSB-4210 User ManualChapter 3 Software Functionalityclose(fd);printf("test exit\n");return 0;}(More detail please reference "source/

Page 83 - 75 RSB-4210 User Manual

RSB-4210 User Manual viii3.10.1 What is a GPIO?... 543.10.2 Paths in Sysfs ...

Page 84 - RSB-4210 User Manual 76

RSB-4210 User Manual 72#include <signal.h>#include <stdio.h>#include <stdlib.h>#include <string.h>#include <unistd.h>#in

Page 85 - 77 RSB-4210 User Manual

73 RSB-4210 User ManualChapter 3 Software Functionalityenum {VERSION_OPTION = CHAR_MAX + 1,};void sigalrm_fn(int sig){printf("CAN Bus Error\n&quo

Page 86 - 3.11.7 RTC

RSB-4210 User Manual 74break;case 't':type = strtoul(optarg, NULL, 0);break;case 'p':proto = strtoul(optarg, NULL, 0);break;case &

Page 87 - 79 RSB-4210 User Manual

75 RSB-4210 User ManualChapter 3 Software Functionalityprint_usage(basename(argv[0]));exit(0);}if (argv[optind] == NULL) {fprintf(stderr, "No Int

Page 88 - RSB-4210 User Manual 80

RSB-4210 User Manual 76if (rtr)frame.can_id |= CAN_RTR_FLAG;if (verbose) {printf("id: %d ", frame.can_id);printf("dlc: %d\n", fram

Page 89 - 81 RSB-4210 User Manual

77 RSB-4210 User ManualChapter 3 Software Functionalityprintf("Receive data: ");for(i =0; i<8 ;i++){printf("%d ",frame.data[i])

Page 90 - RSB-4210 User Manual 82

RSB-4210 User Manual 78You can use open/close/write/read functions to control this storage.3.11.6 LANRefer to Socket Programming (http://www.tenouk.co

Page 91 - 83 RSB-4210 User Manual

79 RSB-4210 User ManualChapter 3 Software Functionalitywakealarm: The time at which the clock will generate a system wakeupevent. This is a one shot w

Page 92 - RSB-4210 User Manual 84

RSB-4210 User Manual 80 * RTC_IRQP_SET, RTC_IRQP_READ: the irq_set_freq function will be calledto set the frequency while the framework will handle

Page 93 - 85 RSB-4210 User Manual

81 RSB-4210 User ManualChapter 3 Software Functionalitycase 2:rtc = argv[1];/* FALLTHROUGH */case 1:break;default:fprintf(stderr, "usage: rtctes

Page 94 - 3.11.8 WatchDog

Chapter 11 OverviewThis chapter briefly introduces the RSB-4210 Platform and RSB-4210 Evaluation Kit.

Page 95 - 87 RSB-4210 User Manual

RSB-4210 User Manual 82fprintf(stderr, "\nAgain, from using select(2) on /dev/rtc:");fflush(stderr);for (i=1; i<6; i++) {struct timeval t

Page 96 - RSB-4210 User Manual 88

83 RSB-4210 User ManualChapter 3 Software Functionalityrtc_tm.tm_mday, rtc_tm.tm_mon + 1, rtc_tm.tm_year +1900,rtc_tm.tm_hour, rtc_tm.tm_min, rtc_tm.t

Page 97 - 89 RSB-4210 User Manual

RSB-4210 User Manual 84fprintf(stderr, "Waiting 5 seconds for alarm...");fflush(stderr);/* This blocks until the alarm ring causes an interr

Page 98 - 3.11.10Keypad/Touchscreen

85 RSB-4210 User ManualChapter 3 Software Functionality"\n...Periodic IRQ rate is fixed\n");goto done;}perror("RTC_IRQP_SET ioctl"

Page 99 - 91 RSB-4210 User Manual

RSB-4210 User Manual 863.11.8 WatchDogUsually an userspace daemon will notify the kernel watchdog driver via the/dev/watchdog special device file that

Page 100 - RSB-4210 User Manual 92

87 RSB-4210 User ManualChapter 3 Software Functionality3.11.8.3 The ioctl APIAll conforming drivers also support an ioctl API.Pinging the watchdog usi

Page 101 - 93 RSB-4210 User Manual

RSB-4210 User Manual 88There is also a get function for getting the pretimeout: ioctl(fd, WDIOC_GETPRETIMEOUT, &timeout); printf("The p

Page 102 - RSB-4210 User Manual 94

89 RSB-4210 User ManualChapter 3 Software FunctionalityWDIOF_POWERUNDER Power bad/power faultThe machine is showing an undervoltage statusWDIOF_CARDRE

Page 103 - 3.12 Backlight Adjustment

RSB-4210 User Manual 90 ioctl(fd, WDIOC_SETOPTIONS, &options);The following options are available:WDIOS_DISABLECARDTurn off the watchdog timerW

Page 104

91 RSB-4210 User ManualChapter 3 Software Functionality These modules talk to the hardware (for example via USB), and provide events(keystrokes, mous

Comments to this Manuals

No comments