Commit 756d04b756e28ca9d43eebe92dba87f79ba2e4d6
1 parent
69fd0e8ee5
Exists in
master
and in
2 other branches
파일시스템 readonly
Showing
6 changed files
with
85 additions
and
3 deletions
Show diff stats
buildroot/buildroot-2016.08.1/board/falinux/prime_oven/rootfs_overlay/etc/inittab.ro
... | ... | @@ -0,0 +1,35 @@ |
1 | +# /etc/inittab | |
2 | +# | |
3 | +# Copyright (C) 2001 Erik Andersen <andersen@codepoet.org> | |
4 | +# | |
5 | +# Note: BusyBox init doesn't support runlevels. The runlevels field is | |
6 | +# completely ignored by BusyBox init. If you want runlevels, use | |
7 | +# sysvinit. | |
8 | +# | |
9 | +# Format for each entry: <id>:<runlevels>:<action>:<process> | |
10 | +# | |
11 | +# id == tty to run on, or empty for /dev/console | |
12 | +# runlevels == ignored | |
13 | +# action == one of sysinit, respawn, askfirst, wait, and once | |
14 | +# process == program to run | |
15 | + | |
16 | +# Startup the system | |
17 | +::sysinit:/bin/mount -t proc proc /proc | |
18 | +::sysinit:/bin/mount -o remount,ro / | |
19 | +::sysinit:/bin/mkdir -p /dev/pts | |
20 | +::sysinit:/bin/mkdir -p /dev/shm | |
21 | +::sysinit:/bin/mount -a | |
22 | +::sysinit:/bin/hostname -F /etc/hostname | |
23 | +# now run any rc scripts | |
24 | +::sysinit:/etc/init.d/rcS | |
25 | + | |
26 | +# Put a getty on the serial port | |
27 | +ttymxc0::respawn:/sbin/getty -L ttymxc0 0 vt100 # GENERIC_SERIAL | |
28 | + | |
29 | +# Stuff to do for the 3-finger salute | |
30 | +#::ctrlaltdel:/sbin/reboot | |
31 | + | |
32 | +# Stuff to do before rebooting | |
33 | +::shutdown:/etc/init.d/rcK | |
34 | +::shutdown:/sbin/swapoff -a | |
35 | +::shutdown:/bin/umount -a -r | ... | ... |
buildroot/buildroot-2016.08.1/board/falinux/prime_oven/rootfs_overlay/etc/inittab.rw
... | ... | @@ -0,0 +1,35 @@ |
1 | +# /etc/inittab | |
2 | +# | |
3 | +# Copyright (C) 2001 Erik Andersen <andersen@codepoet.org> | |
4 | +# | |
5 | +# Note: BusyBox init doesn't support runlevels. The runlevels field is | |
6 | +# completely ignored by BusyBox init. If you want runlevels, use | |
7 | +# sysvinit. | |
8 | +# | |
9 | +# Format for each entry: <id>:<runlevels>:<action>:<process> | |
10 | +# | |
11 | +# id == tty to run on, or empty for /dev/console | |
12 | +# runlevels == ignored | |
13 | +# action == one of sysinit, respawn, askfirst, wait, and once | |
14 | +# process == program to run | |
15 | + | |
16 | +# Startup the system | |
17 | +::sysinit:/bin/mount -t proc proc /proc | |
18 | +::sysinit:/bin/mount -o remount,rw / | |
19 | +::sysinit:/bin/mkdir -p /dev/pts | |
20 | +::sysinit:/bin/mkdir -p /dev/shm | |
21 | +::sysinit:/bin/mount -a | |
22 | +::sysinit:/bin/hostname -F /etc/hostname | |
23 | +# now run any rc scripts | |
24 | +::sysinit:/etc/init.d/rcS | |
25 | + | |
26 | +# Put a getty on the serial port | |
27 | +ttymxc0::respawn:/sbin/getty -L ttymxc0 0 vt100 # GENERIC_SERIAL | |
28 | + | |
29 | +# Stuff to do for the 3-finger salute | |
30 | +#::ctrlaltdel:/sbin/reboot | |
31 | + | |
32 | +# Stuff to do before rebooting | |
33 | +::shutdown:/etc/init.d/rcK | |
34 | +::shutdown:/sbin/swapoff -a | |
35 | +::shutdown:/bin/umount -a -r | ... | ... |
buildroot/buildroot-2016.08.1/board/falinux/prime_oven/rootfs_overlay/root/.falinux/update_fs.sh
1 | 1 | #!/bin/sh |
2 | 2 | |
3 | 3 | SERVERIP=$1 |
4 | -if [ -z "SERVERIP" ] | |
4 | +if [ -z $SERVERIP ] | |
5 | 5 | then |
6 | 6 | echo "./update_fs.sh serverip" |
7 | - SERVERIP=192.168.10.131 | |
7 | + SERVERIP="192.168.10.131" | |
8 | 8 | echo "ServerIP : $SERVERIP" |
9 | 9 | fi |
10 | 10 | |
... | ... | @@ -15,11 +15,23 @@ echo "[*] Remount boot area..." |
15 | 15 | sync |
16 | 16 | |
17 | 17 | umount /dev/mmcblk3p2 |
18 | +mkfs.ext4 -j -F /dev/mmcblk3p2 -L SYSTEM | |
18 | 19 | mount -t ext4 /dev/mmcblk3p2 /mnt/mmcblk3p2 |
19 | 20 | |
20 | 21 | echo "[*] Copy files..." |
21 | 22 | tar -xvf /mnt/nfs/prime-oven/rootfs.tar -C /mnt/mmcblk3p2/ |
22 | 23 | |
24 | +echo "" | |
25 | +echo "MMC/SD Image Write...(y/n) ? " | |
26 | +read -p "Do you wish to filesystem readonly...(y/n)? " yn | |
27 | +case $yn in | |
28 | + [Yy]* ) cp /mnt/mmcblk3p2/etc/inittab.ro /mnt/mmcblk3p2/etc/inittab; break;; | |
29 | + [Nn]* ) break;; | |
30 | +esac | |
31 | + | |
32 | +echo "[*] SSH Key Copy..." | |
33 | +cp /etc/ssh/ssh_host_ed25519_key /mnt/mmcblk3p2/etc/ssh/ | |
34 | + | |
23 | 35 | echo "[*] Sync filesystem..." |
24 | 36 | sync |
25 | 37 | ... | ... |
buildroot/buildroot-2016.08.1/board/falinux/prime_oven/rootfs_overlay/root/.prime_oven/.buildroot_version
release/ramdisk-prime_oven-128M.gz
No preview for this file type
release/rootfs.tar
No preview for this file type