Commit 9024e3e314a202c47dc28629ea795dd36245abc4
1 parent
68e88b1420
Exists in
master
and in
2 other branches
update, mount 스크립트 수정
Showing
6 changed files
with
60 additions
and
50 deletions
Show diff stats
buildroot/buildroot-2016.08.1/board/falinux/prime_oven/rootfs_overlay/etc/mdev/automount.sh
... | ... | @@ -15,11 +15,7 @@ if [ "$mounted" = "" ]; then |
15 | 15 | |
16 | 16 | echo "Mount : $1 -> $MNTPATH" > $LOGPATH |
17 | 17 | mkdir -p $MNTPATH |
18 | - if [ $1 == "mmcblk3p2" ]; then | |
19 | - mount -v -t ext4 -o data=journal /dev/$1 $MNTPATH | |
20 | - else | |
21 | - mount /dev/$1 $MNTPATH | |
22 | - fi | |
18 | + mount -v -t ext4 -o data=journal /dev/$1 $MNTPATH | |
23 | 19 | wait |
24 | 20 | echo "Done : mount $MNTPATH" > $LOGPATH |
25 | 21 | else | ... | ... |
buildroot/buildroot-2016.08.1/board/falinux/prime_oven/rootfs_overlay/root/.falinux/up-pl.sh
buildroot/buildroot-2016.08.1/board/falinux/prime_oven/rootfs_overlay/root/.falinux/update.sh
... | ... | @@ -1,31 +0,0 @@ |
1 | -#!/bin/sh | |
2 | - | |
3 | -BOOTID=`bootid` | |
4 | -if [ -z "$BOOTID" ] | |
5 | -then | |
6 | - BOOTID=0 | |
7 | -fi | |
8 | - | |
9 | - | |
10 | -echo "[*] NFS mount..." | |
11 | -mount -t nfs -o nolock 192.168.4.80:/nfs /mnt/nfs | |
12 | - | |
13 | -echo "[*] Remount boot area..." | |
14 | -sync | |
15 | - | |
16 | -umount /dev/mmcblk0p1 | |
17 | -mount -t vfat /dev/mmcblk0p1 /boot0 | |
18 | - | |
19 | -umount /dev/mmcblk0p2 | |
20 | -mount -t vfat /dev/mmcblk0p2 /boot1 | |
21 | - | |
22 | -echo "[*] Copy files..." | |
23 | -cp /mnt/nfs/innovex/tas/uImage /boot${BOOTID}/ | |
24 | -cp /mnt/nfs/innovex/tas/zynq-innovex-tas.dtb /boot${BOOTID}/ | |
25 | -cp /mnt/nfs/innovex/tas/uramdisk-tas.gz /boot${BOOTID}/ | |
26 | - | |
27 | -echo "[*] Sync filesystem..." | |
28 | -sync | |
29 | - | |
30 | -echo "[*] Reboot system..." | |
31 | -reboot |
buildroot/buildroot-2016.08.1/board/falinux/prime_oven/rootfs_overlay/root/.falinux/update_boot.sh
... | ... | @@ -0,0 +1,30 @@ |
1 | +#!/bin/sh | |
2 | + | |
3 | +BOOTID=0 | |
4 | +SERVERIP=$1 | |
5 | +if [ -z "SERVERIP" ] | |
6 | +then | |
7 | + echo "./update_fs.sh serverip" | |
8 | + SERVERIP=192.168.10.131 | |
9 | + echo "ServerIP : $SERVERIP" | |
10 | +fi | |
11 | + | |
12 | + | |
13 | +echo "[*] NFS mount..." | |
14 | +mount -t nfs -o nolock $SERVERIP:/nfs /mnt/nfs | |
15 | + | |
16 | +echo "[*] Remount boot area..." | |
17 | +sync | |
18 | + | |
19 | +umount /dev/mmcblk3p1 | |
20 | +mount -t ext4 /dev/mmcblk3p1 /boot${BOOTID} | |
21 | + | |
22 | +echo "[*] Copy files..." | |
23 | +cp /mnt/nfs/prime-oven/u-boot.imx /boot${BOOTID}/ | |
24 | +cp /mnt/nfs/prime-oven/uImage /boot${BOOTID}/ | |
25 | +cp /mnt/nfs/prime-oven/imx6s-prime-oven.dtb /boot${BOOTID}/ | |
26 | +cp /mnt/nfs/prime-oven/ramdisk-prime_oven-128M.gz/boot${BOOTID}/ | |
27 | + | |
28 | +echo "[*] Sync filesystem..." | |
29 | +sync | |
30 | + | ... | ... |
buildroot/buildroot-2016.08.1/board/falinux/prime_oven/rootfs_overlay/root/.falinux/update_fs.sh
... | ... | @@ -0,0 +1,25 @@ |
1 | +#!/bin/sh | |
2 | + | |
3 | +SERVERIP=$1 | |
4 | +if [ -z "SERVERIP" ] | |
5 | +then | |
6 | + echo "./update_fs.sh serverip" | |
7 | + SERVERIP=192.168.10.131 | |
8 | + echo "ServerIP : $SERVERIP" | |
9 | +fi | |
10 | + | |
11 | +echo "[*] NFS mount..." | |
12 | +mount -t nfs -o nolock $SERVERIP:/nfs /mnt/nfs | |
13 | + | |
14 | +echo "[*] Remount boot area..." | |
15 | +sync | |
16 | + | |
17 | +umount /dev/mmcblk3p2 | |
18 | +mount -t ext4 /dev/mmcblk3p2 /mnt/mmcblk3p2 | |
19 | + | |
20 | +echo "[*] Copy files..." | |
21 | +tar -xvf /mnt/nfs/prime-oven/rootfs.tar -C /mnt/mmcblk3p2/ | |
22 | + | |
23 | +echo "[*] Sync filesystem..." | |
24 | +sync | |
25 | + | ... | ... |
buildroot/buildroot-2016.08.1/board/falinux/prime_oven/rootfs_overlay/root/.falinux/usb-run.sh
1 | 1 | #!/bin/sh |
2 | 2 | |
3 | -echo "[*] USB mount..." | |
4 | -umount /dev/$1 2>/dev/null | |
5 | -mount -t vfat /dev/$1 /mnt/usb | |
3 | +echo "[*] USB UPDate..." | |
6 | 4 | |
7 | 5 | if [ -f /mnt/usb/update/run.sh ] |
8 | 6 | then |
9 | 7 | echo "[*] Execute run.sh..." |
10 | 8 | /mnt/usb/update/run.sh |
9 | +else | |
10 | + echo "[*] USB UPData faile..." | |
11 | 11 | fi |
12 | 12 | |
13 | -umount /dev/$1 | |
13 | +echo "" | |
14 | 14 | sync | ... | ... |