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

Runlevel2 remount and start udevd

parent 38446b5d
No related branches found
No related tags found
No related merge requests found
...@@ -26,6 +26,11 @@ mountfs() { ...@@ -26,6 +26,11 @@ mountfs() {
mount -o ro /dev/mmcblk0p1 /boot mount -o ro /dev/mmcblk0p1 /boot
} }
rwrootfs() {
log_to_kernel "remounting r/w root filesystems"
mount -o rw,remount /
}
gp23hi() { gp23hi() {
log_to_kernel "setting gpio 23 to high" log_to_kernel "setting gpio 23 to high"
/usr/bin/gpioset -c 0 23=1 & /usr/bin/gpioset -c 0 23=1 &
...@@ -41,8 +46,7 @@ level_one() { ...@@ -41,8 +46,7 @@ level_one() {
level_two() { level_two() {
mountfs mountfs
gp23hi 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" 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
...@@ -54,9 +58,10 @@ level_two() { ...@@ -54,9 +58,10 @@ level_two() {
modprobe i2c-bcm2835 modprobe i2c-bcm2835
modprobe uio modprobe uio
modprobe fixed modprobe fixed
udevd --daemon
udevadm trigger
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/getty -L 115200 ttyS0 vt100 /sbin/getty -L 115200 ttyS0 vt100
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment