Advantech RSB-4760 User Manual

Advantech RSB-4760 User Manual

3.5" sbc with qualcomm apq-8016 processor arm cortex a53 architecture
Table of Contents

Advertisement

Quick Links

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
User Manual
 
 
 
 
 
 
 
 
 
 
 
 
RSB-4760
3.5" SBC with Qualcomm APQ-8016
Processor ARM® Cortex™
A53 Architecture

Advertisement

Table of Contents
loading

Summary of Contents for Advantech RSB-4760

  • Page 1                               User Manual   RSB-4760 3.5" SBC with Qualcomm APQ-8016 Processor ARM® Cortex™ A53 Architecture                      ...
  • Page 2: Table Of Contents

    Table of Content 1.  GENERAL INTRODUCTION ..................  4   1.1.  INTRODUCTION ......................  4   1.2.  SPECIFICATIONS ......................  5   1.2.1.  FUNCTIONAL SPECIFICATIONS ................  5   1.2.2.  MECHANICAL SPECIFICATIONS  ................  6   1.2.3.  ELECTRICAL SPECIFICATIONS  ................  6   1.3.  ENVIRONMENTAL SPECIFICATIONS  ................  6   1.4.  BLOCK DIAGRAM .......................  6   2. ...
  • Page 3 2.2.2.19.  SD Socket (SD1) ..................  2 3  2.2.2.20.  M.2 (CN3) ....................  2 3  2.3.  Mechanical  .......................  2 5  2.3.1.  Jumper and Connector Location ...............  2 5  2.3.2.  Board Dimensions ....................  2 6  2.3.2.1.  Board Drawing  ..................  2 6  2.4.  Quick Start of RSB‐4760..................  2 8  2.4.1.  Debug Port Connection ..................  2 8  2.4.2.  Debug Port Setting ...................  2 8  3.1. ...
  • Page 4 3.3.  Setup Build Environment  ..................  4 2  3.3.1.  Conventions .....................  4 2  3.3.2.  Board Support Package (BSP) ................  4 2      Download BSP from GitHub ..........................42     Copy BSP tarball into Container ........................43 3.3.2.1.  BSP Content  ....................  4 3  3.3.2.2.  Naming Rule .....................  4 4  3.3.2.3.  Pre‐built Images..................  4 4  3.3.3. ...
  • Page 5: General Introduction

    1. General Introduction 1.1. Introduction RSB‐4760  is  a  RISC  3.5"  single  board  computer  (SBC)  powered  by  Qualcomm  ARM®  Cortex®‐A53 APQ8016 processor that supports full HD display and intergrades on board  wireless solution – Wi‐Fi, BT and GPS. RSB‐4760 also features in mini PCIe, M.2, and SIM  card slots for expanding connectivity capability, like 3G, 4G/LTE modules. Equipped with  complete Android, Linux and Win10 IoT core BSPs, this SBC enables customers to easily  develop unique application on specific OS.    4 ...
  • Page 6: Specifications

    1.2. Specifications 1.2.1. Functional Specifications Processor:   Qualcomm APQ8016 CPU      ARM Cortex™‐A53 high performance processor, Quad core up to 1.2 GHz      Supports 2 IPU, OpenGL ES 2.0 for 3D BitBLT for 2D and OpenVG™ 1.1      Video decoder: MPEG‐4 ASP, H.264 HP, H.263, MPEG‐2 MP, MJPEG BP      Video Encoder: MPEG‐4 SP, H.264 BP, H.263, MJPEG BP         Encode: 30 fps 720p (H.264 Baseline/MPEG‐4)                        30 fps 1080p (MPEG‐4/H.264/VP8/H.263)         Decode: 30 fps 1080p (MPEG‐4/H.264/H.263/DivX/MPEG2/VC1/Soreson/VP8)  System Memory Support ...
  • Page 7: Mechanical Specifications

      1.2.2. Mechanical Specifications     Dimension: 146 x 102 mm (5.7”x4”)      Height: 15.92 mm      Reference Weight: 640 g (including whole package)  1.2.3. Electrical Specifications     Power supply type: DC‐in 9 ‐ 36V      Power consumption:  –  Kernel Idle mode: TBD  –  Max mode: TBD      RTC Battery:  –  Typical voltage: 3.0 V  –  Normal discharge capacity: TBD  1.3. Environmental Specifications     Operating temperature: 0 ~ 60° C (32 ~ 140° F)     ...
  • Page 8: H/W Installation

    2. H/W Installation 2.1. Jumpers 2.1.1. Jumper Description Cards can configured by setting jumpers. A jumper is a metal bridge used to close an  electric circuit. It consists of two metal pins and a small metal clip (often protected by a  plastic cover) that slides over the pins to connect them. To close a jumper, you connect  the pins with the clip. To open a jumper, you remove the clip. Sometimes a jumper will  have three pins, labeled 1,2 and 3. In this case you would connect either pins 1 and 2 or  2 and 3    The jumper 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 your application, contact your local  distributor or sales representative before you make any changes.  Generally, you simply need a standard cable to make most connections.    2.1.2. Jumper List Table 2.1: Jumper List    LVDS_VDD_SLT  LVDS Power  LVDS_BKLT_SLT  Backlight Power  SW2  Boot device  SW3  RS‐232/422/485 selection  7 ...
  • Page 9: Jumper Settings

    2.1.3. Jumper Settings SW2  Boot device  Part number  1600000202  Description  DIP SW CHS‐02TB(29) SMD 4P SPST P=1.27mm W=5.4mm  Setting  Function  1 ON    2 OFF  Boot from SD  1 OFF    2 ON  Boot from SPI        SW3  RS‐232/422/485 selection  Part number  1600000084  Description  DIP SW CHS‐02TB(29) SMD 4P SPST P=1.27mm W=5.4mm  Setting  Function  1 OFF 2 OFF  Loopback mode  1 OFF 2 ON  RS‐232  1 ON 2 OFF  RS‐485 Half Duplex  1 ON 2 ON  RS‐422 Full Duplex       ...
  • Page 10 LVDS_VDD_SLT  LVDS Power    Part number  1653003101  Description  PIN HEADER 3x1P 2.0mm 180D(M) DIP 2000‐13 WS  Setting  Function  (1‐2)  + V3.3  (2‐3)  + V5        LVDS_BKLT_SLT  LVDS Backlight Power  Part number  1653003101  Description  PIN HEADER 3x1P 2.0mm 180D(M) DIP 2000‐13 WS  Setting  Function  (1‐2)  + V5  (2‐3)  + V12                           ...
  • Page 11: Connectors

    2.2. Connectors 2.2.1. Connector List Table 2.2: Connector List    CN1  RTC Battery  CN10  DC Power Jack  CRT1  VGA  COM1  RS‐232/422/485  CN8  Ethernet Connector  CN11  HDMI  CN28  USB port 0/1  CN30  USB OTG  LVDS0  LVDS  LVDS_BKLT_PWR  Backlight  CN27  SATA  CN25  SATA Power  CN5  Debug Port  CN12  USB port 3/4  CN29  USB port 5  CN23  MIC in  CN14  Line Out ...
  • Page 12: Connector Settings

    2.2.2. Connector Settings 2.2.2.1. RTC Battery connectors (CN1) RSB‐4411 supports a lithium 3V/210mAH CR2032 battery with wire via battery connector.    2.2.2.2. DC power Jack (CN10) RSB‐4411 comes with a DC‐Jack header that carries 12V/19V/24V DC external power input.    Pin  Description  1(Inner)  DC_In  2(Outer)  GND      Figure 2.1 DC Power Jack 11 ...
  • Page 13: Vga (Crt1)

    2.2.2.3. VGA (CRT1) RSB‐4411 provides standard VGA connector. VGA resolution supports up to 1920x1080.    Pin  Description  1  RED  2  GREEN  3  BLUE  4  N/C  5  GND  6  GND  7  GND  8  GND  9  +5V  10  GND  11  N/C  12  DDC DATA  13  HSYNC  14  VSYNC  15  DDC CLK      Figure 2.2 GPIO Connector  ...
  • Page 14: Rs-232/422/485 (Com1)

    2.2.2.4. RS-232/422/485 (COM1) RSB‐4411 provides one D‐Sub 9‐pin connector serial communication interface port.  The port can support RS‐232/422/485 mode communication.    Pin  Description  1  N/C                              RS‐422 TX‐              RS‐485‐  2  COM 2_RXD                RS‐422 TX+              RS‐485+  3 ...
  • Page 15: Ethernet Connector (Cn8)

    2.2.2.5. Ethernet Connector (CN8) RSB‐4411 provides one RJ45 LAN interface connector; it is fully compliant with IEEE802.3u  10/100/1000 Base‐T CSMA/CD standards. The Ethernet port provides standard RJ‐45 jack  connector with LED indicators on the front side to show Active/Link status and Speed status.      Pin  Description  1  MIDI0+  2  MIDI0‐  3  MIDI1+  4  MIDI1‐  5  GND  6  GND  7  MIDI2+  8  MIDI2‐  9  MIDI3+  10  MIDI3‐  11  VCC  12  ACT  13  Link100#  14  Link1000#     ...
  • Page 16: Hdmi (Cn11)

    2.2.2.6. HDMI (CN11) RSB‐4411 provides one HDMI interface connector which provides all digital audio/video  interfaces to transmit the uncompressed audio/video signals and is HDCP and CEC compliant  Connect the HDMI audio/video device to this port. HDMI technology can support a  maximum resolution of 1920 x 1080p but the actual resolution supported depends on the  monitor being used.    Pin  Description  1  HDMI_TD2+  2  GND  3  HDMI_TD2‐  4  HDMI_TD1+  5  GND  6  HDMI_TD1‐  7  HDMI_TD0+  8  GND  9  HDMI_TD0‐  10  HDMI_CLK+  11  GND  12  HDMI_CLK‐  13  HDMI_CEC_A  14  GND  15  DDC_CLK_HDMI_A 16 ...
  • Page 17: Usb Connector (Cn11)

    2.2.2.7. USB Connector (CN11) RSB‐4411 supports one standard USB2.0 Type A connector in the coastline.    Pin  Description  1  +5V  2  USB1_D‐  3  USB1_D+  4  GND  5  +5V  6  USB2_D‐  7  USB2_D+  8  GND    Figure 2.6 USB Type A Connector 2.2.2.8. USB OTG Connector (CN30) RSB‐4411 supports one USB OTG port in the coastline.    Pin  Description  1 ...
  • Page 18: Debug Port (Cn5)

    2.2.2.9. Debug Port (CN5) RSB‐4411 can communicate with a host server (Windows or Linux) by using serial cables.   Pin  Description  1  +3.3V  2  Debug_TXD  3  Debug_RXD 4  Figure 2.12 Debug Port   2.2.2.10. USB (Internal Pin Header) (CN12) RSB‐4411 provides extra internal 2x USB2.0 pin headers.  Pin  Description  1  +5V  2  +5V  3  USB4_D‐ 4  USB3_D- 5  USB4_D+ 6  USB3_D+ 7 ...
  • Page 19: Usb (Internal Pin Header) (Cn29)

    2.2.2.11. USB (Internal Pin Header) (CN29) RSB‐4411 provides extra internal 1x USB2.0 pin headers.  Pin  Description  1  +5V  2  +5V  3  USB5_D‐ 4  5  USB5_D+ 6  7  8  9    Figure 2.14 USB Internal Pin Header 2.2.2.12. MIC in (CN23) RSB‐4411 offers MIC in, microphone can be connected to the MIC in pin header  Pin  Description  1  MIC IN  2  GND   ...
  • Page 20: Line Out (Cn14)

    2.2.2.13. Line out (CN14) RSB‐4411 offers Line‐out stereo speakers; earphone can be connected to the lineout pin  header  Pin  Description  1  LINEOUT_L  2  LINEOUT_R  3  GND  Figure 2.16 Line our Internal Pin Header 2.2.2.14. RS-232 (CN21) RSB‐4411 provides 2x internal 2 wires RS‐232 ports.    Pin  Description  1  COM 3_RXD  2  GND  3  COM 3_TXD  4  COM 4_TXD  5  GND  6  COM 4_RXD  Figure 2.17 UART Pin Header 19 ...
  • Page 21: Gpio (Cn31)

    2.2.2.15. GPIO (CN31) RSB‐4411 provides internal GPIO interface by 2x11 pin headers.  Pin  Description  1  +3.3V  2  GND  3  GPIO_01  4  GPIO_02  5  GPIO_03  6  GPIO_04  7  GPIO_05  8  GPIO_06  9  GPIO_07  10  GPIO_08  11  GPIO_09  12  GPIO_10  13  GPIO_11  14  GPIO_12  15  GPIO_13  16  GPIO_14  17  GPIO_15  18 ...
  • Page 22: I2C (Cn33/Cn34)

    2.2.2.16. I2C (CN33/CN34) RSB‐4411 provides 2 I2C pin headers.    Pin (CN33)  Description  1  GND  2  I2C1_SDA  3  I2C1_SCL  4  +V3.3    Pin (CN34)  Description  1  GND  2  I2C3_SDA  3  I2C3_SCL  4  +V3.3    Figure 2.20 I2C Pin Headers 2.2.2.17. MiniPCIe (CN3) RSB‐4411 supports full size miniPCIe slot both USB and PCIe interface. If the WiFi card is only  half‐sized, please purchase extending bracket ( P/N: 1960047454N000) for WiFi card fixing.  Pin    Description  Pin ...
  • Page 23: Sim Socket (Cn4)

    1  NC  2  3.3V  3  NC  4  GND  5  NC  6  NC  7  NC  8  UIM_PWR  9  GND  10  UIM_DATA  11  REFCLK‐  12  UIM_CLK  13  REFCLK+  14  UIM_RESET  15  GND  16  NC  Mechanical Key 17  NC  18  GND  19  NC  20 ...
  • Page 24: Sd Socket (Sd1)

    C1  UIM_PWR  C2  UIM_RESET  C3  UIM_CLK      C5  GND  C6  NC  C7  UIM_DATA  SW1  NC  SW2  NC        Figure 2.23 SIM Socket 2.2.2.19. SD Socket (SD1) RSB‐4411 supports SD/MMC card in Class2, 4, 6, 8, 10. Supported capacity is up to  32G(SDHC)   Pin    Description  Pin    Description  1  DAT3  2 ...
  • Page 25 1  GND  2  +V3.3V  3  USB5_D+  4  +V3.3V  5  USB5_D‐  6  M.2_WLAN_LED#  7  GND  8  NC  9  SD1_CLK  10  NC  11  SD1_CMD  12  NC  13  SD1_DATA0  14  NC  15  SD1_DATA1  16  M.2_BT_LED#  17  SD1_DATA2  18  GND  19  SD1_DATA3  20  NC  21 ...
  • Page 26: Mechanical

    Figure 2.25 M.2 Connector 2.3. Mechanical 2.3.1. Jumper and Connector Location     25 ...
  • Page 27: Board Dimensions

    2.3.2. Board Dimensions 2.3.2.1. Board Drawing   Figure 2.22 Board Dimension Layout (Top Side)  26 ...
  • Page 28   Figure 2.23 Board Dimension Layout (Bottom Side)     Figure 2.24 Board Dimension Layout (Coastline) 27 ...
  • Page 29: Quick Start Of Rsb-4760

    Open Hyper Terminal on your Windows PC, and select the settings as shown in Figure 2.25. After the bootloader is programmed on SD card, insert power adapter connector to DC jack on RSB-4760 to power up the board. The bootloader prompt is displayed on the terminal screen.  ...
  • Page 30: Test Tools

    3.1. Test Tools 3.1.1. Display Test On RSB‐4760, it only supports one HDMI display.      3.1.1.1 Resolution Adjustment  [X Windows]  You can change the HDMI resolution by this command in kernel.  $ abootimg -u /dev/disk/by-partlabel/boot -c "cmdline=root=/dev/mmcblk0p10 rw rootwait console=ttyMSM0,115200n8   drm_kms_helper.edid_firmware=HDMI-A-1:edid/1920x1080.bin"   Currently, you can set the following resolutions.  1920x1080  1600x1200  1680x1050  1280x1024  1024x768  800x600    [Framebuffer Console]  If you want to change resolution for console mode, you can use this command for any  resolution values.  $ abootimg -u /dev/disk/by-partlabel/boot -c "cmdline = root=/dev/mmcblk0p10 rw rootwait console=ttyMSM0,115200n8 video=HDMI-A-1:640x480@60"...
  • Page 31: Audio Test

                        3.1.3. Audio Test 3.1.3.1. Audio Playback Refer to /tools/audio_playback.sh  $ amixer -c 0 cset iface=MIXER,name='RX1 MIX1 INP1' 'RX1' $ amixer -c 0 cset iface=MIXER,name='RX2 MIX1 INP1' 'RX2' $ amixer -c 0 cset iface=MIXER,name='RDAC2 MUX' 'RX2' $ amixer -c 0 cset iface=MIXER,name='HPHL' 1 $ amixer -c 0 cset iface=MIXER,name='HPHR' 1 $ amixer -c 0 cset iface=MIXER,name='RX1 Digital Volume' 127...
  • Page 32: Gpio Test

    $ arecord -D plughw:0,2 -r 16000 -f S16_LE ./f-16000.wav   3.1.4. GPIO Test 3.1.4.1. Export GPIO $ cd /sys/class/gpio # GPIO 1~8 (DB9) $ echo 8 > export $ echo 9 > export $ echo 12 > export $ echo 13 > export $ echo 24 >...
  • Page 33: I2C Test

    $ echo 1 > gpio1/value $ cat gpio2/value The values of GPIO 1 & 2 should be the same.    3.1.5. I2C Test 3.1.5.1. I2C Mapping I2C1  blsp_i2c6: i2c@78ba000  0x30: External RTC  I2C2  cci_i2c0: i2c@1b0c000  M.2  I2C3  blsp_i2c4: i2c@78b8000  0x39: AD7535 (HDMI)  I2C4  blsp_i2c3: i2c@78b7000  Pin Header    3.1.4.2 Test  List all I2C buses  $ i2cdetect -l i2c-0 QUP I2C adapter adapter i2c-2 QUP I2C adapter adapter i2c-3...
  • Page 34: Usb Test

    You can get values by:  $ i2cget -f -y 2 0x39 0 w 0x0014   Dump EDID by i2cdump:  $ i2cdump -f -y 2 0x39 No size specified (using byte‐data access)       0  1  2  3  4  5  6  7  8  9  a  b  c  d  e  f    0123456789abcdef  00: 14 00 00 00 00 00 00 00 00 00 41 0e bc 18 01 13    ?..A?????  10: 25 37 00 00 00 00 20 00 46 62 04 a8 00 00 1c 84    %7.. .Fb??..??  20: 1c bf 04 a8 1e 70 02 1e 00 00 04 a8 08 12 1b ac    ?????p??..??????  30: 00 00 00 00 00 00 00 00 00 00 00 80 00 10 40 00    ...?.?@.  40: 00 10 f0 7e 10 70 70 70 70 00 80 00 00 00 00 00    .??~?pppp.?..  50: 00 00 02 0d 6d 02 00 00 00 00 00 00 00 00 00 00    ..??m?..  60: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00    ....  70: 01 0a 00 00 00 00 00 00 00 00 00 00 00 00 00 00    ??....  80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00    ....  90: 00 00 00 00 84 80 20 00 03 02 e0 18 38 61 1a 00    ..?? .????8a?.  a0: 00 00 a0 a0 08 04 00 00 00 00 00 40 00 00 40 16    ..????..@..@?  b0: 00 00 00 00 00 00 00 00 00 00 70 00 00 00 00 00    ..p..  c0: 00 00 00 00 00 10 16 00 02 03 00 00 02 00 01 04    ..??.??..?.??  d0: 30 ff 80 80 80 00 00 00 00 00 00 00 00 00 82 01    0.???..??  e0: 80 78 01 00 40 80 fd 00 00 00 52 46 00 00 00 00    ?x?.@??...RF..  f0: 95 04 ff 00 00 00 00 00 00 10 7d aa 1c 00 b0 00    ??..?}??.?.    3.1.6. USB Test 3.1.6.1.
  • Page 35: Test

    3.1.6.2. Test 1. Insert USB disk  2. Run:  # Generate random file $ dd if=/dev/urandom of=data bs=1 count=1024 # Backup $ dd if=/dev/sda of=backup bs=1 count=1024 skip=4096 # Write data $ dd if=data of=/dev/sda bs=1 seek=4096 3. Read & verify  $ dd if=/dev/sda of=data1 bs=1 count=1024 skip=4096 $ diff data data1 4.
  • Page 36: Mmc (Emmc/Sd) Test

        ATTR{hctosys}=="0"      ATTR{max_user_freq}=="64"      ATTR{name}=="rtc‐s35390a"      ATTR{wakealarm}==""    2. Add udev rule  $ vi /etc/udev/rules.d/99-rtc1.rules KERNEL=="rtc1", SUBSYSTEM=="rtc", DRIVER=="", ATTR{name}=="  ",  rtc‐s35390a SYMLINK="rtc", MODE="0666"    3. Run the rule  $ udevadm test /sys/class/rtc/rtc1 ...  creating link '/dev/rtc' to '/dev/rtc1'  atomically replace '/dev/rtc'  …    4. Confirm  $ ls -al /dev/rtc* lrwxrwxrwx 1 root root      4 May 19  2017 /dev/rtc ‐> rtc1  crw‐‐‐‐‐‐‐ 1 root root 254, 0 May 19  2017 /dev/rtc0  crw‐‐‐‐‐‐‐ 1 root root 254, 1 Jan  1 02:10 /dev/rtc1    3.1.8. MMC (eMMC/SD) Test 3.1.8.1. Read/Write Operations It’s simple to verify read/write operations for MMC devices. ...
  • Page 37: Ethernet Test

    [ 8086.082015] mmc1: new high speed SDHC card at address e624  [ 8086.084105] mmcblk1: mmc1:e624 SU04G 3.69 GiB (ro)  [ 8086.113996]  mmcblk1: p1 p2 p3 p4 p5 p6    3.1.9. Ethernet Test 3.1.9.1. Interface Run the following commands to test  $ ifconfig $ ping 8.8.8.8   3.1.9.2. Change MAC Address You can change the MAC address in EEPROM by running:  $ /tools/update-mac_smsc75xx.sh update-mac_smsc75xx.sh {Interface} {Mac Address} Ex: update-mac_smsc75xx.sh ${ETH_IF} 06 05 04 03 02 01   3.1.9 RS‐232/485/422 Test  To configure the mode of RS232/422/485 transceiver, you have to export GPIO 99 & 100 first.    Loopback ...
  • Page 38: Watchdog Test

    $ st-fsl /dev/ttyMSM1 -b 115200 -m 485 -g 5 -f none -c n81 -soa PS. Change to for RS‐422 test  -m 422   3.1.10. Watchdog Test We build in a demo program for watchdog.  $ susidemo4 **********************************************  **               SUSI4.0 demo               **  **********************************************    Main (demo version : 4.0.14490.0)    0) Terminate this program  1) Watch Dog  2) HWM  3) GPIO  4) VGA  5) I2C  6) Information    Enter your choice:  ‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐ ...
  • Page 39: Spi Test

      0) Back to Watch Dog menu  1) Delay time (0 to 64000): 0  2) Reset time (0 to 128000): 0  3) Run    Enter your choice:  ‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐    Set Delay time to 10000 (10 sec) and Reset time to 5000 (5 sec), then device will reboot in 5  seconds.    Set Delay time to 10000 (10 sec) and Reset time to 11000 (11 sec), then you will see the  following message printed out every 10 seconds. That means watchdog is reset.    IMX6D_WDT_SignalRoutine   To leave this test mode, you can press ENTER and choose 4) Stop to disable watchdog  function.    3.1.11. SPI Test Write/Read/Verify data in the start/end 4 byte of flash  Note: Make sure the content of SPI Nor flash is erased.  $ echo -n $'\x06\x05\x04\x03\x02\x01' > test $ dd if=test of=/dev/mtd0 $ hexdump -C /dev/mtd0 -n 64  ...
  • Page 40: Wifi Test

      ]  /tools/telit3g.sh ‐ ECM mode    3.1.13. WiFi Test Refer to /tools/thermal.sh  #!/bin/sh SSID="WISE-work" WPA_KEY="advantech" rfkill unblock all killall wpa_supplicant rm /etc/resolv.conf ifconfig wlan0 up wpa_passphrase ${SSID} ${WPA_KEY} > /tmp/wpa.conf wpa_supplicant -BDwext -iwlan0 -c/tmp/wpa.conf udhcpc -b -i wlan0   3.1.14. Bluetooth Test Use hcitools for test ...
  • Page 41: Led Test

    3.1.15. LED Test 1. Check if LED triggers are expected.  [WiFi]  $ cat /sys/class/leds/apq8016‐sbc:green:wlan/trigger  none kbd‐scrollock kbd‐numlock kbd‐capslock kbd‐kanalock kbd‐shiftlock  kbd‐altgrlock kbd‐ctrllock kbd‐altlock kbd‐shiftllock kbd‐shiftrlock  kbd‐ctrlllock kbd‐ctrlrlock mmc0 mmc1 timer oneshot heartbeat backlight gpio  cpu0 cpu1 cpu2 cpu3 default‐on hci0‐power hci0‐tx_rx rfkill0 rfkill1 [phy0rx]  phy0tx phy0assoc phy0radio    [Bluetooth]  $ cat /sys/class/leds/apq8016‐sbc:yellow:bt/trigger  none kbd‐scrollock kbd‐numlock kbd‐capslock kbd‐kanalock kbd‐shiftlock  kbd‐altgrlock kbd‐ctrllock kbd‐altlock kbd‐shiftllock kbd‐shiftrlock  kbd‐ctrlllock kbd‐ctrlrlock mmc0 mmc1 timer oneshot heartbeat backlight gpio  cpu0 cpu1 cpu2 cpu3 default‐on hci0‐power [hci0‐tx_rx] rfkill0 rfkill1 phy0rx  phy0tx phy0assoc phy0radio    2. Verify LED behavior  For example, we set LED trigger as phy0rx for WiFi. That means LED should be blink when  data is receiving via WiFi.    3.1.16. M.2 Test We take M.2 UART function as example. Here, we use AzureWave AW‐NB136NF (M.2 Uart BT  module).    Because the serial port conflicts with debug console (UART0). So, you have to disable  serail‐getty service, before you test.  $ systemctl mask serial-getty@ttyMSM0.service $ reboot $ hciattach /dev/ttyMSM0 bcm43xx 115200 flow $ hciconfig hci1 up # You can see a BT hci now.
  • Page 42: Gps Test

    $ systemctl unmask serial-getty@ttyMSM0.service $ reboot   3.1.17. GPS Test To start GPS hardware, follow the instructions.  1. Set correct date/time before starting GPS  2. Run  $ systemctl start gpsd.socket $ systemctl start gpsd $ systemctl start qdsp-start $ systemctl start gnss-gpsd $ gpsmon   To stop GPS hardware, follow the instructions:  1. close gpsmon  2. systemctl stop gnss‐gpsd    To restart GPS hardware, follow the instructions:  1. systemctl start gnss‐gpsd  2. close gpsmon    3.2.
  • Page 43: Setup Build Environment

    If you don't know much about Docker, please refer to IoTGateway/Docker for details.   3.3.1. Conventions : home directory of the BSP  ${BSP_HOME}  : build directory (e.g. build/) ${BDIR} ${MACHINE} : available target boards list below ‐ rsb-4760 ‐ epc-r4761 ${DISTRO} : Linux distribution ‐ ‐ rpb-wayland ${RPB-IMAGES} : meta-rpb provides the following images ‐ rpb-console-image ‐...
  • Page 44: Copy Bsp Tarball Into Container

    : Bootloader binaries including of CDT, SBL, RPM, LK, etc. layers/ : Sources for meta-layers meta-96boards/ : meta layer of 96Boards definitions meta-advantech/ : meta layer by Advantech meta-qcom/ : meta layer for APQ8016 configurations meta-rpb/ : meta layer for RPB distro setup-environment : to set up build environment for Yocto 43 ...
  • Page 45: Naming Rule

    APQ8016 we use "LB" is acronym of Linux BSP, "V1050" stands for Version 1.050. Another example, Yocto image name: 4760LIV1040_2017-04-20.tgz which "4760" stands for RSB-4760 "LI" is acronym for prebuilt Linux Image.   3.3.2.3. Pre-built Images In LIV tarball file, you can get binary images. For example, ...
  • Page 46: Create New Build Environment

    3.3.3.1. Create New Build Environment   To create one new build environment, perform following commands in terminal console: $ cd ${BSP_HOME}  $ MACHINE=${MACHINE} DISTRO=${DISTRO} source setup‐environment ${BDIR}  You need to read and accept the EULA. Press "Y"   3.3.3.2. Load Existed Build Environment To continue an existed build environment, perform following commands in terminal console: $ cd ${BSP_HOME} ...
  • Page 47: Build Linux Kernel

    $ make -j4 msm8916 EMMC_BOOT=1 TOOLCHAIN_PREFIX=<path to arm-eabi-4.8 tree>/bin/arm-eabi-   3.3.3.6. Build Linux Kernel To build kernel only, run $ bitbake linux‐linaro‐qcomlt     3.3.4. Flash Pre-built Images There are 3 different ways to flash images into target eMMC.    3.3.4.1. USB Download Tools 1. Install DragonBoardUpdateTool bit, 64 bit 2. Switch USB Download Mode (SW1: 1,1), power on and then connect with USB Cable 3.
  • Page 48: Fastboot Tool

    7. Finally, switch to SW1:(0,1) and boot from eMMC normally.   3.3.4.2. Fastboot Tool 1. Check device id $ sudo fastboot devices 2. Flash bootloader binaries $ sudo ./flashall [Devices ID] 3. Erase boot / rootfs partitions $ sudo fastboot erase boot $ sudo fastboot erase rootfs 4.
  • Page 49 4. Installing 5. Finish and Reboot         48 ...

Table of Contents