@@ -26,6 +26,8 @@ and append the following line. Note that this file contains only one single line
...
@@ -26,6 +26,8 @@ and append the following line. Note that this file contains only one single line
.fi
.fi
.in
.in
NEVER SET RUNLEVEL TO 0 OR 6 FROM THE KERNEL COMMAND LINE.
.SH RUNLEVEL
.SH RUNLEVEL
.B fastinit
.B fastinit
supports several runlevels, which represent different states of the system. These include:
supports several runlevels, which represent different states of the system. These include:
...
@@ -39,6 +41,18 @@ Halt the system. Invokes
...
@@ -39,6 +41,18 @@ Halt the system. Invokes
.B 1
.B 1
Single-user mode. Supports serial, teletypes, proc, sysfs, GPIO. Bootfs is read-only. GPIO 23 (Pin 16) is set to high when boot is completed.
Single-user mode. Supports serial, teletypes, proc, sysfs, GPIO. Bootfs is read-only. GPIO 23 (Pin 16) is set to high when boot is completed.
.TP
.B 2
Single-user mode with camera. Support runlevel 1 and camera. System is quiet (only kernel panic should be printed). Udev daemon is started. Level3d daemon is started, see also
.B level3d
(8). Marvision is started. Bootfs is readonly. GPIO 23 (Pin 16) is set to high when boot is completed. No teletype or login support.
The following kernel modules are started to make the camera work: bcm2835-codec, bcm2835-isp, bcm2835-v4l2, bcm2835-unicam, ov5647, i2c-mux-pinctrl, i2c-bcm2835, uio, fixed.
.TP
.B 3
Single-user mode with camera and networking. Support runlevel 2 and camera. Udev daemon is started. Bootfs is readonly. GPIO 23 (Pin 16) is set to high when boot is completed. Network interface local loopback (lo) is configured (inet=127.0.0.1, mask=255.0.0.0). Network interface wlan0 is configured (inet=192.168.1.1, bcast=192.168.1.255, mask=255.255.255.0). Hostapd daemon (AP support) is started. Dnsmasq daemon (DNS and DHCP support) is started. Fcgiwrap daemon (Fast CGI for nginx) is started. Nginx (HTTP support) is started. Message of the day is printed.
.TP
.TP
.B 5
.B 5
SysVinit runlevel 5. Invokes
SysVinit runlevel 5. Invokes
...
@@ -65,12 +79,26 @@ Reboot.
...
@@ -65,12 +79,26 @@ Reboot.
Poweroff.
Poweroff.
.SH BUGS
Bugs may be reported to <qs2g22@soton.ac.uk>.
.IP \[bu]
System will always halt if runlevel is set to 1 in kernel command line.
.IP \[bu]
System will always reboot if runlevel is set to 6 in kernel command line.
.IP \[bu]
Fastinit might print unwanted messages in runlevel 2.