Commit 69fd0e8ee5f9a0e6df07f9b2b2b52fd63f38bd5c
1 parent
9024e3e314
Exists in
master
and in
2 other branches
rootfs mount ro
Showing
6 changed files
with
76 additions
and
72 deletions
Show diff stats
buildroot/buildroot-2016.08.1/board/falinux/prime_oven/rootfs_overlay/etc/mdev/automount.sh
... | ... | @@ -15,7 +15,11 @@ if [ "$mounted" = "" ]; then |
15 | 15 | |
16 | 16 | echo "Mount : $1 -> $MNTPATH" > $LOGPATH |
17 | 17 | mkdir -p $MNTPATH |
18 | - mount -v -t ext4 -o data=journal /dev/$1 $MNTPATH | |
18 | + if [ $1 == "mmcblk3p2" ]; then | |
19 | + mount -v -t ext4 -o data=journal /dev/$1 $MNTPATH | |
20 | + else | |
21 | + mount -v -t ext4 -o data=journal /dev/$1 $MNTPATH | |
22 | + fi | |
19 | 23 | wait |
20 | 24 | echo "Done : mount $MNTPATH" > $LOGPATH |
21 | 25 | else | ... | ... |
buildroot/buildroot-2016.08.1/board/falinux/prime_oven/rootfs_overlay/root/.falinux/mk-emmc-part.sh
... | ... | @@ -0,0 +1,70 @@ |
1 | +#!/bin/sh | |
2 | + | |
3 | +BDEV=/dev/mmcblk3 | |
4 | + | |
5 | +PART1=p1 | |
6 | +PART2=p2 | |
7 | +PART3=p3 | |
8 | +PART4=p4 | |
9 | + | |
10 | +echo /dev/null >/proc/sys/kernel/hotplug | |
11 | + | |
12 | +umount ${BDEV}${PART1} | |
13 | +umount ${BDEV}${PART2} | |
14 | +umount ${BDEV}${PART3} | |
15 | +umount ${BDEV}${PART4} | |
16 | + | |
17 | +echo "" | |
18 | +echo "==== make partitions ===============================" | |
19 | +## start stop size desc | |
20 | +## ---------- -------- ------- -------------- | |
21 | +## 00-MB 128-MB 128-MB raw area | |
22 | +## 128-MB 256-MB 128-MB partition#0, ext4 : BOOT0 | |
23 | +## 256-MB 512-MB 256-MB partition#1, ext4 : SYSTEM | |
24 | +## 512-MB 1024-MB 512-MB partition#2, ext4 : FALINUX | |
25 | +## 1024-MB all partition#3, ext4 : PRIME | |
26 | +## | |
27 | +sleep 1 | |
28 | +fdisk ${BDEV} << EOF | |
29 | +o | |
30 | +n | |
31 | +p | |
32 | +1 | |
33 | +4096 | |
34 | +8191 | |
35 | +n | |
36 | +p | |
37 | +2 | |
38 | +8192 | |
39 | +16383 | |
40 | +n | |
41 | +p | |
42 | +3 | |
43 | +16384 | |
44 | +32767 | |
45 | +n | |
46 | +p | |
47 | +32768 | |
48 | + | |
49 | +p | |
50 | +w | |
51 | +EOF | |
52 | + | |
53 | +## format partitions | |
54 | +echo "" | |
55 | +echo "==== format partitions =============================" | |
56 | +sleep 1 | |
57 | + | |
58 | +mkfs.ext4 -j -F ${BDEV}${PART1} -L BOOT0 | |
59 | +mkfs.ext4 -j -F ${BDEV}${PART2} -L SYSTEM | |
60 | +mkfs.ext4 -j -F ${BDEV}${PART3} -L FALINUX | |
61 | +mkfs.ext4 -j -F ${BDEV}${PART4} -L PRIME | |
62 | + | |
63 | +sleep 1 | |
64 | +mount ${BDEV}${PART1} /mnt/mmc | |
65 | +mkdir /mnt/mmc/boot | |
66 | +chmod 777 /mnt/mmc/boot | |
67 | +sync | |
68 | +sleep 1 | |
69 | +echo /sbin/mdev >/proc/sys/kernel/hotplug | |
70 | +/sbin/mdev -s | ... | ... |
buildroot/buildroot-2016.08.1/board/falinux/prime_oven/rootfs_overlay/root/.falinux/mk-mmc-part.sh
... | ... | @@ -1,70 +0,0 @@ |
1 | -#!/bin/sh | |
2 | - | |
3 | -BDEV=/dev/mmcblk3 | |
4 | - | |
5 | -PART1=p1 | |
6 | -PART2=p2 | |
7 | -PART3=p3 | |
8 | -PART4=p4 | |
9 | - | |
10 | -echo /dev/null >/proc/sys/kernel/hotplug | |
11 | - | |
12 | -umount ${BDEV}${PART1} | |
13 | -umount ${BDEV}${PART2} | |
14 | -umount ${BDEV}${PART3} | |
15 | -umount ${BDEV}${PART4} | |
16 | - | |
17 | -echo "" | |
18 | -echo "==== make partitions ===============================" | |
19 | -## start stop size desc | |
20 | -## ---------- -------- ------- -------------- | |
21 | -## 00-MB 128-MB 128-MB raw area | |
22 | -## 128-MB 256-MB 128-MB partition#0, ext4 : BOOT0 | |
23 | -## 256-MB 512-MB 256-MB partition#1, ext4 : SYSTEM | |
24 | -## 512-MB 1024-MB 512-MB partition#2, ext4 : FALINUX | |
25 | -## 1024-MB all partition#3, ext4 : PRIME | |
26 | -## | |
27 | -sleep 1 | |
28 | -fdisk ${BDEV} << EOF | |
29 | -o | |
30 | -n | |
31 | -p | |
32 | -1 | |
33 | -4096 | |
34 | -8191 | |
35 | -n | |
36 | -p | |
37 | -2 | |
38 | -8192 | |
39 | -16383 | |
40 | -n | |
41 | -p | |
42 | -3 | |
43 | -16384 | |
44 | -32767 | |
45 | -n | |
46 | -p | |
47 | -32768 | |
48 | - | |
49 | -p | |
50 | -w | |
51 | -EOF | |
52 | - | |
53 | -## format partitions | |
54 | -echo "" | |
55 | -echo "==== format partitions =============================" | |
56 | -sleep 1 | |
57 | - | |
58 | -mkfs.ext4 -j -F ${BDEV}${PART1} -L BOOT0 | |
59 | -mkfs.ext4 -j -F ${BDEV}${PART2} -L SYSTEM | |
60 | -mkfs.ext4 -j -F ${BDEV}${PART3} -L FALINUX | |
61 | -mkfs.ext4 -j -F ${BDEV}${PART4} -L PRIME | |
62 | - | |
63 | -sleep 1 | |
64 | -mount ${BDEV}${PART1} /mnt/mmc | |
65 | -mkdir /mnt/mmc/boot | |
66 | -chmod 777 /mnt/mmc/boot | |
67 | -sync | |
68 | -sleep 1 | |
69 | -echo /sbin/mdev >/proc/sys/kernel/hotplug | |
70 | -/sbin/mdev -s |
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