User:Zem/BootProcess

From Openmoko

< User:Zem(Difference between revisions)
Jump to: navigation, search
(New page: =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 runlev...)
 
Line 22: Line 22:
 
which starts /etc/init.d/rc S which starts all links in runlevel S  (Startup)  
 
which starts /etc/init.d/rc S which starts all links in runlevel S  (Startup)  
  
'''$''' ''root@om-gta02 /etc $ ls /etc/rcS.d/ | cat''
+
'''root@om-gta02 /etc $''' ''ls /etc/rcS.d/ | cat''
 
*S02hostname.sh
 
*S02hostname.sh
 
*S02mountkernfs.sh
 
*S02mountkernfs.sh
Line 39: Line 39:
 
*S97blueprobe
 
*S97blueprobe
 
*S99finish.sh
 
*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:

Revision as of 14:41, 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
  • 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:

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