N720 OpenLinux Software User Guide Version 1.0

Size: px
Start display at page:

Download "N720 OpenLinux Software User Guide Version 1.0"

Transcription

1 N720 Hardware User Guide () N720 OpenLinux Software User Guide Version 1.0

2 Copyright Copyright 2017 Neoway Technology Co., Ltd. All rights reserved. No part of this document may be reproduced or transmitted in any form or by any means without prior written consent of Shenzhen Neoway Technology Co., Ltd. is the trademark of Shenzhen Neoway Technology Co., Ltd. All other trademarks and trade names mentioned in this document are the property of their respective holders. Notice This document provides guide for users to use the N720 OpenLinux. This document is intended for system engineers (SEs), development engineers, and test engineers. The information in this document is subject to change without notice due to product version update or other reasons. Every effort has been made in preparation of this document to ensure accuracy of the contents, but all statements, information, and recommendations in this document do not constitute a warranty of any kind, express or implied. Shenzhen Neoway provides customers complete technical support. If you have any question, please contact your account manager or to the following addresses: Sales@neoway.com Support@neoway.com Website: Copyright Neoway Technology Co., Ltd i

3 Revision Record Version Changes Date V1.0 Initial draft Copyright Neoway Technology Co., Ltd ii

4 Contents 1 N720 OpenLinux Features Block Diagram Basic Functions Installing USB Driver on Windows Setting Up Development Environment Development Environment Compiling Environment Debugging Environment Debugging Compiling and Running Compiling Running Reference Software Design ADC GPIO UART SPI Network Ethernet OTG AT Copyright Neoway Technology Co., Ltd iii

5 1 N720 OpenLinux 1.1 Features ARM Cortex-A7 processor, 1.3 GHz main frequency, 256kB L2 laches, 28 nm process technology Standard Linux OS, corresponding to kernel version Allow the installation and running of APP developed on standard libc C language RAM: 256MB ROM: 256MB Support different network standards: GSM/GPRS/EDGE&WCDMA R99 to DC-HSPA+&TD-SCDMA&LTE Cat4 Support USB2.0/Dual SIM/ADC/UART/SPI/I2C/PCM Support Android Debug Bridge (ADB) 1.2 Block Diagram Figure 1-1 Logic block diagram N720 OpenLinux module is developed on Qualcomm MDM9x07 platform and provides API functions developed on C language and data structure definition (header files). Developers can create APP programed by C language on a computer running ubuntu OS, compile it using GCC compiling tool targeted ARM, and generate executable file. Copyright Neoway Technology Co., Ltd 1

6 Executable files produced by developers are pushed to the usr/bin directory through the ADB tool. After modifying the file permission, developers can manually start it, or set automatic start with the module by changing the etc/inittab configuration file. 1.3 Basic Functions Basic functions except the last item are inherited from Qualcomm MCM architecture: Network registration monitoring and setting Voice call services Data call services SMS services Location services SIM card services GPIO, ADC, SPI, UART Copyright Neoway Technology Co., Ltd 2

7 2 Installing USB Driver on Windows Check if the USB driver is installed properly. 1. After powering on the N720 module, connect N720 to a computer via a USB cable. 2. On the computer, right-click Computer and choose Properties from the shortcut menu. 3. In Device Manager, check the port. If the USB driver is not installed properly, please perform the following operations: Step 1 Decompress Neoway_N720_drivers.rar. Step 2 Power on N720 module, and connect it to a computer via USB. If the computer displays Device driver software was not successfully installed, then install USB driver manually. Step 3 In Device Manager, right-click Android and select Update Driver Software from the short-cut menu. Copyright Neoway Technology Co., Ltd 3

8 Step 4 In the Update Driver Software-Android dialog box, click Browse my computer for driver software. Step 5 In the page of Browse for driver software on your computer, click Browse and choose the driver software path. Then click Next. If your computer runs 32-bit OS, select Neoway_N720_drivers\32bit. If your computer runs 64-bit OS, select Neoway_N720_drivers\64bit. Copyright Neoway Technology Co., Ltd 4

9 Step 6 If the computer displays Windows Security, click Install this driver software anyway. The installation is completed. Copyright Neoway Technology Co., Ltd 5

10 Step 7 Perform the same steps to install other Android device drivers. After all drivers are installed, they are shown as in the following figure. Step 8 Send an AT command to test the connection. Copyright Neoway Technology Co., Ltd 6

11 3 Setting Up Development Environment 3.1 Development Environment Compiling Environment PC OS: Ubuntu 64-bit OS, version or later Complier: arm arm-none-linux-gnueabi-i686-pc-linux-gnu.tar.bz2. The tool is packed under /tool/ in the SDK package. On a computer running Ubuntu, decompress the package and change the environment variable $PATH of the system. e.g. arm arm-none-linux-gnueabi-i686-pc-linux-gnu.tar.bz2 is decompressed to /home/zhangyuanxun/downloads/, then add /home/zhangyuanxun/downloads/arm /bin to $PATH by adding the following statement in /etc/profile: PATH="$PATH:/home/zhangyuanxun/Downloads/arm /bin" Debugging Environment PC OS: Windows 7 Debugging tool: ADB -- Android Debug Bridge version (Windows OS is recommended) Check /tool/fastboot.rar in the SDK package. Install USB driver on a Windows computer: android_usb_windows_pid8241_ rar, For installation, refer to Neoway_N720_USB Driver Installation on Windows. The installation files are under /tool/ in the SDK package. 3.2 Debugging Run adb shell to enter the shell. Then run logread to obtain log. Copyright Neoway Technology Co., Ltd 7

12 Run logread in the background and save the logs to the file under the module path. Use printf("xxx\n") to print log in the console window. Standard log functions of the Linux OS are also available: Syslog(LOG_ERR, E/NEO-- VA_ARGS ) Syslog(LOG_ERR, I/NEO-- VA_ARGS ) Syslog(LOG_ERR, D/NEO-- VA_ARGS ) Copyright Neoway Technology Co., Ltd 8

13 3.3 Compiling and Running Compiling Navigate to neoway/sample/uart, and input make. After the compiling is executed successfully, executable UART files are generated under the directory. UART is an example here. If a user has multiple.c files, please modify makefile under the corresponding directory. The following figure shows an example of a makefile. Copyright Neoway Technology Co., Ltd 9

14 Add source files to LOCAL_SRC_FILES. INC_DIR is to save header file directory, and USR_LIB is to save library file connected Running Copy executable UART program generated by make to the computer, and push it to usr/bin of the module through ADB. Modify the file permission. Navigate to shell and execute the program. To set automatic start with the module for the program, modify /etc/inittab in the following way: 1. Export etc/inittab from the module to the computer. 2. Modify inittab. Copyright Neoway Technology Co., Ltd 10

15 3. Push the modified inittab file to the previous directory of the module. The program can automatically start with the module. Copyright Neoway Technology Co., Ltd 11

16 4 Reference Software Design 4.1 ADC Header file #include <stdio.h> #include <string.h> #include <strings.h> #include <stdlib.h> #include <errno.h> #include <termios.h> #include <unistd.h> #include <fcntl.h> #include <sys/ioctl.h> Two ADCs: /dev/neo_adc_temp and /dev/neo_adc2_temp #define NWY_ADC1_DEV "/dev/neo_adc_temp" #define NWY_ADC2_DEV "/dev/neo_adc2_temp" Interface int open(const char* pathname, int flags, mode_t mode) ssize_t read(int fd, void* buf, size_t count) int close(int fd) Standard operation interface. The unit for the value read by ADC is V. Routine For details, refer to \neowaysample\adc\adc.c. 4.2 GPIO Header files #include <stdlib.h> #include <string.h> #include <stdio.h> #include <semaphore.h> #include <sys/ioctl.h> #include <fcntl.h> #include <linux/types.h> GPIO device drivers and GPIO recourses Check the device in /dev/neo_gpio_dev. Copyright Neoway Technology Co., Ltd 12

17 Six GPIOs are open to users: GPIO74/GPIO75/GPIO76/GPIO77/GPIO78/GPIO79. Interface int open(const char* pathname, int flags, mode_t mode) ssize_t ioctl(int fd, void* buf, size_t count) int close(int fd, unsigned long cmd, ) GPIOs are controlled by the ioctl function. //Set the output value of a GPIO. #define NEO_IOCTL_GPIO_SET_VALUE _IOW(NEO_GPIO_DEVIO,1,char[3]) //Read the value on a GPIO. #define NEO_IOCTL_GPIO_GET_VALUE _IOR(NEO_GPIO_DEVIO,2, char[3]) //Set GPIO direction. #define NEO_IOCTL_GPIO_SET_DIR _IOW(NEO_GPIO_DEVIO,3,char[3]) //Read GPIO direction #define NEO_IOCTL_GPIO_GET_DIR _IOR(NEO_GPIO_DEVIO,4,char[3]) Routine For details, refer to /neoway/sample/gpio/gpio.c. 4.3 UART Header file #include "nwy_uart.h" Device driver ports /dev/ttyhsl0 /dev/ttyhsl1 /dev/ttyhsl2 //uart1 //uart2 //uart3 API interface int NWY_UART_Open(const char* port, unsigned int baudrate, Enum_FlowCtrl flowctrl); int NWY_UART_Read(int fd, char* buf, unsigned int buf_len); int NWY_UART_Write(int fd, const char* buf, unsigned int buf_len); int NWY_UART_SetDCB(int fd, ST_UARTDCB *dcb); int NWY_UART_GetDCBConfig(int fd, ST_UARTDCB *dcb); int NWY_UART_IoCtl(int fd, unsigned int cmd, void* pvalue); int NWY_UART_Close(int fd); Routine For details, refer to neoway/sample/uart/uart.c. Copyright Neoway Technology Co., Ltd 13

18 4.4 SPI Header files #include <stdint.h> #include <unistd.h> #include <stdio.h> #include <stdlib.h> #include <getopt.h> #include <fcntl.h> #include <sys/ioctl.h> #include <linux/types.h> #include <linux/spi/spidev.h> Device driver port /dev/spidev1.0 API interface /*data transmission*/ #define SPI_MSGSIZE(N) \ \ ((((N)*(sizeof (struct spi_ioc_transfer))) < (1 << _IOC_SIZEBITS))? ((N)*(sizeof (struct spi_ioc_transfer))) : 0) #define SPI_IOC_MESSAGE(N) _IOW(SPI_IOC_MAGIC, 0, char[spi_msgsize(n)]) /* SPI device read/write mode (SPI_MODE_0..SPI_MODE_3) */ #define SPI_IOC_RD_MODE #define SPI_IOC_WR_MODE _IOR(SPI_IOC_MAGIC, 1, u8) _IOW(SPI_IOC_MAGIC, 1, u8) /* SPI device read/write bit */ #define SPI_IOC_RD_LSB_FIRST #define SPI_IOC_WR_LSB_FIRST _IOR(SPI_IOC_MAGIC, 2, u8) _IOW(SPI_IOC_MAGIC, 2, u8) /* SPI device read/write lengtb*/ #define SPI_IOC_RD_BITS_PER_WORD _IOR(SPI_IOC_MAGIC, 3, u8) #define SPI_IOC_WR_BITS_PER_WORD _IOW(SPI_IOC_MAGIC, 3, u8) /*Max. read/write rate of SPI device, available rate (Hz) including , , , , , , */ #define SPI_IOC_RD_MAX_SPEED_HZ #define SPI_IOC_WR_MAX_SPEED_HZ _IOR(SPI_IOC_MAGIC, 4, u32) _IOW(SPI_IOC_MAGIC, 4, u32) /*SPI device read/write mode*/ #define SPI_IOC_RD_MODE32 #define SPI_IOC_WR_MODE32 _IOR(SPI_IOC_MAGIC, 5, u32) _IOW(SPI_IOC_MAGIC, 5, u32) Routine Copyright Neoway Technology Co., Ltd 14

19 For details, refer to neoway/sample/spi/spi_test.c. 4.5 Network Dialup for network service Call the encapsulation interfaces: int set_up_call( int8_t ip_family, char *apn_name, char *user_name, char *password, int8_t tech_pref, int8_t umts_profile, int8_t cdma_profile //if family //APN name //Username for APN //Password for an APN //technology preference //UMTS profile ID //CDMA profile ID ); Return value: 0 indicates success; 1 indicates error. Refer to neoway/sample/data_call/data_call_setup.c. Stop PPP communication, and disconnect to the network. Call the encapsulation interface: int stop_data_call(void) Return value: 0 indicates success; 1 indicates failure. Obtain the network signal strength. Call MCM_NW_GET_SIGNAL_STRENGTH_REQ_V01 Obtain the current network mode. Call the MCM API: MCM_NW_GET_REGISTRATION_STATUS_REQ_V01 For more about how to develop network functions, refer to Ioe_Cm_Api_Interface_Spec.pdf. 4.6 Ethernet Manual start: insert a network cable, and execute the following commands in adb shell: ifcongfig ///Check network device ifconfig eth0 hw ether 00:1A:6B:38:7D:A8 ///Set the mac address of eth0 ifconfig eth0 up ///Enable etho of the network device. brctl show brctl delif bridge0 eth0 brctl showifconfig eth netmask ///set IP of eth0 manually Copyright Neoway Technology Co., Ltd 15

20 ip route ///check route ifconfig bridge0 down ip route add default dev eth0 ip route ping For details, refer to neoway/sample/ethernet/main.c. 4.7 OTG N720 OpenLinux support OTG, which users should set up the thread. Mount a USB-key disk before using the OTG function. The system displays /dev/sda[??] after the USB key is inserted. Then mount it in the following way: Create a new mounting directory. The /udisk created by the system can be used as the target mounting directory. mount t vfat /dev/sda1 /udisk The USB key is mounted successfully. Navigate to the USB key directory and check the data inside. cd /udisk ls l Files in the USB key are displayed. For details, refer to neoway/sample/udisk/main.c. 4.8 AT Tty device /dev/smd10 is used to send AT commands. Developer can open it and write it to AT commands. For details, refer to neoway/sample/at/attest.c. Copyright Neoway Technology Co., Ltd 16

N720 OpenLinux Software User Guide Version 1.2

N720 OpenLinux Software User Guide Version 1.2 N720 Hardware User Guide () N720 OpenLinux Software User Guide Version 1.2 Copyright Copyright 2017 Neoway Technology Co., Ltd. All rights reserved. No part of this document may be reproduced or transmitted

More information

N720 OpenLinux Source Code Developer Guide

N720 OpenLinux Source Code Developer Guide N720 OpenLinux Source Code Developer Guide Version 1.0 Copyright Neoway Technology Co., Ltd 1 Copyright Copyright 2017 Neoway Technology Co., Ltd. All rights reserved. No part of this document may be reproduced

More information

Files. Eric McCreath

Files. Eric McCreath Files Eric McCreath 2 What is a file? Information used by a computer system may be stored on a variety of storage mediums (magnetic disks, magnetic tapes, optical disks, flash disks etc). However, as a

More information

Android RIL Driver User Guide Version 1.0

Android RIL Driver User Guide Version 1.0 Android RIL Driver User Guide Version 1.0 Copyright Neoway Technology Co., Ltd. 1 Copyright Neoway Technology Co., Ltd. 2017. All rights reserved. No part of this document may be reproduced or transmitted

More information

CSE 333 SECTION 3. POSIX I/O Functions

CSE 333 SECTION 3. POSIX I/O Functions CSE 333 SECTION 3 POSIX I/O Functions Administrivia Questions (?) HW1 Due Tonight Exercise 7 due Monday (out later today) POSIX Portable Operating System Interface Family of standards specified by the

More information

LTC Data Converter Board For The Arrow SoCKit Linux Application User s Guide

LTC Data Converter Board For The Arrow SoCKit Linux Application User s Guide LTC Data Converter Board For The Arrow SoCKit Linux Application User s Guide Revision 7.0 21 Aug 2013 1 of 32 Table of Contents Introduction... 4 Board Connections... 4 Board Setup... 4 Installing Linux...

More information

CSE 333 SECTION 3. POSIX I/O Functions

CSE 333 SECTION 3. POSIX I/O Functions CSE 333 SECTION 3 POSIX I/O Functions Administrivia Questions (?) HW1 Due Tonight HW2 Due Thursday, July 19 th Midterm on Monday, July 23 th 10:50-11:50 in TBD (And regular exercises in between) POSIX

More information

File I/0. Advanced Programming in the UNIX Environment

File I/0. Advanced Programming in the UNIX Environment File I/0 Advanced Programming in the UNIX Environment File Descriptors Created and managed by the UNIX kernel. Created using open or creat system call. Used to refer to an open file UNIX System shells

More information

Processes often need to communicate. CSCB09: Software Tools and Systems Programming. Solution: Pipes. Recall: I/O mechanisms in C

Processes often need to communicate. CSCB09: Software Tools and Systems Programming. Solution: Pipes. Recall: I/O mechanisms in C 2017-03-06 Processes often need to communicate CSCB09: Software Tools and Systems Programming E.g. consider a shell pipeline: ps wc l ps needs to send its output to wc E.g. the different worker processes

More information

N20 Demo Board User Guide. Version 1.0

N20 Demo Board User Guide. Version 1.0 Version 1.0 Copyright Copyright 2017 Neoway Technology Co., Ltd. All right is reserved. No part of this document may be reproduced or transmitted in any form or by any means without prior written consent

More information

CS240: Programming in C

CS240: Programming in C CS240: Programming in C Lecture 15: Unix interface: low-level interface Cristina Nita-Rotaru Lecture 15/Fall 2013 1 Streams Recap Higher-level interface, layered on top of the primitive file descriptor

More information

This guide is used as an entry point into the Petalinux tool. This demo shows the following:

This guide is used as an entry point into the Petalinux tool. This demo shows the following: Petalinux Design Entry Guide. This guide is used as an entry point into the Petalinux tool. This demo shows the following: How to create a Linux Image for a Zc702 in Petalinux and boot from the SD card

More information

CMPS 105 Systems Programming. Prof. Darrell Long E2.371

CMPS 105 Systems Programming. Prof. Darrell Long E2.371 + CMPS 105 Systems Programming Prof. Darrell Long E2.371 darrell@ucsc.edu + Chapter 3: File I/O 2 + File I/O 3 n What attributes do files need? n Data storage n Byte stream n Named n Non-volatile n Shared

More information

OPTO32A 24 Input Bit, 8 Output Bit Optical Isolator Board

OPTO32A 24 Input Bit, 8 Output Bit Optical Isolator Board OPTO32A 24 Input Bit, 8 Output Bit Optical Isolator Board PMC-OPTO32A Linux Device Driver User Manual Manual Revision: July 15, 2005 General Standards Corporation 8302A Whitesburg Drive Huntsville, AL

More information

Lecture 3. Introduction to Unix Systems Programming: Unix File I/O System Calls

Lecture 3. Introduction to Unix Systems Programming: Unix File I/O System Calls Lecture 3 Introduction to Unix Systems Programming: Unix File I/O System Calls 1 Unix File I/O 2 Unix System Calls System calls are low level functions the operating system makes available to applications

More information

Section 3: File I/O, JSON, Generics. Meghan Cowan

Section 3: File I/O, JSON, Generics. Meghan Cowan Section 3: File I/O, JSON, Generics Meghan Cowan POSIX Family of standards specified by the IEEE Maintains compatibility across variants of Unix-like OS Defines API and standards for basic I/O: file, terminal

More information

Fall 2017 :: CSE 306. File Systems Basics. Nima Honarmand

Fall 2017 :: CSE 306. File Systems Basics. Nima Honarmand File Systems Basics Nima Honarmand File and inode File: user-level abstraction of storage (and other) devices Sequence of bytes inode: internal OS data structure representing a file inode stands for index

More information

Operating systems. Lecture 7

Operating systems. Lecture 7 Operating systems. Lecture 7 Michał Goliński 2018-11-13 Introduction Recall Plan for today History of C/C++ Compiler on the command line Automating builds with make CPU protection rings system calls pointers

More information

The Embedded I/O Company TIP700-SW-82 Linux Device Driver User Manual TEWS TECHNOLOGIES GmbH TEWS TECHNOLOGIES LLC

The Embedded I/O Company TIP700-SW-82 Linux Device Driver User Manual TEWS TECHNOLOGIES GmbH TEWS TECHNOLOGIES LLC The Embedded I/O Company TIP700-SW-82 Linux Device Driver Digital Output 24V DC Version 1.2.x User Manual Issue 1.2.1 February 2009 TEWS TECHNOLOGIES GmbH Am Bahnhof 7 Phone: +49 (0) 4101 4058 0 25469

More information

A113X1 Development Kit

A113X1 Development Kit A113X1 Development Kit User Guide Revision: 4.0 Release Date: 2018-02-06 Amlogic, Ltd. COPYRIGHT 2017 Amlogic, Ltd. All rights reserved. No part of this document may be reproduced. Transmitted, transcribed,

More information

Building an Android* command-line application using the NDK build tools

Building an Android* command-line application using the NDK build tools Building an Android* command-line application using the NDK build tools Introduction Libraries and test apps are often written in C/C++ for testing hardware and software features on Windows*. When these

More information

CS360 Midterm 2 Spring, 2016 James S. Plank March 10, 2016

CS360 Midterm 2 Spring, 2016 James S. Plank March 10, 2016 CS360 Midterm 2 Spring, 2016 James S. Plank March 10, 2016 In all of these questions, please assume the following: Pointers and longs are 4 bytes. The machine is little endian, but that doesn't matter

More information

Lecture files in /home/hwang/cs375/lecture05 on csserver.

Lecture files in /home/hwang/cs375/lecture05 on csserver. Lecture 5 Lecture files in /home/hwang/cs375/lecture05 on csserver. cp -r /home/hwang/cs375/lecture05. scp -r user@csserver.evansville.edu:/home/hwang/cs375/lecture05. Project 1 posted, due next Thursday

More information

EECS 3221 Operating System Fundamentals

EECS 3221 Operating System Fundamentals General Info EECS 3221 Operating System Fundamentals Instructor: Prof. Hui Jiang Email: hj@cse.yorku.ca Web: http://www.eecs.yorku.ca/course/3221 3 lecture hours each week 2 assignments (2*5%=10%) 1 project

More information

EECS 3221 Operating System Fundamentals

EECS 3221 Operating System Fundamentals EECS 3221 Operating System Fundamentals Instructor: Prof. Hui Jiang Email: hj@cse.yorku.ca Web: http://www.eecs.yorku.ca/course/3221 General Info 3 lecture hours each week 2 assignments (2*5%=10%) 1 project

More information

DG BA Mbps 3.5G Broadband Adapter User Manual

DG BA Mbps 3.5G Broadband Adapter User Manual DG BA3314 14.4Mbps 3.5G Broadband Adapter User Manual V1.0 2013-09-28 As our products undergo continuous development the specifications are subject to change without prior notice COPYRIGHT Copyright 2013

More information

FILE SYSTEMS. Jo, Heeseung

FILE SYSTEMS. Jo, Heeseung FILE SYSTEMS Jo, Heeseung TODAY'S TOPICS File system basics Directory structure File system mounting File sharing Protection 2 BASIC CONCEPTS Requirements for long-term information storage Store a very

More information

UNIX System Programming

UNIX System Programming File I/O 경희대학교컴퓨터공학과 조진성 UNIX System Programming File in UNIX n Unified interface for all I/Os in UNIX ü Regular(normal) files in file system ü Special files for devices terminal, keyboard, mouse, tape,

More information

Heterogeneous multi-processing with Linux and the CMSIS-DSP library

Heterogeneous multi-processing with Linux and the CMSIS-DSP library Heterogeneous multi-processing with Linux and the CMSIS-DSP library DS-MDK Tutorial AN290, September 2016, V 1.1 Abstract This Application note shows how to use DS-MDK to debug a typical application running

More information

SmartAX MT883 ADSL CPE Quick Start

SmartAX MT883 ADSL CPE Quick Start #### #### #### SmartAX MT883 CPE Quick Start 1 Connecting the Cables 1 2 4 3 1 Telephone jack on the wall 2 Splitter 3 Telephone 4 Computer 1 #### #### #### To connect the cables, do as follows: Step 1

More information

EAN-GPIO and I 2 C. PN: EAN-GPIO-and-I 2 C 2/28/2018. SightLine Applications, Inc.

EAN-GPIO and I 2 C. PN: EAN-GPIO-and-I 2 C 2/28/2018. SightLine Applications, Inc. EAN-GPIO and I 2 C PN: EAN-GPIO-and-I 2 C 2/28/2018 SightLine Applications, Inc. Contact: Web: sightlineapplications.com Sales: sales@sightlineapplications.com Support: support@sightlineapplications.com

More information

Experiment 6 The Real World Interface

Experiment 6 The Real World Interface Experiment 6 The Real World Interface Instructions You are required to design, code, test and document the C program from the experiment listed below. You should prepare the pseudocode for the program

More information

Android System Development Training 4-day session

Android System Development Training 4-day session Android System Development Training 4-day session Title Android System Development Training Overview Understanding the Android Internals Understanding the Android Build System Customizing Android for a

More information

TIP675-SW-82. Linux Device Driver. 48 TTL I/O Lines with Interrupts Version 1.2.x. User Manual. Issue November 2013

TIP675-SW-82. Linux Device Driver. 48 TTL I/O Lines with Interrupts Version 1.2.x. User Manual. Issue November 2013 The Embedded I/O Company TIP675-SW-82 Linux Device Driver 48 TTL I/O Lines with Interrupts Version 1.2.x User Manual Issue 1.2.5 November 2013 TEWS TECHNOLOGIES GmbH Am Bahnhof 7 25469 Halstenbek, Germany

More information

Recitation 8: Tshlab + VM

Recitation 8: Tshlab + VM Recitation 8: Tshlab + VM Instructor: TAs 1 Outline Labs Signals IO Virtual Memory 2 TshLab and MallocLab TshLab due Tuesday MallocLab is released immediately after Start early Do the checkpoint first,

More information

File Descriptors and Piping

File Descriptors and Piping File Descriptors and Piping CSC209: Software Tools and Systems Programming Furkan Alaca & Paul Vrbik University of Toronto Mississauga https://mcs.utm.utoronto.ca/~209/ Week 8 Today s topics File Descriptors

More information

Application Note: AN00144 xcore-xa - xcore ARM Boot Library

Application Note: AN00144 xcore-xa - xcore ARM Boot Library Application Note: AN00144 xcore-xa - xcore ARM Boot Library This application note shows how to create a simple application which targets the XMOS xcore-xa device and demonstrates how to build and run this

More information

INF322 Operating Systems

INF322 Operating Systems Galatasaray University Computer Engineering Department INF322 Operating Systems TP01: Introduction to Linux Ozan Çağlayan ocaglayan@gsu.edu.tr ozancaglayan.com Fundamental Concepts Definition of Operating

More information

The bigger picture. File systems. User space operations. What s a file. A file system is the user space implementation of persistent storage.

The bigger picture. File systems. User space operations. What s a file. A file system is the user space implementation of persistent storage. The bigger picture File systems Johan Montelius KTH 2017 A file system is the user space implementation of persistent storage. a file is persistent i.e. it survives the termination of a process a file

More information

Heterogeneous Multi-Core Architecture Support for Dronecode

Heterogeneous Multi-Core Architecture Support for Dronecode Heterogeneous Multi-Core Architecture Support for Dronecode Mark Charlebois, March 24 th 2015 Qualcomm Technologies Inc (QTI) is a Silver member of Dronecode Dronecode has 2 main projects: https://www.dronecode.org/software/where-dronecode-used

More information

CSC209H Lecture 6. Dan Zingaro. February 11, 2015

CSC209H Lecture 6. Dan Zingaro. February 11, 2015 CSC209H Lecture 6 Dan Zingaro February 11, 2015 Zombie Children (Kerrisk 26.2) As with every other process, a child process terminates with an exit status This exit status is often of interest to the parent

More information

IT-G400 Series. Android 6.0 Quick Start Guide. This document is a Development Guide Book for IT-G400 application developers. Ver 1.

IT-G400 Series. Android 6.0 Quick Start Guide. This document is a Development Guide Book for IT-G400 application developers. Ver 1. IT-G400 Series Android 6.0 Quick Start Guide This document is a Development Guide Book for IT-G400 application developers. Ver 1.04 No part of this document may be produced or transmitted in any form or

More information

First Steps. esom/sk4 esom/3517 Embedded Linux Starter Kit

First Steps. esom/sk4 esom/3517 Embedded Linux Starter Kit esom/sk4 esom/3517 Embedded Linux Starter Kit First Steps SSV Embedded Systems Dünenweg 5 D-30419 Hannover Phone: +49 (0)511/40 000-0 Fax: +49 (0)511/40 000-40 E-mail: sales@ssv-embedded.de Document Revision:

More information

File I/O - Filesystems from a user s perspective

File I/O - Filesystems from a user s perspective File I/O - Filesystems from a user s perspective Unix Filesystems Seminar Alexander Holupirek Database and Information Systems Group Department of Computer & Information Science University of Konstanz

More information

Guide to Kernel Driver Integration in Android for Huawei Modules. Issue Date

Guide to Kernel Driver Integration in Android for Huawei Modules. Issue Date Guide to Kernel Driver Integration in Android for Issue 1.2.9 Date 2013-12-30 Huawei Technologies Co., Ltd. provides customers with comprehensive technical support and service. For any assistance, please

More information

Finish up OS topics Group plans

Finish up OS topics Group plans Finish up OS topics Group plans Today Finish up and review Linux device driver stuff Walk example again See how it all goes together Discuss talking to MMIO RTOS (on board) Deferred interrupts Discussion

More information

Quick Start Guide for BeagleBone. Table of Contents. by Brian Fraser Last update: Sept 24, 2017

Quick Start Guide for BeagleBone. Table of Contents. by Brian Fraser Last update: Sept 24, 2017 Quick Start Guide for BeagleBone by Brian Fraser Last update: Sept 24, 2017 This document guides the user through: 1. Installing Ubuntu in a virtual machine. 2. Connecting to the target using serial port

More information

File Systems. Jinkyu Jeong Computer Systems Laboratory Sungkyunkwan University

File Systems. Jinkyu Jeong Computer Systems Laboratory Sungkyunkwan University File Systems Jinkyu Jeong (jinkyu@skku.edu) Computer Systems Laboratory Sungkyunkwan University http://csl.skku.edu SSE3044: Operating Systems, Fall 2016, Jinkyu Jeong (jinkyu@skku.edu) File System Layers

More information

Using colinux to develop under Windows XP

Using colinux to develop under Windows XP Using colinux to develop under Windows XP A Linux PC is often required to program embedded Linux systems. This can present unexpected problems for many experienced Windows users. A DIL/NetPC-based embedded

More information

CMSC 216 Introduction to Computer Systems Lecture 17 Process Control and System-Level I/O

CMSC 216 Introduction to Computer Systems Lecture 17 Process Control and System-Level I/O CMSC 216 Introduction to Computer Systems Lecture 17 Process Control and System-Level I/O Sections 8.2-8.5, Bryant and O'Hallaron PROCESS CONTROL (CONT.) CMSC 216 - Wood, Sussman, Herman, Plane 2 Signals

More information

Developer manual. (Onvif Client Library) Happytimesoft Technology Co.,LTD

Developer manual. (Onvif Client Library) Happytimesoft Technology Co.,LTD Developer manual (Onvif Client Library) Happytimesoft Technology Co.,LTD Declaration All rights reserved. No part of this publication may be excerpted, reproduced, translated, annotated or edited, in any

More information

JetBox 95xx/ 93xx Linux Auto Run Function

JetBox 95xx/ 93xx Linux Auto Run Function JetBox 95xx/ 93xx Linux Auto Run Function User Manual www.korenix.com 0.0.9 Copyright Notice Copyright 2009 Korenix Technology Co., Ltd. All rights reserved. Reproduction without permission is prohibited.

More information

Guide to Kernel Driver Integration in Android for Huawei Modules. Issue Date

Guide to Kernel Driver Integration in Android for Huawei Modules. Issue Date Guide to Kernel Driver Integration in Android for Issue 1.2.7 Date 2013-11-13 Huawei Technologies Co., Ltd. provides customers with comprehensive technical support and service. For any assistance, please

More information

TIP570-SW-95 QNX-Neutrino Device Driver TIP570 16/8 Channel 12 Bit ADC and 8 Channel 12 Bit DAC on SBS PCI40 Carrier

TIP570-SW-95 QNX-Neutrino Device Driver TIP570 16/8 Channel 12 Bit ADC and 8 Channel 12 Bit DAC on SBS PCI40 Carrier TIP570-SW-95 QNX-Neutrino Device Driver TIP570 16/8 Channel 12 Bit ADC and 8 Channel 12 Bit DAC on SBS PCI40 Carrier Version 1.0.x Reference Manual Issue 1.0 January 2002 TEWS TECHNOLOGIES GmbH Am Bahnhof

More information

COSC Operating Systems Design, Fall Lecture Note: Unnamed Pipe and Shared Memory. Unnamed Pipes

COSC Operating Systems Design, Fall Lecture Note: Unnamed Pipe and Shared Memory. Unnamed Pipes COSC4740-01 Operating Systems Design, Fall 2001 Lecture Note: Unnamed Pipe and Shared Memory Unnamed Pipes Pipes are a form of Inter-Process Communication (IPC) implemented on Unix and Linux variants.

More information

DEVELOPMENT GUIDE VAB-630. Android BSP v

DEVELOPMENT GUIDE VAB-630. Android BSP v DEVELOPMENT GUIDE VAB-630 Android BSP v1.0.3 1.00-08112017-153900 Copyright Copyright 2017 VIA Technologies Incorporated. All rights reserved. No part of this document may be reproduced, transmitted, transcribed,

More information

STSW-BLUENRG1-DK. BlueNRG-1, BlueNRG-2 DK SW package

STSW-BLUENRG1-DK. BlueNRG-1, BlueNRG-2 DK SW package BlueNRG-1, BlueNRG-2 DK SW package Data brief Features Bluetooth SMART SW package supporting BlueNRG-1 and BlueNRG-2 Bluetooth low energy (BLE) systems-on-chip BlueNRG-1 Navigator and BlueNRG-2 Navigator

More information

DEVELOPMENT GUIDE VAB-630. Linux BSP v

DEVELOPMENT GUIDE VAB-630. Linux BSP v DEVELOPMENT GUIDE VAB-630 Linux BSP v1.0.1 100-09182017-114400 Copyright Copyright 2017 VIA Technologies Incorporated. All rights reserved. No part of this document may be reproduced, transmitted, transcribed,

More information

Application Note: AN00142 xcore-xa - xcore ARM Bridge Library

Application Note: AN00142 xcore-xa - xcore ARM Bridge Library Application Note: AN00142 xcore-xa - xcore ARM Bridge Library This application note shows how to create a simple application which targets the XMOS xcore-xa device and demonstrates how to build and run

More information

SSE3052: Embedded Systems Practice

SSE3052: Embedded Systems Practice SSE3052: Embedded Systems Practice Minwoo Ahn minwoo.ahn@csl.skku.edu Computer Systems Laboratory Sungkyunkwan University http://csl.skku.edu SSE3052: Embedded Systems Practice, Spring 2018, Jinkyu Jeong

More information

UC20 Android RIL Driver User Guide

UC20 Android RIL Driver User Guide UC20 Android RIL Driver User Guide UMTS/HSPA Module Series Rev. UC20_Android_RIL_Driver_User_Guide_V1.0 Date: 2013-06-18 www.quectel.com Our aim is to provide customers with timely and comprehensive service.

More information

ECE 650 Systems Programming & Engineering. Spring 2018

ECE 650 Systems Programming & Engineering. Spring 2018 ECE 650 Systems Programming & Engineering Spring 2018 Inter-process Communication (IPC) Tyler Bletsch Duke University Slides are adapted from Brian Rogers (Duke) Recall Process vs. Thread A process is

More information

Kernel Modules. Kartik Gopalan

Kernel Modules. Kartik Gopalan Kernel Modules Kartik Gopalan Kernel Modules Allow code to be added to the kernel, dynamically Only those modules that are needed are loaded. Unload when no longer required - frees up memory and other

More information

GIGABYTE. Software Reference Guide for MP30 (APM) Platform R01. Document Version:

GIGABYTE. Software Reference Guide for MP30 (APM) Platform R01. Document Version: GIGABYTE Software Reference Guide for MP30 (APM) Platform R01 Document Version: R01 1 CONTENTS BASICS SECTION... 3 1.1 Equipment and tools list... 3 1.2 How to make Ubuntu OS image to SD card... 5 1.3

More information

Pengwyn Documentation

Pengwyn Documentation Pengwyn Documentation Release 1.0 Silica October 03, 2016 Contents 1 Introduction 3 1.1 Platforms................................................. 3 1.2 Hardware requirements.........................................

More information

Embedded System Design

Embedded System Design Embedded System Design Lecture 10 Jaeyong Chung Systems-on-Chips (SoC) Laboratory Incheon National University Environment Variables Environment variables are a set of dynamic named values that can affect

More information

BiPAC ADSL USB Modem. User s Manual

BiPAC ADSL USB Modem. User s Manual BiPAC 7001 ADSL USB Modem User s Manual Chapter 1... 1 1.1 Introducing the BiPAC 7001... 1 1.2 Features of the BiPAC 7001... 1 1.3 Installing Billion ADSL USB Modem... 2 Chapter 2... 3 2.1 Important note

More information

M-508 Quick Installation Guide. Screw: Φ 3 mm

M-508 Quick Installation Guide. Screw: Φ 3 mm Overview M-08 is a Linux ready Single Board Computer featuring four serial ports, 0/00 Mbps Ethernet, USB port and SD socket for flash disk expansion. The pre-install Linux OS and GNU tool chain make M-08

More information

ECEN 449: Microprocessor System Design Department of Electrical and Computer Engineering Texas A&M University

ECEN 449: Microprocessor System Design Department of Electrical and Computer Engineering Texas A&M University ECEN 449: Microprocessor System Design Department of Electrical and Computer Engineering Texas A&M University Prof. Sunil P. Khatri Lab exercise created and tested by: Abbas Fairouz, Ramu Endluri, He Zhou,

More information

Third-Party Client (s3fs) User Guide

Third-Party Client (s3fs) User Guide Issue 02 Date 2017-09-28 HUAWEI TECHNOLOGIES CO., LTD. 2018. All rights reserved. No part of this document may be reproduced or transmitted in any form or by any means without prior written consent of

More information

Operating Systems. Lecture 06. System Calls (Exec, Open, Read, Write) Inter-process Communication in Unix/Linux (PIPE), Use of PIPE on command line

Operating Systems. Lecture 06. System Calls (Exec, Open, Read, Write) Inter-process Communication in Unix/Linux (PIPE), Use of PIPE on command line Operating Systems Lecture 06 System Calls (Exec, Open, Read, Write) Inter-process Communication in Unix/Linux (PIPE), Use of PIPE on command line March 04, 2013 exec() Typically the exec system call is

More information

SEEDAndroid User Manual

SEEDAndroid User Manual SEEDAndroid User Manual Copyright 2016 Wenliang Du, Syracuse University. All rights reserved. ATTENTION: Before using the Android VM, please at least read Section 3.1 about how to release the mouse pointer.

More information

Image Recognition. SDK Reference. Issue 09 Date HUAWEI TECHNOLOGIES CO., LTD.

Image Recognition. SDK Reference. Issue 09 Date HUAWEI TECHNOLOGIES CO., LTD. Issue 09 Date 2019-01-31 HUAWEI TECHNOLOGIES CO., LTD. Copyright Huawei Technologies Co., Ltd. 2019. All rights reserved. No part of this document may be reproduced or transmitted in any form or by any

More information

Development Environment Embedded Linux Primer Ch 1&2

Development Environment Embedded Linux Primer Ch 1&2 Development Environment Embedded Linux Primer Ch 1&2 Topics 1) Systems: Host and Target 2) Host setup 3) Host-Target communication CMPT 433 Slides #3 Dr. B. Fraser 18-05-05 2 18-05-05 1 Host & Target Host

More information

Application Note: AN00152 xscope - Bi-Directional Endpoint

Application Note: AN00152 xscope - Bi-Directional Endpoint Application Note: AN00152 xscope - Bi-Directional Endpoint This application note shows how to create a simple example which uses the XMOS xscope application trace system to provide bi-directional communication

More information

Matrix 500 Quick Installation Guide

Matrix 500 Quick Installation Guide Overview Matrix 500 features four serial ports, 10/100 Mbps Ethernet, USB port and SD socket for flash disk expansion. The preinstall Linux OS and GNU tool chain make Matrix 500 ready for your application

More information

CMPSC 311- Introduction to Systems Programming Module: Input/Output

CMPSC 311- Introduction to Systems Programming Module: Input/Output CMPSC 311- Introduction to Systems Programming Module: Input/Output Professor Patrick McDaniel Fall 2014 Input/Out Input/output is the process of moving bytes into and out of the process space. terminal/keyboard

More information

File Systems Overview. Jin-Soo Kim ( Computer Systems Laboratory Sungkyunkwan University

File Systems Overview. Jin-Soo Kim ( Computer Systems Laboratory Sungkyunkwan University File Systems Overview Jin-Soo Kim ( jinsookim@skku.edu) Computer Systems Laboratory Sungkyunkwan University http://csl.skku.edu Today s Topics File system basics Directory structure File system mounting

More information

esdk Storage Plugins 1.0.RC4 Compilation Guide 01(vRO) Issue 01 Date HUAWEI TECHNOLOGIES CO., LTD.

esdk Storage Plugins 1.0.RC4 Compilation Guide 01(vRO) Issue 01 Date HUAWEI TECHNOLOGIES CO., LTD. 1.0.RC4 Issue 01 Date 2017-04-06 HUAWEI TECHNOLOGIES CO., LTD. 2017. All rights reserved. No part of this document may be reproduced or transmitted in any form or by any means without prior written consent

More information

HUAWEI Module. Android RIL Integration Guide. Version 3.4. Date

HUAWEI Module. Android RIL Integration Guide. Version 3.4. Date HUAWEI Module Android RIL Integration Guide Version 3.4 Date 2014-04-26 2014. All rights reserved. No part of this manual may be reproduced or transmitted in any form or by any means without prior written

More information

Programming with TCP/IP. Ram Dantu

Programming with TCP/IP. Ram Dantu 1 Programming with TCP/IP Ram Dantu 2 Client Server Computing Although the Internet provides a basic communication service, the protocol software cannot initiate contact with, or accept contact from, a

More information

SBC3100 (Cortex-A72) Single Board Computer

SBC3100 (Cortex-A72) Single Board Computer (Cortex-A72) Single Board Computer Ultra High Performance SBC with RK3399 (Cortex-A72 x2 + Cortex-A53 x4) @ 2Ghz : Single Board Computer H310: Input (receiver) Module : Output (display) Module D120: 4xCOM

More information

Getting Started with FreeRTOS BSP for i.mx 7Dual

Getting Started with FreeRTOS BSP for i.mx 7Dual Freescale Semiconductor, Inc. Document Number: FRTOS7DGSUG User s Guide Rev. 0, 08/2015 Getting Started with FreeRTOS BSP for i.mx 7Dual 1 Overview The FreeRTOS BSP for i.mx 7Dual is a Software Development

More information

HE-GE Linux USB Driver - User Guide. 1vv r2 03/25/2013

HE-GE Linux USB Driver - User Guide. 1vv r2 03/25/2013 Disclaimer SPECIFICATIONS SUBJECT TO CHANGE WITHOUT NOTICE Notice While reasonable efforts have been made to assure the accuracy of this document, Telit assumes no liability resulting from any inaccuracies

More information

CSE 410: Systems Programming

CSE 410: Systems Programming CSE 410: Systems Programming Input and Output Ethan Blanton Department of Computer Science and Engineering University at Buffalo I/O Kernel Services We have seen some text I/O using the C Standard Library.

More information

Objectives. Chapter 2: Operating-System Structures. 2.1 Operating System Services

Objectives. Chapter 2: Operating-System Structures. 2.1 Operating System Services Objectives Chapter 2: Operating-System Structures To describe the services an operating system provides to users, processes, and other systems To discuss the various ways of structuring an operating system

More information

Goals of this Lecture

Goals of this Lecture I/O Management 1 Goals of this Lecture Help you to learn about: The Unix stream concept Standard C I/O functions Unix system-level functions for I/O How the standard C I/O functions use the Unix system-level

More information

Application Note: AN00151 xscope - Custom Host Endpoint

Application Note: AN00151 xscope - Custom Host Endpoint Application Note: AN00151 xscope - Custom Host Endpoint This application note shows how to create a simple example which uses the XMOS xscope application trace system to provide instrumentation logging

More information

Guide to Kernel Driver Integration in Linux for Huawei Modules. Issue 2.0. Date

Guide to Kernel Driver Integration in Linux for Huawei Modules. Issue 2.0. Date Guide to Kernel Driver Integration in Linux for Issue 2.0 Date 2014-12-12 Copyright Huawei Technologies Co., Ltd. 2014. All rights reserved. No part of this manual may be reproduced or transmitted in any

More information

10/02/2015 PetaLinux Linux Image Network Connection

10/02/2015 PetaLinux Linux Image Network Connection Contents 1 History... 3 2 Introduction... 3 3 Vivado Project... 4 3.1 Open Vivado... 4 3.2 New Project... 5 3.3 Project Settings... 13 3.4 Create Processor System... 14 3.4.1 New Block Diagram... 14 3.5

More information

Advanced Unix/Linux System Program. Instructor: William W.Y. Hsu

Advanced Unix/Linux System Program. Instructor: William W.Y. Hsu Advanced Unix/Linux System Program Instructor: William W.Y. Hsu CONTENTS File I/O, File Sharing 3/15/2018 INTRODUCTION TO COMPETITIVE PROGRAMMING 2 Recall simple-cat.c... /* * Stripped down version of

More information

Third-Party Client (s3fs) User Guide

Third-Party Client (s3fs) User Guide Issue 02 Date 2017-09-28 HUAWEI TECHNOLOGIES CO., LTD. 2017. All rights reserved. No part of this document may be reproduced or transmitted in any form or by any means without prior written consent of

More information

Ethernet switch support in the Linux kernel

Ethernet switch support in the Linux kernel ELC 2018 Ethernet switch support in the Linux kernel Alexandre Belloni alexandre.belloni@bootlin.com Copyright 2004-2018, Bootlin. Creative Commons BY-SA 3.0 license. Corrections, suggestions, contributions

More information

I/O Management! Goals of this Lecture!

I/O Management! Goals of this Lecture! I/O Management! 1 Goals of this Lecture! Help you to learn about:" The Unix stream concept" Standard C I/O functions" Unix system-level functions for I/O" How the standard C I/O functions use the Unix

More information

I/O Management! Goals of this Lecture!

I/O Management! Goals of this Lecture! I/O Management! 1 Goals of this Lecture! Help you to learn about:" The Unix stream concept" Standard C I/O functions" Unix system-level functions for I/O" How the standard C I/O functions use the Unix

More information

μc/probe on the RIoTboard (Linux)

μc/probe on the RIoTboard (Linux) Micriμm μc/probe on the RIoTboard (Linux) 1. Introduction Whether you are doing kernel, driver or application development in a Linux environment, it's likely that at some point, you will need to debug

More information

DevKit7000 Evaluation Kit

DevKit7000 Evaluation Kit DevKit7000 Evaluation Kit Samsung S5PV210 Processor based on 1GHz ARM Cortex-A8 core Onboard 512MByte DDR2 and 512MByte NAND Flash 4 UART, 4 USB Host, USB Device, Ethernet, Audio, TF, RTC,... Supports

More information

ECE 598 Advanced Operating Systems Lecture 6

ECE 598 Advanced Operating Systems Lecture 6 ECE 598 Advanced Operating Systems Lecture 6 Vince Weaver http://www.eece.maine.edu/~vweaver vincent.weaver@maine.edu 4 February 2016 Homework #2 was due Announcements Homework #3 will be released shortly

More information

UNIX System Calls. Sys Calls versus Library Func

UNIX System Calls. Sys Calls versus Library Func UNIX System Calls Entry points to the kernel Provide services to the processes One feature that cannot be changed Definitions are in C For most system calls a function with the same name exists in the

More information

MV 4412 Android 4.0 Compilation

MV 4412 Android 4.0 Compilation MV 4412 Android 4.0 Compilation Microvision Co., Ltd. Document Information Version 1.0 File Name MV4412 Android Compilation.doc Date 2012. 7. 12 Satus Working Revision History Date Version Update Descriptions

More information