IBASE SMARC-EVK1 User Manual

www.ibase.com.tw
IBASE Technology Inc.
SMARC Evaluation Kit
User’s Manual
2014 Oct V1.1
Copyright © 2013 IBASE Technology Inc. All Rights Reserved. 2
2
SMARC Evaluation Kit
3
3
IBASE Technology Inc.
Quick Start Guide
Here is a step by step guide to boot up your SMARC:
a. By default, the (Android) or (Linux OS) has been preloaded in the eMMC, (or SD card)
of the SMARC demo kit. All you have to do is
- Connect your SMARC with TV/LCD by using an HDMI cable, - Or connect your LVDS panel by using LVDS cable if you have them - Connect the device with 12V power input directly.
b. To make a recovery SD card, please refer to Chapter 2. c. To use the root/ serial port debug function, please check Chepter3.2.1 (COM1 debug
cable setup) information.
d. To boot up with an installed LVDS panel, please refer to Chapter 3.
Note: different LVDS panel will has different customization, please check with your sales.
e. For advanced users who would be building their own products, please refer to
Chapter 3~5.
f. For special requests or assistance, please contact IBASE Sales.
Copyright © 2013 IBASE Technology Inc. All Rights Reserved. 4
4
SMARC Evaluation Kit
TABLE OF CONTENTS
Quick Start Guide ...................................................................................................................... 3
1. Introduction ....................................................................................................................... 7
1.1. IBASE SMARC Starter Kit ........................................................................................................ 7
1.2. RM-F600-SMC Hardware Specifications ................................................................................. 8
1.3. Boards Dimension .................................................................................................................10
1.4. I/O View ................................................................................................................................11
1.5. Optional Items.......................................................................................................................12
1.6. Installing the SMARC .............................................................................................................14
2. Jumper setting on the Carrier Board ................................................................................ 15
Connectors on RP-100-SMC ..............................................................................................................18
3. Software Setup................................................................................................................. 25
3.1. Make a Recovery SD Card ......................................................................................................25
Boot on the SMARC starter kit ........................................................................................................... 1
3.2. Parameter Setting on U-boot ................................................................................................. 2
3.2.1. Preparation (debug console) ......................................................................................................... 2
3.2.2. Display setting command For Android .......................................................................................... 3
3.2.3. Display setting for Linux ................................................................................................................ 4
4. Carrier Board Design Guide ................................................................................................ 5
4.1. Block Diagram ................................................................................................................ 5
4.2. Interfaces ........................................................................................................................ 6
4.3. Layout recommendations ............................................................................................. 20
4.4. SMRC Module (RM-F6xx-SMC) Pin Out Table. .............................................................. 22
5. BSP User Guide ( for advanced software engineer only ) ................................................. 25
5.1. Building SMARC BSP Sorce ........................................................................................... 25
5.1.1. Preparation ............................................................................................................... 25
5.1.2. Installing Toolchain ................................................................................................... 25
5.1.3. Building u-boot ......................................................................................................... 27
5.1.4. Building kernel .......................................................................................................... 31
5
5
IBASE Technology Inc.
5.1.5. Copying u-boot, kernel to SD card ............................................................................. 33
5.1.6. Copying Filesystem to SD card .................................................................................. 33
5.1.7. Booting with your SD card ........................................................................................ 39
6. Appendix A– I2C, GPIO, watchdog reference code Coding. .............................................. 40
6.1. How to use I2C in Linux ................................................................................................. 40
6.2. How to use GPIO in Linux.............................................................................................. 57
6.2.1. GPIO mapping table .................................................................................................. 57
6.2.2. GPIO sample code ..................................................................................................... 57
6.2.3. How to use Watch dog in Linux ................................................................................. 58
7. Appendix B - i.MX6 CPU ball out Table. ........................................................................... 59
8. Appendix C : how to Flash the image to eMMC ............................................................... 66
9. Appendix D –Useful links .................................................................................................. 66
Copyright © 2013 IBASE Technology Inc. All Rights Reserved. 6
6
SMARC Evaluation Kit
Acknowledgments
Freescale
TM
is a trademark of Freescale Semiconductor, Inc.
ARM® Cortex™-A9 is a trademark of ARM Holdings, plc.
SGeT (Standardization Group for Embedded Technologies) is a technical and scientific
association with its registered office in Munich.
SMARC ("Smart Mobility ARChitecture") is a versatile small form factor computer Module, defined by SGeT association
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.
7
7
IBASE Technology Inc.
1. Introduction
1.1. IBASE SMARC Starter Kit
SMARC (‘Smart Mobility ARChitecture’) is a specification published by the
Standardization Group for Embedded Technologies e.V. (SGET) for Computer-on-Modules (COMs). SMARC Computer-on-Modules are specifically designed for the development of compact low-power systems. Generally, SMARC modules are based on ARM processors and other low-power SoC architectures.
Measuring 82mm x 50mm, the Ibase RM-F600-SMC SMARC module is integrated with an i.MX6 Dual Lite 1Ghz extended consumer-grade CPU that supports 2D/3D graphic acceleration and 1080p encode/ decode under Linux/Android BSP to allow easy OS upgrade and short time to market.
Measuring 170mm x 170mm (Mini ITX form factor), the Ibase RP-100-SMC carrier board is compatible with 82mm x 50mm - 82mm x 80mm standard SMARC form factors. Engineers can choose the required embedded IOs to verify developed software application under specified Operation System. Besides setting the default HDMI output with O.S preload in RM-F600-SMC eMMC, IBASE can optionally provide driver-ready 3G module, WIFI module, touch panel, cable kit, power adaptor and accessories to speed up the evaluation cycle.
Copyright © 2013 IBASE Technology Inc. All Rights Reserved. 8
8
SMARC Evaluation Kit
Form Factor
SMARC™ (82mm x 50mm)
CPU
Freescale i.MX6 DualLite Cortex-A9
Up to 1GHz with 512KB L2 cache
Memory
1GB DDR3 on board
4GB eMMC on board
Display
Supports 18/24-bit parallel LCD & LVDS Interface
Supports HDMI Interface
Video Codec
Multi-format HD1080 video Decode and Encode
Audio Interface
I²S, SPDIF
LAN
10/100/1000 Mbit/sec
USB
2 x USB 2.0 port & 1x USB OTG Interface
Image Capture Interface
CSI Interface for MIPI Camera
Serial
4x UART, 1x SPI Interface
Media Interface
2 x High-Speed MMC/SDIO (MMC 8-bit, SDIO 4-bit)
PCIe
1x PCIe Interface
GPIO
12x GPIO
I²C
4x I²C
CAN Bus
2x CAN2.0B
Operating Temperature
Extended commercial: 0°C to +60°C @1Ghz
Board Connector
MXM3.0 314 pins
Operating System
Supports Linux Kernel 3.0, Android 4.3
1.2. RM-F600-SMC Hardware Specifications
RM-F600-SMC Features
SMARC Small Form Factor (82mm x 50mm) SoM i.MX 6DualLite 1GHz Processor 1080p hardware encode/decode
OpenGL ES 2.0 and OpenVG 1.1 hardware accelerators 1GB DDR3, 4GB eMMC on board
10/100/1000 MBit Ethernet Supports 24-bit Parallel LCD, LVDS, & HDMI Supports Linux 3.0, Android 4.3
This specification is subject to change without prior notice.
9
9
IBASE Technology Inc.
Form Factor
Standard Mini-ITX (170mm x 170mm)
Edge IO
1x GB LAN 1x headphone 1x MIC 2x USB 1x USB OTG 1x HDMI 1x COM (232/422/485)
Internal Headers / Connectors
2x CAN 1x parallel LCD 1x Single CH, 18/24 bit LVDS 1x LCD DDC (I2C) 1x LCD backlight power control header 1x CSI-MIPI 2x USB 2.0 8x GPIO 1x 2COM ports header 1x debug port 1x Mini-PCIe with USB 1x SIM socket 1x touch (4-wired) 1x speaker Out 1x micro-SD
Jumpers, Switch & Buttons
1x boot select switch (SD/ eMMC) 1x reset button, 1x power button, 1x GPI button 1x (232/422/485 Selection) jumper 1x backlight power (5/12V) jumper
RP-100-SMC – Carrier Board Specifications
RP-100-SMC Features
For SMARC form factor modules 12V~24V DC-in, reset, power, RTC function Supports GB LAN, audio, USB OTG, HDMI, COM (232/422/485) @ Edge IO Micro SD socket, Mini-PCIe with USB, SIM socket on board 2x isolated CAN transceiver, TTL, LVDS, HDMI, CSI-MIPI camera
Specifications
This specification is subject to change without prior notice.
Copyright © 2013 IBASE Technology Inc. All Rights Reserved. 10
10
SMARC Evaluation Kit
1.3. Boards Dimension
RM-F600-SMC Dimensions
RP-100-SMC (MiniITX) 170mm x 170mm
11
11
IBASE Technology Inc.
Item
Connector
Item
Connector
1
10/100/1000 LAN
5
HDMI Type A
2
Audio Jack
6
RS232/422/485
3
USB OTG
7
4
USB Type A
8
1.4. I/O View
Copyright © 2013 IBASE Technology Inc. All Rights Reserved. 12
12
SMARC Evaluation Kit
WIFI Solution
Description
Note
WiFi module
Wireless LAN Card; 802.11 B/G/N card RoHS RTL8188CTV-SC5X (5VDC) (A008LANMIPCIE4100P)
External Antenna
Wifi Antenna (A055RFA02C2M20800P)
Internal cable-1/2
From Wifi module to rear/front panel (A055RFA0000021000P/A055RFA0000032000P)
3G Solution
Description
ZU 202
Wireless; 3.75G UMTS/HSPA [ZU202] RoHS (A008WIRELESS00520P)
ZU 200
Wireless; 3.75G UMTS/HSPA & GPS module [ZU200] RoHS (A008WIRELESS00510P)
Cable
Cable; Antenna-2 30CM P 2pcs (C501ANT0200300000P)
Antenna
Antenna; 3G, P, 2pcs (A055ANT0921Q2P000P)
COM Port Cable
Description
COM & debug cable
Cable; for internal 3x COM ports box header
COM 1 for debug console:
- User can make your own debug cable too by checking Ch3.2.1 and CN15 connector.
C501PK19100204000P
Power & LCD
Description
Adaptor
12V, Power Adaptor
A005PS060WFSP0101P
LCD
10 inch. 1280 x 800 LCD
A003LCD0101010300
LCD cable.
LCD312 Cable
C501LCD3120302000P
BT solution
Description
BSLIM2 A10
BLUETOOTH 4.0 BOARD
A008BTBSLIM201000P
Cable kit
Description
1.5. Optional Items
If you have further request for option items, please contact iBASE sales.
13
13
IBASE Technology Inc.
For carrier board
USB-29 (C501USB2908303000P): USB 2.0 (USB1)
EXT-458 (C501EXT4580301000P): Audio Speaker (CN14)
EXT-459 (C501EXT4590301000P): RS232 (CN15)
EXT-460 (C501EXT4600301000P): LCD DDC DATA/CLK (CN6)
EXT-461 (C501EXT4610301000P): Touch (CN13)
EXT-462 (C501EXT4620301000P): SPI (CN7)
EXT-463 (C501EXT4630301000P): GPIO (CN5)
EXT-464 (C501EXT4640301000P): CAN Bus (J2, J4)
Others: 500Mega pixel MIPI Camera (A033MODULE0200000P):(J3)
Copyright © 2013 IBASE Technology Inc. All Rights Reserved. 14
14
SMARC Evaluation Kit
1.6. Installing the SMARC
The MXM3.0 connector on RP-100-SMC supports the SMARC form factor (82mm x 50mm and 82mm x 70mm).
To install SMARC modules to the MXM slot on the board, please perform the following steps:
Hold the SMARC module so that the golden fingers of the SMARC module
aligned with the MXM connector.
Gently push the SMARC module to the MXM connector in 45 degree angle
position until the golden finger of SMARC completely touch the bottom of the slot.
Gently press the SMARC module down and fix it with four screws.
15
15
IBASE Technology Inc.
Mode
Jumper Setting
RS232
2-4, 3-5 Shorted (Default)
RS422
3-5, 4-6 Shorted
RS485
1-3, 4-6 Shorted
LCD_VDD
Jumper Setting
3.3V
2-3 Shorted (Default)
5V
1-2 Shorted
BKLT_VCC
Jumper Setting
5V
1-2 Shorted (Default)
12V
2-3 Shorted
6
5
1
1
2. Jumper setting on the Carrier Board
[Important] Please check the jumpers, DIP, buttons and switches on
RP-100-SMC before doing the panel connection and boot up.
JP3: Setting Jumper for CN17 (RS232/422/485)
J7: LCD_VDD Select
J6: BKLT_VCC Select
Copyright © 2013 IBASE Technology Inc. All Rights Reserved. 16
16
SMARC Evaluation Kit
BKLT_PWM
Jumper Setting
3.3V
2-3 Shorted (Default)
5V
1-2 Shorted
Boot Source
SW3_PIN1
SW3_PIN2
SW3_PIN3
SW3_PIN4
Carrier SATA
(i.MX6 Dual/ Quad only)
1 1 1
X
Carrier SD
0 1 1
X
Module eMMC ( default)
1 0 0
X
1
J8: BKLT_PWM Select
SW3: Boot Select
17
17
IBASE Technology Inc.
CN1: DC Power Jack.
(CN1’s mating Connector.)
SW5: +5V ON/OFF
SW1: Power Button
SW2: Reset Button
Copyright © 2013 IBASE Technology Inc. All Rights Reserved. 18
18
SMARC Evaluation Kit
Pin #
Signal Name
1
SPKL+
2
SPKL-
3
GND
4
SPKR-
5
SPKR+
Signal Name
Pin #
Pin #
Signal Name
+5V
1 2 TX1
TX5
3 4 RX1
RTS5#
5 6 GND
RX5
7 8 TX2
CTS5#
9
10
RX2
GND
11
12
GND
5
12 11
Connectors on RP-100-SMC
CN14: Audio Speaker Out (E-CALL_0110-26110050)
CN15: RS232 x 3 (DF11-12S-PA66H)
19
19
IBASE Technology Inc.
Pin #
RS232
RS422
RS485
1 TXD-
D-
2
RXD
TXD+
D+
3
TXD
RXD+
4
RXD-
5
GND
6
7
RTS
8
CTS
Signal Name
Pin #
Pin #
Signal Name
TX0+
1 2 TX0-
GND
3 4 GND
TX1+
5 6 TX1-
GND
7 8 VDD
TX3+
9
10
TX3-
TX2+
11
12
TX2-
GND
13
14
GND
TXC+
15
16
TXC-
BKLT_PWM
17
18
VDD
BKLT_VCC
19
20
BKLT_VCC
19
20
CN17: RS232/422/485
( SMARC standard define 4 wired RS232 signals)
N9: LVDS (DF13-20DP-1.25V)
Copyright © 2013 IBASE Technology Inc. All Rights Reserved. 20
20
SMARC Evaluation Kit
Pin #
Signal Name
1
BKLT_VCC
2
BKLT_EN
3
BKLT_PWM
4
GND
Pin #
Signal Name
1
+5V
2
I2C_SCL
3
I2C_SDA
4
GND
4
4
CN10: LCD Backlight Power/Control (E-CALL 0110-161-040)
CN6: LCD DDC CLK/DATA (Molex 53398-0471)
21
21
IBASE Technology Inc.
Signal Name
Pin #
Pin #
Signal Name
LCD_VDD
1 2 LCD_VDD
GND
3 4 GND
LCD_VDD
5 6 LCD_VDD
BKLT_PWM
7 8 GND
DAT16
9
10
DAT17
DAT18
11
12
DAT19
DAT20
13
14
DAT21
DAT22
15
16
DAT23
DAT8
17
18
DAT9
DAT10
19
20
DAT11
DAT12
21
22
DAT13
DAT14
23
24
DAT15
DAT0
25
26
DAT1
DAT2
27
28
DAT3
DAT4
29
30
DAT5
DAT6
31
32
DAT7
GND
33
34
GND
CLK
35
36
VSYNC
DE
37
38
HSYNC
BLON
39
40
PWR_EN
2
1
JP2: TTL LCD (E-CALL 0110-01-53101400)
Copyright © 2013 IBASE Technology Inc. All Rights Reserved. 22
22
SMARC Evaluation Kit
Pin #
Signal Name
1
X+
2
X-
3
Y+
4
Y-
Signal Name
Pin #
Pin #
Signal Name
+3.3V
1 2 +3.3V
NC
3 4 NC
SPI1_CS1#
5 6 SPI2_CS1#
SPI1_MISO
7 8 SPI2_MISO
SPI1_CLK
9
10
SPI2_CLK
SPI1_MOSI
11
12
SPI2_MOSI
GND
13
14
GND
1
2
1
CN13: Touch (E-CALL 0195-01-200-040)
CN7: SPI (E-CALL 0196-01-251-140)
23
23
IBASE Technology Inc.
Signal Name
Pin #
Pin #
Signal Name
GND
1 2 +2.8V
NC
3 4 NC
GND
5 6 D1+
D1-
7 8 CLK+
CLK-
9
10
D0+
D0-
11
12
NC
NC
13
14
RST#
NC
15
16
NC
NC
17
18
SDA
SCL
19
20
PWR#
MCLK
21
22
NC
+1.8V
23
24
+2.8V
Pin #
Signal Name
1
CANH
2
GND_ISO
3
CANL
4
GND_SHIELD
24
4
J3: CSI (TECHBEST 7080K-F24N-24R)
J2, J4: CAN BUS (E-CALL 0110-2620040)
Copyright © 2013 IBASE Technology Inc. All Rights Reserved. 24
24
SMARC Evaluation Kit
Signal Name
Pin #
Pin #
Signal Name
+5V
1 2 GND
USB1_D-
3 4 USB2_D+
USB1_D+
5 6 USB2_D-
GND
7 8 +5V
Signal Name
Pin #
Pin #
Signal Name
+3.3V
1 2 GPIO3
GPIO1
3 4 GPIO7
GPIO5
5 6 GPIO9
GPIO8
7 8 RESET#
GPIO10
9
10
WDOG#
GPIO11
11
12
GND
8
7
2
1
USB1: USB x 2 (DF11-8DP-2DSA)
Mating Cable: USB-29, (C501USB2908303000P)
CN5: GPIO (E-CALL 0196-01-200-120)
25
25
IBASE Technology Inc.
3. Software Setup
Users who has Ibase standard image file can refer to this chapter to prepare your own boot-up SD card. Ibase provides HDMI / LVDS output environment by default to let you prepare the software application pre-development easily under Linux / Android platform.
3.1. Make a Recovery SD Card
Preparing your Recovery SD card help to install the Linux/ Android image into eMMC
Please download the Recovery SD card’s image by FTP in advance.
Host: 219.87.145.180 port: 21
User: bsp
Password: (please check with your sales)
Image path:
/bsp/RISC_IMAGE/F600/F600-DL/Linux/4.1.0/F600_ubuntu_v1.1.img.gz
/bsp/RISC_IMAGE/F600/F600-DL/Android/4.3/F600-DL_Android_4.3_1.1.img.rar
(based on Freescale BSP: L3.3.35.4.1.0)
For example:
Copyright © 2013 IBASE Technology Inc. All Rights Reserved. 26
26
SMARC Evaluation Kit
In order to use the evaluation kit, you will need to install an Operating System (OS) onto onboard eMMC by recovery SD card. An Operating System is the set of basic programs and utilities that allow your computer to run.
These instructions will guide you through installing a recovery program on your SD card that will allow you to easily install different OS’s and to recover your card when needed.
1. Insert an SD card that is 4GB or greater in size into your computer
2. Format the SD card
i. Download the SD Association's Formatting Tool (SD Card Formatter 4.0 ) from
https://www.sdcard.org/downloads/formatter_4/eula_windows/
ii. Install and run the Formatting Tool on your machine iii. Set "FORMAT SIZE ADJUSTMENT" option to "ON" in the "Options" menu iv. Check that the SD card you inserted matches the one selected by the Tool v. Click the “Format” button
3. Download the target operating system image from the DVD/ or FTP
(Descripted in previous page)
4. Download the Win32DiskImager from
http://sourceforge.net/projects/win32diskimager/ and use it to restore the target operating system.
And then, flash the Android/ Linux image into your SD card in your PC (Windows).
6. Please check the DIP switch and make sure it can boot from SD Card. (See 2.3 Boot on the SMARC starter kit )
Copyright © 2013 IBASE Technology Inc. All Rights Reserved.
1
IBASE Technology Inc.
Boot Source
SW3_PIN1
SW3_PIN2
SW3_PIN3
SW3_PIN4
Linux node name
Android node name
Carrier SD
0 1 1
X
Module eMMC
1 0 0
X
Boot Source
SW3_PIN1
SW3_PIN2
SW3_PIN3
SW3_PIN4
Linux node name
Android node name
Carrier SD
0 1 1
X
Module eMMC
1 0 0
X
3.2. Boot on the SMARC starter kit
Please double check the Boot device selection before power on.
SW3: Boot Select
Note: 1: Switch On ; 0: Switch Off
1. 7. Insert the SD card/MicroSD into motherboard, make sure the HDMI panel is
connected, and connect the power supply to boot up the system.
2. 8. Recovery program on your SD card will execute automatically. The eMMC on
SMARC will be format, and OS will be installed while the progress bar shows 100% complete.
3. 9. Remove the power, and the recovery SD. Remember to set the boot source
from module eMMC.
4. Connect the power and boot up SMARC, you will see the Linux/ Android boot up
pages.
2
SMARC Evaluation Kit
3.3. Parameter Setting on U-boot
We provide HDMI output and (10.1 “ Onation LVDS Panel output command example) for SMARC starter kit. If you have any other LVDS/ TTL panel need to be customized, please contact Ibase sales or FAE staff.
3.3.1. Preparation (debug console)
i. We set the COM1 (Tx1, Rx1) as default debug port, please double check it can be
connect to (RX, Tx) of your PC environment.
ii. set 115200 bps (8n1, no flow control) in Windows terminal ( for example
Putty.exe)
iii. When booting the system, you can press “Enter” to stop auto boot and modify
your environment.
(Note: Users who are not sure the COM connection, please double check your
SMARC.COM1.Tx1 connect to PC.COM.Rx ; SMARC.COM1.Rx1 to PC.COM.Tx)
Note:
The COM1 is map to ttymxc0 device node under Linux& android.
The COM2 is map to ttymxc1 device node under Linux& android.
The COM5 is map to ttymxc4 device node under Linux& android.
Loading...
+ 64 hidden pages