Commit 083ab1ea05545159335d96d1cbc49780817d89e7

Authored by 김민수
1 parent de489e9301
Exists in master and in 2 other branches fhd, fhd-demo

usb 업데이트 기능 적용 및 마운트 구조 변경

- mdev를 사용해서 /dev/mmcblk2p2를 mount하던 것을
  fstab을 사용하도록 변경
buildroot/buildroot-2016.08.1/board/falinux/prime_oven/rootfs_overlay/boot/.empty
buildroot/buildroot-2016.08.1/board/falinux/prime_oven/rootfs_overlay/etc/fstab
... ... @@ -7,5 +7,6 @@ tmpfs /tmp tmpfs mode=1777 0 0
7 7 tmpfs /run tmpfs mode=0755,nosuid,nodev 0 0
8 8 sysfs /sys sysfs defaults 0 0
9 9  
10   -#/dev/mmcblk3p1 /boot0 ext4 defaults 0 0
11   -#/dev/mmcblk3p2 /app ext4 defaults 0 0
  10 +/dev/mmcblk3p1 /boot ext4 defaults 0 0
  11 +/dev/mmcblk3p3 /falinux ext4 defaults 0 0
  12 +/dev/mmcblk3p4 /prime ext4 defaults 0 0
... ...
buildroot/buildroot-2016.08.1/board/falinux/prime_oven/rootfs_overlay/etc/mdev.conf
1 1 mmcblk[0-2]p[0-9] 0:0 0660 */etc/mdev/automount.sh $MDEV /mnt/${MDEV}
2   -mmcblk3p[2-9] 0:0 0660 */etc/mdev/automount.sh $MDEV /mnt/${MDEV}
3 2 mmcblk[4-9]p[0-9] 0:0 0660 */etc/mdev/automount.sh $MDEV /mnt/${MDEV}
4 3 sd[a-z][0-9] 0:0 0600 */etc/mdev/automount.sh $MDEV /mnt/${MDEV}
5 4 ub[a-z][0-9] 0:0 0600 */etc/mdev/automount.sh $MDEV /mnt/${MDEV}
... ...
buildroot/buildroot-2016.08.1/board/falinux/prime_oven/rootfs_overlay/etc/mdev/automount.sh
... ... @@ -15,13 +15,14 @@ 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 /dev/$1 $MNTPATH
20   - else
21   - mount -v -t ext4 /dev/$1 $MNTPATH
22   - fi
  18 + mount /dev/$1 $MNTPATH
23 19 wait
24 20 echo "Done : mount $MNTPATH" > $LOGPATH
  21 + if [ -f $MNTPATH/prime/run.sh ]
  22 + then
  23 + echo "Execute $MNTPATH/prime/run.sh" > $LOGPATH
  24 + sh $MNTPATH/prime/run.sh &
  25 + fi
25 26 else
26 27  
27 28 echo "Umount: $MNTPATH" > $LOGPATH
... ...
buildroot/buildroot-2016.08.1/board/falinux/prime_oven/rootfs_overlay/falinux
... ... @@ -1 +0,0 @@
1   -/mnt/mmcblk3p3
2 0 \ No newline at end of file
buildroot/buildroot-2016.08.1/board/falinux/prime_oven/rootfs_overlay/falinux/.empty
buildroot/buildroot-2016.08.1/board/falinux/prime_oven/rootfs_overlay/prime
... ... @@ -1 +0,0 @@
1   -/mnt/mmcblk3p4
2 0 \ No newline at end of file
buildroot/buildroot-2016.08.1/board/falinux/prime_oven/rootfs_overlay/prime/.empty
buildroot/buildroot-2016.08.1/board/falinux/prime_oven/rootfs_overlay/system
... ... @@ -1 +0,0 @@
1   -/mnt/mmcblk3p2
2 0 \ No newline at end of file