博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
openwrt启动过程(脚本)
阅读量:6959 次
发布时间:2019-06-27

本文共 1403 字,大约阅读时间需要 4 分钟。

来源: 

基本的openwrt启动顺序为:

 

  1、boot loader loads kernel

          boot loader 加载内核

      2、kernel loads whilst scaning the mtd partition rootfs for a valid superblock for mounting the SquashFS partition (which contains /etc). More info at 

          内核加载同时扫描mtd分区rootfs,查找一个有效的超级块区用来存放squashfs分区(这个分区中包含了/etc目录)

  3、kernel calls /etc/preinit (the kernel considers this to be the init (or root) process

           内核调用/etc/preinit

    4、/etc/preinit prepares system for multiuser mode

          /etc/preinit为系统准备好多用户模式

    5、/etc/preinit execs /sbin/init which becomes the init (or root) process and launches multiuser

          /etc/preinit 执行/sbin/init(/sbin/init变为起始进程)

    6、/sbin/init launches processes according to /etc/inittab.

           /sbin/init顺序执行/etc/inittab中的进程

      7、Typically the first process launched is /etc/init.d/rcS which causes the scripts in /etc/rc.d which begin with 'S' to be launched (in glob sort order). The /etc/rc.d directory is populated with symlinks to the scripts in /etc/init.d. Each script in /etc/init.d accepts enable and disable arguments for creating and removing the symlinks.

         执行顺序是按照/etc/iit.d/rcS中以“S”开头的后面跟的数字顺序。 /etc/rc.d是/etc/init.d的链接文件。

      8、These script initialize the system and also initialize daemons that wait for input, so that when all the scripts have executed the normal system is active. On first boot this initializing includes the process of preparing the root filesystem for use.

          

 

转载于:https://www.cnblogs.com/rohens-hbg/p/5049085.html

你可能感兴趣的文章
parse AST with Clang-example
查看>>
面向切面编程(AOP模式)
查看>>
学java就两个问题
查看>>
asdasdas da
查看>>
文本三剑客grep、sed、awk
查看>>
双机热备软件
查看>>
https提供安全的web通讯
查看>>
Spark图处理GraphX学习笔记!
查看>>
强制Apache Web服务器始终使用https
查看>>
四、openstack安装之Nova篇
查看>>
关于电脑无法开机或无法启动的几种可能和解决方案
查看>>
Jewel版本Ceph集群功能性能测试
查看>>
修改卷标
查看>>
我的友情链接
查看>>
新功能:阿里云负载均衡支持HTTP/2、WSS协议
查看>>
基于TableStore构建简易海量Topic消息队列
查看>>
Powershell学习之道-文件夹共享及磁盘映射
查看>>
OS X El Capitan更新到10.11.4失败提示-未能验证解决方案
查看>>
深入理解JVM
查看>>
QT static link App cmake CMakeLists.txt
查看>>