Skip to content
Snippets Groups Projects
Verified Commit ddcb8c6f authored by Qiyang Sun's avatar Qiyang Sun :speech_balloon:
Browse files

Bugfix print unnecessary messages runlevel 2

parent 289ae275
No related branches found
No related tags found
No related merge requests found
...@@ -20,16 +20,14 @@ level_zero() { ...@@ -20,16 +20,14 @@ level_zero() {
} }
mountfs() { mountfs() {
log_to_kernel "mounting filesystems"
mount -t proc proc /proc mount -t proc proc /proc
mount -t sysfs sysfs /sys mount -t sysfs sysfs /sys
mount -o ro /dev/mmcblk0p1 /boot mount -o ro /dev/mmcblk0p1 /boot
mount -t tmpfs -o size=100M tmpfs /var/volatile/log #mount -t tmpfs -o size=100M tmpfs /var/volatile/log
mount -t tmpfs -o size=100M tmpfs /var/log #mount -t tmpfs -o size=100M tmpfs /var/log
} }
rwrootfs() { rwrootfs() {
log_to_kernel "remounting r/w root filesystems"
mount -o rw,remount / mount -o rw,remount /
} }
...@@ -39,6 +37,7 @@ gp23hi() { ...@@ -39,6 +37,7 @@ gp23hi() {
} }
level_one() { level_one() {
log_to_kernel "mounting filesystems"
mountfs mountfs
gp23hi gp23hi
crit_to_kernel "host is up and ready" crit_to_kernel "host is up and ready"
...@@ -49,8 +48,6 @@ level_one() { ...@@ -49,8 +48,6 @@ level_one() {
level_two() { level_two() {
mountfs mountfs
rwrootfs rwrootfs
log_to_kernel "adding modules to linux kernel"
log_to_kernel "to be added: bcm2835-codec, bcm2835-isp, bcm2835-v4l2, bcm2835-unicam, ov5647, i2c-mux-pinctrl, i2c-bcm2835, uio, fixed"
modprobe bcm2835-codec # minors 0-4 modprobe bcm2835-codec # minors 0-4
modprobe bcm2835-isp # minors 5-12 modprobe bcm2835-isp # minors 5-12
modprobe bcm2835-v4l2 modprobe bcm2835-v4l2
...@@ -63,13 +60,17 @@ level_two() { ...@@ -63,13 +60,17 @@ level_two() {
udevd --daemon udevd --daemon
udevadm trigger udevadm trigger
gp23hi gp23hi
crit_to_kernel "host is up and ready" /sbin/level3d.sh &
log_to_kernel "getting teletypes on ttyS0" /usr/bin/marvision 1>/dev/null 2>/dev/null
/sbin/getty -L 115200 ttyS0 vt100 # To avoid undefined behaviours when marvision exited abnormally,
# reboot the system.
reboot -f
} }
level_three() { level_three() {
log_to_kernel "mounting filesystems"
mountfs mountfs
log_to_kernel "remounting r/w root filesystems"
rwrootfs rwrootfs
log_to_kernel "adding modules to linux kernel" log_to_kernel "adding modules to linux kernel"
log_to_kernel "to be added: bcm2835-codec, bcm2835-isp, bcm2835-v4l2, bcm2835-unicam, ov5647, i2c-mux-pinctrl, i2c-bcm2835, uio, fixed, brcmfmac" log_to_kernel "to be added: bcm2835-codec, bcm2835-isp, bcm2835-v4l2, bcm2835-unicam, ov5647, i2c-mux-pinctrl, i2c-bcm2835, uio, fixed, brcmfmac"
...@@ -107,6 +108,7 @@ level_three() { ...@@ -107,6 +108,7 @@ level_three() {
gp23hi gp23hi
crit_to_kernel "host is up and ready" crit_to_kernel "host is up and ready"
log_to_kernel "getting teletypes on ttyS0" log_to_kernel "getting teletypes on ttyS0"
/sbin/print_motd.sh
/sbin/getty -L 115200 ttyS0 vt100 /sbin/getty -L 115200 ttyS0 vt100
} }
...@@ -139,8 +141,6 @@ else ...@@ -139,8 +141,6 @@ else
level_one level_one
;; ;;
2) 2)
log_to_kernel "entering runlevel 2 (camera)"
log_to_kernel "runlevel 2: tty, serial, gpio, camera"
level_two level_two
;; ;;
3) 3)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment