User:Zem/BootProcess
From Openmoko
Contents |
UBoot
start Kernel
mount Rootfs
starting /sbin/init
which is a link to /sbin/init.sysvinit
init itself reads the /etc/inittab. The default runlevel is 5.
The runlevels are:
# Runlevel 0 is halt. # Runlevel 1 is single-user. # Runlevels 2-5 are multi-user. # Runlevel 6 is reboot.
but first, init starts:
si::sysinit:/etc/init.d/rcS
which starts /etc/init.d/rc S which starts all links in runlevel S (Startup)
root@om-gta02 /etc $ ls /etc/rcS.d/ | cat
- S02hostname.sh
- S02mountkernfs.sh
- S03udev
- S04mountdevsubfs.sh
- S06alignment.sh
- S10checkroot.sh
- S20modutils.sh
- S30procps.sh
- S35mountall.sh
- S37populate-volatile.sh
- S40networking
- S43portmap
- S45mountnfs.sh
- S55bootmisc.sh
- S97blueprobe
- S99finish.sh
Then it starts
l5:5:wait:/etc/init.d/rc 5
Runlevel 5...
root@om-gta02 /etc $ ls /etc/rc5.d/ | cat
- S03dbus-1
- S05xserver-nodm
- S10alsa-state
- S10dropbear
- S20apmd
- S20cron
- S20syslog
- S21avahi-daemon
- S23bluetooth
- S29frameworkd
- S35fso-gpsd
- S50usb-gadget
- S99rmnologin
S:2345:respawn:/sbin/getty 115200 ttySAC2
And finally init starts a getty on serial of course: