1 Setup and Compile Linux Kernel Speaker: Yi-Ji Jheng Date: 2007.10.31.

Slides:



Advertisements
Similar presentations
Booting the TS-7300 boards VHDL and C. Overview After looking at the general approach to booting machines (generally PCs) we will now look at the TS-7300.
Advertisements

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.
Booting and Shuting Down WeeSan Lee. Roadmap Bootstrapping Boot Loaders Startup/Init Scripts Reboot & Shutdown Q&A.
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.
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.
Linux+ Guide to Linux Certification, Second Edition
CIS238/DL1 Chapter 15 Rebuilding the Linux Kernel Preparing the Source Code Locating the Source Code Installing the Source Code Read the Documentation.
Booting And Shutting Down. Bootstrapping  Bootstrapping is standard term for “starting up a computer”  During bootstrapping the kernel is loaded into.
Linux+ Guide to Linux Certification, Second Edition Chapter 3 Linux Installation and Usage.
Linux Intro Linux, the do it yourself OS Linux, successor to MINIX Linux, Unix for the masses (PC users) History:
Unix kernel Kernel refers to the core part of an operating system Historically, UNIX kernels are monolithic Newer versions of UNIX allow part of the kernel.
S.Ha.R.K. Workshop28/02/05 S.Ha.R.K. Installation HowTo Tullio Facchinetti University of Pavia - Italy.
1 Web Server Administration Chapter 3 Installing the Server.
System initialisation
Lesson 4-Installing Network Operating Systems. Overview Installing and configuring Novell NetWare 6.0. Installing and configuring Windows 2000 Server.
Operating Systems Lab. (#2) University of Tehran – ECE Dept. Fall 2005 Reza Shokri
Linux+ Guide to Linux Certification, Third Edition
CompTIA Linux+ Certification
Linux Booting Procedure
Computer Maintenance Unit Subtitle: Basic Input/Output System (BIOS) Excerpted from 1 Copyright © Texas Education Agency, All.
1 Embedded Linux porting Speaker: Yi-Ji Jheng Date:
Modifying Network Packet Buffering in Network Layer CS518 Final Presentation and Instruction Guide Li Zhang.
Embedded Linux porting Kernel
LOGO Linux Installation. Linux Distribution Including shells, libraries, tools, compiler, servers, applications. Redhat, Fedora, Mandrake, SuSE, Debian,
UNIX Startup and Shutdown CSCI N321 – System and Network Administration Copyright © 2000, 2010 by Scott Orr and the Trustees of Indiana University.
Beagle Board Fast Boot Hui Chen Keji Ren Dec 10 th, 2009 EE382N-4 Project.
1 Introduce Linux Speaker: Yi-Ji Jheng Date:
PC in New Perspective. PC TeleVision Music System Fax Machine Answering Machine Computer.
Guide to Linux Installation and Administration, 2e1 Chapter 2 Planning Your System.
14 Step-by-Step Instructions for an Upgrade Installation n Prepare for the installation Verify that all devices and applications are Windows 2000 compatible.
Linux Administration. Pre-Install Different distributions –Redhat, Caldera, mandrake, SuSE, FreeBSD Redhat Server Install –Check HCL –Significant issues.
Guide to Linux Installation and Administration1 Chapter 4 Running a Linux System.
Manage Directories and Files in Linux. 2 Objectives Understand the Filesystem Hierarchy Standard (FHS) Identify File Types in the Linux System Change.
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.
PacNOG 6: Nadi, Fiji Terminal and Console Access Hervey Allen Network Startup Resource Center.
Linux Startup Process Presenter: Dipu Gupta.
OPERATING SYSTEMS BY LANDON, KYLE, AND ETHAN. WHAT IS THEIR PURPOSE? (1) manage the computer's resources, such as the central processing unit (2) establish.
PacNOG 7: Pango Pango, American Samoa Terminal and Console Access Hervey Allen Network Startup Resource Center.
Terminal and Console Access Unix/IP Preparation Course July 19, 2009 Eugene, Oregon, USA
LOGO Linux Installation. Linux Distribution Including shells, libraries, tools, compiler, servers, applications. Redhat, Fedora, Mandrake, SuSE, Debian,
UNIX Startup and Shutdown CSCI N321 – System and Network Administration Copyright © 2000, 2009 by Scott Orr and the Trustees of Indiana University.
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.
Linux Operation System Computer Operation Manual.
Computer Maintenance I
Implementation of Embedded OS
Spring 2007 Vmware and Linux kernel COMS W4118 Columbia University.
Linux Introduction Linux was developed in the early 1990’s by Linus Torvald computer science student at the University of Helsinki Linux is distributed.
Rebuilding Linux Kernel Dedicated to penguin lovers everywhere 26 September 20161Rebuilding kernel by Visakh M R.
The GRUB bootloader Michael Opdenacker Thomas Petazzoni Free Electrons
Operating System Kernel Compilation
Chapter 3 Installing Red Hat Linux
By Ganesan Alagu Ganesh Feb 21, 2008
UBUNTU INSTALLATION
Chapter 4 – Introduction to Operating System Concepts
Drivers and the kernel UNIX system has three layers: Kernel
linux and related thing
Structure of Unix OS.
Operating System Kernel Compilation
Operating System Module 1: Linux Installation
Build A New Kernel and Add New System Calls in A Linux OS
COP 4343 Unix System Administration
SUSE Linux Enterprise Desktop Administration
Linux Operation System
OS Boot Sequence and File System
Operating System Kernel Compilation
OS Boot Sequence and File System
Presentation transcript:

1 Setup and Compile Linux Kernel Speaker: Yi-Ji Jheng Date:

Outline  Understand Linux Kernel  Setup and Compile Linux Kernel  Setup and Compile micro-Linux Kernel 2

UNDERSTAND LINUX KERNEL 3

Where is Kernel ? 4 Hardware Kernel Shell Hardware Kernel Shell, KDE, AP. User

What is Kernel ?  Kernel (widely) Code  Used by application  Control hardware Hardware driver  Modularization of driver Dynamic Static 5

Role of Kernel when boot (1/2)  1. Boot Turn on PC  2. Read BIOS Know boot device of sequence  3. Read MBR (Master Boot Record) on H.D. If the boot device is H.D. that we set 6

Role of Kernel when boot (2/2)  4. Execute the Boot Loader We use GRUB that is a kind of Boot Loader  Load Kernel in main memory  5. Kernel work Decompress itself Know File System * Know File System Mount “/” and load modules Run  Detect and drive hardware  6. Run first program - init 7

Why need to make kernel ?  Stable Make system match your hardware  New hardware support  Other Embedded system 8

Get Linux Kernel   交大資科: ftp://linux.cis.nctu.edu.tw/kernel/ ftp://linux.cis.nctu.edu.tw/kernel/  義守大學: 9

SETUP AND COMPILE LINUX KERNEL 10

Setup (1/2)  #tar zxvf linux tar.gz  #cd./linux  #make mrproper Clean all of old *.o  #cp /boot/config /.config Use default (Host Linux) setup to modify 11

Setup (2/2)  #make menuconfig A text mode to select modules that we want Press “Y”, means to include in Kernel Press “M”, means to be modules Press “N”, means not to be modules and don’t include in Kernel 12

Modify SCSI setup  SCSI support -->  SCSI disk support -->  SCSI low-level drivers BusLogic SCSI support --->  Save and quit 13

Make Kernel (1/2)  #make dep Check dependency  #make bzImage Make Kernel and compress to bzImage  #make modules 14

Make Kernel (2/2)  #make modules_install After install, modules would locate in /lib/modules/  #cp -a./arch/i386/boot/bzImage /boot/bzImage Install Kernel by manual 15

Modify GRUB  #vi /boot/grub/grub.conf title Red Hat Linux (2.4.25) root (hd0,0) kernel /bzImage ro root=/dev/sda2  Save and quit 16

Reboot  Reboot and select your new Kernel 17

SETUP AND COMPILE MICRO-LINUX KERNEL 18

Setup  #cd./linux  #make clean  #make menuconfig Disable all modules, unless mention below Tip : disable all modules first before you want to select 19

Processor type and features  Processor type and features ---> (386) Processor family 20

General setup  General setup ---> [*] Networking support [*] PCI support (Any) PCI access mode (ELF) Kernel core (/proc/kcore) format [*] Kernel support for ELF binaries 21

Networking options  Networking options ---> [*] Packet socket [*] Unix domain sockets [*] TCP/IP networking [*] IP: multicasting 22

SCSI support  SCSI support ---> [*] SCSI support [*] SCSI disk support [*] Probe all LUNson each SCSI device  SCSI low-level drivers ---> [*] BusLogicSCSI support 23

Network device support  Network device support ---> [*] Network device support  Ethernet (10 or 100Mbit) ---> [*] Ethernet (10 or 100Mbit) [*] EISA, VLB, PCI and on board controllers [*] AMD PCnet32 PCI support 24

Character devices  Character devices ---> [*] Virtual terminal [*] Support for console on virtual terminal [*] Standard/generic (8250/16550 and compatible UARTs) serial support 25

File systems  File systems ---> [*] Ext3 journallingfile system support [*] /proc file system support [*] Second extended fssupport 26

Console drivers  Console drivers ---> [*] VGA text console 27

Modify version of information  #vi./include/linux/version.h #define UTS_RELEASE " min" 28

Make Kernel  #make dep  #make bzImage  #cp -a./arch/i386/boot/bzImage /boot/bzImage min 29

Modify GRUB  #vi /boot/grub/grub.conf title Red Hat Linux ( min) root (hd0,0) kernel /bzImage min ro root=/dev/sda2  Save and quit 30

Reboot  Reboot and select your new Kernel 31

REPLENISH 32

Kernel vs. File System  If Kernel don’t know your File System Must make a Initrd (Initial RAM Disk) linuxrc that can let Kernel know File System of modules  Kernel can know File System after it use Initrd to load module first 33