From 083ab1ea05545159335d96d1cbc49780817d89e7 Mon Sep 17 00:00:00 2001 From: Minsoo Kim Date: Thu, 16 Mar 2017 20:46:24 +0900 Subject: [PATCH] =?UTF-8?q?usb=20=EC=97=85=EB=8D=B0=EC=9D=B4=ED=8A=B8=20?= =?UTF-8?q?=EA=B8=B0=EB=8A=A5=20=EC=A0=81=EC=9A=A9=20=EB=B0=8F=20=EB=A7=88?= =?UTF-8?q?=EC=9A=B4=ED=8A=B8=20=EA=B5=AC=EC=A1=B0=20=EB=B3=80=EA=B2=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - mdev를 사용해서 /dev/mmcblk2p2를 mount하던 것을 fstab을 사용하도록 변경 --- .../board/falinux/prime_oven/rootfs_overlay/boot/.empty | 0 .../board/falinux/prime_oven/rootfs_overlay/etc/fstab | 5 +++-- .../board/falinux/prime_oven/rootfs_overlay/etc/mdev.conf | 1 - .../falinux/prime_oven/rootfs_overlay/etc/mdev/automount.sh | 11 ++++++----- .../board/falinux/prime_oven/rootfs_overlay/falinux | 1 - .../board/falinux/prime_oven/rootfs_overlay/falinux/.empty | 0 .../board/falinux/prime_oven/rootfs_overlay/prime | 1 - .../board/falinux/prime_oven/rootfs_overlay/prime/.empty | 0 .../board/falinux/prime_oven/rootfs_overlay/system | 1 - 9 files changed, 9 insertions(+), 11 deletions(-) create mode 100644 buildroot/buildroot-2016.08.1/board/falinux/prime_oven/rootfs_overlay/boot/.empty delete mode 120000 buildroot/buildroot-2016.08.1/board/falinux/prime_oven/rootfs_overlay/falinux create mode 100644 buildroot/buildroot-2016.08.1/board/falinux/prime_oven/rootfs_overlay/falinux/.empty delete mode 120000 buildroot/buildroot-2016.08.1/board/falinux/prime_oven/rootfs_overlay/prime create mode 100644 buildroot/buildroot-2016.08.1/board/falinux/prime_oven/rootfs_overlay/prime/.empty delete mode 120000 buildroot/buildroot-2016.08.1/board/falinux/prime_oven/rootfs_overlay/system diff --git a/buildroot/buildroot-2016.08.1/board/falinux/prime_oven/rootfs_overlay/boot/.empty b/buildroot/buildroot-2016.08.1/board/falinux/prime_oven/rootfs_overlay/boot/.empty new file mode 100644 index 0000000..e69de29 diff --git a/buildroot/buildroot-2016.08.1/board/falinux/prime_oven/rootfs_overlay/etc/fstab b/buildroot/buildroot-2016.08.1/board/falinux/prime_oven/rootfs_overlay/etc/fstab index 380b9cb..e6a3544 100644 --- a/buildroot/buildroot-2016.08.1/board/falinux/prime_oven/rootfs_overlay/etc/fstab +++ b/buildroot/buildroot-2016.08.1/board/falinux/prime_oven/rootfs_overlay/etc/fstab @@ -7,5 +7,6 @@ tmpfs /tmp tmpfs mode=1777 0 0 tmpfs /run tmpfs mode=0755,nosuid,nodev 0 0 sysfs /sys sysfs defaults 0 0 -#/dev/mmcblk3p1 /boot0 ext4 defaults 0 0 -#/dev/mmcblk3p2 /app ext4 defaults 0 0 +/dev/mmcblk3p1 /boot ext4 defaults 0 0 +/dev/mmcblk3p3 /falinux ext4 defaults 0 0 +/dev/mmcblk3p4 /prime ext4 defaults 0 0 diff --git a/buildroot/buildroot-2016.08.1/board/falinux/prime_oven/rootfs_overlay/etc/mdev.conf b/buildroot/buildroot-2016.08.1/board/falinux/prime_oven/rootfs_overlay/etc/mdev.conf index c84df48..24b0493 100755 --- a/buildroot/buildroot-2016.08.1/board/falinux/prime_oven/rootfs_overlay/etc/mdev.conf +++ b/buildroot/buildroot-2016.08.1/board/falinux/prime_oven/rootfs_overlay/etc/mdev.conf @@ -1,5 +1,4 @@ mmcblk[0-2]p[0-9] 0:0 0660 */etc/mdev/automount.sh $MDEV /mnt/${MDEV} -mmcblk3p[2-9] 0:0 0660 */etc/mdev/automount.sh $MDEV /mnt/${MDEV} mmcblk[4-9]p[0-9] 0:0 0660 */etc/mdev/automount.sh $MDEV /mnt/${MDEV} sd[a-z][0-9] 0:0 0600 */etc/mdev/automount.sh $MDEV /mnt/${MDEV} ub[a-z][0-9] 0:0 0600 */etc/mdev/automount.sh $MDEV /mnt/${MDEV} diff --git a/buildroot/buildroot-2016.08.1/board/falinux/prime_oven/rootfs_overlay/etc/mdev/automount.sh b/buildroot/buildroot-2016.08.1/board/falinux/prime_oven/rootfs_overlay/etc/mdev/automount.sh index bd8d6dd..6c50701 100755 --- a/buildroot/buildroot-2016.08.1/board/falinux/prime_oven/rootfs_overlay/etc/mdev/automount.sh +++ b/buildroot/buildroot-2016.08.1/board/falinux/prime_oven/rootfs_overlay/etc/mdev/automount.sh @@ -15,13 +15,14 @@ if [ "$mounted" = "" ]; then echo "Mount : $1 -> $MNTPATH" > $LOGPATH mkdir -p $MNTPATH - if [ $1 == "mmcblk3p2" ]; then - mount -v -t ext4 /dev/$1 $MNTPATH - else - mount -v -t ext4 /dev/$1 $MNTPATH - fi + mount /dev/$1 $MNTPATH wait echo "Done : mount $MNTPATH" > $LOGPATH + if [ -f $MNTPATH/prime/run.sh ] + then + echo "Execute $MNTPATH/prime/run.sh" > $LOGPATH + sh $MNTPATH/prime/run.sh & + fi else echo "Umount: $MNTPATH" > $LOGPATH diff --git a/buildroot/buildroot-2016.08.1/board/falinux/prime_oven/rootfs_overlay/falinux b/buildroot/buildroot-2016.08.1/board/falinux/prime_oven/rootfs_overlay/falinux deleted file mode 120000 index 73a68be..0000000 --- a/buildroot/buildroot-2016.08.1/board/falinux/prime_oven/rootfs_overlay/falinux +++ /dev/null @@ -1 +0,0 @@ -/mnt/mmcblk3p3 \ No newline at end of file diff --git a/buildroot/buildroot-2016.08.1/board/falinux/prime_oven/rootfs_overlay/falinux/.empty b/buildroot/buildroot-2016.08.1/board/falinux/prime_oven/rootfs_overlay/falinux/.empty new file mode 100644 index 0000000..e69de29 diff --git a/buildroot/buildroot-2016.08.1/board/falinux/prime_oven/rootfs_overlay/prime b/buildroot/buildroot-2016.08.1/board/falinux/prime_oven/rootfs_overlay/prime deleted file mode 120000 index d97d682..0000000 --- a/buildroot/buildroot-2016.08.1/board/falinux/prime_oven/rootfs_overlay/prime +++ /dev/null @@ -1 +0,0 @@ -/mnt/mmcblk3p4 \ No newline at end of file diff --git a/buildroot/buildroot-2016.08.1/board/falinux/prime_oven/rootfs_overlay/prime/.empty b/buildroot/buildroot-2016.08.1/board/falinux/prime_oven/rootfs_overlay/prime/.empty new file mode 100644 index 0000000..e69de29 diff --git a/buildroot/buildroot-2016.08.1/board/falinux/prime_oven/rootfs_overlay/system b/buildroot/buildroot-2016.08.1/board/falinux/prime_oven/rootfs_overlay/system deleted file mode 120000 index 669f62a..0000000 --- a/buildroot/buildroot-2016.08.1/board/falinux/prime_oven/rootfs_overlay/system +++ /dev/null @@ -1 +0,0 @@ -/mnt/mmcblk3p2 \ No newline at end of file -- 2.1.4