Embedded 版 (精华区)
发信人: he (无情的雨), 信区: Embedded_system
标 题: linux for ppc chapter 7
发信站: 哈工大紫丁香 (2001年06月04日11:03:01 星期一), 站内信件
----------------------------------------------------------------------------
----
7. Boot Sequence
The Linux boot sequence is more complicated than your average embedded opera
ting system, and there are many more options for configuring things. In gene
ral, the boot sequence goes like this:
Processor comes out of reset and branches to the ROM startup code.
The ROM startup code initialises the CPU and memory controller, performing o
nly minimal initialisation of on-chip devices, such as the console serial po
rt (typically SMC1 on 8xx devices) to provide boot diagnostic messages. It a
lso sets up the memory map for the kernel to use in a format that is consist
ent across platforms, and then jumps to the boot loader.
The boot loader decompresses the kernel into RAM, and jumps to it.
The kernel sets up the caches, initialises each of the hardware devices via
the init function in each driver, mounts the root filesystem and execs the i
nit process, which is the ultimate parent of all user mode processes, typica
lly /sbin/init.
Executing the first program linked against the shared C runtime library (oft
en init) causes the shared runtime library to be loaded.
In a typical Linux system, init reads /etc/inittab to execute the appropriat
e run control script from /etc/rc.d, which execute the start scripts to init
ialise networking and other system services.
In minimal embedded systems, init is commonly replaced with a simple C progr
am or shell script to start the appropriate services and/or application prog
rams, since the conventional rc scripts are often overkill.
----------------------------------------------------------------------------
----
--
※ 来源:·哈工大紫丁香 bbs.hit.edu.cn·[FROM: 202.118.235.250]
Powered by KBS BBS 2.0 (http://dev.kcn.cn)
页面执行时间:2.379毫秒