User:Zem/BootProcess

From Openmoko

< User:Zem
Revision as of 14:33, 20 January 2009 by Zem (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

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
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