12 1 Embedded Software Lab. OS 실습 Embedded Software Lab. 박대준, 박은수 Lecture 3. Kernel fusing, printk.

Slides:



Advertisements
Similar presentations
Introduction to the Omega Server CSE Overview Intro to Omega Basic Unix Command Files Directories Printing C and C++ compilers GNU Debugger.
Advertisements

Exploring the UNIX File System and File Security
1 CSE 451 Section Autumn 2004 Alex Moshchuk Office hours: Tue 1-2, Thu 4:30-5:30 Allen 218 (or lab)
Project #2, Linux Kernel Modifications CS-502 Fall Programming Project #2 Linux Kernel Hacking CS-502 Operating Systems Fall 2006.
Software installation Chapter 7. Software installation Numerous software options Usually free Open source Several sources Installation CD Websites sourceforge.net.
Lab. 1 Run a demo program. Lab. Goal To be familiar with PPRK, pcm7230 and the cross compiler. To understand how to run a program to control the PPRK.
Embedded Software SKKU 18 1 Tizen Project Example: Remote Key Framework.
Embedded Programming and Robotics Lesson 19 Raspberry Pi Programming in C 1.
Computer System Laboratory
CSE 451: Operating Systems Section 2 Interrupts, Syscalls, Virtual Machines, and Project 1.
Linux-MVME Targets Using Motorola Board Support
Embedded Programming and Robotics Lesson 17 The OpenCV (Computer Vision) Library The OpenCV Library1.
Operating Systems Lab. (#2) University of Tehran – ECE Dept. Fall 2005 Reza Shokri
Lab 3 Department of Computer Science and Information Engineering National Taiwan University Lab3 - Cross Tools 2014/10/7/ 20 1.
Setting up the OpenHIM. Components Core - Mediators – e.g. OpenEMPI adapter
1 Embedded Linux porting Speaker: Yi-Ji Jheng Date:
Kernel Development using Virtualization Installing VMWare and using a virtual machine to build and test a Linux Kernel.
Embedded Linux porting Kernel
Lab 11 Department of Computer Science and Information Engineering National Taiwan University Lab11 - Porting 2014/12/9/ 26 1.
Project 2. “Linux Fundamental” procfs By Dong Jae Shin.
ABAQUS Installation on LINUX Platform D. Hanumanthappa, A. Jérusalem May 5th, 2010.
Rebis 2.6 Kernel QTE-ARM TouchScreen. 2  vi /root/work/env/qte_arm_env_26  cat /root/work/env/qte_arm_env_26  export QTDIR=/root/work/qt/qte_arm_26.
Android x86 Build Environments Update 1.Update System $sudo apt-get install git-core gnupg flex bison gperf build-essential \ zip curl zlib1g-dev libc6-dev.
09/21/081 Ho Chi Minh city University of Technology Linux kernel R.M. Introduction of building Linux kernel from source.
Git Michael Backherms. What is Git? Free Software Development Tool o Speedy tool for distributed revision control and source code management Designed.
COMPUTER SYSTEM LABORATORY Lab6 - Root Filesystem.
Embedded Programming and Robotics
House Keeping Section 1 is due on Thursday BEFORE class 18 labs 11 quizzes Log into LabSim I want to verify you are in the Spring 15 CBIS 4225 Sys Admin.
Cole David Ronnie Julio Sam Littlefield. Let’s Begin  Globus Toolkit runs on Unix platform only  Install Ubuntu  download all updates for Ubuntu.
Department of Computer Engineering Dongguk University Prof. Jin-Woo Jung Practice hour : 2008/11/14 8. Qt / Embedded.
1 © 2001 John Urrutia. All rights reserved. Chapter 4 The LINUX Filesystem.
Department of Computer Engineering Dongguk University Prof. Jin-Woo Jung T.A. Han-Mu Park
National Taiwan University OS Project 0 & 1 Advisor: Dr. Chih-Wen Hsueh Student: Tang-Hsun Tu 台灣大學 網媒所 / 資工所 Wireless Networking and Embedded Systems Laboratory.
Building Your Own Android Systems from Source Adam C. Champion CSE 5236: Mobile App Development 1.
RT-LAB Electrical Applications 1 Opal-RT Technologies Use of the “Store Embedded” mode Solution RT-LAB for PC-104.
OS Project 0 February 25, Outline  Linux Installation  Linux Kernel Compilation  System Call Development  Kernel Modules / 452.
SQOOP INSTALLATION GUIDE Lecturer : Prof. Kyungbaek Kim Presenter : Zubair Amjad.
LOGO Linux Installation. Linux Distribution Including shells, libraries, tools, compiler, servers, applications. Redhat, Fedora, Mandrake, SuSE, Debian,
SPARCS 10 Rohjoon Myung 1. 코드를 다운로드 한다.( 보통 압축파일 ) 2. 압축을 푼다. 3. Configuratoin 을 한다. 4. Compile 을 한다. 5. 설치를 한다.
Nachos Overview and Project 1. Nachos Introduction Official website
Linux Operation System Computer Operation Manual.
The Kernel At a high level, the kernel in an operating system serves as the bridge between applications and the actual data processing of the hardware.
Lab 8 Department of Computer Science and Information Engineering National Taiwan University Lab8 - Root Filesystem 2015/11/10/ 22 1.
Lab 9 Department of Computer Science and Information Engineering National Taiwan University Lab9 - Debugging I 2014/11/4/ 28 1.
Installing CUDA, PyCUDA on Ubuntu
Implementation of Embedded OS
Lab 5 Department of Computer Science and Information Engineering National Taiwan University Lab5 - OS Kernel 2014/10/21/ 16 1.
Embedded Software Design Week II Linux Intro Linux Kernel.
Company Logo Kernel Debugging 발표자 : 장명우.
NAM S.B MDLAB. Electronic Engineering, KNU 1 Beaglebone Black System.
Spring 2007 Vmware and Linux kernel COMS W4118 Columbia University.
CSE 451 Section Autumn 2004 Alex Moshchuk Office hours: Tue 2-3, Thu 4:30-5:30 Allen 216 (or lab)
CSE 451 Section #3 Project 0 Recap Project 1 Overview
EE516: Embedded Software Project 1
Copy from Windows to Ubuntu
Implementation of Embedded OS
Computer System Laboratory
Embedded Software Development with Python and the Raspberry Pi
Install external command line softwares
CSE 451 Section 2: Processes, the shell, and system calls
UNIT-V EMBEDDED LINUX.
linux and related thing
Implementation of Embedded OS
Lab 1 introduction, debrief
Linux-MVME Targets Using Motorola Board Support
Unix : Introduction and Commands
COP 4343 Unix System Administration
Computer System Laboratory
Computer System Laboratory
Linux Operation System
Presentation transcript:

12 1 Embedded Software Lab. OS 실습 Embedded Software Lab. 박대준, 박은수 Lecture 3. Kernel fusing, printk

12 2 Embedded Software Lab. Cross Compiler 설치 & 코드 다운로드 Cross Compiler 설치 : $ sudo apt-get install gcc-arm-linux-gnueabihf 코드 저장 위치 설정 : $ cd $HOME $ mkdir work $ cd work 소스 코드 다운로드 : $ git clone --depth 1 -b odroid-3.8.y

12 3 Embedded Software Lab. compiling_a_Kernelhttp://odroid.us/mediawiki/index.php?title=Step-by-step_Cross- compiling_a_Kernel 참고 $ sudo apt-get install libncurses5-dev Toolchain  환경변수 설정  빌드 Cross-compile 설정

12 4 Embedded Software Lab. 커널 컴파일 $ cd linux-odroid-3.8.y/ $ export ARCH=arm $ export CROSS_COMPILE=arm-linux-gnue abihf- $ make odroidu_defconfig $ make zImage –j8 $ make modules

12 5 Embedded Software Lab. mkdir../rfs export INSTALL_MOD_PATH=$PWD/../rfs make modules_install cd../rfs # remove symlinks that point to files we do not need in root file system find. -name source | xargs rm find. -name build | xargs rm # Compress sudo tar -cvzf../modules.tgz. cd../ Module

12 6 Embedded Software Lab. Copy source_tree/arch/arm/boot/zImage to odroidu3:/boot/ zImage 설치

12 7 Embedded Software Lab. tar -xvzf modules.tgz rm modules.tgz sync reboot Module 설치

12 8 Embedded Software Lab. The kernel print function behaves almost identically to the C library printf() function callable from just about anywhere in the kernel at any time unusable before a certain point in the kernel boot process –early_printk() printk()

12 9 Embedded Software Lab. printk(" This is a warning!\n"); printk(" This is a debug notice!\n"); printk(" did not specify a loglevel!\n"); printk(KERN_WARNING "This is a warning!\n"); printk(KERN_DEBUG "This is a debug notice!\n"); printk("I did not specify a loglevel!\n"); printk-Loglevels

12 10 Embedded Software Lab. H/W