?? 00000013.htm
字號:
<?xml version="1.0" encoding="gb2312"?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head><meta http-equiv="Content-Type" content="text/html; charset=gb2312"/><title>Embedded Linux Howto (3) turbolinux </title></head><body><center><h1>BBS 水木清華站∶精華區</h1></center><a name="top"></a>發信人: turbolinux (hoho~神啊,救救我吧...), 信區: Embedded <br />標 題: Embedded Linux Howto (3) <br />發信站: BBS 水木清華站 (Thu Jul 12 00:30:39 2001) <br /> <br />3. The boot process. <br />This section is for the most based on the Bootdisk-HOWTO. <br /> <br />3.1 Bios <br />All PC systems start the boot process by executing code in ROM <br />(specifically, the BIOS) to load the sector from sector 0, cylinder 0 of <br /> the boot drive. The boot drive is usually the first floppy drive <br />(designated A: in DOS and /dev/fd0 in Linux). The BIOS then tries to <br />execute this sector. On most bootable disks, sector 0, cylinder 0 <br />contains either: <br /> <br />Code from a boot loader such as LILO, which locates the kernel, loads it <br /> and executes it to start the boot proper. <br />he start of an operating system kernel, such as Linux. <br />If a Linux kernel has been raw-copied to a diskette, a hard drive or <br />another media, the first sector of the disk will be the first sector <br />of the Linux kernel itself. This first sector will continue the boot <br />process by loading the rest of the kernel from the boot device. <br />3.2 The boot loader <br />We will use a boot loader like lilo to operate our boot process. It <br />permits to have the dev and production platforms on the same hardware <br />and to switch from one to the other by only rebooting. The lilo boot <br />loader is loaded by the bios. Then, it loads kernels or the boot sectors <br /> of other operating systems. It also provides a simple command-line <br />interface to interactively select the item to boot with its options. <br />More may be found in the Lilo documentation at <a href="ftp://sunsite.unc.">ftp://sunsite.unc.</a> <br />edu/pub/Linux/system/boot/lilo/. <br /> <br />3.3 The Kernel <br />The kernel checks the hardware and mounts the root device. Then it looks <br /> for the init program on the root filesystem and executes it. <br /> <br />3.4 Init <br />Init is the parent of all other processes that will run on your linux <br />OS, it will watch it's child processes and start, stop, re-lauch them if <br /> needed. init takes all information from /etc/inittab. <br /> <br />3.5 inittab <br />The file /etc/inittab/ refers to scripts named /etc/rc... to do the <br />system setup. It also has entries for the getty tool to handle the login <br /> process. <br /> <br />3.6 The login process <br />There is one getty available in the inittab file for each console you <br />allow for the users. Getty will launch /bin/login to verify the user <br />password. <br /> <br />More info about the boot process may be found at Linux Documentation <br />Project and in the init and inittab man pages. <br /> <br /> <br />-- <br />Welcome to <a href="http://www.EnjoySmart.com">http://www.EnjoySmart.com</a> <br /> -->Dedicated to Smart Home & Network Appliances <br /> <br /> <br />※ 來源:·BBS 水木清華站 smth.org·[FROM: 166.111.174.125] <br /><a href="00000012.htm">上一篇</a><a href="javascript:history.go(-1)">返回上一頁</a><a href="index.htm">回到目錄</a><a href="#top">回到頁首</a><a href="00000014.htm">下一篇</a></h1></center><center><h1>BBS 水木清華站∶精華區</h1></center></body></html>
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -