Commit 5749fe1914dfe1d2b3b7b6a68d88a6a61fe66625

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

생산 스크립트 수정

buildroot/buildroot-2016.08.1/board/falinux/prime_oven/rootfs_overlay/root/.falinux/mk-emmc-fusing.sh
... ... @@ -17,10 +17,13 @@ FNAME_DTB="imx6s-prime-oven.dtb"
17 17 FNAME_KERNEL="uImage"
18 18 FNAME_FSCPIO="ramdisk-prime_oven.uboot"
19 19 FNAME_RFS="rootfs.tar"
  20 +FNAME_APP="application.tar"
20 21  
21 22 SD_MOUNT_PATH_P1="/tmp/mmcblk2p1"
22 23 EMMC_MOUNT_PATH_P1="/tmp/mmcblk3p1"
23 24 EMMC_MOUNT_PATH_P2="/tmp/mmcblk3p2"
  25 +EMMC_MOUNT_PATH_P3="/tmp/mmcblk3p3"
  26 +EMMC_MOUNT_PATH_P4="/tmp/mmcblk3p4"
24 27  
25 28 function Init_Unmount()
26 29 {
... ... @@ -95,9 +98,19 @@ function run_mount()
95 98 mkdir ${EMMC_MOUNT_PATH_P2}
96 99 fi
97 100  
  101 + if [ ! -d ${EMMC_MOUNT_PATH_P3} ]; then
  102 + mkdir ${EMMC_MOUNT_PATH_P3}
  103 + fi
  104 +
  105 + if [ ! -d ${EMMC_MOUNT_PATH_P4} ]; then
  106 + mkdir ${EMMC_MOUNT_PATH_P4}
  107 + fi
  108 +
98 109 mount -t ext4 ${SD_DEV_PATH}${PART1} ${SD_MOUNT_PATH_P1}
99 110 mount -t ext3 ${EMMC_DEV_PATH}${PART1} ${EMMC_MOUNT_PATH_P1}
100 111 mount -t ext4 ${EMMC_DEV_PATH}${PART2} ${EMMC_MOUNT_PATH_P2}
  112 + mount -t ext4 ${EMMC_DEV_PATH}${PART3} ${EMMC_MOUNT_PATH_P3}
  113 + mount -t ext4 ${EMMC_DEV_PATH}${PART4} ${EMMC_MOUNT_PATH_P4}
101 114 }
102 115  
103 116 function run_copy_image()
... ... @@ -129,6 +142,9 @@ function run_copy_rootfs()
129 142 tar -xf ${SD_MOUNT_PATH_P1}/boot/${FNAME_RFS} -C ${EMMC_MOUNT_PATH_P2}
130 143  
131 144 cp /etc/ssh/ssh_host_ed25519_key ${EMMC_MOUNT_PATH_P2}/etc/ssh/
  145 +
  146 + tar -xf ${SD_MOUNT_PATH_P1}/boot/${FNAME_APP} ${EMMC_MOUNT_PATH_P3}/
  147 + tar -xf ${SD_MOUNT_PATH_P1}/boot/${FNAME_APP} ${EMMC_MOUNT_PATH_P4}/
132 148 }
133 149  
134 150 function run_raw_write()
... ... @@ -153,6 +169,8 @@ function run_umount()
153 169 umount ${SD_MOUNT_PATH_P1}
154 170 umount ${EMMC_MOUNT_PATH_P1}
155 171 umount ${EMMC_MOUNT_PATH_P2}
  172 + umount ${EMMC_MOUNT_PATH_P3}
  173 + umount ${EMMC_MOUNT_PATH_P4}
156 174 }
157 175  
158 176  
... ...
release/mk-fusingsd.sh
... ... @@ -5,7 +5,6 @@ C_LRED='\033[1;31m'
5 5  
6 6 #### Partition Number ####
7 7 P1_NUM="1"
8   -P2_NUM="2"
9 8  
10 9 DEVNAME="mmcblk0"
11 10 DEV_PATH="/dev/mmcblk0"
... ... @@ -18,6 +17,7 @@ FNAME_DTB="imx6s-prime-oven.dtb"
18 17 FNAME_KERNEL="uImage"
19 18 FNAME_FSCPIO="ramdisk-prime_oven.uboot"
20 19 FNAME_RFS="rootfs.tar"
  20 +FNAME_APP="application.tar"
21 21  
22 22 MOUNT_PATH_P1="/tmp/mmcblk0p1"
23 23  
... ... @@ -33,11 +33,6 @@ n
33 33 p
34 34 1
35 35 262144
36   -1310719
37   -n
38   -p
39   -2
40   -1310720
41 36  
42 37 p
43 38 w
... ... @@ -50,7 +45,6 @@ function run_format()
50 45 echo -e "${C_LRED}### Format SDCARD - run_format() ###${C_NC}"
51 46 echo ""
52 47 echo "y" | mkfs.ext4 ${DEV_PATH}${P1_NUM} -L BOOT0
53   - echo "y" | mkfs.ext4 ${DEV_PATH}${P2_NUM} -L DATA
54 48 }
55 49  
56 50 function run_mount()
... ... @@ -88,6 +82,7 @@ function run_copy_image()
88 82 cp -v ./$FNAME_KERNEL ${MOUNT_PATH_P1}/boot/
89 83 cp -v ./$FNAME_FSCPIO ${MOUNT_PATH_P1}/boot/
90 84 cp -v ./$FNAME_RFS ${MOUNT_PATH_P1}/boot/
  85 + cp -v ./$FNAME_APP ${MOUNT_PATH_P1}/boot/
91 86 sleep 1
92 87 sync
93 88 }
... ... @@ -134,7 +129,6 @@ function main()
134 129 if [[ "$1" == "sd"* ]]; then
135 130 if [ "$1" != "sd" ]; then
136 131 P1_NUM="1"
137   - P2_NUM="2"
138 132 else
139 133 echo "Missing Partition Number"
140 134 exit
... ... @@ -143,7 +137,6 @@ if [[ "$1" == "sd"* ]]; then
143 137 elif [[ "$1" == "mmcblk"* ]]; then
144 138 if [ "$1" != "mmcblk" ]; then
145 139 P1_NUM="p1"
146   - P2_NUM="p2"
147 140 else
148 141 echo "Missing Partition Number"
149 142 exit
... ...
scripts/mk-emmc-fusing.sh
... ... @@ -17,10 +17,13 @@ FNAME_DTB="imx6s-prime-oven.dtb"
17 17 FNAME_KERNEL="uImage"
18 18 FNAME_FSCPIO="ramdisk-prime_oven.uboot"
19 19 FNAME_RFS="rootfs.tar"
  20 +FNAME_APP="application.tar"
20 21  
21 22 SD_MOUNT_PATH_P1="/tmp/mmcblk2p1"
22 23 EMMC_MOUNT_PATH_P1="/tmp/mmcblk3p1"
23 24 EMMC_MOUNT_PATH_P2="/tmp/mmcblk3p2"
  25 +EMMC_MOUNT_PATH_P3="/tmp/mmcblk3p3"
  26 +EMMC_MOUNT_PATH_P4="/tmp/mmcblk3p4"
24 27  
25 28 function Init_Unmount()
26 29 {
... ... @@ -95,9 +98,19 @@ function run_mount()
95 98 mkdir ${EMMC_MOUNT_PATH_P2}
96 99 fi
97 100  
  101 + if [ ! -d ${EMMC_MOUNT_PATH_P3} ]; then
  102 + mkdir ${EMMC_MOUNT_PATH_P3}
  103 + fi
  104 +
  105 + if [ ! -d ${EMMC_MOUNT_PATH_P4} ]; then
  106 + mkdir ${EMMC_MOUNT_PATH_P4}
  107 + fi
  108 +
98 109 mount -t ext4 ${SD_DEV_PATH}${PART1} ${SD_MOUNT_PATH_P1}
99 110 mount -t ext3 ${EMMC_DEV_PATH}${PART1} ${EMMC_MOUNT_PATH_P1}
100 111 mount -t ext4 ${EMMC_DEV_PATH}${PART2} ${EMMC_MOUNT_PATH_P2}
  112 + mount -t ext4 ${EMMC_DEV_PATH}${PART3} ${EMMC_MOUNT_PATH_P3}
  113 + mount -t ext4 ${EMMC_DEV_PATH}${PART4} ${EMMC_MOUNT_PATH_P4}
101 114 }
102 115  
103 116 function run_copy_image()
... ... @@ -129,6 +142,9 @@ function run_copy_rootfs()
129 142 tar -xf ${SD_MOUNT_PATH_P1}/boot/${FNAME_RFS} -C ${EMMC_MOUNT_PATH_P2}
130 143  
131 144 cp /etc/ssh/ssh_host_ed25519_key ${EMMC_MOUNT_PATH_P2}/etc/ssh/
  145 +
  146 + tar -xf ${SD_MOUNT_PATH_P1}/boot/${FNAME_APP} ${EMMC_MOUNT_PATH_P3}/
  147 + tar -xf ${SD_MOUNT_PATH_P1}/boot/${FNAME_APP} ${EMMC_MOUNT_PATH_P4}/
132 148 }
133 149  
134 150 function run_raw_write()
... ... @@ -153,6 +169,8 @@ function run_umount()
153 169 umount ${SD_MOUNT_PATH_P1}
154 170 umount ${EMMC_MOUNT_PATH_P1}
155 171 umount ${EMMC_MOUNT_PATH_P2}
  172 + umount ${EMMC_MOUNT_PATH_P3}
  173 + umount ${EMMC_MOUNT_PATH_P4}
156 174 }
157 175  
158 176  
... ...
scripts/mk-fusingsd.sh
... ... @@ -5,7 +5,6 @@ C_LRED='\033[1;31m'
5 5  
6 6 #### Partition Number ####
7 7 P1_NUM="1"
8   -P2_NUM="2"
9 8  
10 9 DEVNAME="mmcblk0"
11 10 DEV_PATH="/dev/mmcblk0"
... ... @@ -18,6 +17,7 @@ FNAME_DTB="imx6s-prime-oven.dtb"
18 17 FNAME_KERNEL="uImage"
19 18 FNAME_FSCPIO="ramdisk-prime_oven.uboot"
20 19 FNAME_RFS="rootfs.tar"
  20 +FNAME_APP="application.tar"
21 21  
22 22 MOUNT_PATH_P1="/tmp/mmcblk0p1"
23 23  
... ... @@ -33,11 +33,6 @@ n
33 33 p
34 34 1
35 35 262144
36   -1310719
37   -n
38   -p
39   -2
40   -1310720
41 36  
42 37 p
43 38 w
... ... @@ -50,7 +45,6 @@ function run_format()
50 45 echo -e "${C_LRED}### Format SDCARD - run_format() ###${C_NC}"
51 46 echo ""
52 47 echo "y" | mkfs.ext4 ${DEV_PATH}${P1_NUM} -L BOOT0
53   - echo "y" | mkfs.ext4 ${DEV_PATH}${P2_NUM} -L DATA
54 48 }
55 49  
56 50 function run_mount()
... ... @@ -88,6 +82,7 @@ function run_copy_image()
88 82 cp -v ./$FNAME_KERNEL ${MOUNT_PATH_P1}/boot/
89 83 cp -v ./$FNAME_FSCPIO ${MOUNT_PATH_P1}/boot/
90 84 cp -v ./$FNAME_RFS ${MOUNT_PATH_P1}/boot/
  85 + cp -v ./$FNAME_APP ${MOUNT_PATH_P1}/boot/
91 86 sleep 1
92 87 sync
93 88 }
... ... @@ -134,7 +129,6 @@ function main()
134 129 if [[ "$1" == "sd"* ]]; then
135 130 if [ "$1" != "sd" ]; then
136 131 P1_NUM="1"
137   - P2_NUM="2"
138 132 else
139 133 echo "Missing Partition Number"
140 134 exit
... ... @@ -143,7 +137,6 @@ if [[ "$1" == "sd"* ]]; then
143 137 elif [[ "$1" == "mmcblk"* ]]; then
144 138 if [ "$1" != "mmcblk" ]; then
145 139 P1_NUM="p1"
146   - P2_NUM="p2"
147 140 else
148 141 echo "Missing Partition Number"
149 142 exit
... ...