Implementation of Embedded OS

Slides:



Advertisements
Similar presentations
Lab 4 Department of Computer Science and Information Engineering National Taiwan University Lab4 - Bootloader 2014/10/14/ 13 1.
Advertisements

Lesson 4-Installing Network Operating Systems. Overview Installing and configuring Novell NetWare 6.0. Installing and configuring Windows 2000 Server.
Overview Basic functions Features Installation: Windows host and Linux host.
Red Hat Installation. Installing Red Hat Linux is the process of copying operating system files from a CD, DVD, or USB flash drive to hard disk(s) on.
COMPUTER SYSTEM LABORATORY Lab8 - Debugging II. Lab 8 Experimental Goal Learn how to debug Linux in source-level by Domingo and diagnose target boards.
COMPUTER SYSTEM LABORATORY Lab4 - Bootloader. Lab 4 Experimental Goal Learn how to build U-Boot bootloader for PXA /10/8/ 142.
U-Boot Debug using CCSv5 In this session we will cover fundamentals necessary to use CCSv5 and a JTAG to debug a TI SDK-based U-Boot on an EVM platform.
Lab 3 Department of Computer Science and Information Engineering National Taiwan University Lab3 - Cross Tools 2014/10/7/ 20 1.
Go to & click on Install/Download Menu optionhttp://osddlinux.osdd.net/ Go to & click on Install/Download.
Hands-On Virtual Computing
Computer System Laboratory
Lab 11 Department of Computer Science and Information Engineering National Taiwan University Lab11 - Porting 2014/12/9/ 26 1.
Exercise #1: Exploring Open- Source Operating Systems with Virtual Machines J. H. Wang Mar. 9, 2010.
Linux in a Virtual Environment Nagarajan Prabakar School of Computing and Information Sciences Florida International University.
Installation Overview Lab#2 1Hanin Abdulrahman. Installing Ubuntu Linux is the process of copying operating system files from a CD, DVD, or USB flash.
Lab 10 Department of Computer Science and Information Engineering National Taiwan University Lab10 – Debugging II 2014/12/2 1 /16.
COMPUTER SYSTEM LABORATORY Lab6 - Root Filesystem.
7200 Samsung Confidential & Proprietary Information Copyright 2006, All Rights Reserved. 1/16 OfficeServ 7200 Enterprise IP Solutions Data Server S/W Upgrade.
Exercise #1: Exploring Open- Source Operating Systems with Virtual Machines J. H. Wang Sep. 25, 2015.
VirtualBox: How to create a Linux Virtual Machine.
Implementation of Embedded OS Lab3 Porting μC/OS-II.
Intro to Raspberry Pi A Southwest Florida Hackerspace Workshop Presented by: Russell Benzing & Eric Schiffli.
Lab 5 Department of Computer Science and Information Engineering National Taiwan University Lab5 – Bootloader + OS Kernel 2015/10/27/ 25 1.
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.
Hands-on Session 1 Boot Linux Connect to Linux via USB-to-UART and Putty Compile and run a simple program.
Implementation of Embedded OS
Lab 5 Department of Computer Science and Information Engineering National Taiwan University Lab5 - OS Kernel 2014/10/21/ 16 1.
Raspberry Pi Project Control Your Home Lights with a Raspberry Pi.
Course 03 Basic Concepts assist. eng. Jánó Rajmond, PhD
Embedded Software Design Week II Linux Intro Linux Kernel.
Raspberry PI 2 Installation & Demo App By Wayne Keadle.
TIZEN STUDIO INSTALLATION & ENVIRONMENT SETUP FOR DEVLAB
By Ganesan Alagu Ganesh Feb 26, 2008
Operating System Kernel Compilation
Exercise #1: Exploring Open-Source Operating Systems with Virtual Machines J. H. Wang Sep. 20, 2016.
Workshop on Raspberry Pi 3
Computer System Laboratory
bitcurator-access-webtools Quick Start Guide
Computer System Laboratory
RASPBERRY PI WORKSHOP.
Computer System Laboratory
Seamless Guest OS's and more!
Computer System Laboratory
By Ganesan Alagu Ganesh Feb 21, 2008
Implementation of Embedded OS
Data Server S/W Upgrade Samsung Electronics Co., Ltd.
Computer System Laboratory
Implementation of Embedded OS
Lecture 6 Uli Raich UCC semester 2017/2018
Computer System Laboratory
Exercise #1: Exploring Open-Source Operating Systems with Virtual Machines J. H. Wang Sep. 19, 2017.
Implementation of Embedded OS
Engineering Innovation Center
Create A Virtual Machine
مقدمة في الاردنيو د فضل الاكوع.
Operating System Kernel Compilation
Exercise #1: Exploring Open-Source Operating Systems with Virtual Machines J. H. Wang Sep. 21, 2018.
Different types of Linux installation
Intro to Micro Controllers
Software Setup & Validation
Implementation of Embedded OS
bitcurator-access-webtools Quick Start Guide
Computer System Laboratory
Workshop GPIO I2C SPI Panic1 woensdag 10 april 2019.
Computer System Laboratory
Beginning Raspberry Pi
Computer System Laboratory
Operating System Kernel Compilation
WINDOW 7 INSTALLATION Prepared By:- Mr. Pawan Kumar
Presentation transcript:

Implementation of Embedded OS Lab1 - Build Environment and Uboot / 18

Experimental Goal Set up the build environment. Build U-Boot for RPi2. Boot RPi2 via U-Boot. / 18

Environment Host System Build System Target System Windows Ubuntu 15.10 (or above) 64-bit Target System Raspberry Pi 2 / 18

Software Required Host System Build System PL2303 Driver PuTTY Build System VirtualBox Ubuntu U-Boot source code Prebuilt Raspberry Pi firmware Raspberry Pi bootloader configuration (config.txt) GCC cross-compiler targeting arm-linux-gnueabihf GParted You may download them from IEOS Course Software. / 18

Hardware Checklist Raspberry Pi 2 Power supply Micro SD card and card reader USB-TTL cable / 18

Set up the Build System Install VirtualBox. Create a virtual machine. Disk space: 30GB RAM: 2GB Network: NAT Install Ubuntu in the VM. / 18

Set up the ARM Cross-Compiler In the build system, install all required packages for later compilation. % sudo apt-get update % sudo apt-get install build-essential lzop u-boot-tools bc curl libncurses5-dev % sudo apt-get install lib32z1 lib32ncurses5 lib32bz2-1.0 lib32stdc++6 # ignore lib32bz2-1.0 in Ubuntu 16.04 Install the GCC cross-compiler toolchain. % sudo apt-get install gcc-arm-linux-gnueabihf Set environment variables. % export ARCH=arm % export CROSS_COMPILE=arm-linux-gnueabihf- / 18

Check the Cross-Compiler The target is arm-linux-gnueabihf. Version above 4.9.x is required. (Ubuntu 15.10 has a 5.2.1 GCC.) Execute the following command to check. % arm-linux-gnueabihf-gcc -v / 18

Build U-Boot Download and extract the U-Boot source code. Configure and start compiling. % cd u-boot-2016.09 % make clean % make rpi_2_defconfig % make # You may append –j<n> to accelerate. For example, you execute “make –j4” if you have 4 CPUs. After the process finishes, you get the U-Boot image named u-boot.bin. / 18

Access the SD Card Plug the SD card into the build system and find out the device name. E.g. /dev/sdc. Ensure the device name in your case. We will later erase all data on the device. If your build system is a VM, click the following button to capture the SD card. / 18

Format the SD card (1) Install and launch GParted. % sudo apt-get install gparted % sudo gparted Unmount and than delete the original partitions. / 18

Format the SD card (2) Create two partitions. 1st partition: filesystem = fat32, size = 64MiB, label = boot 2nd partition: filesystem = ext4, size = all remained space, label = root / 18

Format the SD card (3) Apply all operations. / 18

Set up the Boot Partition (1) Download and extract the Raspberry Pi firmware. Copy the U-Boot image to the boot directory and rename it. % cp u-boot-2016.09/u-boot.bin firmware-1.20160315/boot/uboot.img Download config.txt to the boot directory. Replace the line “#kernel=” with “kernel=uboot.img”. The value of the “kernel” variable should match the filename of the U-Boot image (i.e. uboot.img without quotes). / 18

Set up the Boot Partition (2) Copy all files in the boot directory to the 1st partition of the SD card. Now your SD card is bootable. Eject the SD card and plug it to RPi. / 18

Plug the USB-TTL Cable There are several modules of USB-TTL. The one we use is PL2303. In the host system, download and install the PL2303 driver. Plug the USB-TTL cable between RPi and the host system. USB-TTL GND (black)  GPIO GND (pin6) USB-TTL RX (white)  GPIO TXD0 (pin8) USB-TTL TX (green)  GPIO RXD0 (pin10) / 18

Connect to Raspberry Pi If you have installed the PL2303 driver, you will find a new COM port in the device manager after you plug the USB-TTL cable. Launch PuTTY. Enter the following options and click open. There is nothing output yet since the RPi is not on. Connection type = Serial Serial port = the COM port Speed = 115200 / 18

Boot Successfully Plug the RPi power supply to turn on RPi. You will see the message in PuTTY. Hit any key to stop autoboot in 2 seconds, and you will drop into the U-Boot command line. / 18