Linux Kernel Programming (LKP). LKP New sub-course New sub-course We will learn together We will learn together Evaluation of this part of course will.

Slides:



Advertisements
Similar presentations
Linux Boot Loaders. ♦ Overview A boot loader is a small program that exists in the system and loads the operating system into the system’s memory at system.
Advertisements

Genesis: from raw hardware to processes System booting sequence: how does a machine come into life.
Chapter 9: Understanding System Initialization The Complete Guide To Linux System Administration.
Booting and Shutting Down the UNIX Operating System Arcadio A. Sincero Jr. 6/6/2001 CMSC 691X, Section 6080.
Linux+ Guide to Linux Certification Chapter Nine System Initialization.
Linux Booting Procedure
Linux can be generally divided into four major components: 1. KERNEL – OS, ultimate boss The kernel is the core program that runs programs and manages.
Booting the Linux Kernel Dr. Michael L. Collard 1.
Linux Installation LINUX INSTALLATION. Download LINUX Linux Installation To install Red Hat, you will need to download the ISO images (CD Images) of the.
CIS238/DL1 Chapter 15 Rebuilding the Linux Kernel Preparing the Source Code Locating the Source Code Installing the Source Code Read the Documentation.
Module 8 - Process Management. 1.Linux boot loader 2.Linux boot process 3.Linux processes 4.Linux services 5.Linux top 6.Remember proc ? 7.Linux Device.
Lab 4 Department of Computer Science and Information Engineering National Taiwan University Lab4 - Bootloader 2014/10/14/ 13 1.
Linux Boot Up Process Bootstrapping –Bootstrapping is the standard term for “ starting up a computer”. During bootstrapping, the kernel is loaded into.
1 Web Server Administration Chapter 3 Installing the Server.
System initialisation
The Boot process. Booting on a PC POST –Hardware test – may not run CPU ie fan not working CPU start-up –Jumps to fixed location to execute BIOS code.
Lesson 22 – Introduction to Linux Systems Administration.
Lesson 4-Installing Network Operating Systems. Overview Installing and configuring Novell NetWare 6.0. Installing and configuring Windows 2000 Server.
SUSE Linux Enterprise Server Administration (Course 3037) Chapter 1 Introduction to Managing the SUSE Linux Enterprise Server.
Linux Install. Resources Guide to Linux Installation and Administration, Nicholas Wells, Course Technology, 2000.
Operating Systems Concepts 1. A Computer Model An operating system has to deal with the fact that a computer is made up of a CPU, random access memory.
Chapter 3.1:Operating Systems Concepts 1. A Computer Model An operating system has to deal with the fact that a computer is made up of a CPU, random access.
Operating Systems Operating System
Linux+ Guide to Linux Certification, Third Edition
CompTIA Linux+ Certification
Linux Booting Procedure
Guide to Linux Installation and Administration, 2e1 Chapter 3 Installing Linux.
CIS 191 – Lesson 2 System Administration. CIS 191 – Lesson 2 System Architecture Component Architecture –The OS provides the simple components from which.
Computer Hardware PC Operating Systems. What is an operating system? An OS is the interface between the user and the computer hardware It provides the.
From UEFI Shell to Linux - UEFI Linux BootLoader Zhang Rui Software Engineer Sep 28 th 2011.
Guide to Linux Installation and Administration, 2e1 Chapter 2 Planning Your System.
1 What is a Kernel The kernel of any operating system is the core of all the system’s software. The only thing more fundamental than the kernel is the.
Guide to Linux Installation and Administration, 2e1 Chapter 10 Managing System Resources.
Linux Administration. Pre-Install Different distributions –Redhat, Caldera, mandrake, SuSE, FreeBSD Redhat Server Install –Check HCL –Significant issues.
Troubleshooting and Performance
Guide to Linux Installation and Administration1 Chapter 4 Running a Linux System.
Virtual Memory Review Goal: give illusion of a large memory Allow many processes to share single memory Strategy Break physical memory up into blocks (pages)
CIS Lesson 5 Lesson 5 New Skills Boot time GRUB edits (review) Changing BIOS boot order on a VM (review) Mounting CD ISO and floppy Image files on.
CSC414 “Introduction to UNIX/ Linux” Lecture 2. Schedule 1. Introduction to Unix/ Linux 2. Kernel Structure and Device Drivers. 3. System and Storage.
Hp education services education.hp.com hp education services education.hp.com 1 HP World/Interex 2002 Linux Kernel Configuration and Patching Chris Cooper.
Genesis: From Raw Hardware to Processes Andy Wang Operating Systems COP 4610 / CGS 5765.
Copyright © Genetic Computer School 2008 Computer Systems Architecture SA 8- 0 Lesson 8 Secondary Management.
Lab 5 Department of Computer Science and Information Engineering National Taiwan University Lab5 – Bootloader + OS Kernel 2015/10/27/ 25 1.
IT Essentials 1 v3 Module 4 JEOPARDY IT Essentials 1 RouterModesWANEncapsulationWANServicesRouterBasicsRouterCommands RouterModesWANEncapsulationWANServicesRouterBasicsRouterCommands.
Implementation of Embedded OS
System initialization Unit objectives A.Outline steps necessary to boot a Linux system, configure LILO and GRUB boot loaders, and dual boot Linux with.
Kernel Modules – Introduction CSC/ECE 573, Sections 001 Fall, 2012.
Course 03 Basic Concepts assist. eng. Jánó Rajmond, PhD
1 Setup and Compile Linux Kernel Speaker: Yi-Ji Jheng Date:
Spring 2007 Vmware and Linux kernel COMS W4118 Columbia University.
Chap- 2 BOOTING & SHUTDOWN LINUX SYSTEM Created by: Asst. Prof. Ashish Shah, J.M.PATEL COLLEGE, GOREGOAN W 1.
1 Free Electrons. Kernel, drivers and embedded Linux development, consulting, training and support. http//free-electrons.com The GRUB bootloader Michael.
The GRUB bootloader Michael Opdenacker Thomas Petazzoni Free Electrons
Andrea Chierici Virtualization tutorial Catania 1-3 dicember 2010
Operating System & Application Software
Guide to Linux Installation and Administration, 2e
Structure of Unix OS.
TexPREP Summer Camp Computer Science
Braindumps
Operating System Module 1: Linux Installation
Booting Up 15-Nov-18 boot.ppt.
COP 4343 Unix System Administration
SUSE Linux Enterprise Desktop Administration
CS 6560 Operating System Design
Modern PC operating systems
CS 6560 Operating System Design Kernel Loadable Modules
Boot Process Mark Stanovich COP 5641 / CIS 4930.
OS Boot Sequence and File System
OS Boot Sequence and File System
Presentation transcript:

Linux Kernel Programming (LKP)

LKP New sub-course New sub-course We will learn together We will learn together Evaluation of this part of course will be based on VIVA VOCE at the end of the course So do make notes about what you learn

Groups Form 4 Groups Each student to copy files from Some may use Fedora 7 on VMware Some may run native Fedora 7 (not as VM) VIVA VOCE will be group-wise but questions will be directed at each student So don’t relax because you are in a group

LKP Why?? Customizing kernel for embedded devices –LK customization for Embedded … paper Customizing kernel for optimized performance –LK specialization for App Performance paper –PS3 Kernel patch to use Huge TLB pages Writing Device Drivers for new devices O/S Development itself ??

Boot Process BIOS selects boot device BIOS loads first sector (master boot record) from boot device MBR typically has a boot loader (GRUB or LILO). Grub gives user option to choose the kernels configured to boot /boot/grub/grub.conf

Boot Process … ‘man bootparam’ gives info on kernel boot parameters. Selected kernel is picked up from file system on disk and loaded into memory Usually /boot/vmlinuz- file –Compressed –Uncompressed file is vmlinux –Statically linked executable file containing the linux kernel ‘uname –r’ gives version of running kernel

Boot Process … Then GRUB places Initial RAM disk image into memory –Initrd-.img –Used by kernel to load drivers necessary to boot system –Particularly important if SCSI hard drives are present

System.map System.map- file Is a symbol table used by kernel Has symbol names and their addresses for kernel New System.map created for each kernel rebuild

Kernel Modules Kernel Modules Code which can be dynamically (as against statically) linked to the kernel Can be loaded even after bootup Can be unloaded from kernel when not required Typically device drivers and pseudo- device drivers like network drivers or file system are modules

Kernel modules … When kernel module is loaded: –Becomes a part of the linux kernel –Has same rights as kernel code (runs at kernel level) –Easy to crash kernel with bad device driver

Kernel modules … /lib/modules/ directory has modules of the kernel lsmod lists loaded modules modinfo gives details about a module lsmod followed by modinfo can be a very useful combo insmod, modprobe are other useful module commands

Misc commands ‘du.’ will give the disk usage of current directory in KB ‘free’ shows free physical memory ‘top’ gives this info and more – like task manager in Windows. ‘arch’ gives processor architecture ‘cat /proc/cpuinfo’ gives more details ‘dmesg | more’ shows boot messages.