Commit b5cb427d3235a9d325219e220e2978ff204b9e18

Authored by 장형기
1 parent 756d04b756
Exists in master and in 2 other branches fhd, fhd-demo

emmc partition

README.md
... ... @@ -176,15 +176,15 @@
176 176  
177 177 start size desc
178 178 ---------- ---------- ----------------------------
179   - 00-MB 128-MB raw area
180   - 128-MB 128-MB partition#0, ext4 : BOOT0
181   - 256-MB 256-MB partition#1, ext4 : SYSTEM
182   - 512-MB 512-MB partition#2, ext4 : FALINUX
183   - 1024-MB all partition#3, ext4 : PRIME
  179 + 0-MB 128-MB raw area
  180 + 128-MB 128-MB partition#1, ext3 : BOOT0
  181 + 256-MB 256-MB partition#2, ext4 : SYSTEM
  182 + 512-MB 512-MB partition#3, ext4 : FALINUX
  183 + 1024-MB all partition#4, ext4 : PRIME
184 184  
185 185  
186 186 -----------------------------------------------------
187   - 00-MB 128-MB raw area
  187 + 0-MB 128-MB raw area
188 188 -----------------------------------------------------
189 189 start size start size
190 190 -----------------------------------------------------
... ...
bootloader/u-boot_2015_04/include/configs/mx6s_prime_oven.h
... ... @@ -186,7 +186,7 @@
186 186 "boot_fdt=try\0" \
187 187 "bootdelay=1\0" \
188 188 "ramargs=console=ttymxc0,115200 root=/dev/ram0 rw --no-log initrd=0x1E000000,64M ramdisk=131072\0" \
189   - "mmcargs=console=ttymxc0,115200 root=/dev/mmcblk3p2 rw --no-log rootfstype=ext4 rootdelay=5 rootwaitwait\0" \" \
  189 + "mmcargs=console=ttymxc0,115200 root=/dev/mmcblk3p2 rw --no-log rootfstype=ext4 rootwaitwait\0" \" \
190 190 "bootargs_ram=setenv bootargs ${ramargs} ${video_lvds} ${video_vmalloc} eth0ip=${ipaddr} eth0netmask=${netmask} eth0gw=${gatewayip} ${arg_option} autorun=${autoexec}\0" \
191 191 "bootargs_mmc=setenv bootargs ${mmcargs} ${video_lvds} ${video_vmalloc} eth0ip=${ipaddr} eth0netmask=${netmask} eth0gw=${gatewayip} ${arg_option} autorun=${autoexec}\0" \
192 192 "ethaddr=00:FA:15:12:02:02\0" \
... ... @@ -207,7 +207,7 @@
207 207 "kernel_file=uImage\0" \
208 208 "ramdisk_file=ramdisk-prime_oven-128M.gz\0" \
209 209 "logo_file=init.bmp\0" \
210   - "uboot=tftpboot 0x12000000 ${tftpbase}/${uboot_file}; mmc dev ${mmcdev}; mmc write 0x12000000 2 500; if ext4ls mmc ${mmcdev}:1 boot; then ext4writ mmc ${mmcdev}:1 0x12000000 /boot/${uboot_file} ${filesize}; fi; mmc ${mmcdev}:1 0x12000000 /boot/${uboot_file} ${filesize}; fi;\0" \" \
  210 + "uboot=tftpboot 0x12000000 ${tftpbase}/${uboot_file}; mmc dev ${mmcdev}; mmc write 0x12000000 2 500; if ext4ls mmc ${mmcdev}:1 boot; then ext4write mmc ${mmcdev}:1 0x12000000 /boot/${uboot_file} ${filesize}; fi; mmc ${mmcdev}:1 0x12000000 /boot/${uboot_file} ${filesize}; fi;\0" \" \
211 211 "kernel=tftpboot 0x12000000 ${tftpbase}/${kernel_file}; mmc dev ${mmcdev}; mmc write 0x12000000 3000 3800; if ext4ls mmc ${mmcdev}:1 boot; then ext4write mmc ${mmcdev}:1 0x12000000 /boot/${kernel_file} ${filesize}; fi;\0" \
212 212 "dtb=tftpboot 0x11F00000 ${tftpbase}/${dtb_file}; mmc dev ${mmcdev}; mmc write 0x11F00000 2C00 400; if ext4ls mmc ${mmcdev}:1 boot; then ext4write mmc ${mmcdev}:1 0x11F00000 /boot/${dtb_file} ${filesize}; fi;\0" \
213 213 "ramdisk=tftpboot 0x1E000000 ${tftpbase}/${ramdisk_file}; mmc dev ${mmcdev}; mmc write 0x1E000000 7000 0x20000; if ext4ls mmc ${mmcdev}:1 boot; then ext4write mmc ${mmcdev}:1 0x1E000000 /boot/${ramdisk_file} ${filesize}; fi;\0" \
... ...
buildroot/buildroot-2016.08.1/board/falinux/prime_oven/rootfs_overlay/etc/init.d/S18sound
... ... @@ -0,0 +1,30 @@
  1 +#!/bin/sh
  2 +
  3 +start() {
  4 + /usr/bin/amixer -c 0 sset 'PCM',0 70% 70% on
  5 + /usr/bin/aplay /root/opening.wav &
  6 + /usr/bin/amixer -c 0 sset 'PCM',0 88% 88% on
  7 +}
  8 +
  9 +stop() {
  10 + echo "OK"
  11 +}
  12 +
  13 +case "$1" in
  14 + start)
  15 + start
  16 + ;;
  17 + stop)
  18 + stop
  19 + ;;
  20 + restart|reload)
  21 + restart
  22 + ;;
  23 + *)
  24 + echo "Usage: $0 {start|stop|restart}"
  25 + exit 1
  26 +esac
  27 +
  28 +exit $?
  29 +
  30 +### end
... ...
buildroot/buildroot-2016.08.1/board/falinux/prime_oven/rootfs_overlay/etc/mdev/automount.sh
... ... @@ -16,9 +16,9 @@ if [ "$mounted" = "" ]; then
16 16 echo "Mount : $1 -> $MNTPATH" > $LOGPATH
17 17 mkdir -p $MNTPATH
18 18 if [ $1 == "mmcblk3p2" ]; then
19   - mount -v -t ext4 -o data=journal /dev/$1 $MNTPATH
  19 + mount -v -t ext4 /dev/$1 $MNTPATH
20 20 else
21   - mount -v -t ext4 -o data=journal /dev/$1 $MNTPATH
  21 + mount -v -t ext4 /dev/$1 $MNTPATH
22 22 fi
23 23 wait
24 24 echo "Done : mount $MNTPATH" > $LOGPATH
... ...
buildroot/buildroot-2016.08.1/board/falinux/prime_oven/rootfs_overlay/root/.falinux/mk-emmc-part.sh
... ... @@ -18,11 +18,11 @@ echo ""
18 18 echo "==== make partitions ==============================="
19 19 ## start stop size desc
20 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
  21 +## 0-MB 128-MB 128-MB raw area
  22 +## 128-MB 256-MB 128-MB partition#1, ext3 : BOOT0
  23 +## 256-MB 512-MB 256-MB partition#2, ext4 : SYSTEM
  24 +## 512-MB 1024-MB 512-MB partition#3, ext4 : FALINUX
  25 +## 1024-MB all partition#4, ext4 : PRIME
26 26 ##
27 27 sleep 1
28 28 fdisk ${BDEV} << EOF
... ... @@ -55,7 +55,7 @@ echo &quot;&quot;
55 55 echo "==== format partitions ============================="
56 56 sleep 1
57 57  
58   -mkfs.ext4 -j -F ${BDEV}${PART1} -L BOOT0
  58 +mkfs.ext3 -F ${BDEV}${PART1} -L BOOT0
59 59 mkfs.ext4 -j -F ${BDEV}${PART2} -L SYSTEM
60 60 mkfs.ext4 -j -F ${BDEV}${PART3} -L FALINUX
61 61 mkfs.ext4 -j -F ${BDEV}${PART4} -L PRIME
... ...
buildroot/buildroot-2016.08.1/board/falinux/prime_oven/rootfs_overlay/root/.falinux/update_boot.sh
... ... @@ -2,7 +2,7 @@
2 2  
3 3 BOOTID=0
4 4 SERVERIP=$1
5   -if [ -z "SERVERIP" ]
  5 +if [ -z $SERVERIP ]
6 6 then
7 7 echo "./update_fs.sh serverip"
8 8 SERVERIP=192.168.10.131
... ... @@ -17,13 +17,14 @@ echo &quot;[*] Remount boot area...&quot;
17 17 sync
18 18  
19 19 umount /dev/mmcblk3p1
20   -mount -t ext4 /dev/mmcblk3p1 /boot${BOOTID}
  20 +mount -t ext3 /dev/mmcblk3p1 /boot${BOOTID}
21 21  
22 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}/
  23 +cp /mnt/nfs/prime-oven/u-boot.imx /boot${BOOTID}/boot/
  24 +cp /mnt/nfs/prime-oven/init.bmp /boot${BOOTID}/boot/
  25 +cp /mnt/nfs/prime-oven/uImage /boot${BOOTID}/boot/
  26 +cp /mnt/nfs/prime-oven/imx6s-prime-oven.dtb /boot${BOOTID}/boot/
  27 +cp /mnt/nfs/prime-oven/ramdisk-prime_oven-128M.gz /boot${BOOTID}/boot/
27 28  
28 29 echo "[*] Sync filesystem..."
29 30 sync
... ...
release/ramdisk-prime_oven-128M.gz
No preview for this file type
release/rootfs.tar
No preview for this file type
release/u-boot.imx
No preview for this file type