Operating Systems - Lecture Notes

Total Page:16

File Type:pdf, Size:1020Kb

Operating Systems - Lecture Notes Operating Systems - Lecture Notes Attila Dr. Adamkó Created by XMLmind XSL-FO Converter. Operating Systems - Lecture Notes Attila Dr. Adamkó Publication date 2013 Copyright © 2013 Dr. Adamkó Attila Copyright 2013 Created by XMLmind XSL-FO Converter. Table of Contents I. Computer as a work tool ................................................................................................................. 2 1. Introduction ........................................................................................................................... 5 1. What is an Operating System ...................................................................................... 5 1.1. The alignment of the operation systems .......................................................... 6 1.2. Components of the operating system .............................................................. 6 2. Major Operating Systems and historical evolution ...................................................... 7 2.1. Disc Operating System (DOS) ........................................................................ 8 2.2. Windows ....................................................................................................... 10 2.2.1. The Windows 9x line ........................................................................ 10 2.2.2. The Windows NT family .................................................................. 11 2.2.3. Windows XP, Vista, 7 and 8 ............................................................. 11 2.3. UNIX and the GNU/Linux ............................................................................ 12 2.3.1. Standards, recommendations and variants ........................................ 12 2.3.2. GNU/Linux ....................................................................................... 13 2. Booting up ........................................................................................................................... 16 1. Pre-boot scenarios ...................................................................................................... 16 1.1. Preparing the boot from a drive ..................................................................... 17 1.1.1. The MBR .......................................................................................... 17 1.1.2. Partitions types ................................................................................. 19 2. The boot process ........................................................................................................ 21 2.1. Windows boot process .................................................................................. 22 2.1.1. Boot loaders ...................................................................................... 22 2.1.2. Kernel load ....................................................................................... 22 2.1.3. Session manager ............................................................................... 22 2.2. Linux boot process ........................................................................................ 23 2.2.1. Boot loaders ...................................................................................... 23 2.2.2. Kernel load ....................................................................................... 24 2.2.3. The init process ................................................................................. 25 2.2.4. Runlevels .......................................................................................... 26 3. File systems and files .......................................................................................................... 28 1. Basic terms ................................................................................................................ 28 1.1. File ................................................................................................................ 28 1.2. File system .................................................................................................... 29 1.3. Directory ....................................................................................................... 30 1.3.1. The folder metaphor ......................................................................... 31 1.4. Path ............................................................................................................... 31 1.5. Hidden files ................................................................................................... 32 1.6. Special files on Unix ..................................................................................... 33 1.7. Redirection .................................................................................................... 35 1.8. Pipes .............................................................................................................. 36 1.8.1. Pipes under DOS .............................................................................. 36 2. File systems under Windows ..................................................................................... 37 3. File systems under UNIX .......................................................................................... 37 4. The File System Hierarchy Standard (FHS) .............................................................. 37 4. Working with files .............................................................................................................. 44 1. Command in DOS (and in the Windows command line environment) ..................... 44 1.1. Directory handling ........................................................................................ 45 1.2. File handling ................................................................................................. 47 2. Linux commands ....................................................................................................... 48 2.1. General file handling commands ................................................................... 48 2.1.1. touch ................................................................................................. 48 2.1.2. cp ...................................................................................................... 49 2.1.3. mv ..................................................................................................... 49 2.1.4. rm ...................................................................................................... 49 2.1.5. find .................................................................................................... 50 2.2. Directory handling ........................................................................................ 51 iii Created by XMLmind XSL-FO Converter. Operating Systems - Lecture Notes 2.2.1. pwd ................................................................................................... 51 2.2.2. cd ...................................................................................................... 51 2.2.3. ls ....................................................................................................... 51 2.2.4. mkdir ................................................................................................ 52 2.2.5. rmdir ................................................................................................. 52 5. Common Filter programs .................................................................................................... 54 1. DOS ........................................................................................................................... 54 2. Linux ......................................................................................................................... 54 2.1. cat .................................................................................................................. 54 2.2. colrm ............................................................................................................. 55 2.3. cut .................................................................................................................. 55 2.4. grep ............................................................................................................... 56 2.4.1. Patterns for searching ....................................................................... 57 2.5. head ............................................................................................................... 58 2.6. paste .............................................................................................................. 58 2.7. rev ................................................................................................................. 59 2.8. sed ................................................................................................................. 59 2.9. sort ................................................................................................................ 60 2.10. uniq ............................................................................................................. 61 2.11. wc ................................................................................................................ 62 2.12. tail ............................................................................................................... 62 2.13. tr .................................................................................................................. 62 2.14. tee ...............................................................................................................
Recommended publications
  • Project Log 2 2 LPC2148 USB Bootloader
    Project Log 2 Project Title: USB MicroSD Card Reader EEE G512 Embedded System Design October 2018 Submitted by: Submitted to: Joy Parikh j 2016A3PS0136P Dr. Devesh Samaiya Rutwik Narendra Jain j 2015A3PS0726P 2 LPC2148 USB Bootloader The LPC2148 USB bootloader performs three steps: 1. The bootloader checks to see if a USB cable has been plugged in. If the LPC2148 detects the presence of a USB cable then it initiates a USB Mass Storage system. This will cause the target board to appear on any computer platform as a removable flash drive. The user can then seamlessly transfer files to the flash drive. In the background, the LPC2148 moves the user's files onto the SD card using the FAT16 file system. 2. The next thing the bootloader does is look for a firmware file (a file named FW.SFE). This file contains the desired operating firmware (in a binary file format) for the LPC2148 mi- croprocessor. If the bootloader finds this file on the FAT16 system then it programs the contents of this file to the flash memory of the LPC2148. In this way, the bootloader acts as a \programmer" for the LPC2148; and we can upgrade the firmware on the LPC2148 simply by loading a new file onto the micro SD card. 3. After performing the first two checks, the bootloader calls the main firmware. The main code should not even know that the bootloader was used and will run normally. 2.1 Details The USB device class used is MSCD (Mass Storage Class Device). The MSCD presents easy integration with PC's operating systems.
    [Show full text]
  • PC Magazine Fighting Spyware Viruses And
    01_577697 ffirs.qxd 12/7/04 11:49 PM Page i PC Magazine® Fighting Spyware, Viruses, and Malware Ed Tittel TEAM LinG - Live, Informative, Non-cost and Genuine ! 01_577697 ffirs.qxd 12/7/04 11:49 PM Page ii PC Magazine® Fighting Spyware, Viruses, and Malware Published by Wiley Publishing, Inc. 10475 Crosspoint Boulevard Indianapolis, IN 46256-5774 www.wiley.com Copyright © 2005 by Wiley Publishing Published simultaneously in Canada ISBN: 0-7645-7769-7 Manufactured in the United States of America 10 9 8 7 6 5 4 3 2 1 1B/RW/RS/QU/IN No part of this publication may be reproduced, stored in a retrieval system or transmitted in any form or by any means, electronic, mechanical, photocopying, recording, scanning or otherwise, except as permitted under Sections 107 or 108 of the 1976 United States Copyright Act, without either the prior written permission of the Publisher, or authorization through payment of the appropriate per-copy fee to the Copyright Clearance Center, 222 Rosewood Drive, Danvers, MA 01923, (978) 750-8400, fax (978) 646-8600. Requests to the Publisher for permission should be addressed to the Legal Department, Wiley Publishing, Inc., 10475 Crosspoint Blvd., Indianapolis, IN 46256, (317) 572-3447, fax (317) 572-4355, e-mail: [email protected]. Limit of Liability/Disclaimer of Warranty: The publisher and the author make no representations or warranties with respect to the accuracy or completeness of the contents of this work and specifically disclaim all warranties, including without limitation warranties of fitness for a particular purpose. No warranty may be created or extended by sales or promotional materials.
    [Show full text]
  • UG103.6: Bootloader Fundamentals
    UG103.6: Bootloader Fundamentals This document introduces bootloading for Silicon Labs network- ing devices. It describes the concepts of standalone and applica- KEY POINTS tion bootloaders and discusses their relative strengths and weak- • Introduces the Gecko Bootloader. nesses. In addition, it looks at design and implementation details • Summarizes the key features the for each method. Finally, it describes the bootloader file format. bootloaders support and the design decisions associated with selecting a Silicon Labs’ Fundamentals series covers topics that project managers, application de- bootloader. signers, and developers should understand before beginning to work on an embedded • Describes bootloader file formats. networking solution using Silicon Labs chips, networking stacks such as EmberZNet PRO or Silicon Labs Bluetooth®, and associated development tools. The documents can be used as a starting place for anyone needing an introduction to developing wire- less networking applications, or who is new to the Silicon Labs development environ- ment. silabs.com | Building a more connected world. Rev. 1.7 UG103.6: Bootloader Fundamentals Introduction 1. Introduction The bootloader is a program stored in reserved flash memory that can initialize a device, update firmware images, and possibly perform some integrity checks. Firmware image update occurs on demand, either by serial communication or over the air. Production-level pro- gramming is typically done during the product manufacturing process yet it is desirable to be able to reprogram the system after produc- tion is complete. More importantly, it is valuable to be able to update the device's firmware with new features and bug fixes after deploy- ment. The firmware image update capability makes that possible.
    [Show full text]
  • Operating System User's Mannal ~Zilog 03-0072-01 Revision a September 1978
    t_ .' Operating System User's Mannal ~Zilog 03-0072-01 Revision A September 1978 Copyright © 1978 by Zilog, Inc. All rights reserved. No part of this publication may be reproduced, stored in a retrieval system, or transmitted, in any form or by any means, electronic, mechanical, photocopying, recording, or otherwise, without the prior written permission of Zilog. Zilog assumes no responsibility for the use of any circuitry other than circuitry embodied in a Zilog product. No other circuit patent licenses are implied. zaO-RIO Operating System User's Manual September 1978 TABLE OF CONTENTS CHAPTER 1 - INTRODUCTION AND OVERVIEW • 1 1.1 INTRODUCTION •• 1 1.2 SYSTEM OVERVIEW 3 1.2.1 Hardware Configuration • • • • • • 3 1.2.2 File Systems • • • • • • • . • • 3 1.2.3 System Initialization •••.••• 6 1.2.4 Commands • • .• .•..••• 7 1.2.5 I/O • • • . • • • • • . • • • • • . 7 CHAPTER 2 - RIO EXECUTIVE 9 2.1 SYSTEM INITIALIZATION 9 2.2 FILE NAME CONVENTIONS · 10 2.3 MEMORY MANAGEMENT . • • . 12 2.3.1 MEMMGR • . 13 2.4 COMMAND STRING INTERPRETATION · 13 2.5 ERROR HANDLING • • . 15 2.6 PROGRAM EXECUTION OF COMMANDS · 15 CHAPTER 3 - 1/0 STRUCTURE • · 16 3.1 OVERVIEW . • · 16 3.2 I/O REQUESTS - SYSTEM CALLS · 17 3.3 THE 'ASSIGN' I/O REQUEST ••• • 19 - i - 3.4 STANDARD RIO I/O DEVICES • • • 21 3.4.1 ZDOS . • • • . 21 3.4.2 DFS . 21 3.4.3 NULL . • • • . 21 3.4.4 CON . • • • . • • • • • 22 3.4.5 PCON • 27 3.4.6 FLOPPY • • • • • • • • • • 27 3.4.7 DISK • • • • • • 27 CHAPTER 4 - PROGRAM INTERFACE • • 28 4.1 PROGRAM LOCATION • • • • • 28 4.2 PARAMETER STRING ADDRESS · 29 4.3 PROGRAM STACK SPACE • • • 29 4.4 PROGRAM TERMINATION - ERROR HANDLING ••.
    [Show full text]
  • IODF Explorer
    The Input/Output Definition File (IODF) is a critical Control Point in the management of the IBM z/Series Platform. IODF Explorer Release 4.0 USER GUIDE Contact us for additional information: NewEra Software Technical Support 800-421-5035 [email protected] www.newera.com Rev: 2009-04-24 IODF Explorer 4.0 ¾ Copyright, Trademark and Legal Notices Copyrights This Getting Started Guide and the related Software Product(s) are protected under a Copyright dated 2009 by NewEra Software, Inc. All rights are reserved. License Agreement This Getting Started Guide describes the installation and operation of Image FOCUS, its environment and applications. It is made available only under the terms of a license agreement between the licensee and NewEra Software Inc. No part of this Guide or the related Software Product(s) may be reproduced or transmitted in any form or by any means, electronic or mechanical, including photocopying and recording, for any purpose, without the express written permission of NewEra Software, Inc. Trademarks and Copyrights of Others The following products and/or registered trademarks of International Business Machines Corporation are referenced in this document: MVS, VM, RACF, z/OS, SYSPLEX, JES, VTAM, TSO, ISPF, ICKDSF, DFSMSdss, DF/DSS, and others. 2 NewEra Software, Inc. ‐ Image Control Environment (ICE) Applications IODF Explorer 4.0 ¾ Technical Support Information NewEra Software is dedicated to providing the highest level of technical Around-the-clock- support support to meet our customers’ growing needs. In order to meet these needs, NewEra provides around‐the‐clock technical support, 7 days a week, 24 hours a day.
    [Show full text]
  • Hardware Configuration Definition User's Guide
    z/OS Version 2 Release 3 Hardware Configuration Definition User's Guide IBM SC34-2669-30 Note Before using this information and the product it supports, read the information in “Notices” on page 443. This edition applies to Version 2 Release 3 of z/OS (5650-ZOS) and to all subsequent releases and modifications until otherwise indicated in new editions. Last updated: 2019-02-16 © Copyright International Business Machines Corporation 1994, 2018. US Government Users Restricted Rights – Use, duplication or disclosure restricted by GSA ADP Schedule Contract with IBM Corp. Contents List of Figures..................................................................................................... xiii List of Tables.....................................................................................................xxiii About this document.......................................................................................... xxv Who this document is for..........................................................................................................................xxv Related information.................................................................................................................................. xxv How to use this document.......................................................................................................................xxvi How this document is organized............................................................................................................. xxvi How to read syntax diagrams................................................................................................................
    [Show full text]
  • USART Protocol Used in the STM32 Bootloader
    AN3155 Application note USART protocol used in the STM32 bootloader Introduction This application note describes the USART protocol used in the STM32 microcontroller bootloader, providing details on each supported command. This document applies to STM32 products embedding any bootloader version, as specified in application note AN2606 STM32 system memory boot mode, available on www.st.com. These products are listed in Table 1, and are referred to as STM32 throughout the document. For more information about the USART hardware resources and requirements for your device bootloader, refer to the already mentioned AN2606. Table 1. Applicable products Type Product series STM32F0 Series STM32F1 Series STM32F2 Series STM32F3 Series STM32F4 Series STM32F7 Series STM32G0 Series Microcontrollers STM32G4 Series STM32H7 Series STM32L0 Series STM32L1 Series STM32L4 Series STM32L5 Series STM32WB Series STM32WL Series June 2021 AN3155 Rev 14 1/48 www.st.com 1 Contents AN3155 Contents 1 USART bootloader code sequence . 5 2 Choosing the USARTx baud rate . 6 2.1 Minimum baud rate . 6 2.2 Maximum baud rate . 6 3 Bootloader command set . 7 3.1 Get command . 8 3.2 Get Version & Read Protection Status command . 10 3.3 Get ID command . 12 3.4 Read Memory command . 13 3.5 Go command . 16 3.6 Write Memory command . 18 3.7 Erase Memory command . 21 3.8 Extended Erase Memory command . 24 3.9 Write Protect command . 27 3.10 Write Unprotect command . 30 3.11 Readout Protect command . 31 3.12 Readout Unprotect command . 33 3.13 Get Checksum command . 35 3.14 Special command . 39 3.15 Extended Special command .
    [Show full text]
  • USB Mass Storage Device (MSD) Bootloader
    Freescale Semiconductor Document Number: AN4379 Application Note Rev. 0, October 2011 Freescale USB Mass Storage Device Bootloader by: Derek Snell Freescale Contents 1 Introduction 1 Introduction................................................................1 Freescale offers a broad selection of microcontrollers that 2 Functional description...............................................2 feature universal serial bus (USB) access. A product with a 3 Using the bootloader.................................................9 USB port allows very easy field updates of the firmware. This application note describes a mass storage device (MSD) USB 4 Porting USB MSD device bootloader to bootloader that has been written to work with several other platforms.........................................................13 Freescale USB families. A device with this bootloader is 5 Developing new applications..................................15 connected to a host computer, and the bootloader enumerates as a new drive. The new firmware is copied onto this drive, 6 Conclusion...............................................................20 and the device reprograms itself. Freescale does offer other bootloaders. For example, application note AN3561, "USB Bootloader for the MC9S08JM60," describes a USB bootloader that was written for the Flexis JM family. The MSD bootloader described in this application note is offered as another option, and has these advantages: • It does not require a driver to be installed on the host. • It does not require an application to run on the host. • Any user can use it with a little training. The only action required is to copy a file onto a drive. • It can be used with many different host operating systems since it requires no host software or driver This bootloader was specifically written for several families of Freescale microcontrollers that share similar USB peripherals. These families include, but are not limited to, the following: • Flexis JM family MCF51JM © 2011 Freescale Semiconductor, Inc.
    [Show full text]
  • Bootloader and Startup Feature Overview and Configuratoin Guide
    TechnicalTTechnicalechnical GuideGuidGuidee Bootloader and Startup Feature Overview and Configuration Guide The AlliedWare Plus™ Bootloader Every switch has a startup process. The end result of the startup is that the unit is running a specific version of the operating system software, with the features configured according to a specific startup configuration file. The startup process goes through two main phases: First, the switch boots up off a dedicated bootloader software image, which initializes core functionality of the unit. Then, the bootloader launches the main operating software image, and passes control over to this operating system. The bootloader is the executable code responsible for setting up the system and loading the operating system software. The bootloader is the software that runs the unit when it first powers up, performing basic initialization and executing the product software release. As part of the startup process of the switch, the bootloader allows you various options before running the product operating system software. C613-22004-00 x REV A alliedtelesis.com Products and software version that apply to this guide This guide applies to all AlliedWare Plus products, running version 5.4.4 or later. However, not all features in this guide are supported on all products. To see whether a product supports a particular feature or command, see the following documents: The product’s Datasheet The AlliedWare Plus Datasheet The product’s Command Reference These documents are available from the above links on our website at alliedtelesis.com. Feature support may change in later versions. For the latest information, see the above documents. Content The AlliedWare Plus™ Bootloader ....................................................................................
    [Show full text]
  • Windows NT Network Management: Reducing Total Cost of Ownership - 9 - Performance Monitoring
    Windows NT ...: Reducing Total Cost of Ownership - Chapter 9 - Performance Monitorin Page 1 of 13 [Figures are not included in this sample chapter] Windows NT Network Management: Reducing Total Cost of Ownership - 9 - Performance Monitoring AN OLD ADAGE SAYS, "IF YOU can’t measure it, you can’t manage it." Even if you can measure something, how can you tell if your changes are making a difference if you don’t have baseline information? It’s important to monitor a server’s or work- station’s performance to maximize your investment in these tools. If a user complains that her computer is too slow, you often need more information to fix the problem. For example, if the problem is loading Web pages on a computer using an analog modem, the modem is probably limiting the system’s performance. However, if the computer is an older model, certain operations may wait for the CPU to finish processing. In this case, a complete system upgrade may be the best solution. The usefulness of performance monitoring goes far beyond handling user expectations. A network and systems administrator can use information obtained by analyzing the operations of existing hardware, software, and networking devices to predict the timing of upgrades, justify the cost of replacing and upgrading devices, and assist in troubleshooting. Performance monitoring ultimately reduces TCO and is a vital part of managing any IT environment. Performance monitoring helps answer important questions about your current environment. For example, you may want to know which activity specifically uses the most resources in your environment. If you determine that it is loading Web pages, then upgrading the RAM or the CPU speed of client machines may not help much.
    [Show full text]
  • Flash Bootloader
    Flash Bootloader Product Information Flash Bootloader Table of Contents 1 Flash Bootloader Overview ...................................................................................................................................................... 4 1.1 Overview of Advantages .......................................................................................................................................................... 5 1.2 Application Areas ...................................................................................................................................................................... 5 1.3 Flash Bootloader System Architecture ................................................................................................................................... 5 1.4 Functions.................................................................................................................................................................................... 6 1.5 Configuration ............................................................................................................................................................................ 6 1.6 Scope of Delivery....................................................................................................................................................................... 7 1.7 Availability ................................................................................................................................................................................
    [Show full text]
  • MCU Bootloader V2.5.0 Reference Manual
    MCU Bootloader v2.5.0 Reference Manual Document Number: MCUBOOTRM Rev. 1, 05/2018 MCU Bootloader v2.5.0 Reference Manual, Rev. 1, 05/2018 2 NXP Semiconductors Contents Section number Title Page Chapter 1 Introduction 1.1 Introduction.....................................................................................................................................................................9 1.2 Terminology....................................................................................................................................................................9 1.3 Block diagram.................................................................................................................................................................10 1.4 Features supported.......................................................................................................................................................... 10 1.5 Components supported....................................................................................................................................................11 Chapter 2 Functional description 2.1 Introduction.....................................................................................................................................................................13 2.2 Memory map...................................................................................................................................................................13 2.3 The MCU Bootloader Configuration Area (BCA)........................................................................................................
    [Show full text]