IBASE IB102 User Manual

www.ibase.com.tw
IBASE Technology Inc.
IB102
ARM-based SBC with
Freescale i.MX6 Cortex-A9 Solo Core 1GHz SoC
and POE+ Support
User’s Manual
2014 Nov. V1.0a
Copyright © 2014 IBASE Technology Inc. All Rights Reserved.
2
IB102
This page is intentionally left blank.
3
IBASE Technology Inc.
Quick Start Guide
Here is a step-by-step guide to boot up the IB102:
a. Based on request, the (Android) or (Linux OS) will be preloaded in the IB102’s eMMC,
or IB102A’s SD card. Please proceed to do the following:
Check the backlight power’s voltage and connect the 8” LVDS panel (optional)
with the LVDS cable (optional, please contact Ibase sales dept.).
Connect the device with (12V/ POE/or corresponding) power input directly.
b. To make a recovery SD card (for IB102 advanced user only), or to make an SD card
for IB102A, please refer to Chapter 4.
c. To use the root/ serial port debug function, please check Chapter 4.2.1 (COM1
debug cable setup) information.
d. To boot up with a different LVDS panel, please refer to Chapter 4.2.2.
Note: different LVDS panels have different customization; please check with your sales contact.
e. For advanced users who are building their own products, please refer to Chapter 5. f. For special HW/SW/ panel customization requests or assistance, please check with
Ibase sales dept.
Copyright © 2014 IBASE Technology Inc. All Rights Reserved.
4
IB102
TABLE OF CONTENTS
Quick Start Guide .................................................................................................................. 3
1. Introduction ................................................................................................................... 6
1.1. IB102 ................................................................................................................................. 6
1.2. IB102 Hardware Specifications ........................................................................................... 7
1.3. Optional Items ................................................................................................................... 9
2. Jumper setting on IB102 ............................................................................................... 10
3. Connectors on IB102 ..................................................................................................... 17
4. Software Setup ............................................................................................................ 26
4.1. Make a Recovery SD Card (for advanced user only) ........................................................... 26
4.2. Parameter Setting on U-boot ............................................................................................ 29
4.2.1. Preparation (debug console) ............................................................................................................ 29
4.2.2. Display setting command For Android (for advanced software engineer only) ............................... 30
4.2.3. Display setting for Linux.................................................................................................................... 31
5. BSP User Guide ( for advanced software engineer only ) ............................................... 32
5.1. Building BSP Source ...................................................................................................... 32
5.1.1. Preparation ........................................................................................................... 32
5.1.2. Installing Toolchain ............................................................................................... 32
5.1.3. Building u-boot...................................................................................................... 34
5.1.4. Building kernel ...................................................................................................... 38
5.1.5. Copying u-boot, kernel to SD card .......................................................................... 40
5.1.6. Copying Filesystem to SD card ............................................................................... 40
5.1.7. Booting with your SD card ..................................................................................... 46
6. Appendix A– I2C, GPIO, Watchdog Reference Code Coding. ........................................... 47
6.1. How to use I2C in Linux ................................................................................................. 47
6.2. How to use GPIO in Linux .............................................................................................. 64
6.2.1. GPIO Mapping Table ............................................................................................. 64
6.2.2. GPIO Sample Code ................................................................................................. 64
6.2.3. How to use Watchdog in Linux ............................................................................... 65
7. Appendix C : how to Flash the image to eMMC ............................................................. 66
8. Appendix D – ADB configuration (For Android only ) ..................................................... 66
9. Appendix D –Useful links .............................................................................................. 67
5
IBASE Technology Inc.
Acknowledgments
Freescale
TM
is a trademark of Freescale Semiconductor, Inc.
ARM® Cortex™-A9 is a trademark of ARM Holdings, plc.
Android, name, logo, and other Android trademarks are property of Google Inc.
Linux, trademarks or marks include all trade and service marks and logos owned by the
Linux Foundation.
All other product names or trademarks are properties of their respective owners.
Copyright © 2014 IBASE Technology Inc. All Rights Reserved.
6
IB102
1. Introduction
1.1. IB102
The IB102 i.MX6 SBC comes with extended consumer-grade Freescale i.MX6 Solo Core Cortex-A9 1GHz CPU. LVDS, POE+, and light bar design to bring you the scalability and flexibility you need. The device offers 3D graphics acceleration, while also supporting numerous peripherals, including DDR3, RS232/422/485 port and USB OTG that are well suited for industrial applications.
7
IBASE Technology Inc.
FEATURES
IB102
Form Factor
150mm x 165mm
CPU Type
Freescale i.MX6 Solo Core Coretex-A9 on Board
CPU Speed
1GHz
Memory Socket
DDR3 1GB on Board
VGA Controller
IPU v3H IPU Engine
Watchdog Timer
By Hardware
Edge IO
10/100/1000 LAN x1 (RJ45 connector with POE+ support )
USB x 1 (USB Host. A-Type) USB OTG x 1 (mini AB type) COM1 RS-232/422/485 x 1
Dip switch x 1 (for 232/485 selection)
SD card slot x 1
Reset button x1
12V DC-IN Jack x 1,
Internal Headers
LVDS Connector x 1
GPIO x (10pin, pitch 2.0 with 3.3V, refer to RP100)
Audio pin Header x3
I2C connector x1
Battery: BR2032 with socket
Expansion Slots
miniPCIE x1 ( with USB support)
Others
LEDs light bar x 1 (3xGPIO pin control Red, Orange and Green)
Operating
temperature
0~60 degree
SW Support
Ubuntu Linux 11.10 ( kernel 3.0)
Android 4.3
1.2. IB102 Hardware Specifications
IB102 Features
1080p hardware encode/decode ability. OpenGL ES 2.0 and OpenVG 1.1 hardware accelerators 1GB DDR3, 4GB eMMC, LED light bar on board 10/100/1000 M-bit Ethernet Supports 12V DC-IN or POE+ Supports RS232/422/485, USB-OTG, SD slot Supports LVDS panel resolution up to 1366x768 Supports Linux3.0, Android 4.3
This specification is subject to change without prior notice.
Copyright © 2014 IBASE Technology Inc. All Rights Reserved.
8
IB102
I/O View
Board Dimensions
9
IBASE Technology Inc.
Item
Specifications
Part Number
Remarks
Speaker
4 OHM
1.5W 10CM
A057SPP3516K11000P Com1 Cable
EXT- 312
C501EXT3120A12000P
Power Supply
60W 12V AD/AP
A005PS060WFSP0101P
USB OTG ( mini type) Cable
USB- 81 2- HEAD 4C 120CM
C501USB8105A12000P
DSUB- USB- 4 Cable
TEST- 220
C501TES2200202000P Debug Port Cable
PK1-100A
C501PK11003102A00P
Display Related
Touch Panel
Touch Panel; 8" Resistive
A003TP00800100000P
LVDS Cable
LCD326 (10CM)
C501LCD3260102000P
1.3. Optional Items
If you have any optional item request, please contact Ibase sales dept.
Copyright © 2014 IBASE Technology Inc. All Rights Reserved.
10
IB102
2. Jumper setting on IB102
[Important] Please check the jumpers, DIP, buttons and switches on IB102
before doing the panel connection and boot up.
Jumpers are used on IB102 to select various settings and features according to your needs and applications. Contact your supplier if you have doubts about the best configuration for your needs. The following lists the connectors on IB102 and their respective functions.
Jumper Locations on IB102
Top Side
11
IBASE Technology Inc.
JP1
Setting
Function
Pin 1-2 Short/Open
4 or 8 wire/5 wire (Default)
Pin 3-4 Short/Open
4 or 8 wire/5 wire (Default)
Pin 5-6 Short/Open
4 or 8 wire/5 wire (Default)
1 6 5
2
Bottom Side
JP1: Touch Pad Wire Setting 2.0mm
Copyright © 2014 IBASE Technology Inc. All Rights Reserved.
12
IB102
JP2
USB Setting*
Function
1
3
2
4
5 6
Pin 1-3 Short/Closed
USB
Pin 2-4 Short/Closed
JP2
UART Setting
Function
1
3
2
4
5 6
Pin 3-5 Short/Closed
UART*
Pin 2-4 Short/Closed
Baud rate 19200*
Pin 4-6 Short/Closed
Baud rate 9600
11 2 12
1
1 6 5
2
JP2: Touch USB/UART Mode Setting 2.0mm
JP3: Program Interface (E-CALL 0519-03-2161-120) (Factory use only)
13
IBASE Technology Inc.
JP4
Setting
Function
Pin 1-2 Short/Closed
GPIO
Pin 2-3 Short/Closed
System Reset (Default)
COM1 Mode
SW4 (S2)
JP5
RS-232
Off (Default)
2-3 Short (Default)
RS-485
On
2-3 Short
RS-422
Off
1-2 Short
1 3 s2
s1
1
3
[
JP4: System reset/GPIO Mode Setting 2.0mm
JP5, SW4 (S2): RS-232/422/485 Mode Selection 2.0mm
Copyright © 2014 IBASE Technology Inc. All Rights Reserved.
14
IB102
SW4 (S1)
Device Mode
On
None Terminal (Default)
Off
Terminal
s2
s1
SW4 (S1): RS-422/485 Device Termination Selection
15
IBASE Technology Inc.
J2
Setting
Panel Voltage
Pin 1-2 Short/Closed
5V (default)
Pin 2-3 Short/Closed
12V
J3
Setting
Panel Voltage
Pin 1-2 Short/Closed
5V
Pin 2-3 Short/Closed
3.3V (default)
1
3
1
3
J2: BL Voltage Setting 2.0mm
J3: BL ADJ Level Setting 2.0mm
Copyright © 2014 IBASE Technology Inc. All Rights Reserved.
16
IB102
J4
Setting
Panel Voltage
Pin 1-2 Short/Closed
5V
Pin 2-3 Short/Closed
3.3V (default)
1
3
J4: LVDS Panel Power Selection 2.0mm
17
IBASE Technology Inc.
Pin #
Signal Name
1
GND
2
NC 3 NC 4 NC
5
NC 6 GND
7
SDA
8
SCL 9 NC
10
INT
11
3.3V
12
3.3V
1
1 2
3. Connectors on IB102
CN1: SD Card Connector
CN2: Capacitor Touch Pad Connector (ENTERY 7083K-F12N-04L)
Copyright © 2014 IBASE Technology Inc. All Rights Reserved.
18
IB102
CN3: USB 2.0 Connector
CN4: 10/100/1000Mb LAN (PoE+ supported)
This RJ45 LAN connector supports PoE+ function.
19
IBASE Technology Inc.
Pin #
Signal Name
1
COM1 DSR, Data set ready
2
GND
3
GND
4
COM1 RXD, Receive data
5
COM1 TXD, Transmit data
6
COM1 DCD, Data carrier detect
7
COM1 DTR, Data terminal ready
8
COM1 CTS, Clear to send
9
COM1 RTS, Request to send
10
Boot by SD card detection
Pin #
Signal Name
RS-232
R2-422
RS-485
1
DSR
NC
NC
2
Ground
Ground
Ground
3
Ground
Ground
Ground
4
RX
TX+
DATA+
5
TX
RX+
NC
6
DCD
TX-
DATA-
7
DTR
RX-
NC
8
CTS
NC
NC
9
RTS
NC
NC
10
NC
NC
NC
10
1
CN5: COM1 RJ45 Connector
COM1 is jumper less for RS-232, RS-422 and RS-485 and configured with SW4 (S2) and JP5 Selection.
[
Copyright © 2014 IBASE Technology Inc. All Rights Reserved.
20
IB102
Pin #
Signal Name
1
+5V
2
D- 3 D+
4
ID
5
GND
1
5
CN7: +12V DC-IN Power Connector
CN8: Mini USB OTG Connector
Note: CN8 will be used for USB device when ID is floating.
21
IBASE Technology Inc.
Pin #
Signal Name
1
NC
2
LCD_VDD
3
LCD_VDD
4
NC 5 TX0-
6
TX0+
7
GND
8
TX1-
9
TX1+
10
GND
11
TX2-
12
TX2+
13
GND
14
CLK-
15
CLK+
16
GND
17
TX3-
18
TX3+
19
GND
20
GND
21
GND
22
GND
23
GND
24
NC
25
BKLT_ADJ
26
BKLT_EN
27
NC
28
BKLT_VCC
29
BKLT_VCC
30
BKLT_VCC
1
30
CN9: LVDS Connector (HRS DF19G-30P-1H(54) )
Loading...
+ 46 hidden pages