Linux kernel boot process
Linux kernel mounts the root filesystem.
The kernel starts the first user process /sbin/init provided by Busybox.
/sbin/init reads /etc/inittab (From the SDK: linux/embedded_rootfs/etc-files/inittab).
/etc/inittab starts the shell script /sbin/rc (From the SDK: linux/embedded_rootfs/etc-files/rc).
/sbin/rc mounts the kernel pseudo filesystems /proc, /dev/shm, and /dev/pts.
/sbin/rc brings up the loopback network device with the IP address 127.0.0.1.
/sbin/rc starts syslogd provided by Busybox.
/sbin/rc starts telnetd provided by Busybox.
/sbin/rc exits returning control in /sbin/init.
/etc/inittab tells /sbin/init to spawn an interactive shell.
The user interactive shell prompt appears.
Linux kernel mounts the root filesystem.
The kernel starts the first user process /sbin/init provided by Busybox.
/sbin/init reads /etc/inittab (From the SDK: linux/embedded_rootfs/etc-files/inittab).
/etc/inittab starts the shell script /sbin/rc (From the SDK: linux/embedded_rootfs/etc-files/rc).
/sbin/rc mounts the kernel pseudo filesystems /proc, /dev/shm, and /dev/pts.
/sbin/rc brings up the loopback network device with the IP address 127.0.0.1.
/sbin/rc starts syslogd provided by Busybox.
/sbin/rc starts telnetd provided by Busybox.
/sbin/rc exits returning control in /sbin/init.
/etc/inittab tells /sbin/init to spawn an interactive shell.
The user interactive shell prompt appears.
本文详细介绍了Linux内核的启动过程,包括挂载根文件系统、启动初始化进程/sbin/init、读取配置文件/etc/inittab、执行/sbin/rc脚本以及启动核心服务如syslogd和telnetd等。
2034

被折叠的 条评论
为什么被折叠?



