User:Zem/BootProcess

From Openmoko

< User:Zem(Difference between revisions)
Jump to: navigation, search
(l5:5:wait:/etc/init.d/rc 5)
(l5:5:wait:/etc/init.d/rc 5)
Line 48: Line 48:
 
'''root@om-gta02 /etc $''' ''ls /etc/rc5.d/ | cat''
 
'''root@om-gta02 /etc $''' ''ls /etc/rc5.d/ | cat''
 
*S03dbus-1
 
*S03dbus-1
*S05xserver-nodm (The GUI)
+
*S05xserver-nodm (starts /etx/X11/XServer)
 
*S10alsa-state
 
*S10alsa-state
 
*S10dropbear (ssh server)
 
*S10dropbear (ssh server)

Revision as of 14:48, 20 January 2009

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 (starts /etx/X11/XServer)
  • S10alsa-state
  • S10dropbear (ssh server)
  • S20apmd (The Power Management)
  • S20cron
  • S20syslog
  • S21avahi-daemon (network service discovery)
  • S23bluetooth
  • S29frameworkd
  • S35fso-gpsd (fso gps daemon emulation)
  • S50usb-gadget
  • S99rmnologin

S:2345:respawn:/sbin/getty 115200 ttySAC2

And finally init starts a getty on serial of course:

Personal tools

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 (starts /etx/X11/XServer)
  • S10alsa-state
  • S10dropbear (ssh server)
  • S20apmd (The Power Management)
  • S20cron
  • S20syslog
  • S21avahi-daemon (network service discovery)
  • S23bluetooth
  • S29frameworkd
  • S35fso-gpsd (fso gps daemon emulation)
  • S50usb-gadget
  • S99rmnologin

S:2345:respawn:/sbin/getty 115200 ttySAC2

And finally init starts a getty on serial of course: