Building Tizen Development Environment

Similar documents
Building Tizen Development Environment

Tizen Project Guideline. SKKU Embedded Software Lab.

Best Practice for Tizen Platform from Code to Device. Zhang, Qiang Chen, Gui (Intel Open Source Technology Center)

Tizen * IVI Hands-on Lab

GIT. A free and open source distributed version control system. User Guide. January, Department of Computer Science and Engineering

One-click Solution for Tizen Image Creation Based on Jenkins Framework. Zhang, Qiang (Intel Open Source Technology Center)

Getting the Source Code

Tizen.IoTivity.Init. Tizen IoTivity 를시작하기위한환경설정. Geunsun Lee

IoTivity Programmer s Guide Resource Encapsulation

REX-RED Community Android 4.3

Lab 6: OS Security for the Internet of Things

CS3210: Operating Systems

Tizen TCT User Guide

Zephyr Kernel Installation & Setup Manual

SCM-i.MX 6 Series Yocto Linux User's Guide

Mars ZX3 Android manual. Antmicro

The Automotive Grade Linux Build Service. ALS Tokyo '14, Jan-Simon Möller

CSCI 350 Virtual Machine Setup Guide

WES 237A Project Part 1 Guide

Lab 6: OS Security for the Internet of Things

About the Tutorial. Audience. Prerequisites. Copyright & Disclaimer. Gerrit

Cubieboard4 Linux Sdk Guide TF BOOT & TF WRITE EMMC. Website: Support:

Git & Github Fundamental by Rajesh Kumar.

Tizen EFL UTC User Guide

MOOSE-Based Application Development on GitLab

IoTivity Development on ARTIK 530s

Creating a profile from Tizen:Common. Stéphane Desneux Senior Software Engineer Eurogiciel

TrinityCore Documentation

COLD WALLET + MASTERNODE SETUP ON LINUX

CROWDCOIN MASTERNODE SETUP COLD WALLET ON WINDOWS WITH LINUX VPS

D1 - Embedded Linux. Building and installing an embedded and real-time Linux platform. Objectives. Course environment.

Simulation Manager Configuration Guide

u-root: / with the convenience of scripting and the performance of compilation

Lab2 - Bootloader. Conventions. Department of Computer Science and Information Engineering National Taiwan University

Building a ROM for Android on Ubuntu in Virtualbox

Setting up a Chaincoin Masternode

SAROS MasterNode Guide V1.1

EECS 470 Lab 4. Version Control System. Friday, 31 st January, 2014

Oxalis Getting Started

Mesos on ARM. Feng Li( 李枫 ),

Pengwyn Documentation

Linux. For BCT RE2G2. User Guide. Document Reference: BCTRE2G2 Linux User Guide. Document Issue: Associated SDK release: 1.

DEVELOPMENT GUIDE VAB-630. Linux BSP v

SmartCash SmartNode Setup Guide v1.2. Windows 10. Date: 13/01/2018. By (Jazz) yoyomonkey

SmartCash SmartNode Setup Guide V1.2 Windows 10 13/01/2018 By (Jazz) yoyomonkey Page 1

Introduction to Git and Github Repositories

Cross-compilation with Buildroot

Yocto Project components

The instructions in this document are applicable to personal computers running the following Operating Systems:

Version Control. Software Carpentry Github s Hello World Git For Ages 4 And Up You need source code control now

School of Computing Science Gitlab Platform - User Notes

Porting Tizen-IVI 3.0 to an ARM based SoC Platform

Digi Embedded Yocto 1.6. First Steps Guide

Package Management Over Tor

DEVELOPMENT GUIDE VIA AMOS-825. Linux BSP v

Overview. during this tutorial we will examine how touse git from the command line. finally we will explore a graphical visualisation of git activity

DEVELOPMENT GUIDE AMOS-820. Linux BSP v

Android System Development Training 4-day session

DEVELOPMENT GUIDE VAB-630. Android BSP v

The TinyHPC Cluster. Mukarram Ahmad. Abstract

Intel Do-It-Yourself Challenge Compile C/C++ for Galileo Nicolas Vailliet

Centreon SSH Connector Documentation

Building CircuitPython

DC/OS on Google Compute Engine

Using Openembedded with Snapdragon Flight

1. Install a Virtual Machine Download Ubuntu Create a New Virtual Machine Seamless Operation between Windows an Linux...

Porting Tizen-IVI 3.0 to an ARM based SoC Platform. Damian Hobson-Garcia, IGEL Co., Ltd.

SUB1X Masternode Setup Guide: LINUX Version

Embedded Linux. A Tour inside ARM's Kernel

Lab #9: Configuring A Linux File Server

Containers. Pablo F. Ordóñez. October 18, 2018

SmartCash SmartNode SCRIPT Setup Guide v2.2. Windows 10. Date: 20/02/2018. By (Jazz) yoyomonkey

Gitlab Setup/Usage by Yifeng Zhu modified by Vince Weaver 30 January 2019

Introduction of Linux

DEVELOPMENT GUIDE VIA VAB-820. Android BSP v

Git Command Line Tool Is Not Installed

If you had a freshly generated image from an LCI instructor, make sure to set the hostnames again:

Ftp Command Line Commands Linux Example Windows Put

MariaDB ColumnStore C++ API Building Documentation

a. puppet should point to master (i.e., append puppet to line with master in it. Use a text editor like Vim.

swiftenv Documentation

Lab4 Embedded Linux. Introduction

Helix4Git Administrator Guide March 2018

Development Environment Embedded Linux Primer Ch 1&2

Helix4Git Administrator Guide October 2017

Vaango Installation Guide

OTC Tools Development and Release process. Igor Stoppa & Eduard Bartosh & JF Ding V May 2013

TangeloHub Documentation

Embedded. Connected. Aware. SW Delivery Process. February Inforce Computing. Do NOT Copy/Distribute without prior written permission

Git Guide. Meher Krishna Patel. Created on : Octorber, 2017 Last updated : October, More documents are freely available at PythonDSP

i.mx7dual L4.1.15_2.0.0

Welcome to getting started with Ubuntu Server. This System Administrator Manual. guide to be simple to follow, with step by step instructions

Hands-on with the Sitara Linux SDK

Contents. Note: pay attention to where you are. Note: Plaintext version. Note: pay attention to where you are... 1 Note: Plaintext version...

opensuse Packaging for the osmocom stack Martin Hauke

Android ROM Porting: A Review

Version Control with GIT

DEVELOPMENT GUIDE VAB-820. Android BSP v

OpenStack Havana All-in-One lab on VMware Workstation

Boot your computer into GNU/Linux. Overview. Introduction to git on the command line. Introduction to git on the command line

Transcription:

Building Tizen Development Environment Minsoo Ryu Real-Time Computing and Communications Lab. Hanyang University msryu@hanyang.ac.kr

Tizen 2.3 Development Environment Target hardware device Tizen Reference Device-PQ (RD-PQ) Display Chipset CPU Sensors Camera WiFi Bluetooth GPS Super AMOLED capacitive touch screen with 16M colors. Size 720 X 1280 pixels. Exynos Quad Quad-core 1.4GHz Cortex-A9 Accelerometer, Gyro, Proximity, Magnetic etc. Primary 8MP, Secondary 1.9MP Yes Yes No? (emulated) Tizen 2.2.1 is installed in current RD-PQ Our target Tizen platform is 2.2.1, so we need to upgrade the device with Tizen 2.3 2 2

Tizen 2.3 Development Environment Download the following images from #Bootloader http://download.tizen.org/releases/2.3/2.3- mobile/bootloader/migrate_2.3_bootloader.tar.gz #Mobile boot image http://download.tizen.org/releases/2.3/2.3-mobile/tizen-2.3- mobile_20150311.3/images/target/mobile_boot/tizen-2.3- mobile_20150311.3_mobile_boot.tar.gz #Mobile platform Image http://download.tizen.org/releases/2.3/2.3-mobile/tizen-2.3- mobile_20150311.3/images/target/mobile_target/tizen-2.3- mobile_20150311.3_mobile_target.tar.gz Remark: Tizen 2.3 is based on Linux kernel 3.0 3 3

Upgrading Tizen 2.2.1 to Tizen 2.3 Bootloader upgrade Enter the download mode of your device with PowerKey+VolDown Fuse the migrate_2.3_bootloader.tar.gz using lthor $ Sudo lthor migrate_2.3_bootloader.tar.gz Platform upgrade Enter the download mode for your device with PowerKey+VolDown Flash the boot image and the platform image $ Sudo lthor tizen-2.3-mobile_20150311.3_mobile_boot.tar.gz tizen- 2.3-mobile_20150311.3_mobile_target.tar.gz 4 4

Setting Up Gerrit Access 1. Registering a user account to gain access to tizen.org 2. Configuring Secure Shell (SSH) for Gerrit access 3. Configuring Git 5 5

Registering a User Account https://www.tizen.org/ 6 6

Configuring Secure Shell (SSH) Generate RSA keys by executing the following command $ ssh-keygen Follow the on-screen prompt Enter file in which to save the key (/home/(user)/.ssh/id_rsa) : Enter passphrase (empty for no passphrase) : Enter same passphrase again : Create an SSH configuration file with a full path of ~/.ssh/config $ vim ~/.ssh/config 7 7

Configuring Secure Shell (SSH) Insert your Tizen ID Host tizen review.tizen.org Hostname review.tizen.org IdentityFile ~/.ssh/id_rsa User Tizen ID Port 29418 #The line below is optional configuration applicable to Ubuntu and opensuse. #Add when using proxy, otherwise, skip it. #ProxyCommand nc -X5 -x : %h %p #The line below is optional configuration applicable to Fedora. #Add when using proxy, otherwise, skip it. #ProxyCommand nc --proxy-type socks4 --proxy : %h %p 8 8

Configuring Secure Shell (SSH) SSH public key vim ~/.ssh/id_rsa.pub Register SSH public key 9 9

Configuring Secure Shell (SSH) Check SSH connection $ ssh tizen **** Welcome to Gerrit Code Review **** Hi Kyusang Choi, you have successfully connected over SSH. Unfortunately, interactive shells are disabled. To clone a hosted Git repository, use: git clone ssh://kyusang@review.tizen.org:29418/repository_name.git 10 10

Configuring Git Install Git $ sudo apt-get install git Configure Git $ git config --global user.name name" $ git config --global user.email e-mail address" 11 11

Installing Tizen Development Tools Configure Tizen tools repository (Ubuntu 14.04 LTS) $ sudo vim /etc/apt/sources.list deb http://download.tizen.org/tools/latest-release/ubuntu_14.04 / $ sudo apt-get update Install gbs, mic package $ sudo apt-get install gbs mic $ sudo apt-get update $ sudo apt-get upgrade 12 12

Cloning Tizen v2.3 Source Create ~/bin/ subdirectory, include it in PATH $ mkdir ~/bin/ $ PATH=~/bin:$PATH Download the repo script by executing the following command : $ curl http://commondatastorage.googleapis.com/git-repo-downloads/repo > ~/bin/repo Change the attribute of repo $ sudo chmod a+x ~/bin/repo Create a new directory $ mkdir ~/<Tizen_Project> $ cd ~/<Tizen_Project> 13 13

Cloning Tizen v2.3 Source Initialize the repository Tizen 2.3 $ repo init -u ssh://<username>@review.tizen.org:29418/scm/manifest -b tizen_2.3 Synchronize the repository $ repo sync 14 14

Git Build System (GBS) GBS A developer command line tool that supports Tizen package development It's used to generate tarballs based on Git repositories, to do local test buildings, and to submit code to OBS (Tizen's main build service) 15 15

Git Build System (GBS) Prebuilt binary packages The <Tizen_Project>/pre-built directory contains a group of prebuilt projects that provides base and toolchain binary RPM packages for GBS build. Dependency cycles in Repos Building packages with dependency cycles is not supported by GBS. Known cycles are as follows: gcc->eglibc->gcc gcc->binutils->gettext->gcc gettext->gcc->eglibc->gettext cmake->curl->c-ares->cmake filesystem->setup->filesystem aul->privacy-manager-server->aul libtool->texinfo->libzio->bzip2->libtool libmm-sound->avsystem->pulseaudio->system-server- >libfeedback->libmm-sound 16 16

Git Build System (GBS) Accelerator Packages Tizen provides cross-compilers and other accelerator packages, as shown below, in <Tizen_Project>/pre-built/toolchain-arm/ for ARM build. bash,bzip2-libs,c-ares,cmake,coreutils,diffutils,eglibc,elfutils-libelf,elfutilslibs,elfutils,fdupes,file,findutils,gawk,gmp,gzip,libacl,libattr,libcap,libcurl,libfile,libgcc,libl ua,libstdc++,make,mpc,mpfr,ncurses-libs,nodejs,nspr,nss-softoknfreebl,nss,openssl,patch,popt,rpm-build,rpm-libs,rpm,sed,sqlite,tar,xzlibs,zlib,binutils,gcc For the first build, these packages need to be excluded, otherwise built out packages will be installed and used, which will make accelerator packages fail to work. 17 17

Building a Specific Package Move to Project folder $ cd <Project folder> Configuring.gbs.conf [general] profile = profile.tizen [profile.tizen] user = ID passwdx = password obs = obs.tizen repos = repo.tizen_latest [repo.tizen_latest] url = http://download.tizen.org/releases/2.3/2.3-mobile/tizen-2.3- mobile_20150311.3/repos/target/packages/ 18 18

Cloning a Specific Package over SSH Clone the required package by executing the following command $ git clone ssh: //<Username>@review.tizen.org:29418/framework/system/sen sord You can check if it is the master branch by executing the following command $ git branch a Build package in architecture armv7l $ gbs build -A armv7l include-all 19 19

MIC Image Creator MIC is an image creator It's used to create images for Tizen With the MIC tool, users can create images of different types for different verticals, including live CD images, live USB images, raw images for KVM, loop images for IVI platforms, and fs images for chrooting entire framework Result of specific built package 20 20

Creating a Tizen Image with MIC Preparing the Kickstart File $ wget http://download.tizen.org/releases/2.3/2.3-mobile/tizen-2.3- mobile_20150311.3/images/target/mobile_target/tizen-2.3- mobile_20150311.3_mobile_target.ks Create a Tizen Image $ sudo mic create loop <KS-File> --local-pkgs-path=<localpath>/ -- pack-to=<image name>.tar.gz $ sudo mic create loop tizen-2.3- mobile_20150311.3_mobile_target.ks --local-pkgspath=localpath/ --pack-to=tizen_0416.tar.gz Note that tizen_0416 is the result of MIC and localpath is the result of GBS KS-File is a kickstart file that we already downloaded 21 21

Putting Image into RD-PQ $ sudo lthor tizen-2.3-mobile_20150206.1_mobile_boot.tar.gz tizen_0416.tar.gz 22 22