Moxa Technologies UC-8100-LX Software Manual

Moxa Technologies UC-8100-LX Software Manual

Embedded computer
Table of Contents

Advertisement

Quick Links

UC-8100-LX Software Manual
Second Edition, March 2015
www.moxa.com/product
© 2015 Moxa Inc. All rights reserved.

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the UC-8100-LX and is the answer not in the manual?

Questions and answers

Summary of Contents for Moxa Technologies UC-8100-LX

  • Page 1 UC-8100-LX Software Manual Second Edition, March 2015 www.moxa.com/product © 2015 Moxa Inc. All rights reserved.
  • Page 2: Copyright Notice

    UC-8100-LX Software Manual The software described in this manual is furnished under a license agreement and may be used only in accordance with the terms of that agreement. Copyright Notice © 2015 Moxa Inc. All rights reserved. Trademarks The MOXA logo is a registered trademark of Moxa Inc.
  • Page 3: Table Of Contents

    Creating a Linux System Image using a Windows Platform ............... 3-6 Creating a System Image in a Linux Environment ................3-7 Booting Up the UC-8100-LX for the first time ..................3-8 File system resizing ........................3-8 Booting from a MicroSD Card (UC-8112 Model Only) ................ 3-8 The Push Button and the LED indicators ....................
  • Page 4 NAT ..............................5-13 NAT Example ..........................5-13 Enabling NAT at Bootup ......................5-13 NFS (Network File System) ........................ 5-14 Setting up UC-8100-LX as an NFS Client ..................5-15 SNMP .............................. 5-15 OpenVPN ............................5-16 Static-Key VPN .......................... 5-17 Package Management........................5-18 apt-get ............................
  • Page 5 Use SLC SD Card ......................... B-2 Use an SD Card with Larger Capacity ..................... B-2 Tweak GNU/Linux to Write to RAM Instead of the SD card..............B-3 Set the SD Card to Read-only Mode ....................B-3 Copying Images on an SD/MicroSD Card ................... C-1 Using Win32 Disk Imager ........................
  • Page 6: Introduction

    I ntroduction This is the programming and software operation manual for the Linux OS models of the UC-8100 series of embedded computers. The UC-8100 series of computers come in various models that provide a range of operating systems, ARM architecture CPUs, and software enhancements. The following models are covered by this manual: UC-8131-LX: RISC-based platform with 300 MHz CPU, 2 Ethernet, 1 Serial port, 1 GB SD, USB Port and Debian ARM 7 UC-8132-LX: RISC-based platform with 300 MHz CPU, Mini PCIe socket for cellular, 2 Ethernet,...
  • Page 7: Getting Started

    The following topics are covered in this chapter: S oftware Architecture  1 3 B S oftware Packages  1 4 B C onnecting to the UC-8100-LX  1 5 B C onnecting through Serial Console  6 0 B S SH Console ...
  • Page 8 UC-8100-LX Software Getting Started...
  • Page 9: Software Architecture

    1 5 B You will need another computer to connect to the UC-8100-LX and log on to the command line interface. There are two ways to connect: through serial console cable or through Ethernet cable. You may refer to the Hardware Manual to see how to connect them physically.
  • Page 10 Linux Users NOTE These steps are done on the Linux PC from which you want to connect to UC-8100-LX, NOT to be done on the UC-8100-LX For Linux users, you may follow these steps to connect to UC-8100-LX Series from your personal computer.
  • Page 11: Ssh Console

    8. Execute minicom after completing the above configurations. user@PC1:~# minicom Windows Users NOTE These steps are done on the Windows PC from which you want to connect to UC-8100-LX, NOT to be done on the UC-8100-LX For Windows users, follow these steps. 1. Download PuTTY http://www.chiark.greenend.org.uk/~sgtatham/putty/download.html...
  • Page 12 Getting Started Linux Users NOTE These steps are done on the Linux PC from which you want to connect to UC-8100-LX, NOT to be done on the UC-8100-LX. From a Linux computer, use ssh command to access from UC-8100-LX LAN1.
  • Page 13: User Account Management

    UC-8100-LX Software Getting Started U ser Account Management 1 6 B S witching to the Root Account 6 2 B You can switch to root using sudo -i (or sudo su). For security reason, it is not suggested to operate all commands by root account.
  • Page 14: Network Settings

    C onfiguring Ethernet Interfaces 6 3 B After first login, you may configure the network setting on UC-8100-LX to better fit your application. Note that it is more convenient to manipulate the network interface settings from serial console than from SSH login to avoid reconnections.
  • Page 15: Connecting To A Cellular Network

    UC-8112-LX version 1.0.0 Build 14050416 A djusting the Time 6 6 B The UC-8100-LX has two time settings. One is the system time, and the other is the RTC (Real Time Clock) time #date kept by the UC-8100-LX hardware. Use the...
  • Page 16: Setting The Time Zone

    UC-8100-LX Software Getting Started moxa@Moxa:~$ sudo date 071123192014 YYYY = Year Mon Jul 11 23:19:00 UTC 2014 Use the following command to set the RTC time to system time: moxa@Moxa:~$ sudo hwclock –w moxa@Moxa:~$ sudo hwclock Fri 11 Jul 2014 11:19:38 PM UTC -1.006862 seconds NOTE Click the following links for more information on Datetime.
  • Page 17: Determining Available Drive Space

    The local timezone is stored in /etc/localtime and is used by GNU Library for C (glibc) if the TZ environment variable is not set. This file is either a copy of /usr/share/zoneinfo/ file or a symbolic link to it. The UC-8100-LX does not provide /usr/share/zoneinfo/ files, so you have to copy a time zone information file to the UC-8100-LX and write over the original local time file.
  • Page 18: Package Management

    /etc/init.d/apache2 stop In comparison to insserv, scripts in /etc/init.d/ will only start or stop the services in the current boot session. Once you reboot the UC-8100-LX, it will go back to the default settings which managed by insserv. P ackage Management...
  • Page 19: Reboot/Shutdown The Uc-8100-Lx

    “log out” available from the application menu that allows you to shutdown (or reboot) the system. To reboot the UC-8100-LX, use the following command. moxa@Moxa:~$ sudo reboot –i –f –d To shut down the UC-8100-LX, use the following command. moxa@Moxa:~$ sudo shutdown -h "now" 2-13...
  • Page 20: Advanced Configurations On Peripherals

    A dvanced Configurations on Peripherals This chapter includes more information on the periperials on UC-8100-LX, such as the serial interface, the storage, the diagnostic LEDs, and the cellualar module. The following topics are covered in this chapter:  Serial Ports D isable the USB Port ...
  • Page 21: Serial Ports

    Advanced Configurations on Peripherals S erial Ports 2 5 B UC-8131-LX has 1 serial ports on /dev/ttyM0, while all other UC-8100-LX models has 2 serial ports at /dec/ttyM0 and /dev/ttyM1. They support RS-232, RS-422, and RS-485 2-wire operation modes with flexible baudrate settings.
  • Page 22: Usb Port

    D isable the USB Port 6 9 B USB ports on the UC-8100-LX can be disabled. This must be done via the bootloader. before booting up. To disable a USB port, follow these steps: 1. After powering on the UC-8100 computer, press <DEL> to enter BIOS configuration setting ---------------------------------------------------------------------------- Boot Loader Version 1.0.0S12...
  • Page 23: Usb Automount

    The SD slot supports SD, SDHC, and SDXC format and is used as the main storage for UC-8100-LX series. UC-8100-LX comes with a pre-installed 1GB SD card but allows user to use larger capacity SD card up to 64GB cards.
  • Page 24: Enabling Write Protection

    If you want to use SD card with greater capacity or upgrade UC-8100 firmware, you can download the latest UC-8100-LX image from Moxa official website and prepare a bootable SD card by yourself. You can to download the image file to a eith Windows or Linux PC, and then transfer the file to SD card. Please...
  • Page 25: Creating A Linux System Image Using A Windows Platform

    UC-8100-LX Software Advanced Configurations on Peripherals C reating a Linux System Image using a Windows Platform 7 2 B For Windows users, follow these steps. 1. Make sure the write protection switch of the SD card is unlocked. 2. Insert the SD card into a Windows PC.
  • Page 26: Creating A System Image In A Linux Environment

    1. Make sure the write protection switch of the SD card is unlocked. 2. Insert the SD card into a Linux PC. 3. Use dmesg command to find out the device node. 4. Use dd command to configure the UC-8100-LX image on the SD card. root@Lock-Lin:/home/work# sudo dd if=./140 42420.img of=/dev/sdd...
  • Page 27: Booting Up The Uc-8100-Lx For The First Time

    7 4 B Connect the UC-8100-LX to 12-24 VDC power source and the computer will immediately boot up. The power LED will be lit up first and then the SD Card LED. You will see messages printing out from the serial console too.
  • Page 28: Diagnosing Device And Subsystem Failures

    Hold the push button pressed until green LED is lit for the second time and release. This will enter the restoration process of UC-8100-LX and set the computer back to factoty default. The green LED will be lit, and the red and yellow LED indicators will be blinking when root filesystem is performing set-to-default function.
  • Page 29: Using Cellular Modules

    U sing Cellular Modules 3 2 B The UC-8100-LX series comes with a mini PCIe socket that a cellular module can be installed. Contact your sales representative for more information about available modules. Read below on to find out how to understand cellular signal strength from signal indicators, how to dial up on UC-8100-LX, and several advanced setting in cellular module.
  • Page 30 UC-8100-LX Software Advanced Configurations on Peripherals Dial-Up Connetions APN is set manually in /etc/qmi-network.conf. Consult your carrier for the correct APN name and insert it into the configuration file like below: (APN=internet is used in the example, but your APN can be different) moxa@Moxa:~$ echo “APN=internet”...
  • Page 31 For the settings to come into effect, issue the following commands to re-initialize the cellular module. moxa@Moxa:~$ sudo cell_mgmt power_off moxa@Moxa:~$ sudo cell_mgmt power_on Power on/off Module cell_mgmt offers to re-initialize the module without rebooting UC-8100-LX series.You may issue commands to power off the module: moxa@Moxa:~# sudo cell_mgmt power_off 3-12...
  • Page 32: Configuring The Wireless Lan

    UC-8100-LX Software Advanced Configurations on Peripherals And to re-initialize the cellular module, power on the module: moxa@Moxa:~# sudo cell_mgmt power_on NOTE You may find more information on qmi utilities in the following link. http://www.freedesktop.org/wiki/Software/libqmi/ C onfiguring the Wireless LAN 3 3 B You can configure the Wi-Fi connection on the UC-8100 Wi-Fi connection using a configuration file or the wpa_supplicant command (recommended).
  • Page 33: Connecting To An Ap Using Wep Authentication

    UC-8100-LX Software Advanced Configurations on Peripherals C onnecting to an AP Using WEP Authentication 8 2 B 1. Edit the /etc/wpa_supplicant.conf file. ##### WEP ##### network={ ssid="MIS-WAP-1" bssid=50:67:F0:61:2D:7A key_mgmt=NONE wep_key0=CFEE46EED3FA94FAEB92348922 ############### The following table describes the related parameters. Parameter Usage...
  • Page 34: Using Wpa_Cli

    UC-8100-LX Software Advanced Configurations on Peripherals Parameter Usage Function key_mgmt {WPA-PSK or WPA-EAP} List of acceptable key management protocols; one or more of: WPA-PSK (WPA pre-shared key), WPA-EAP (WPA using EAP authentica-tion), IEEE8021X (IEEE 802.1x using EAP authentication and, optionally, dynamically generated WEP keys).
  • Page 35 UC-8100-LX Software Advanced Configurations on Peripherals Adding WEP Settings in a Configuration File The following figure shows the related commands you can enter to add WEP configuration information in the /etc/wpa_supplicant.conf file. root@Moxa:/home# wpa_cli -i wlan0 add_network root@Moxa:/home# wpa_cli -i wlan0 set_network 0 key_mgmt NONE root@Moxa:/home# wpa_cli -i wlan0 set_network 0 ssid '"MOXA-AP-1"'...
  • Page 36 UC-8100-LX Software Advanced Configurations on Peripherals Command Function wpa_cli -i wlan0 disable_network Disable a network. Network id can be received from the LIST_NETWORKS command output. Special network id “all” can be used to disable all networks. wpa_cli -i wlan0 remove_network Remove a network.
  • Page 37: Security On Uc-8100-Lx

    S ecurity On UC-8100-LX 1 0 B UC-8100-LX series offer better security by introducing Moxa’s innovative secure boot feature. Also, the intergration of a Trusted Platform Module gives the user more solid protection to the platform. The following topics are covered in this chapter: S ecure Boot ...
  • Page 38 UC-8100-LX Software Manual Security On UC-8100-LX...
  • Page 39: Secure Boot

    UC-8100-LX. All UC-8100-LX series support this feature by default. For UC-8100-LX, the kernel file will be stored on SD card in cipher text. This is the first protection for a secure platform that whoever copies the kernel file cannot understand or to add malicious code easily.
  • Page 40: Trusted Platform Module (Tpm) And Trousers

    UC-8100-LX Software Manual Security On UC-8100-LX T rusted Platform Module (TPM) and TrouSerS 3 5 B TPM is a microcontroller that can securely store artifacts like passwords, certificates, or encryption keys which are used to authenticate the platform. It provides hardware-based protection of data because the private key used to protect the data is never exposed in the clear outside of the TPM's own internal memory area.
  • Page 41: Enabling Tpm Via The Bootloader

    UC-8100-LX Software Manual Security On UC-8100-LX E nabling TPM via the Bootloader 8 5 B To start using TPM on UC-8100, you need to first enable TPM function from bootloader, and then start the related services in the OS. Follow these steps to enable the TPM.
  • Page 42: Initializing The Trusted Platform Module

    UC-8100-LX Software Manual Security On UC-8100-LX NOTE Please make sure TPM daemon is running before issuing TPM tool commands, otherwise you will get following error: Tspi_Context_Connect failed: 0x00003011 - layer=tsp, code=0011 (17), Communication failure I nitializing the Trusted Platform Module 8 7 B First step to start using TPM is to take its ownership.
  • Page 43: Sealing/Unsealing Data

    S UDO Mechanism 3 6 B In the UC-8100-LX, the root account is disabled for better security. Sudo is a program designed to let system administrators allow some users to execute some commands as root (or another user). The basic philosophy is to give as few privileges as possible but still allow people to get their work done.
  • Page 44 UC-8100-LX Software Manual Security On UC-8100-LX moxa@Moxa:~$ ifconfig -bash: ifconfig: command not found moxa@Moxa:~$ sudo ifconfig eth0 Link encap:Ethernet HWaddr 00:90:e8:00:00:07 inet addr:192.168.3.127 Bcast:192.168.3.255 Mask:255.255.255.0 UP BROADCAST ALLMULTI MULTICAST MTU:1500 Metric:1 RX packets:0 errors:0 dropped:0 overruns:0 frame:0 TX packets:0 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)
  • Page 45: General Debian Package Usage

    G eneral Debian Package Usage 1 1 B This chapter explains how to configure the UC-8100-LX’s various functions. The following topics are covered in this chapter: N TP Client  3 7 B E xecute Scheduled Commands with cron ...
  • Page 46: Ntp Client

    General Debian Package Usage N TP Client 3 7 B The UC-8100-LX has a built-in NTP (Network Time Protocol) client that is used to initialize a time request to a #ntpdate <this client utility> remote NTP server. Use to update the system time.
  • Page 47: Rocket-Fast System For Log Processing: Rsyslog

    UC-8100-LX Software Manual General Debian Package Usage NOTE Click the following link for more information on cron. http://www.debian-administration.org/articles/56 R ocket-Fast System for Log Processing: rsyslog 3 9 B Rsyslog is an enhanced, multi-threaded log reporting utility with a focus on security and reliability. It offers support for on-demand disk buffering, log reports and alarms delvered over TCP, SSL, TLS and RELP, writing to databases, and email alerting.
  • Page 48: Openssl

    UC-8100-LX Software Manual General Debian Package Usage messages of equal or higher priority; thus auth.alert indicates the auth subsystem messages of alert or emerg priority. Prefixed with an exclamation point (!), it indicates the opposite, in other words the strictly lower priorities;...
  • Page 49: Ciphers

    UC-8100-LX Software Manual General Debian Package Usage -Wa,--noexecstack -DTERMIO -O3 -Wall -DOPENSSL_BN_ASM_MONT -DOPENSSL_BN_ASM_GF2m -DSHA1_ASM -DSHA256_ASM -DSHA512_ASM -DAES_ASM -DGHASH_ASM The 'numbers' are in 1000s of bytes per second processed. type 16 bytes 64 bytes 256 bytes 1024 bytes 8192 bytes aes-128-cbc 29863.09k...
  • Page 50: Sftp

    NOTE Click the following link for more information on SSH. https://wiki.debian.org/SSH D NS 4 3 B The UC-8100-LX supports DNS client (but not DNS server). To set up DNS client, you need to edit three /etc/hosts /etc/resolv.conf /etc/nsswitch.conf configuration files:...
  • Page 51: Iptables

    Each chain is a list of rules that apply to a certain type of packet. Each rule specifies what to do with a matching packet. A rule (such as a jump to a user-defined chain in the same table) is called a “target.” The UC-8100-LX supports three types of IPTABLES table: Filter tables, NAT tables, and Mangle tables: Filter Table—includes three chains:...
  • Page 52 UC-8100-LX Software Manual General Debian Package Usage Mangle Table—includes two chains, and it has three extensions—TTL, MARK, TOS. PREROUTING chain—pre-processes packets before the routing process. OUTPUT chain—processes packets after the routing process. The following figure shows the IPTABLES hierarchy. Incoming...
  • Page 53: Observe And Erase Chain Rules

    UC-8100-LX Software Manual General Debian Package Usage The UC-8100-LX supports the following sub-modules. Be sure to use the module that matches your application. Most of common module is already built-in with the kernel ip6t_eui64.ko ip6t_ipv6header.ko nf_conntrack_ipv6.ko xfrm4_mode_tunnel.ko ip6t_rt.ko ip6t_LOG.ko xfrm6_mode_beet.ko ah4.ko...
  • Page 54: Define Policy For Chain Rules

    For packets coming into the UC-8100-LX series. OUTPUT: For locally-generated packets. FORWARD: For packets routed out through the UC-8100-LX series. PREROUTING: To alter packets as soon as they come in. POSTROUTING: To alter packets as they are about to be sent out.
  • Page 55: Append Or Delete Rules

    UC-8100-LX Software Manual General Debian Package Usage A ppend or Delete Rules 9 8 B Usage: # iptables [-t table] [-AI] [INPUT, OUTPUT, FORWARD] [-io interface] [-p tcp, udp, icmp, all] [-s IP/network] [--sport ports] [-d IP/network] [--dport ports] –j [ACCEPT.
  • Page 56: Rsync

    UC-8100-LX Software Manual General Debian Package Usage r sync 4 5 B rsync is a utility software and network protocol that synchronizes files and directories from one location to another while minimizing data transfer by using delta encoding when appropriate. It also has the option to provide encrypted transfer by use of SSH.
  • Page 57: Nat

    UC-8100-LX Software Manual General Debian Package Usage 0 22 * * * rsync -avP /Directory1/ /Directory2/ The first “0” specifies the minute of the hour, and “22” specifies 10 PM. Since we want this command to run daily, we will leave the rest of the fields with asterisks and then paste the rsync command.
  • Page 58: Nfs (Network File System)

    UC-8100-LX Software Manual General Debian Package Usage EXIF= “eth0” #This is an external interface for setting up a valid IP address. EXNET= “192.168.4.0/24” #This is an internal network address. # Step 1. Insert modules. # Here 2> /dev/null means the standard error messages will be dump to null device.
  • Page 59: Setting Up Uc-8100-Lx As An Nfs Client

    Disable snmpd insserv -r snmpd The UC-8100-LX has built-in SNMP (Simple Network Management Protocol) agent software. The following simple example allows you to use an SNMP browser on the host site to query the UC-8100 series, which is the SNMP agent. UC-8100 series will respond.
  • Page 60: Openvpn

    UC-8100-LX Software Manual General Debian Package Usage iso.3.6.1.2.1.1.9.1.2.3 = OID: iso.3.6.1.6.3.15.2.1.1 iso.3.6.1.2.1.1.9.1.2.4 = OID: iso.3.6.1.6.3.1 iso.3.6.1.2.1.1.9.1.2.5 = OID: iso.3.6.1.2.1.49 iso.3.6.1.2.1.1.9.1.2.6 = OID: iso.3.6.1.2.1.4 iso.3.6.1.2.1.1.9.1.2.7 = OID: iso.3.6.1.2.1.50 iso.3.6.1.2.1.1.9.1.2.8 = OID: iso.3.6.1.6.3.16.2.2.1 iso.3.6.1.2.1.1.9.1.3.1 = STRING: "The SNMP Management Architecture MIB." iso.3.6.1.2.1.1.9.1.3.2 = STRING: "The MIB for Message Processing and Dispatching."...
  • Page 61: Static-Key Vpn

    UC-8100-LX Software Manual General Debian Package Usage OpenVPN support user/pass, pre-shared key, certificates etc. to authenticate users To begin with, check to make sure that the system has a virtual device /dev/net/tun. An Ethernet bridge is used to connect different Ethernet networks together. The Ethernets are bundled into one bigger, “logical”...
  • Page 62: Package Management

    UC-8100-LX Software Manual General Debian Package Usage P ackage Management 5 0 B This article explains how quickly you can learn to install, remove, update and search software packages using apt-get and apt-cache commands from the command line. This article provides some useful commands that will help you to handle package management in Debian/Ubuntu based systems.
  • Page 63: Update System Packages

    UC-8100-LX Software Manual General Debian Package Usage U pdate System Packages 1 1 2 B The ‘update‘ command is used to resynchronize the package index files from the their sources specified in /etc/apt/sources.list file. The updated commands will fetch the packages from their locations and update the packages to newer version.
  • Page 64: Remove Packages Without Configuration

    UC-8100-LX Software Manual General Debian Package Usage R emove Packages Without Configuration 1 2 0 B To un-install software packages without removing their configuration files (for later re-use the same configuration). Use the ‘remove‘ command as shown. moxa@Moxa:~$ sudo apt-get remove wget...
  • Page 65: Check Broken Dependencies

    UC-8100-LX Software Manual General Debian Package Usage C heck Broken Dependencies 1 2 8 B The ‘check‘ command is a diagnostic tool. It used to update package cache and checks for broken dependencies. moxa@Moxa:~$ sudo apt-get check S earch and Build Dependencies 1 2 9 B This ‘build-dep‘...
  • Page 66: Programmer's Guide

    P rogrammer's Guide 1 2 B This chapter briefely introduces the tool-chain and teaches you how to program with UC-8100-LX. Please go to Moxa official website to download the example pagckage and read through this chapter if you intend to develop your own program on UC-8100-LX.
  • Page 67: Linux Tool Chain Introduction

    To ensure that an application will be able to run correctly when installed on UC-8100-LX series, you must ensure that it is compiled and linked to the same libraries that will be present on the UC-8100-LX series. This is particularly true when the RISC Cortex processor architecture of the UC-8100 series differs from the CISC...
  • Page 68 UC-8100-LX Software Manual Programmer's Guide The host tool chain that comes with UC-8100-LX series contains a suite of cross compilers and other tools, as well as the libraries and headers that are necessary to compile applications for UC-8100 series. The host environment must be running Linux to install the UC-8100 series GNU Tool Chain.
  • Page 69: Obtaining Help

    UC-8100-LX Software Manual Programmer's Guide #export MANPATH=“/usr/local/arm-linux-gnueabihf-4.7-20130415//man:$MANPATH” Alternatively, you can add the same commands to $HOME/.bash_profile to cause it to take effect for all login sessions initiated by this user. NOTE The toolchain will be installed at /usr/local/arm-linux-gnueabihf-4.7-20130415/. This means that the original /usr/local/arm-linux-gnueabihf-4.7-20130415/ path will be overwrited.
  • Page 70: Compiling Hello.c With Native Compilation

    C ompiling Hello.c with Cross Compilation 1 3 6 B Follow these steps for cross compilation. 1. Connect UC-8100-LX series to a Linux PC. 2. Install Tool Chain (GNU Cross Compiler & glibc). 3. Set the cross compiler and glibc environment variables.
  • Page 71: Makefile Example

    The word Hello will be printed on the screen. moxa@Moxa:~$ ./hello-release Hello World M akefile Example 5 3 B The following Makefile is copied from the Hello example on the UC-8100-LX’s example package. It is used for cross compile. CC = arm-linux-gnueabihf-gcc CPP = arm-linux-gnueabihf-g++ SOURCES = hello.c OBJS = $(SOURCES:.c=.o)
  • Page 72: Rtc (Real Time Clock)

    UC-8100-LX Software Manual Programmer's Guide R TC (Real Time Clock) 5 5 B The device node is located at /dev/rtc0. UC-8100-LX series supports Linux standard simple RTC control. You include <linux/rtc.h > in your program to use the following functions. must...
  • Page 73: Wdt (Watch Dog Timer)

    UC-8100-LX Software Manual Programmer's Guide W DT (Watch Dog Timer) 5 6 B The WDT works like a watch dog function. You can enable it or disable it. When the user enables WDT but the application does not acknowledge it, the system will reboot. You can set the ack time from a minimum of 1 sec to a maximum of 1days.
  • Page 74: Cryptographic Hardware Accelerator

    UC-8100-LX Software Manual Programmer's Guide C ryptographic Hardware Accelerator 5 7 B The purpose of cryptographic hardware accelerator is to load off the intensive tasks of encryption/decryption and compression/decompression from CPU. You may take advantage of the cytpyographic hardware accelerator when your application needs to do cytpyographic calutations. To use it, you need to make sure that cryptodev driver is loaded.
  • Page 75: Tpm

    UC-8100-LX Software Manual Programmer's Guide Example to set the baud rate #include <termio.h> #include <fcntl.h> #include <err.h> #include <linux/serial.h> … struct termios options; struct serial_struct serinfo; int fd; int speed = 0; static int rate_to_constant(int baudrate) { #define B(x) case x: return B##x switch(baudrate) { B(50);...
  • Page 76: Default Installed Package List

    D efault Installed Package List This appendix lists the default packages that have been installed on the UC-8100 series. Name Version Architecture Description adduser 3.113+nmu3 add and remove users and groups Apache HTTP Server apache2 2.2.22-13+deb7u1 armhf metapackage Apache HTTP Server - traditional apache2-mpm-prefork 2.2.22-13+deb7u1 armhf...
  • Page 77 UC-8100-LX Software Manual Default Installed Package List Name Version Architecture Description Debian package management dpkg 1.16.15 armhf system ext2/ext3/ext4 file system e2fslibs:armhf 1.42.5-1.1 armhf libraries ext2/ext3/ext4 file system e2fsprogs 1.42.5-1.1 armhf utilities Determines file type using file 5.11-2+deb7u3 armhf "magic" numbers...
  • Page 78 UC-8100-LX Software Manual Default Installed Package List Name Version Architecture Description deb package format runtime libapt-inst1.5:armhf 0.9.7.9+deb7u2 armhf library package managment runtime libapt-pkg4.12:armhf 0.9.7.9+deb7u2 armhf library libattr1:armhf 1:2.4.46-8 armhf Extended attribute shared library libblkid1:armhf 2.20.1-5.3 armhf block device id library...
  • Page 79 UC-8100-LX Software Manual Default Installed Package List Name Version Architecture Description MIT Kerberos runtime libraries - libk5crypto3:armhf 1.10.1+dfsg-5+deb7u1 armhf Crypto Libr Linux Key Management Utilities libkeyutils1:armhf 1.5.5-3 armhf (library) 9 月 3 日 armhf libkmod2:armhf libkmod shared library libkrb5-3:armhf 1.10.1+dfsg-5+deb7u1...
  • Page 80 UC-8100-LX Software Manual Default Installed Package List Name Version Architecture Description system interface for user-level libpcap0.8:armhf 1.3.0-1 armhf packet captu Perl 5 Compatible Regular libpcre3:armhf 1:8.30-5 armhf Expression Library Middleware to access a smart libpcsclite1:armhf 1.8.4-1+deb7u1 armhf card using PC/S libperl5.14...
  • Page 81 UC-8100-LX Software Manual Default Installed Package List Name Version Architecture Description get display widths of characters libtext-charwidth-perl 0.04-7+b2 armhf on the term converts between character sets libtext-iconv-perl 1.7-5 armhf in Perl internationalized substitute of libtext-wrapi18n-perl 0.06-7 Text::Wrap shared low-level terminfo library libtinfo5:armhf 5.9-10...
  • Page 82 UC-8100-LX Software Manual Default Installed Package List Name Version Architecture Description ncurses-base 5.9-10 basic terminal type definitions terminal-related programs and ncurses-bin 5.9-10 armhf man pages additional terminal type ncurses-term 5.9-10 definitions net-tools 1.60-24.2 armhf The NET-3 networking toolkit netbase Basic TCP/IP networking system netcat-traditional 1.10-40...
  • Page 83 UC-8100-LX Software Manual Default Installed Package List Name Version Architecture Description minimal subset of the Python python-minimal 2.7.3-4+deb7u1 language (defau Interactive high-level python2.7 2.7.3-6+deb7u2 armhf object-oriented langu Minimal subset of the Python python2.7-minimal 2.7.3-6+deb7u2 armhf language (versi GNU readline and history readline-common 6.2+dfsg-0.1...
  • Page 84 UC-8100-LX Software Manual Default Installed Package List Name Version Architecture Description uc8100-system 1.0.0 armhf System files in uc8100 uc8100-wifi-utils 1.0.0 armhf WiFi utils on uc8100 series. Update Configuration File: 3.0025+nmu3 preserve user cha /dev/ and hotplug management udev 175-7.2 armhf...
  • Page 85: Extending The Lifetime Of The Sd Card

    E xtending the Lifetime of the SD Card This appendix describes how to extend the lifetime of the SD card. The following topics are covered in this appendix: O verview   SD Flash Types T ips for Running GNU/Linux on an SD Card ...
  • Page 86: Overview

    Commercial Check again the type of the SD card before deploying on the UC-8100-LX. The SD cards in the current market usually use TLC as their flash type due to price issue. We strongly recommend you use the SLC SD card in the UC-8100-LX computer.
  • Page 87: Tweak Gnu/Linux To Write To Ram Instead Of The Sd Card

    UC-8100-LX Software Manual Extending the Lifetime of the SD Card Tweak GNU/Linux to Write to RAM Instead of the SD card. This uses a feature called "tmpfs", a usedful function of GNU/Linux. Tmpfs can write to RAM as if it was an ordinary filesystem.
  • Page 88 UC-8100-LX Software Manual Extending the Lifetime of the SD Card NOTE Click the following links for more information on minicom. http://www.gnu.org/software/coreutils/manual/html_node/dd-invocation.html...
  • Page 89: Copying Images On An Sd/Microsd Card

    C opying Images on an SD/MicroSD Card This appendix shows you how to copy an image from an SD or MicroSD card. U sing Win32 Disk Imager 1. Remove the SD or microSD card from the UC-8100 and insert it into another computer. 2.
  • Page 90: Using The Dd Command

    UC-8100-LX Software Manual Extending the Lifetime of the SD Card 5. Click Exit to exit the utility. 6. Eject the SD card from the computer. You can start using the image. U sing the dd command 1. Insert the SD or microSD card into another computer.

Table of Contents